Recognizer for stoclaspec structures.
(stoclaspecp x) → *
Function:
(defun stoclaspecp (x) (declare (xargs :guard t)) (let ((__function__ 'stoclaspecp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :typedef)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :extern) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :static) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :threadloc) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :auto) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :register) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-stoclaspecp (implies (stoclaspecp x) (consp x)) :rule-classes :compound-recognizer)