(vl-module-caseelim x ss) → new-x
Function:
(defun vl-module-caseelim (x ss) (declare (xargs :guard (and (vl-module-p x) (vl-scopestack-p ss)))) (let ((__function__ 'vl-module-caseelim)) (declare (ignorable __function__)) (b* ((x (vl-module-fix x)) ((when (vl-module->hands-offp x)) x) (genblob (vl-module->genblob x)) ((mv warnings new-genblob) (vl-genblob-caseelim genblob ss (vl-module->warnings x))) (x-warn (change-vl-module x :warnings warnings))) (vl-genblob->module new-genblob x-warn))))
Theorem:
(defthm vl-module-p-of-vl-module-caseelim (b* ((new-x (vl-module-caseelim x ss))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-caseelim-of-vl-module-fix-x (equal (vl-module-caseelim (vl-module-fix x) ss) (vl-module-caseelim x ss)))
Theorem:
(defthm vl-module-caseelim-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-caseelim x ss) (vl-module-caseelim x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-module-caseelim-of-vl-scopestack-fix-ss (equal (vl-module-caseelim x (vl-scopestack-fix ss)) (vl-module-caseelim x ss)))
Theorem:
(defthm vl-module-caseelim-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-module-caseelim x ss) (vl-module-caseelim x ss-equiv))) :rule-classes :congruence)