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