Recognizer of RV32E states.
(stat-rv32e-p x) → yes/no
These only depend on the base, not on the M extension or the endianness.
Function:
(defun stat-rv32e-p (x) (declare (xargs :guard t)) (let ((__function__ 'stat-rv32e-p)) (declare (ignorable __function__)) (and (statp x) (stat-validp x (feat-rv32e-le)))))
Theorem:
(defthm booleanp-of-stat-rv32e-p (b* ((yes/no (stat-rv32e-p x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm stat-rv32e-p-alt-def-be (equal (stat-rv32e-p x) (and (statp x) (stat-validp x (feat-rv32e-be)))))
Theorem:
(defthm stat-rv32e-p-alt-def-m-le (equal (stat-rv32e-p x) (and (statp x) (stat-validp x (feat-rv32em-le)))))
Theorem:
(defthm stat-rv32e-p-alt-def-m-be (equal (stat-rv32e-p x) (and (statp x) (stat-validp x (feat-rv32em-be)))))