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