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