Apply the argresolve transformation to a vl-module-p.
(vl-module-argresolve x ss) → new-x
This is just glue-code to apply vl-modinst-argresolve to all of the module instances, and vl-gateinst-dirassign to all of the gate instances in the module.
Function:
(defun vl-module-argresolve (x ss) (declare (xargs :guard (and (vl-module-p x) (vl-scopestack-p ss)))) (let ((__function__ 'vl-module-argresolve)) (declare (ignorable __function__)) (b* (((when (vl-module->hands-offp x)) (vl-module-fix x)) ((mv warnings genblob) (vl-genblob-argresolve (vl-module->genblob x) ss (vl-module->warnings x))) (x-warn (change-vl-module x :warnings warnings))) (vl-genblob->module genblob x-warn))))
Theorem:
(defthm vl-module-p-of-vl-module-argresolve (b* ((new-x (vl-module-argresolve x ss))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-argresolve-of-vl-module-fix-x (equal (vl-module-argresolve (vl-module-fix x) ss) (vl-module-argresolve x ss)))
Theorem:
(defthm vl-module-argresolve-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-argresolve x ss) (vl-module-argresolve x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-module-argresolve-of-vl-scopestack-fix-ss (equal (vl-module-argresolve x (vl-scopestack-fix ss)) (vl-module-argresolve x ss)))
Theorem:
(defthm vl-module-argresolve-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-module-argresolve x ss) (vl-module-argresolve x ss-equiv))) :rule-classes :congruence)