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