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