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