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