Get the value field from a uint.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun uint->value$inline (x) (declare (xargs :guard (uintp x))) (declare (xargs :guard t)) (let ((__function__ 'uint->value)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (size (bit-size-fix (std::da-nth 0 (cdr x)))) (value (nfix (std::da-nth 1 (cdr x))))) (unsigned-byte-fix size value)) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm natp-of-uint->value (b* ((value (uint->value$inline x))) (natp value)) :rule-classes :rewrite)
Theorem:
(defthm uint->value$inline-of-uint-fix-x (equal (uint->value$inline (uint-fix x)) (uint->value$inline x)))
Theorem:
(defthm uint->value$inline-uint-equiv-congruence-on-x (implies (uint-equiv x x-equiv) (equal (uint->value$inline x) (uint->value$inline x-equiv))) :rule-classes :congruence)