(vl-module-add-enumname-declarations x) → new-x
Function:
(defun vl-module-add-enumname-declarations (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module-add-enumname-declarations)) (declare (ignorable __function__)) (b* (((vl-module x) (vl-module-fix x)) ((unless x.parse-temps) x) ((mv warnings items seen) (vl-genelementlist-enumname-declarations (vl-parse-temps->loaditems x.parse-temps) nil)) (- (fast-alist-free seen))) (change-vl-module x :parse-temps (change-vl-parse-temps x.parse-temps :loaditems items) :warnings (append-without-guard warnings x.warnings)))))
Theorem:
(defthm vl-module-p-of-vl-module-add-enumname-declarations (b* ((new-x (vl-module-add-enumname-declarations x))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-add-enumname-declarations-of-vl-module-fix-x (equal (vl-module-add-enumname-declarations (vl-module-fix x)) (vl-module-add-enumname-declarations x)))
Theorem:
(defthm vl-module-add-enumname-declarations-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-add-enumname-declarations x) (vl-module-add-enumname-declarations x-equiv))) :rule-classes :congruence)