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