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