Recognizer for fun-adeclor structures.
(fun-adeclorp x) → *
Function:
(defun fun-adeclorp (x) (declare (xargs :guard t)) (let ((__function__ 'fun-adeclorp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :base)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((params (std::da-nth 0 (cdr x)))) (param-declon-listp params)))) (t (and (eq (car x) :pointer) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((decl (std::da-nth 0 (cdr x)))) (fun-adeclorp decl))))))))
Theorem:
(defthm consp-when-fun-adeclorp (implies (fun-adeclorp x) (consp x)) :rule-classes :compound-recognizer)