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