Recognizer for extdecl structures.
(extdeclp x) → *
Function:
(defun extdeclp (x) (declare (xargs :guard t)) (let ((__function__ 'extdeclp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :fundef)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((unwrap (std::da-nth 0 (cdr x)))) (fundefp unwrap)))) ((eq (car x) :decl) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((unwrap (std::da-nth 0 (cdr x)))) (declp unwrap)))) ((eq (car x) :empty) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :asm) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((unwrap (std::da-nth 0 (cdr x)))) (asm-stmtp unwrap))))))))
Theorem:
(defthm consp-when-extdeclp (implies (extdeclp x) (consp x)) :rule-classes :compound-recognizer)