Access the |X86ISA|::|RF| field of a rflagsbits bit structure.
(rflagsbits->rf x) → rf
Function:
(defun rflagsbits->rf$inline (x) (declare (xargs :guard (rflagsbits-p x))) (mbe :logic (let ((x (rflagsbits-fix x))) (part-select x :low 16 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 16) (ash (the (unsigned-byte 32) x) -16))))))
Theorem:
(defthm bitp-of-rflagsbits->rf (b* ((rf (rflagsbits->rf$inline x))) (bitp rf)) :rule-classes :rewrite)
Theorem:
(defthm rflagsbits->rf$inline-of-rflagsbits-fix-x (equal (rflagsbits->rf$inline (rflagsbits-fix x)) (rflagsbits->rf$inline x)))
Theorem:
(defthm rflagsbits->rf$inline-rflagsbits-equiv-congruence-on-x (implies (rflagsbits-equiv x x-equiv) (equal (rflagsbits->rf$inline x) (rflagsbits->rf$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm rflagsbits->rf-of-rflagsbits (equal (rflagsbits->rf (rflagsbits cf res1 pf res2 af res3 zf sf tf intf df of iopl nt res4 rf vm ac vif vip id res5)) (bfix rf)))
Theorem:
(defthm rflagsbits->rf-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) 65536) 0)) (equal (rflagsbits->rf x) (rflagsbits->rf y))))