Access the |ACL2|::|X| field of a evex-byte1 bit structure.
(evex-byte1->x byte1) → x
Function:
(defun evex-byte1->x$inline (byte1) (declare (xargs :guard (evex-byte1-p byte1))) (mbe :logic (let ((byte1 (evex-byte1-fix byte1))) (part-select byte1 :low 6 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 2) (ash (the (unsigned-byte 8) byte1) -6))))))
Theorem:
(defthm bitp-of-evex-byte1->x (b* ((x (evex-byte1->x$inline byte1))) (bitp x)) :rule-classes :rewrite)
Theorem:
(defthm evex-byte1->x$inline-of-evex-byte1-fix-byte1 (equal (evex-byte1->x$inline (evex-byte1-fix byte1)) (evex-byte1->x$inline byte1)))
Theorem:
(defthm evex-byte1->x$inline-evex-byte1-equiv-congruence-on-byte1 (implies (evex-byte1-equiv byte1 byte1-equiv) (equal (evex-byte1->x$inline byte1) (evex-byte1->x$inline byte1-equiv))) :rule-classes :congruence)
Theorem:
(defthm evex-byte1->x-of-evex-byte1 (equal (evex-byte1->x (evex-byte1 mmm res r-prime b x r)) (bfix x)))
Theorem:
(defthm evex-byte1->x-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps byte1 evex-byte1-equiv-under-mask) (evex-byte1-equiv-under-mask byte1 y fty::mask) (equal (logand (lognot fty::mask) 64) 0)) (equal (evex-byte1->x byte1) (evex-byte1->x y))))