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