Recognizer for extdecl structures.
(extdeclp x) → *
Function:
(defun extdeclp (x) (declare (xargs :guard t)) (and (consp x) (cond ((or (atom x) (eq (car x) :fundef)) (and (b* ((unwrap (cdr x))) (fundefp unwrap)))) ((eq (car x) :decl) (and (b* ((unwrap (cdr x))) (declp unwrap)))) ((eq (car x) :empty) (and (eq (cdr x) nil) (b* nil t))) (t (and (eq (car x) :asm) (and) (b* ((unwrap (cdr x))) (asm-stmtp unwrap)))))))
Theorem:
(defthm consp-when-extdeclp (implies (extdeclp x) (consp x)) :rule-classes :compound-recognizer)