Access the |X86ISA|::|S| field of a system-segment-descriptorbits bit structure.
(system-segment-descriptorbits->s x) → s
Function:
(defun system-segment-descriptorbits->s$inline (x) (declare (xargs :guard (system-segment-descriptorbits-p x))) (mbe :logic (let ((x (system-segment-descriptorbits-fix x))) (part-select x :low 44 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 84) (ash (the (unsigned-byte 128) x) -44))))))
Theorem:
(defthm bitp-of-system-segment-descriptorbits->s (b* ((s (system-segment-descriptorbits->s$inline x))) (bitp s)) :rule-classes :rewrite)
Theorem:
(defthm system-segment-descriptorbits->s$inline-of-system-segment-descriptorbits-fix-x (equal (system-segment-descriptorbits->s$inline (system-segment-descriptorbits-fix x)) (system-segment-descriptorbits->s$inline x)))
Theorem:
(defthm system-segment-descriptorbits->s$inline-system-segment-descriptorbits-equiv-congruence-on-x (implies (system-segment-descriptorbits-equiv x x-equiv) (equal (system-segment-descriptorbits->s$inline x) (system-segment-descriptorbits->s$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm system-segment-descriptorbits->s-of-system-segment-descriptorbits (equal (system-segment-descriptorbits->s (system-segment-descriptorbits limit15-0 base15-0 base23-16 type s dpl p limit19-16 avl res1 g base31-24 base63-32 res2 all-zeroes? res3)) (bfix s)))
Theorem:
(defthm system-segment-descriptorbits->s-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x system-segment-descriptorbits-equiv-under-mask) (system-segment-descriptorbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 17592186044416) 0)) (equal (system-segment-descriptorbits->s x) (system-segment-descriptorbits->s y))))