Access the |ACL2|::|B| field of a evex-byte3 bit structure.
(evex-byte3->b x) → b
Function:
(defun evex-byte3->b$inline (x) (declare (xargs :guard (evex-byte3-p x))) (mbe :logic (let ((x (evex-byte3-fix x))) (part-select x :low 4 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 4) (ash (the (unsigned-byte 8) x) -4))))))
Theorem:
(defthm bitp-of-evex-byte3->b (b* ((b (evex-byte3->b$inline x))) (bitp b)) :rule-classes :rewrite)
Theorem:
(defthm evex-byte3->b$inline-of-evex-byte3-fix-x (equal (evex-byte3->b$inline (evex-byte3-fix x)) (evex-byte3->b$inline x)))
Theorem:
(defthm evex-byte3->b$inline-evex-byte3-equiv-congruence-on-x (implies (evex-byte3-equiv x x-equiv) (equal (evex-byte3->b$inline x) (evex-byte3->b$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm evex-byte3->b-of-evex-byte3 (equal (evex-byte3->b (evex-byte3 aaa v-prime b vl/rc z)) (bfix b)))
Theorem:
(defthm evex-byte3->b-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x evex-byte3-equiv-under-mask) (evex-byte3-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 16) 0)) (equal (evex-byte3->b x) (evex-byte3->b y))))