Access the |X86ISA|::|RES3| field of a system-segment-descriptorbits bit structure.
(system-segment-descriptorbits->res3 x) → res3
Function:
(defun system-segment-descriptorbits->res3$inline (x) (declare (xargs :guard (system-segment-descriptorbits-p x))) (mbe :logic (let ((x (system-segment-descriptorbits-fix x))) (part-select x :low 109 :width 19)) :exec (the (unsigned-byte 19) (logand (the (unsigned-byte 19) 524287) (the (unsigned-byte 19) (ash (the (unsigned-byte 128) x) -109))))))
Theorem:
(defthm 19bits-p-of-system-segment-descriptorbits->res3 (b* ((res3 (system-segment-descriptorbits->res3$inline x))) (19bits-p res3)) :rule-classes :rewrite)
Theorem:
(defthm system-segment-descriptorbits->res3$inline-of-system-segment-descriptorbits-fix-x (equal (system-segment-descriptorbits->res3$inline (system-segment-descriptorbits-fix x)) (system-segment-descriptorbits->res3$inline x)))
Theorem:
(defthm system-segment-descriptorbits->res3$inline-system-segment-descriptorbits-equiv-congruence-on-x (implies (system-segment-descriptorbits-equiv x x-equiv) (equal (system-segment-descriptorbits->res3$inline x) (system-segment-descriptorbits->res3$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm system-segment-descriptorbits->res3-of-system-segment-descriptorbits (equal (system-segment-descriptorbits->res3 (system-segment-descriptorbits limit15-0 base15-0 base23-16 type s dpl p limit19-16 avl res1 g base31-24 base63-32 res2 all-zeroes? res3)) (19bits-fix res3)))
Theorem:
(defthm system-segment-descriptorbits->res3-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x system-segment-descriptorbits-equiv-under-mask) (system-segment-descriptorbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 340281717883831146609921041119727058944) 0)) (equal (system-segment-descriptorbits->res3 x) (system-segment-descriptorbits->res3 y))))