Update the |X86ISA|::|U/S| field of a ia32e-pdpte-1gb-pagebits bit structure.
(!ia32e-pdpte-1gb-pagebits->u/s u/s x) → new-x
Function:
(defun !ia32e-pdpte-1gb-pagebits->u/s$inline (u/s x) (declare (xargs :guard (and (bitp u/s) (ia32e-pdpte-1gb-pagebits-p x)))) (mbe :logic (b* ((u/s (mbe :logic (bfix u/s) :exec u/s)) (x (ia32e-pdpte-1gb-pagebits-fix x))) (part-install u/s x :width 1 :low 2)) :exec (the (unsigned-byte 64) (logior (the (unsigned-byte 64) (logand (the (unsigned-byte 64) x) (the (signed-byte 4) -5))) (the (unsigned-byte 3) (ash (the (unsigned-byte 1) u/s) 2))))))
Theorem:
(defthm ia32e-pdpte-1gb-pagebits-p-of-!ia32e-pdpte-1gb-pagebits->u/s (b* ((new-x (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s x))) (ia32e-pdpte-1gb-pagebits-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !ia32e-pdpte-1gb-pagebits->u/s$inline-of-bfix-u/s (equal (!ia32e-pdpte-1gb-pagebits->u/s$inline (bfix u/s) x) (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s x)))
Theorem:
(defthm !ia32e-pdpte-1gb-pagebits->u/s$inline-bit-equiv-congruence-on-u/s (implies (bit-equiv u/s u/s-equiv) (equal (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s x) (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !ia32e-pdpte-1gb-pagebits->u/s$inline-of-ia32e-pdpte-1gb-pagebits-fix-x (equal (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s (ia32e-pdpte-1gb-pagebits-fix x)) (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s x)))
Theorem:
(defthm !ia32e-pdpte-1gb-pagebits->u/s$inline-ia32e-pdpte-1gb-pagebits-equiv-congruence-on-x (implies (ia32e-pdpte-1gb-pagebits-equiv x x-equiv) (equal (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s x) (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !ia32e-pdpte-1gb-pagebits->u/s-is-ia32e-pdpte-1gb-pagebits (equal (!ia32e-pdpte-1gb-pagebits->u/s u/s x) (change-ia32e-pdpte-1gb-pagebits x :u/s u/s)))
Theorem:
(defthm ia32e-pdpte-1gb-pagebits->u/s-of-!ia32e-pdpte-1gb-pagebits->u/s (b* ((?new-x (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s x))) (equal (ia32e-pdpte-1gb-pagebits->u/s new-x) (bfix u/s))))
Theorem:
(defthm !ia32e-pdpte-1gb-pagebits->u/s-equiv-under-mask (b* ((?new-x (!ia32e-pdpte-1gb-pagebits->u/s$inline u/s x))) (ia32e-pdpte-1gb-pagebits-equiv-under-mask new-x x -5)))