Recognizer for stor-spec structures.
(stor-specp x) → *
Function:
(defun stor-specp (x) (declare (xargs :guard t)) (and (consp x) (cond ((or (atom x) (eq (car x) :typedef)) (and (eq (cdr x) nil) (b* nil t))) ((eq (car x) :extern) (and (eq (cdr x) nil) (b* nil t))) ((eq (car x) :static) (and (eq (cdr x) nil) (b* nil t))) ((eq (car x) :thread) (and (b* ((local (cdr x))) (booleanp local)))) ((eq (car x) :auto) (and (eq (cdr x) nil) (b* nil t))) (t (and (eq (car x) :register) (and (eq (cdr x) nil)) (b* nil t))))))
Theorem:
(defthm consp-when-stor-specp (implies (stor-specp x) (consp x)) :rule-classes :compound-recognizer)