Access the |X86ISA|::|OFFSET15-0| field of a call-gate-descriptorbits bit structure.
(call-gate-descriptorbits->offset15-0 x) → offset15-0
Function:
(defun call-gate-descriptorbits->offset15-0$inline (x) (declare (xargs :guard (call-gate-descriptorbits-p x))) (mbe :logic (let ((x (call-gate-descriptorbits-fix x))) (part-select x :low 0 :width 16)) :exec (the (unsigned-byte 16) (logand (the (unsigned-byte 16) 65535) (the (unsigned-byte 128) x)))))
Theorem:
(defthm 16bits-p-of-call-gate-descriptorbits->offset15-0 (b* ((offset15-0 (call-gate-descriptorbits->offset15-0$inline x))) (16bits-p offset15-0)) :rule-classes :rewrite)
Theorem:
(defthm call-gate-descriptorbits->offset15-0$inline-of-call-gate-descriptorbits-fix-x (equal (call-gate-descriptorbits->offset15-0$inline (call-gate-descriptorbits-fix x)) (call-gate-descriptorbits->offset15-0$inline x)))
Theorem:
(defthm call-gate-descriptorbits->offset15-0$inline-call-gate-descriptorbits-equiv-congruence-on-x (implies (call-gate-descriptorbits-equiv x x-equiv) (equal (call-gate-descriptorbits->offset15-0$inline x) (call-gate-descriptorbits->offset15-0$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm call-gate-descriptorbits->offset15-0-of-call-gate-descriptorbits (equal (call-gate-descriptorbits->offset15-0 (call-gate-descriptorbits offset15-0 selector res1 type s dpl p offset31-16 offset63-32 res2 all-zeroes? res3)) (16bits-fix offset15-0)))
Theorem:
(defthm call-gate-descriptorbits->offset15-0-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x call-gate-descriptorbits-equiv-under-mask) (call-gate-descriptorbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 65535) 0)) (equal (call-gate-descriptorbits->offset15-0 x) (call-gate-descriptorbits->offset15-0 y))))