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