Access the |X86ISA|::|S| field of a system-segment-descriptor-attributesbits bit structure.
(system-segment-descriptor-attributesbits->s x) → s
Function:
(defun system-segment-descriptor-attributesbits->s$inline (x) (declare (xargs :guard (system-segment-descriptor-attributesbits-p x))) (mbe :logic (let ((x (system-segment-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-system-segment-descriptor-attributesbits->s (b* ((s (system-segment-descriptor-attributesbits->s$inline x))) (bitp s)) :rule-classes :rewrite)
Theorem:
(defthm system-segment-descriptor-attributesbits->s$inline-of-system-segment-descriptor-attributesbits-fix-x (equal (system-segment-descriptor-attributesbits->s$inline (system-segment-descriptor-attributesbits-fix x)) (system-segment-descriptor-attributesbits->s$inline x)))
Theorem:
(defthm system-segment-descriptor-attributesbits->s$inline-system-segment-descriptor-attributesbits-equiv-congruence-on-x (implies (system-segment-descriptor-attributesbits-equiv x x-equiv) (equal (system-segment-descriptor-attributesbits->s$inline x) (system-segment-descriptor-attributesbits->s$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm system-segment-descriptor-attributesbits->s-of-system-segment-descriptor-attributesbits (equal (system-segment-descriptor-attributesbits->s (system-segment-descriptor-attributesbits type s dpl p avl g unknownbits)) (bfix s)))
Theorem:
(defthm system-segment-descriptor-attributesbits->s-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x system-segment-descriptor-attributesbits-equiv-under-mask) (system-segment-descriptor-attributesbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 16) 0)) (equal (system-segment-descriptor-attributesbits->s x) (system-segment-descriptor-attributesbits->s y))))