Access the |X86ISA|::|ADR| field of a prefixes bit structure.
(prefixes->adr x) → adr
Function:
(defun prefixes->adr$inline (x) (declare (xargs :guard (prefixes-p x))) (mbe :logic (let ((x (prefixes-fix x))) (part-select x :low 36 :width 8)) :exec (the (unsigned-byte 8) (logand (the (unsigned-byte 8) 255) (the (unsigned-byte 16) (ash (the (unsigned-byte 52) x) -36))))))
Theorem:
(defthm 8bits-p-of-prefixes->adr (b* ((adr (prefixes->adr$inline x))) (8bits-p adr)) :rule-classes :rewrite)
Theorem:
(defthm prefixes->adr$inline-of-prefixes-fix-x (equal (prefixes->adr$inline (prefixes-fix x)) (prefixes->adr$inline x)))
Theorem:
(defthm prefixes->adr$inline-prefixes-equiv-congruence-on-x (implies (prefixes-equiv x x-equiv) (equal (prefixes->adr$inline x) (prefixes->adr$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm prefixes->adr-of-prefixes (equal (prefixes->adr (prefixes num lck rep seg opr adr nxt)) (8bits-fix adr)))
Theorem:
(defthm prefixes->adr-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x prefixes-equiv-under-mask) (prefixes-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 17523466567680) 0)) (equal (prefixes->adr x) (prefixes->adr y))))