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