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