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