(vl-module-resolve-indexing x ss) → new-x
Function:
(defun vl-module-resolve-indexing (x ss) (declare (xargs :guard (and (vl-module-p x) (vl-scopestack-p ss)))) (let ((__function__ 'vl-module-resolve-indexing)) (declare (ignorable __function__)) (b* ((x (vl-module-fix x)) ((vl-module x) x) ((when (vl-module->hands-offp x)) x) (ss (vl-scopestack-push x ss)) (warnings x.warnings) ((mv warnings ports) (vl-portlist-resolve-indexing x.ports ss warnings)) ((mv warnings assigns) (vl-assignlist-resolve-indexing x.assigns ss warnings)) ((mv warnings modinsts) (vl-modinstlist-resolve-indexing x.modinsts ss warnings)) ((mv warnings gateinsts) (vl-gateinstlist-resolve-indexing x.gateinsts ss warnings)) ((mv warnings alwayses) (vl-alwayslist-resolve-indexing x.alwayses ss warnings)) ((mv warnings initials) (vl-initiallist-resolve-indexing x.initials ss warnings)) ((mv warnings fundecls) (vl-fundecllist-resolve-indexing x.fundecls ss warnings)) (new-x (change-vl-module x :ports ports :assigns assigns :modinsts modinsts :gateinsts gateinsts :alwayses alwayses :initials initials :fundecls fundecls :warnings warnings))) new-x)))
Theorem:
(defthm vl-module-p-of-vl-module-resolve-indexing (b* ((new-x (vl-module-resolve-indexing x ss))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-resolve-indexing-of-vl-module-fix-x (equal (vl-module-resolve-indexing (vl-module-fix x) ss) (vl-module-resolve-indexing x ss)))
Theorem:
(defthm vl-module-resolve-indexing-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-resolve-indexing x ss) (vl-module-resolve-indexing x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-module-resolve-indexing-of-vl-scopestack-fix-ss (equal (vl-module-resolve-indexing x (vl-scopestack-fix ss)) (vl-module-resolve-indexing x ss)))
Theorem:
(defthm vl-module-resolve-indexing-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-module-resolve-indexing x ss) (vl-module-resolve-indexing x ss-equiv))) :rule-classes :congruence)