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