(vl-initial-caseelim x warnings ss) → (mv warnings new-x)
Function:
(defun vl-initial-caseelim (x warnings ss) (declare (xargs :guard (and (vl-initial-p x) (vl-warninglist-p warnings) (vl-scopestack-p ss)))) (let ((__function__ 'vl-initial-caseelim)) (declare (ignorable __function__)) (b* ((x (vl-initial-fix x)) ((mv warnings stmt) (vl-stmt-caseelim (vl-initial->stmt x) x warnings ss)) (x-prime (change-vl-initial x :stmt stmt))) (mv warnings x-prime))))
Theorem:
(defthm vl-warninglist-p-of-vl-initial-caseelim.warnings (b* (((mv ?warnings ?new-x) (vl-initial-caseelim x warnings ss))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-initial-p-of-vl-initial-caseelim.new-x (b* (((mv ?warnings ?new-x) (vl-initial-caseelim x warnings ss))) (vl-initial-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-initial-caseelim-of-vl-initial-fix-x (equal (vl-initial-caseelim (vl-initial-fix x) warnings ss) (vl-initial-caseelim x warnings ss)))
Theorem:
(defthm vl-initial-caseelim-vl-initial-equiv-congruence-on-x (implies (vl-initial-equiv x x-equiv) (equal (vl-initial-caseelim x warnings ss) (vl-initial-caseelim x-equiv warnings ss))) :rule-classes :congruence)
Theorem:
(defthm vl-initial-caseelim-of-vl-warninglist-fix-warnings (equal (vl-initial-caseelim x (vl-warninglist-fix warnings) ss) (vl-initial-caseelim x warnings ss)))
Theorem:
(defthm vl-initial-caseelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-initial-caseelim x warnings ss) (vl-initial-caseelim x warnings-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-initial-caseelim-of-vl-scopestack-fix-ss (equal (vl-initial-caseelim x warnings (vl-scopestack-fix ss)) (vl-initial-caseelim x warnings ss)))
Theorem:
(defthm vl-initial-caseelim-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-initial-caseelim x warnings ss) (vl-initial-caseelim x warnings ss-equiv))) :rule-classes :congruence)