Access the |ACL2|::|Z| field of a evex-byte3 bit structure.
(evex-byte3->z x) → z
Function:
(defun evex-byte3->z$inline (x) (declare (xargs :guard (evex-byte3-p x))) (mbe :logic (let ((x (evex-byte3-fix x))) (part-select x :low 7 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 1) (ash (the (unsigned-byte 8) x) -7))))))
Theorem:
(defthm bitp-of-evex-byte3->z (b* ((z (evex-byte3->z$inline x))) (bitp z)) :rule-classes :rewrite)
Theorem:
(defthm evex-byte3->z$inline-of-evex-byte3-fix-x (equal (evex-byte3->z$inline (evex-byte3-fix x)) (evex-byte3->z$inline x)))
Theorem:
(defthm evex-byte3->z$inline-evex-byte3-equiv-congruence-on-x (implies (evex-byte3-equiv x x-equiv) (equal (evex-byte3->z$inline x) (evex-byte3->z$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm evex-byte3->z-of-evex-byte3 (equal (evex-byte3->z (evex-byte3 aaa v-prime b vl/rc z)) (bfix z)))
Theorem:
(defthm evex-byte3->z-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) 128) 0)) (equal (evex-byte3->z x) (evex-byte3->z y))))