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