• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • 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
            • Addr-range
            • Read-from-physical-memory
            • Write-to-physical-memory
            • Rm-low-32
            • Wm-low-32
            • Rm-low-64
            • Create-physical-address-list
              • Wm-low-64
              • Physical-address-listp
              • Physical-address-p
            • Decoding-and-spec-utils
            • Instructions
            • Register-readers-and-writers
            • X86-modes
            • Segmentation
            • Other-non-deterministic-computations
            • Environment
            • Paging
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Physical-memory

    Create-physical-address-list

    Signature
    (create-physical-address-list count addr) → *

    Given a physical address addr, create-physical-address-list creates a list of physical addresses where the first address is addr and the last address is the last physical address in the range addr to addr + count.

    Definitions and Theorems

    Function: create-physical-address-list

    (defun create-physical-address-list (count addr)
      (declare (xargs :guard (and (natp count)
                                  (physical-address-p addr)
                                  (physical-address-p (+ addr count)))))
      (let ((__function__ 'create-physical-address-list))
        (declare (ignorable __function__))
        (if (or (zp count)
                (not (physical-address-p addr)))
            nil
          (cons addr
                (create-physical-address-list (1- count)
                                              (1+ addr))))))

    Theorem: physical-address-listp-create-physical-address-list

    (defthm physical-address-listp-create-physical-address-list
      (physical-address-listp (create-physical-address-list count addr))
      :rule-classes (:rewrite :type-prescription))