Get the value field from a vl-constint.
(vl-constint->value x) → value
This is an ordinary field accessor created by defprod.
Function:
(defun vl-constint->value$inline (x) (declare (xargs :guard (vl-constint-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-constint->value)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (origwidth (pos-fix (std::prod-car (std::prod-car (cdr x))))) (value (nfix (std::prod-cdr (std::prod-car (cdr x))))) (origtype (vl-exprtype-fix (std::prod-car (std::prod-cdr (cdr x))))) (wasunsized (acl2::bool-fix (std::prod-cdr (std::prod-cdr (cdr x)))))) (acl2::loghead (pos-fix origwidth) value)) :exec (std::prod-cdr (std::prod-car (cdr x))))))
Theorem:
(defthm natp-of-vl-constint->value (b* ((value (vl-constint->value$inline x))) (natp value)) :rule-classes :type-prescription)
Theorem:
(defthm vl-constint->value$inline-of-vl-constint-fix-x (equal (vl-constint->value$inline (vl-constint-fix x)) (vl-constint->value$inline x)))
Theorem:
(defthm vl-constint->value$inline-vl-constint-equiv-congruence-on-x (implies (vl-constint-equiv x x-equiv) (equal (vl-constint->value$inline x) (vl-constint->value$inline x-equiv))) :rule-classes :congruence)