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