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