Widening conversion from
(byte-to-int operand) → result
Function:
(defun byte-to-int (operand) (declare (xargs :guard (byte-valuep operand))) (b* ((x (byte-value->int operand))) (int-value x)))
Theorem:
(defthm int-valuep-of-byte-to-int (b* ((result (byte-to-int operand))) (int-valuep result)) :rule-classes :rewrite)
Theorem:
(defthm byte-to-int-of-byte-value-fix-operand (equal (byte-to-int (byte-value-fix operand)) (byte-to-int operand)))
Theorem:
(defthm byte-to-int-byte-value-equiv-congruence-on-operand (implies (byte-value-equiv operand operand-equiv) (equal (byte-to-int operand) (byte-to-int operand-equiv))) :rule-classes :congruence)