Access the |X86ISA|::|BASE-ADDR| field of a gdtr/idtrbits bit structure.
(gdtr/idtrbits->base-addr x) → base-addr
Function:
(defun gdtr/idtrbits->base-addr$inline (x) (declare (xargs :guard (gdtr/idtrbits-p x))) (mbe :logic (let ((x (gdtr/idtrbits-fix x))) (part-select x :low 0 :width 64)) :exec (the (unsigned-byte 64) (logand (the (unsigned-byte 64) 18446744073709551615) (the (unsigned-byte 80) x)))))
Theorem:
(defthm 64bits-p-of-gdtr/idtrbits->base-addr (b* ((base-addr (gdtr/idtrbits->base-addr$inline x))) (64bits-p base-addr)) :rule-classes :rewrite)
Theorem:
(defthm gdtr/idtrbits->base-addr$inline-of-gdtr/idtrbits-fix-x (equal (gdtr/idtrbits->base-addr$inline (gdtr/idtrbits-fix x)) (gdtr/idtrbits->base-addr$inline x)))
Theorem:
(defthm gdtr/idtrbits->base-addr$inline-gdtr/idtrbits-equiv-congruence-on-x (implies (gdtr/idtrbits-equiv x x-equiv) (equal (gdtr/idtrbits->base-addr$inline x) (gdtr/idtrbits->base-addr$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm gdtr/idtrbits->base-addr-of-gdtr/idtrbits (equal (gdtr/idtrbits->base-addr (gdtr/idtrbits base-addr limit)) (64bits-fix base-addr)))
Theorem:
(defthm gdtr/idtrbits->base-addr-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x gdtr/idtrbits-equiv-under-mask) (gdtr/idtrbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 18446744073709551615) 0)) (equal (gdtr/idtrbits->base-addr x) (gdtr/idtrbits->base-addr y))))