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