Update the |X86ISA|::|AVL| field of a code-segment-descriptorbits bit structure.
(!code-segment-descriptorbits->avl avl x) → new-x
Function:
(defun !code-segment-descriptorbits->avl$inline (avl x) (declare (xargs :guard (and (bitp avl) (code-segment-descriptorbits-p x)))) (mbe :logic (b* ((avl (mbe :logic (bfix avl) :exec avl)) (x (code-segment-descriptorbits-fix x))) (part-install avl x :width 1 :low 52)) :exec (the (unsigned-byte 64) (logior (the (unsigned-byte 64) (logand (the (unsigned-byte 64) x) (the (signed-byte 54) -4503599627370497))) (the (unsigned-byte 53) (ash (the (unsigned-byte 1) avl) 52))))))
Theorem:
(defthm code-segment-descriptorbits-p-of-!code-segment-descriptorbits->avl (b* ((new-x (!code-segment-descriptorbits->avl$inline avl x))) (code-segment-descriptorbits-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !code-segment-descriptorbits->avl$inline-of-bfix-avl (equal (!code-segment-descriptorbits->avl$inline (bfix avl) x) (!code-segment-descriptorbits->avl$inline avl x)))
Theorem:
(defthm !code-segment-descriptorbits->avl$inline-bit-equiv-congruence-on-avl (implies (bit-equiv avl avl-equiv) (equal (!code-segment-descriptorbits->avl$inline avl x) (!code-segment-descriptorbits->avl$inline avl-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !code-segment-descriptorbits->avl$inline-of-code-segment-descriptorbits-fix-x (equal (!code-segment-descriptorbits->avl$inline avl (code-segment-descriptorbits-fix x)) (!code-segment-descriptorbits->avl$inline avl x)))
Theorem:
(defthm !code-segment-descriptorbits->avl$inline-code-segment-descriptorbits-equiv-congruence-on-x (implies (code-segment-descriptorbits-equiv x x-equiv) (equal (!code-segment-descriptorbits->avl$inline avl x) (!code-segment-descriptorbits->avl$inline avl x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !code-segment-descriptorbits->avl-is-code-segment-descriptorbits (equal (!code-segment-descriptorbits->avl avl x) (change-code-segment-descriptorbits x :avl avl)))
Theorem:
(defthm code-segment-descriptorbits->avl-of-!code-segment-descriptorbits->avl (b* ((?new-x (!code-segment-descriptorbits->avl$inline avl x))) (equal (code-segment-descriptorbits->avl new-x) (bfix avl))))
Theorem:
(defthm !code-segment-descriptorbits->avl-equiv-under-mask (b* ((?new-x (!code-segment-descriptorbits->avl$inline avl x))) (code-segment-descriptorbits-equiv-under-mask new-x x -4503599627370497)))