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