• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
        • Sdm-instruction-set-summary
        • Tlb
        • Running-linux
        • Introduction
        • Asmtest
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
          • X86isa-state
          • Syscalls
          • Cpuid
          • Linear-memory
          • Rflag-specifications
          • Characterizing-undefined-behavior
          • Top-level-memory
          • App-view
          • X86-decoder
          • Physical-memory
          • Decoding-and-spec-utils
          • Instructions
          • Register-readers-and-writers
          • X86-modes
          • Segmentation
          • Other-non-deterministic-computations
          • Environment
          • Paging
            • Ia32e-paging
              • Paging-entry-no-page-fault-p
              • Ia32e-la-to-pa-without-tlb-internal
              • Ia32e-la-to-pa-page-directory
              • Ia32e-la-to-pa-page-dir-ptr-table
              • Ia32e-la-to-pa-page-table
              • Ia32e-la-to-pa-pml4-table
              • Ia32e-la-to-pa-without-tlb
              • Ia32e-la-to-pa
              • Same-page
              • Page-fault-exception
              • Page-dir-ptr-table-entry-addr
              • Page-directory-entry-addr
              • Page-table-entry-addr
              • La-to-pa
              • Paging-entry-no-page-fault-p-did-fault?
              • Pml4-table-entry-addr
              • Same-page-offset
              • Page-user-supervisor
              • Page-execute-disable
              • Set-dirty-bit
              • Set-accessed-bit
                • Page-read-write
                • Page-present
                • Page-fault-err-no
                • Accessed-bit
                • Page-size
                • Find-similar-paging-entries-from-page-present-equality-aux
                • Dirty-bit
                • Good-lin-addr-p
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Ia32e-paging

    Set-accessed-bit

    Signature
    (set-accessed-bit entry) → a-entry
    Returns
    a-entry — Type (unsigned-byte-p 64 a-entry).

    Definitions and Theorems

    Function: set-accessed-bit

    (defun set-accessed-bit (entry)
      (declare (type (unsigned-byte 64) entry))
      (let ((__function__ 'set-accessed-bit))
        (declare (ignorable __function__))
        (!ia32e-page-tablesbits->a 1 entry)))

    Theorem: return-type-of-set-accessed-bit

    (defthm return-type-of-set-accessed-bit
      (b* ((a-entry (set-accessed-bit entry)))
        (unsigned-byte-p 64 a-entry))
      :rule-classes :rewrite)

    Theorem: n64p-set-accessed-bit

    (defthm n64p-set-accessed-bit
     (unsigned-byte-p 64 (set-accessed-bit val))
     :rule-classes
     (:rewrite
      (:type-prescription
          :corollary (natp (set-accessed-bit val))
          :hints
          (("Goal" :in-theory '(unsigned-byte-p integer-range-p natp))))
      (:linear
       :corollary (and (<= 0 (set-accessed-bit val))
                       (< (set-accessed-bit val)
                          18446744073709551616))
       :hints
       (("Goal"
            :in-theory '(unsigned-byte-p integer-range-p (:e expt)))))))