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