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