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