Recognizer for partsum-comp structures.
(partsum-comp-p x) → *
Function:
(defun partsum-comp-p (x) (declare (xargs :guard t)) (let ((__function__ 'partsum-comp-p)) (declare (ignorable __function__)) (cond ((stringp x) (b* ((val x)) (stringp val))) ((atom x) (b* ((val x)) (integerp val))) (t (b* ((msb (car x)) (lsb (cdr x))) (and (integerp msb) (integerp lsb)))))))