Access the |X86ISA|::|S| field of a data-segment-descriptorbits bit structure.
(data-segment-descriptorbits->s x) → s
Function:
(defun data-segment-descriptorbits->s$inline (x) (declare (xargs :guard (data-segment-descriptorbits-p x))) (mbe :logic (let ((x (data-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 20) (ash (the (unsigned-byte 64) x) -44))))))
Theorem:
(defthm bitp-of-data-segment-descriptorbits->s (b* ((s (data-segment-descriptorbits->s$inline x))) (bitp s)) :rule-classes :rewrite)
Theorem:
(defthm data-segment-descriptorbits->s$inline-of-data-segment-descriptorbits-fix-x (equal (data-segment-descriptorbits->s$inline (data-segment-descriptorbits-fix x)) (data-segment-descriptorbits->s$inline x)))
Theorem:
(defthm data-segment-descriptorbits->s$inline-data-segment-descriptorbits-equiv-congruence-on-x (implies (data-segment-descriptorbits-equiv x x-equiv) (equal (data-segment-descriptorbits->s$inline x) (data-segment-descriptorbits->s$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm data-segment-descriptorbits->s-of-data-segment-descriptorbits (equal (data-segment-descriptorbits->s (data-segment-descriptorbits limit15-0 base15-0 base23-16 a w e msb-of-type s dpl p limit19-16 avl l d/b g base31-24)) (bfix s)))
Theorem:
(defthm data-segment-descriptorbits->s-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x data-segment-descriptorbits-equiv-under-mask) (data-segment-descriptorbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 17592186044416) 0)) (equal (data-segment-descriptorbits->s x) (data-segment-descriptorbits->s y))))