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