Access the |X86ISA|::|IST| field of a interrupt/trap-gate-descriptor-attributesbits bit structure.
(interrupt/trap-gate-descriptor-attributesbits->ist x) → ist
Function:
(defun interrupt/trap-gate-descriptor-attributesbits->ist$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 0 :width 3)) :exec (the (unsigned-byte 3) (logand (the (unsigned-byte 3) 7) (the (unsigned-byte 16) x)))))
Theorem:
(defthm 3bits-p-of-interrupt/trap-gate-descriptor-attributesbits->ist (b* ((ist (interrupt/trap-gate-descriptor-attributesbits->ist$inline x))) (3bits-p ist)) :rule-classes :rewrite)
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->ist$inline-of-interrupt/trap-gate-descriptor-attributesbits-fix-x (equal (interrupt/trap-gate-descriptor-attributesbits->ist$inline (interrupt/trap-gate-descriptor-attributesbits-fix x)) (interrupt/trap-gate-descriptor-attributesbits->ist$inline x)))
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->ist$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->ist$inline x) (interrupt/trap-gate-descriptor-attributesbits->ist$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->ist-of-interrupt/trap-gate-descriptor-attributesbits (equal (interrupt/trap-gate-descriptor-attributesbits->ist (interrupt/trap-gate-descriptor-attributesbits ist type s dpl p unknownbits)) (3bits-fix ist)))
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->ist-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) 7) 0)) (equal (interrupt/trap-gate-descriptor-attributesbits->ist x) (interrupt/trap-gate-descriptor-attributesbits->ist y))))