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