Access the |X86ISA|::|PS| field of a ia32e-pdpte-1gb-pagebits bit structure.
(ia32e-pdpte-1gb-pagebits->ps x) → ps
Function:
(defun ia32e-pdpte-1gb-pagebits->ps$inline (x) (declare (xargs :guard (ia32e-pdpte-1gb-pagebits-p x))) (mbe :logic (let ((x (ia32e-pdpte-1gb-pagebits-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-pdpte-1gb-pagebits->ps (b* ((ps (ia32e-pdpte-1gb-pagebits->ps$inline x))) (bitp ps)) :rule-classes :rewrite)
Theorem:
(defthm ia32e-pdpte-1gb-pagebits->ps$inline-of-ia32e-pdpte-1gb-pagebits-fix-x (equal (ia32e-pdpte-1gb-pagebits->ps$inline (ia32e-pdpte-1gb-pagebits-fix x)) (ia32e-pdpte-1gb-pagebits->ps$inline x)))
Theorem:
(defthm ia32e-pdpte-1gb-pagebits->ps$inline-ia32e-pdpte-1gb-pagebits-equiv-congruence-on-x (implies (ia32e-pdpte-1gb-pagebits-equiv x x-equiv) (equal (ia32e-pdpte-1gb-pagebits->ps$inline x) (ia32e-pdpte-1gb-pagebits->ps$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm ia32e-pdpte-1gb-pagebits->ps-of-ia32e-pdpte-1gb-pagebits (equal (ia32e-pdpte-1gb-pagebits->ps (ia32e-pdpte-1gb-pagebits p r/w u/s pwt pcd a d ps g res1 pat res2 page res3 xd)) (bfix ps)))
Theorem:
(defthm ia32e-pdpte-1gb-pagebits->ps-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x ia32e-pdpte-1gb-pagebits-equiv-under-mask) (ia32e-pdpte-1gb-pagebits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 128) 0)) (equal (ia32e-pdpte-1gb-pagebits->ps x) (ia32e-pdpte-1gb-pagebits->ps y))))