Recognizer for obj-declor structures.
(obj-declorp x) → *
Function:
(defun obj-declorp (x) (declare (xargs :guard t)) (let ((__function__ 'obj-declorp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :ident)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (identp get)))) ((eq (car x) :pointer) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((decl (std::da-nth 0 (cdr x)))) (obj-declorp decl)))) (t (and (eq (car x) :array) (and (true-listp (cdr x)) (eql (len (cdr x)) 2)) (b* ((decl (std::da-nth 0 (cdr x))) (size (std::da-nth 1 (cdr x)))) (and (obj-declorp decl) (iconst-optionp size)))))))))
Theorem:
(defthm consp-when-obj-declorp (implies (obj-declorp x) (consp x)) :rule-classes :compound-recognizer)