Access the |ACL2|::|D| field of a code-segment-descriptorbits bit structure.
(code-segment-descriptorbits->d x) → d
Function:
(defun code-segment-descriptorbits->d$inline (x) (declare (xargs :guard (code-segment-descriptorbits-p x))) (mbe :logic (let ((x (code-segment-descriptorbits-fix x))) (part-select x :low 54 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 10) (ash (the (unsigned-byte 64) x) -54))))))
Theorem:
(defthm bitp-of-code-segment-descriptorbits->d (b* ((d (code-segment-descriptorbits->d$inline x))) (bitp d)) :rule-classes :rewrite)
Theorem:
(defthm code-segment-descriptorbits->d$inline-of-code-segment-descriptorbits-fix-x (equal (code-segment-descriptorbits->d$inline (code-segment-descriptorbits-fix x)) (code-segment-descriptorbits->d$inline x)))
Theorem:
(defthm code-segment-descriptorbits->d$inline-code-segment-descriptorbits-equiv-congruence-on-x (implies (code-segment-descriptorbits-equiv x x-equiv) (equal (code-segment-descriptorbits->d$inline x) (code-segment-descriptorbits->d$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm code-segment-descriptorbits->d-of-code-segment-descriptorbits (equal (code-segment-descriptorbits->d (code-segment-descriptorbits limit15-0 base15-0 base23-16 a r c msb-of-type s dpl p limit19-16 avl l d g base31-24)) (bfix d)))
Theorem:
(defthm code-segment-descriptorbits->d-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x code-segment-descriptorbits-equiv-under-mask) (code-segment-descriptorbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 18014398509481984) 0)) (equal (code-segment-descriptorbits->d x) (code-segment-descriptorbits->d y))))