Recognizer for stor-spec structures.
(stor-specp x) → *
Function:
(defun stor-specp (x) (declare (xargs :guard t)) (let ((__function__ 'stor-specp)) (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-stor-specp (implies (stor-specp x) (consp x)) :rule-classes :compound-recognizer)