(vl-module-make-implicit-wires x ss) → new-x
Function:
(defun vl-module-make-implicit-wires (x ss) (declare (xargs :guard (and (vl-module-p x) (vl-scopestack-p ss)))) (let ((__function__ 'vl-module-make-implicit-wires)) (declare (ignorable __function__)) (b* (((vl-module x)) (x.loaditems (and x.parse-temps (append (vl-modelementlist->genelements (vl-parse-temps->imports x.parse-temps)) (vl-modelementlist->genelements (vl-parse-temps->paramports x.parse-temps)) (vl-parse-temps->loaditems x.parse-temps)))) ((mv warnings rev-flatitems) (vl-genelementlist-flatten x.loaditems nil nil x.warnings)) ((mv newitems warnings) (vl-make-implicit-wires-main (rev rev-flatitems) x.ifports ss warnings)) (parse-temps (and x.parse-temps (change-vl-parse-temps x.parse-temps :paramports nil :loaditems newitems)))) (change-vl-module (vl-genblob->module (vl-sort-genelements newitems) x) :ports x.ports :parse-temps parse-temps :warnings warnings))))
Theorem:
(defthm vl-module-p-of-vl-module-make-implicit-wires (b* ((new-x (vl-module-make-implicit-wires x ss))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-make-implicit-wires-of-vl-module-fix-x (equal (vl-module-make-implicit-wires (vl-module-fix x) ss) (vl-module-make-implicit-wires x ss)))
Theorem:
(defthm vl-module-make-implicit-wires-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-make-implicit-wires x ss) (vl-module-make-implicit-wires x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-module-make-implicit-wires-of-vl-scopestack-fix-ss (equal (vl-module-make-implicit-wires x (vl-scopestack-fix ss)) (vl-module-make-implicit-wires x ss)))
Theorem:
(defthm vl-module-make-implicit-wires-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-module-make-implicit-wires x ss) (vl-module-make-implicit-wires x ss-equiv))) :rule-classes :congruence)