Helper function for logrev.
Function:
(defun logrev1 (size i j) (declare (xargs :guard (and (and (integerp size) (<= 0 size)) (integerp i) (integerp j)))) (declare (type unsigned-byte size) (type integer i j)) (declare (xargs :split-types t)) (let ((__function__ 'logrev1)) (declare (ignorable __function__)) (if (zp size) (mbe :logic (ifix j) :exec j) (logrev1 (the unsigned-byte (- size 1)) (logcdr i) (logcons (logcar i) j)))))