Access the |X86ISA|::|VPN| field of a tlb-key bit structure.
Function:
(defun tlb-key->vpn$inline (x) (declare (xargs :guard (tlb-key-p x))) (mbe :logic (let ((x (tlb-key-fix x))) (part-select x :low 10 :width 36)) :exec (the (unsigned-byte 36) (logand (the (unsigned-byte 36) 68719476735) (the (unsigned-byte 36) (ash (the (unsigned-byte 46) x) -10))))))
Theorem:
(defthm 36bits-p-of-tlb-key->vpn (b* ((vpn (tlb-key->vpn$inline x))) (36bits-p vpn)) :rule-classes :rewrite)
Theorem:
(defthm tlb-key->vpn$inline-of-tlb-key-fix-x (equal (tlb-key->vpn$inline (tlb-key-fix x)) (tlb-key->vpn$inline x)))
Theorem:
(defthm tlb-key->vpn$inline-tlb-key-equiv-congruence-on-x (implies (tlb-key-equiv x x-equiv) (equal (tlb-key->vpn$inline x) (tlb-key->vpn$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm tlb-key->vpn-of-tlb-key (equal (tlb-key->vpn (tlb-key wp smep smap ac nxe implicit-supervisor-access r-w-x cpl vpn)) (36bits-fix vpn)))
Theorem:
(defthm tlb-key->vpn-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x tlb-key-equiv-under-mask) (tlb-key-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 70368744176640) 0)) (equal (tlb-key->vpn x) (tlb-key->vpn y))))