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