• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
          • App-view
          • Top-level-memory
          • 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

    Paging-entry-no-page-fault-p-did-fault?

    Signature
    (paging-entry-no-page-fault-p-did-fault? 
         u/s-all 
         r/w-all x/d-all wp smep smap ac nxe 
         implicit-supervisor-access r-w-x cpl) 
     
      → 
    fault?
    Returns
    fault? — Type (booleanp fault?).

    Definitions and Theorems

    Function: paging-entry-no-page-fault-p-did-fault?

    (defun paging-entry-no-page-fault-p-did-fault?
           (u/s-all r/w-all x/d-all wp smep smap ac nxe
                    implicit-supervisor-access r-w-x cpl)
      (declare (type (unsigned-byte 1) u/s-all)
               (type (unsigned-byte 1) r/w-all)
               (type (unsigned-byte 1) x/d-all)
               (type (unsigned-byte 1) wp)
               (type (unsigned-byte 1) smep)
               (type (unsigned-byte 1) smap)
               (type (unsigned-byte 1) ac)
               (type (unsigned-byte 1) nxe)
               (type (unsigned-byte 1)
                     implicit-supervisor-access)
               (type (member :r :w :x) r-w-x)
               (type (unsigned-byte 2) cpl))
      (declare
           (xargs :guard (or (not (equal implicit-supervisor-access 1))
                             (< cpl 3))))
      (let ((__function__ 'paging-entry-no-page-fault-p-did-fault?))
        (declare (ignorable __function__))
        (or (and (equal r-w-x :r)
                 (if (< cpl 3)
                     (if (equal u/s-all 0)
                         nil
                       (if (equal smap 0)
                           nil
                         (or (equal implicit-supervisor-access 1)
                             (equal ac 0))))
                   (equal u/s-all 0)))
            (and (equal r-w-x :w)
                 (if (< cpl 3)
                     (if (equal u/s-all 0)
                         (and (equal wp 1) (equal r/w-all 0))
                       (if (equal wp 0)
                           (if (equal smap 0)
                               nil
                             (or (equal implicit-supervisor-access 1)
                                 (equal ac 0)))
                         (if (equal smap 0)
                             (equal r/w-all 0)
                           (if (and (equal implicit-supervisor-access 0)
                                    (equal ac 1))
                               (equal r/w-all 0)
                             t))))
                   (or (equal u/s-all 0)
                       (equal r/w-all 0))))
            (and (equal r-w-x :x)
                 (if (< cpl 3)
                     (if (equal u/s-all 0)
                         (if (equal nxe 0) nil (equal x/d-all 1))
                       (if (equal smep 0)
                           (if (equal nxe 0) nil (equal x/d-all 1))
                         t))
                   (or (equal u/s-all 0)
                       (and (equal nxe 1)
                            (equal x/d-all 1))))))))

    Theorem: booleanp-of-paging-entry-no-page-fault-p-did-fault?

    (defthm booleanp-of-paging-entry-no-page-fault-p-did-fault?
      (b* ((fault? (paging-entry-no-page-fault-p-did-fault?
                        u/s-all
                        r/w-all x/d-all wp smep smap ac nxe
                        implicit-supervisor-access r-w-x cpl)))
        (booleanp fault?))
      :rule-classes :rewrite)