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