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