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