Recognizer for fun-declor structures.
(fun-declorp x) → *
Function:
(defun fun-declorp (x) (declare (xargs :guard t)) (let ((__function__ 'fun-declorp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :base)) (and (true-listp (cdr x)) (eql (len (cdr x)) 2) (b* ((name (std::da-nth 0 (cdr x))) (params (std::da-nth 1 (cdr x)))) (and (identp name) (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-declorp decl))))))))
Theorem:
(defthm consp-when-fun-declorp (implies (fun-declorp x) (consp x)) :rule-classes :compound-recognizer)