Recognizer for state32 structures.
(state32p x) → *
Function:
(defun state32p (x) (declare (xargs :guard t)) (let ((__function__ 'state32p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :state32) (true-listp (cdr x)) (eql (len (cdr x)) 4) (b* ((xregfile (std::da-nth 0 (cdr x))) (pc (std::da-nth 1 (cdr x))) (mem (std::da-nth 2 (cdr x))) (error (std::da-nth 3 (cdr x)))) (and (xregfile32p xregfile) (ubyte32p pc) (memory32p mem) (booleanp error))))))
Theorem:
(defthm consp-when-state32p (implies (state32p x) (consp x)) :rule-classes :compound-recognizer)