Access the |X86ISA|::|UNKNOWNBITS| field of a interrupt/trap-gate-descriptor-attributesbits bit structure.
(interrupt/trap-gate-descriptor-attributesbits->unknownbits x) → unknownbits
Function:
(defun interrupt/trap-gate-descriptor-attributesbits->unknownbits$inline (x) (declare (xargs :guard (interrupt/trap-gate-descriptor-attributesbits-p x))) (mbe :logic (let ((x (interrupt/trap-gate-descriptor-attributesbits-fix x))) (part-select x :low 11 :width 5)) :exec (the (unsigned-byte 5) (logand (the (unsigned-byte 5) 31) (the (unsigned-byte 5) (ash (the (unsigned-byte 16) x) -11))))))
Theorem:
(defthm 5bits-p-of-interrupt/trap-gate-descriptor-attributesbits->unknownbits (b* ((unknownbits (interrupt/trap-gate-descriptor-attributesbits->unknownbits$inline x))) (5bits-p unknownbits)) :rule-classes :rewrite)
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->unknownbits$inline-of-interrupt/trap-gate-descriptor-attributesbits-fix-x (equal (interrupt/trap-gate-descriptor-attributesbits->unknownbits$inline (interrupt/trap-gate-descriptor-attributesbits-fix x)) (interrupt/trap-gate-descriptor-attributesbits->unknownbits$inline x)))
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->unknownbits$inline-interrupt/trap-gate-descriptor-attributesbits-equiv-congruence-on-x (implies (interrupt/trap-gate-descriptor-attributesbits-equiv x x-equiv) (equal (interrupt/trap-gate-descriptor-attributesbits->unknownbits$inline x) (interrupt/trap-gate-descriptor-attributesbits->unknownbits$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->unknownbits-of-interrupt/trap-gate-descriptor-attributesbits (equal (interrupt/trap-gate-descriptor-attributesbits->unknownbits (interrupt/trap-gate-descriptor-attributesbits ist type s dpl p unknownbits)) (5bits-fix unknownbits)))
Theorem:
(defthm interrupt/trap-gate-descriptor-attributesbits->unknownbits-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x interrupt/trap-gate-descriptor-attributesbits-equiv-under-mask) (interrupt/trap-gate-descriptor-attributesbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 63488) 0)) (equal (interrupt/trap-gate-descriptor-attributesbits->unknownbits x) (interrupt/trap-gate-descriptor-attributesbits->unknownbits y))))