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