Access the |X86ISA|::|PAGE| field of a ia32e-pte-4k-pagebits bit structure.
(ia32e-pte-4k-pagebits->page x) → page
Function:
(defun ia32e-pte-4k-pagebits->page$inline (x) (declare (xargs :guard (ia32e-pte-4k-pagebits-p x))) (mbe :logic (let ((x (ia32e-pte-4k-pagebits-fix x))) (part-select x :low 12 :width 40)) :exec (the (unsigned-byte 40) (logand (the (unsigned-byte 40) 1099511627775) (the (unsigned-byte 52) (ash (the (unsigned-byte 64) x) -12))))))
Theorem:
(defthm 40bits-p-of-ia32e-pte-4k-pagebits->page (b* ((page (ia32e-pte-4k-pagebits->page$inline x))) (40bits-p page)) :rule-classes :rewrite)
Theorem:
(defthm ia32e-pte-4k-pagebits->page$inline-of-ia32e-pte-4k-pagebits-fix-x (equal (ia32e-pte-4k-pagebits->page$inline (ia32e-pte-4k-pagebits-fix x)) (ia32e-pte-4k-pagebits->page$inline x)))
Theorem:
(defthm ia32e-pte-4k-pagebits->page$inline-ia32e-pte-4k-pagebits-equiv-congruence-on-x (implies (ia32e-pte-4k-pagebits-equiv x x-equiv) (equal (ia32e-pte-4k-pagebits->page$inline x) (ia32e-pte-4k-pagebits->page$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm ia32e-pte-4k-pagebits->page-of-ia32e-pte-4k-pagebits (equal (ia32e-pte-4k-pagebits->page (ia32e-pte-4k-pagebits p r/w u/s pwt pcd a d pat g res1 page res2 xd)) (40bits-fix page)))
Theorem:
(defthm ia32e-pte-4k-pagebits->page-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x ia32e-pte-4k-pagebits-equiv-under-mask) (ia32e-pte-4k-pagebits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 4503599627366400) 0)) (equal (ia32e-pte-4k-pagebits->page x) (ia32e-pte-4k-pagebits->page y))))