Get the modinsts field from a vl-module.
(vl-module->modinsts x) → modinsts
This is an ordinary field accessor created by defprod.
Function:
(defun vl-module->modinsts$inline (x) (declare (xargs :guard (vl-module-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-module->modinsts)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (vl-modinstlist-fix (cdr (cdr (cdr (cdr (car (cdr x)))))))) :exec (cdr (cdr (cdr (cdr (car (cdr x)))))))))
Theorem:
(defthm vl-modinstlist-p-of-vl-module->modinsts (b* ((modinsts (vl-module->modinsts$inline x))) (vl-modinstlist-p modinsts)) :rule-classes :rewrite)
Theorem:
(defthm vl-module->modinsts$inline-of-vl-module-fix-x (equal (vl-module->modinsts$inline (vl-module-fix x)) (vl-module->modinsts$inline x)))
Theorem:
(defthm vl-module->modinsts$inline-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module->modinsts$inline x) (vl-module->modinsts$inline x-equiv))) :rule-classes :congruence)