• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
        • Bigmem-asymmetric
        • Bigmem
          • Bigmem-concrete-stobj
          • Get-mem-aux
          • Get-mem
          • Xor-mem-region
          • Init-mem-region
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Bigmem

    Init-mem-region

    Signature
    (init-mem-region n val mem) → mem
    Arguments
    mem — Guard (memp mem).

    Definitions and Theorems

    Function: init-mem-region

    (defun init-mem-region (n val mem)
      (declare (xargs :stobjs (mem)))
      (declare (type (unsigned-byte 50) n)
               (type (unsigned-byte 8) val))
      (declare (xargs :guard (memp mem)))
      (let ((__function__ 'init-mem-region))
        (declare (ignorable __function__))
        (if (zp n)
            mem
          (b* ((val (the (unsigned-byte 8)
                         (if (< val 254) (1+ val) 0)))
               (mem (write-mem n val mem)))
            (init-mem-region (the (unsigned-byte 50) (1- n))
                             val mem)))))