Gather modinsts from the module, including its generate blocks.
(vl-module->flatten-modinsts x) → modinsts
Function:
(defun vl-module->flatten-modinsts (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module->flatten-modinsts)) (declare (ignorable __function__)) (b* ((genblob (vl-module->genblob x))) (vl-genblob->flatten-modinsts genblob nil))))
Theorem:
(defthm vl-modinstlist-p-of-vl-module->flatten-modinsts (b* ((modinsts (vl-module->flatten-modinsts x))) (vl-modinstlist-p modinsts)) :rule-classes :rewrite)
Theorem:
(defthm vl-module->flatten-modinsts-of-vl-module-fix-x (equal (vl-module->flatten-modinsts (vl-module-fix x)) (vl-module->flatten-modinsts x)))
Theorem:
(defthm vl-module->flatten-modinsts-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module->flatten-modinsts x) (vl-module->flatten-modinsts x-equiv))) :rule-classes :congruence)