Access the |X86ISA|::|RES4| field of a rflagsbits bit structure.
(rflagsbits->res4 x) → res4
Function:
(defun rflagsbits->res4$inline (x) (declare (xargs :guard (rflagsbits-p x))) (mbe :logic (let ((x (rflagsbits-fix x))) (part-select x :low 15 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 17) (ash (the (unsigned-byte 32) x) -15))))))
Theorem:
(defthm bitp-of-rflagsbits->res4 (b* ((res4 (rflagsbits->res4$inline x))) (bitp res4)) :rule-classes :rewrite)
Theorem:
(defthm rflagsbits->res4$inline-of-rflagsbits-fix-x (equal (rflagsbits->res4$inline (rflagsbits-fix x)) (rflagsbits->res4$inline x)))
Theorem:
(defthm rflagsbits->res4$inline-rflagsbits-equiv-congruence-on-x (implies (rflagsbits-equiv x x-equiv) (equal (rflagsbits->res4$inline x) (rflagsbits->res4$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm rflagsbits->res4-of-rflagsbits (equal (rflagsbits->res4 (rflagsbits cf res1 pf res2 af res3 zf sf tf intf df of iopl nt res4 rf vm ac vif vip id res5)) (bfix res4)))
Theorem:
(defthm rflagsbits->res4-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x rflagsbits-equiv-under-mask) (rflagsbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 32768) 0)) (equal (rflagsbits->res4 x) (rflagsbits->res4 y))))