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