• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
        • Introduction
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
        • Implemented-opcodes
        • Proof-utilities
          • System-level-marking-view-proof-utilities
            • Rb-alt
            • Unwind-x86-interpreter-in-marking-view
            • Get-prefixes-alt
            • Get-prefixes-in-system-level-marking-view
            • Program-at-alt
            • Rb-in-system-level-marking-view
            • Xlate-equiv-memory-and-rml08
            • Reasoning-about-page-tables
            • Las-to-pas-two-n-ind-hint
              • Find-l-addrs-from-disjoint-p-of-las-to-pas-1-aux
              • Replace-element
            • Non-marking-view-proof-utilities
            • App-view-proof-utilities
            • Subset-p
            • Disjoint-p
            • Pos
            • Member-p
            • No-duplicates-p
            • Common-system-level-utils
            • Debugging-code-proofs
            • General-memory-utils
            • X86-row-wow-thms
          • To-do
          • Concrete-simulation-examples
          • Model-validation
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • System-level-marking-view-proof-utilities

    Las-to-pas-two-n-ind-hint

    Signature
    (las-to-pas-two-n-ind-hint n-1 n-2 lin-addr r-w-x x86) 
      → 
    (mv * * x86)
    Arguments
    n-1 — Guard (natp n-1).
    n-2 — Guard (natp n-2).
    lin-addr — Guard (integerp lin-addr).

    Definitions and Theorems

    Function: las-to-pas-two-n-ind-hint

    (defun las-to-pas-two-n-ind-hint (n-1 n-2 lin-addr r-w-x x86)
      (declare (xargs :stobjs (x86)))
      (declare (type (member :r :w :x) r-w-x))
      (declare (xargs :guard (and (natp n-1)
                                  (natp n-2)
                                  (integerp lin-addr))))
      (let ((__function__ 'las-to-pas-two-n-ind-hint))
        (declare (ignorable __function__))
        (if (or (zp n-1) (zp n-2))
            (mv nil nil x86)
          (b* (((unless (canonical-address-p lin-addr))
                (mv t nil x86))
               ((mv flg p-addr x86)
                (ia32e-la-to-pa lin-addr r-w-x x86))
               ((when flg) (mv flg nil x86))
               ((mv flgs p-addrs x86)
                (las-to-pas-two-n-ind-hint (1- n-1)
                                           (1- n-2)
                                           (1+ lin-addr)
                                           r-w-x x86)))
            (mv flgs (if flgs nil (cons p-addr p-addrs))
                x86)))))