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