(maybe-integer i x intp) → *
Function:
(defun maybe-integer (i x intp) (declare (xargs :guard (integerp i))) (let ((__function__ 'maybe-integer)) (declare (ignorable __function__)) (if intp (ifix i) (non-int-fix x))))
Theorem:
(defthm maybe-integer-t (equal (maybe-integer i x t) (ifix i)))
Theorem:
(defthm maybe-integer-nil (equal (maybe-integer i x nil) (non-int-fix x)))