Access the |X86ISA|::|PDB| field of a cr3bits bit structure.
Function:
(defun cr3bits->pdb$inline (x) (declare (xargs :guard (cr3bits-p x))) (mbe :logic (let ((x (cr3bits-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-cr3bits->pdb (b* ((pdb (cr3bits->pdb$inline x))) (40bits-p pdb)) :rule-classes :rewrite)
Theorem:
(defthm cr3bits->pdb$inline-of-cr3bits-fix-x (equal (cr3bits->pdb$inline (cr3bits-fix x)) (cr3bits->pdb$inline x)))
Theorem:
(defthm cr3bits->pdb$inline-cr3bits-equiv-congruence-on-x (implies (cr3bits-equiv x x-equiv) (equal (cr3bits->pdb$inline x) (cr3bits->pdb$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cr3bits->pdb-of-cr3bits (equal (cr3bits->pdb (cr3bits res1 pwt pcd res2 pdb res3)) (40bits-fix pdb)))
Theorem:
(defthm cr3bits->pdb-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x cr3bits-equiv-under-mask) (cr3bits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 4503599627366400) 0)) (equal (cr3bits->pdb x) (cr3bits->pdb y))))