Recognizer for function-output structures.
(function-outputp x) → *
Function:
(defun function-outputp (x) (declare (xargs :guard t)) (let ((__function__ 'function-outputp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :function-output) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(reg type))) :exec (fty::alist-with-carsp (cdr x) '(reg type))) (b* ((reg (cdr (std::da-nth 0 (cdr x)))) (type (cdr (std::da-nth 1 (cdr x))))) (and (regaccessp reg) (value-typep type))))))
Theorem:
(defthm consp-when-function-outputp (implies (function-outputp x) (consp x)) :rule-classes :compound-recognizer)