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