(vl-package-add-enumname-declarations x) → new-x
Function:
(defun vl-package-add-enumname-declarations (x) (declare (xargs :guard (vl-package-p x))) (let ((__function__ 'vl-package-add-enumname-declarations)) (declare (ignorable __function__)) (b* (((vl-package x) (vl-package-fix x)) (seen nil) ((mv typedefs warnings1 decls1 seen) (vl-typedeflist-enumname-declarations x.typedefs seen)) ((mv vardecls warnings2 decls2 seen) (vl-vardecllist-enumname-declarations x.vardecls seen)) ((mv paramdecls warnings3 decls3 seen) (vl-paramdecllist-enumname-declarations x.paramdecls seen)) (- (fast-alist-free seen)) (decls (remove-duplicates-equal (append-without-guard decls1 decls2 (list-fix decls3))))) (change-vl-package x :typedefs typedefs :vardecls vardecls :paramdecls (append decls paramdecls) :warnings (append-without-guard warnings1 warnings2 warnings3 x.warnings)))))
Theorem:
(defthm vl-package-p-of-vl-package-add-enumname-declarations (b* ((new-x (vl-package-add-enumname-declarations x))) (vl-package-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-package-add-enumname-declarations-of-vl-package-fix-x (equal (vl-package-add-enumname-declarations (vl-package-fix x)) (vl-package-add-enumname-declarations x)))
Theorem:
(defthm vl-package-add-enumname-declarations-vl-package-equiv-congruence-on-x (implies (vl-package-equiv x x-equiv) (equal (vl-package-add-enumname-declarations x) (vl-package-add-enumname-declarations x-equiv))) :rule-classes :congruence)