Leo absolute value operation.
(op-abs arg) → result
Function:
(defun op-abs (arg) (declare (xargs :guard (valuep arg))) (let ((__function__ 'op-abs)) (declare (ignorable __function__)) (b* (((unless (member-eq (value-kind arg) '(:i8 :i16 :i32 :i64 :i128))) (reserrf (list :op-abs (value-fix arg))))) (op-int-abs arg))))
Theorem:
(defthm value-resultp-of-op-abs (b* ((result (op-abs arg))) (value-resultp result)) :rule-classes :rewrite)