Access the |ACL2|::|E| field of a data-segment-descriptorbits bit structure.
(data-segment-descriptorbits->e x) → e
Function:
(defun data-segment-descriptorbits->e$inline (x) (declare (xargs :guard (data-segment-descriptorbits-p x))) (mbe :logic (let ((x (data-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-data-segment-descriptorbits->e (b* ((e (data-segment-descriptorbits->e$inline x))) (bitp e)) :rule-classes :rewrite)
Theorem:
(defthm data-segment-descriptorbits->e$inline-of-data-segment-descriptorbits-fix-x (equal (data-segment-descriptorbits->e$inline (data-segment-descriptorbits-fix x)) (data-segment-descriptorbits->e$inline x)))
Theorem:
(defthm data-segment-descriptorbits->e$inline-data-segment-descriptorbits-equiv-congruence-on-x (implies (data-segment-descriptorbits-equiv x x-equiv) (equal (data-segment-descriptorbits->e$inline x) (data-segment-descriptorbits->e$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm data-segment-descriptorbits->e-of-data-segment-descriptorbits (equal (data-segment-descriptorbits->e (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 e)))
Theorem:
(defthm data-segment-descriptorbits->e-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) 4398046511104) 0)) (equal (data-segment-descriptorbits->e x) (data-segment-descriptorbits->e y))))