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