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