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