Access the |X86ISA|::|DPL| field of a interrupt/trap-gate-descriptor-attributesbits bit structure.
(interrupt/trap-gate-descriptor-attributesbits->dpl x) → dpl
Function:
(defun interrupt/trap-gate-descriptor-attributesbits->dpl$inline (x) (declare (xargs :guard (interrupt/trap-gate-descriptor-attributesbits-p x))) (mbe :logic (let ((x (interrupt/trap-gate-descriptor-attributesbits-fix x))) (part-select x :low 8 :width 2)) :exec (the (unsigned-byte 2) (logand (the (unsigned-byte 2) 3) (the (unsigned-byte 8) (ash (the (unsigned-byte 16) x) -8))))))
Theorem:
(defthm 2bits-p-of-interrupt/trap-gate-descriptor-attributesbits->dpl (b* ((dpl (interrupt/trap-gate-descriptor-attributesbits->dpl$inline x))) (2bits-p dpl)) :rule-classes :rewrite)
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->dpl$inline-of-interrupt/trap-gate-descriptor-attributesbits-fix-x (equal (interrupt/trap-gate-descriptor-attributesbits->dpl$inline (interrupt/trap-gate-descriptor-attributesbits-fix x)) (interrupt/trap-gate-descriptor-attributesbits->dpl$inline x)))
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->dpl$inline-interrupt/trap-gate-descriptor-attributesbits-equiv-congruence-on-x (implies (interrupt/trap-gate-descriptor-attributesbits-equiv x x-equiv) (equal (interrupt/trap-gate-descriptor-attributesbits->dpl$inline x) (interrupt/trap-gate-descriptor-attributesbits->dpl$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->dpl-of-interrupt/trap-gate-descriptor-attributesbits (equal (interrupt/trap-gate-descriptor-attributesbits->dpl (interrupt/trap-gate-descriptor-attributesbits ist type s dpl p unknownbits)) (2bits-fix dpl)))
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->dpl-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x interrupt/trap-gate-descriptor-attributesbits-equiv-under-mask) (interrupt/trap-gate-descriptor-attributesbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 768) 0)) (equal (interrupt/trap-gate-descriptor-attributesbits->dpl x) (interrupt/trap-gate-descriptor-attributesbits->dpl y))))