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