Access the |X86ISA|::|PS| field of a ia32e-page-tablesbits bit structure.
(ia32e-page-tablesbits->ps x) → ps
Function:
(defun ia32e-page-tablesbits->ps$inline (x) (declare (xargs :guard (ia32e-page-tablesbits-p x))) (mbe :logic (let ((x (ia32e-page-tablesbits-fix x))) (part-select x :low 7 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 57) (ash (the (unsigned-byte 64) x) -7))))))
Theorem:
(defthm bitp-of-ia32e-page-tablesbits->ps (b* ((ps (ia32e-page-tablesbits->ps$inline x))) (bitp ps)) :rule-classes :rewrite)
Theorem:
(defthm ia32e-page-tablesbits->ps$inline-of-ia32e-page-tablesbits-fix-x (equal (ia32e-page-tablesbits->ps$inline (ia32e-page-tablesbits-fix x)) (ia32e-page-tablesbits->ps$inline x)))
Theorem:
(defthm ia32e-page-tablesbits->ps$inline-ia32e-page-tablesbits-equiv-congruence-on-x (implies (ia32e-page-tablesbits-equiv x x-equiv) (equal (ia32e-page-tablesbits->ps$inline x) (ia32e-page-tablesbits->ps$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm ia32e-page-tablesbits->ps-of-ia32e-page-tablesbits (equal (ia32e-page-tablesbits->ps (ia32e-page-tablesbits p r/w u/s pwt pcd a d ps res1 reference-addr res2 xd)) (bfix ps)))
Theorem:
(defthm ia32e-page-tablesbits->ps-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x ia32e-page-tablesbits-equiv-under-mask) (ia32e-page-tablesbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 128) 0)) (equal (ia32e-page-tablesbits->ps x) (ia32e-page-tablesbits->ps y))))