Access the |X86ISA|::|RES1| field of a call-gate-descriptorbits bit structure.
(call-gate-descriptorbits->res1 x) → res1
Function:
(defun call-gate-descriptorbits->res1$inline (x) (declare (xargs :guard (call-gate-descriptorbits-p x))) (mbe :logic (let ((x (call-gate-descriptorbits-fix x))) (part-select x :low 32 :width 8)) :exec (the (unsigned-byte 8) (logand (the (unsigned-byte 8) 255) (the (unsigned-byte 96) (ash (the (unsigned-byte 128) x) -32))))))
Theorem:
(defthm 8bits-p-of-call-gate-descriptorbits->res1 (b* ((res1 (call-gate-descriptorbits->res1$inline x))) (8bits-p res1)) :rule-classes :rewrite)
Theorem:
(defthm call-gate-descriptorbits->res1$inline-of-call-gate-descriptorbits-fix-x (equal (call-gate-descriptorbits->res1$inline (call-gate-descriptorbits-fix x)) (call-gate-descriptorbits->res1$inline x)))
Theorem:
(defthm call-gate-descriptorbits->res1$inline-call-gate-descriptorbits-equiv-congruence-on-x (implies (call-gate-descriptorbits-equiv x x-equiv) (equal (call-gate-descriptorbits->res1$inline x) (call-gate-descriptorbits->res1$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm call-gate-descriptorbits->res1-of-call-gate-descriptorbits (equal (call-gate-descriptorbits->res1 (call-gate-descriptorbits offset15-0 selector res1 type s dpl p offset31-16 offset63-32 res2 all-zeroes? res3)) (8bits-fix res1)))
Theorem:
(defthm call-gate-descriptorbits->res1-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x call-gate-descriptorbits-equiv-under-mask) (call-gate-descriptorbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 1095216660480) 0)) (equal (call-gate-descriptorbits->res1 x) (call-gate-descriptorbits->res1 y))))