Access the |X86ISA|::|G| field of a data-segment-descriptorbits bit structure.
(data-segment-descriptorbits->g x) → g
Function:
(defun data-segment-descriptorbits->g$inline (x) (declare (xargs :guard (data-segment-descriptorbits-p x))) (mbe :logic (let ((x (data-segment-descriptorbits-fix x))) (part-select x :low 55 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 9) (ash (the (unsigned-byte 64) x) -55))))))
Theorem:
(defthm bitp-of-data-segment-descriptorbits->g (b* ((g (data-segment-descriptorbits->g$inline x))) (bitp g)) :rule-classes :rewrite)
Theorem:
(defthm data-segment-descriptorbits->g$inline-of-data-segment-descriptorbits-fix-x (equal (data-segment-descriptorbits->g$inline (data-segment-descriptorbits-fix x)) (data-segment-descriptorbits->g$inline x)))
Theorem:
(defthm data-segment-descriptorbits->g$inline-data-segment-descriptorbits-equiv-congruence-on-x (implies (data-segment-descriptorbits-equiv x x-equiv) (equal (data-segment-descriptorbits->g$inline x) (data-segment-descriptorbits->g$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm data-segment-descriptorbits->g-of-data-segment-descriptorbits (equal (data-segment-descriptorbits->g (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 g)))
Theorem:
(defthm data-segment-descriptorbits->g-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) 36028797018963968) 0)) (equal (data-segment-descriptorbits->g x) (data-segment-descriptorbits->g y))))