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