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