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