Recognizer for op-imms-32-funct structures.
(op-imms-32-funct-p x) → *
Function:
(defun op-imms-32-funct-p (x) (declare (xargs :guard t)) (let ((__function__ 'op-imms-32-funct-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :slliw)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :srliw) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :sraiw) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-op-imms-32-funct-p (implies (op-imms-32-funct-p x) (consp x)) :rule-classes :compound-recognizer)