Add
(vl-module-origexprs x) → new-x
Function:
(defun vl-module-origexprs (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module-origexprs)) (declare (ignorable __function__)) (let ((x (vl-module-fix x))) (b* (((when (vl-module->hands-offp x)) x) ((vl-module x) x) (assigns (vl-assignlist-origexprs x.assigns)) (gateinsts (vl-gateinstlist-origexprs x.gateinsts)) (modinsts (vl-modinstlist-origexprs x.modinsts)) (alwayses (vl-alwayslist-origexprs x.alwayses)) (initials (vl-initiallist-origexprs x.initials))) (change-vl-module x :assigns assigns :gateinsts gateinsts :modinsts modinsts :alwayses alwayses :initials initials)))))
Theorem:
(defthm vl-module-p-of-vl-module-origexprs (b* ((new-x (vl-module-origexprs x))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-origexprs-of-vl-module-fix-x (equal (vl-module-origexprs (vl-module-fix x)) (vl-module-origexprs x)))
Theorem:
(defthm vl-module-origexprs-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-origexprs x) (vl-module-origexprs x-equiv))) :rule-classes :congruence)