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