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