Access the |ACL2|::|A| field of a ia32e-pde-pg-tablebits bit structure.
(ia32e-pde-pg-tablebits->a x) → a
Function:
(defun ia32e-pde-pg-tablebits->a$inline (x) (declare (xargs :guard (ia32e-pde-pg-tablebits-p x))) (mbe :logic (let ((x (ia32e-pde-pg-tablebits-fix x))) (part-select x :low 5 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 59) (ash (the (unsigned-byte 64) x) -5))))))
Theorem:
(defthm bitp-of-ia32e-pde-pg-tablebits->a (b* ((a (ia32e-pde-pg-tablebits->a$inline x))) (bitp a)) :rule-classes :rewrite)
Theorem:
(defthm ia32e-pde-pg-tablebits->a$inline-of-ia32e-pde-pg-tablebits-fix-x (equal (ia32e-pde-pg-tablebits->a$inline (ia32e-pde-pg-tablebits-fix x)) (ia32e-pde-pg-tablebits->a$inline x)))
Theorem:
(defthm ia32e-pde-pg-tablebits->a$inline-ia32e-pde-pg-tablebits-equiv-congruence-on-x (implies (ia32e-pde-pg-tablebits-equiv x x-equiv) (equal (ia32e-pde-pg-tablebits->a$inline x) (ia32e-pde-pg-tablebits->a$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm ia32e-pde-pg-tablebits->a-of-ia32e-pde-pg-tablebits (equal (ia32e-pde-pg-tablebits->a (ia32e-pde-pg-tablebits p r/w u/s pwt pcd a res1 ps res2 pt res3 xd)) (bfix a)))
Theorem:
(defthm ia32e-pde-pg-tablebits->a-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x ia32e-pde-pg-tablebits-equiv-under-mask) (ia32e-pde-pg-tablebits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 32) 0)) (equal (ia32e-pde-pg-tablebits->a x) (ia32e-pde-pg-tablebits->a y))))