Update the |X86ISA|::|LME| field of a ia32_eferbits bit structure.
(!ia32_eferbits->lme lme x) → new-x
Function:
(defun !ia32_eferbits->lme$inline (lme x) (declare (xargs :guard (and (bitp lme) (ia32_eferbits-p x)))) (mbe :logic (b* ((lme (mbe :logic (bfix lme) :exec lme)) (x (ia32_eferbits-fix x))) (part-install lme x :width 1 :low 8)) :exec (the (unsigned-byte 12) (logior (the (unsigned-byte 12) (logand (the (unsigned-byte 12) x) (the (signed-byte 10) -257))) (the (unsigned-byte 9) (ash (the (unsigned-byte 1) lme) 8))))))
Theorem:
(defthm ia32_eferbits-p-of-!ia32_eferbits->lme (b* ((new-x (!ia32_eferbits->lme$inline lme x))) (ia32_eferbits-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !ia32_eferbits->lme$inline-of-bfix-lme (equal (!ia32_eferbits->lme$inline (bfix lme) x) (!ia32_eferbits->lme$inline lme x)))
Theorem:
(defthm !ia32_eferbits->lme$inline-bit-equiv-congruence-on-lme (implies (bit-equiv lme lme-equiv) (equal (!ia32_eferbits->lme$inline lme x) (!ia32_eferbits->lme$inline lme-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !ia32_eferbits->lme$inline-of-ia32_eferbits-fix-x (equal (!ia32_eferbits->lme$inline lme (ia32_eferbits-fix x)) (!ia32_eferbits->lme$inline lme x)))
Theorem:
(defthm !ia32_eferbits->lme$inline-ia32_eferbits-equiv-congruence-on-x (implies (ia32_eferbits-equiv x x-equiv) (equal (!ia32_eferbits->lme$inline lme x) (!ia32_eferbits->lme$inline lme x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !ia32_eferbits->lme-is-ia32_eferbits (equal (!ia32_eferbits->lme lme x) (change-ia32_eferbits x :lme lme)))
Theorem:
(defthm ia32_eferbits->lme-of-!ia32_eferbits->lme (b* ((?new-x (!ia32_eferbits->lme$inline lme x))) (equal (ia32_eferbits->lme new-x) (bfix lme))))
Theorem:
(defthm !ia32_eferbits->lme-equiv-under-mask (b* ((?new-x (!ia32_eferbits->lme$inline lme x))) (ia32_eferbits-equiv-under-mask new-x x -257)))