• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
      • Defthm-domain
      • Event-macros
      • Def-universal-equiv
      • Def-saved-obligs
      • With-supporters-after
      • Definec
      • Sig
      • Outer-local
      • Data-structures
        • Deflist
        • Defalist
        • Memory
          • Private
          • Size
          • Store
          • New
            • Address-p
            • Memory-p
            • Load
          • Defstructure
          • Array1
          • Utilities
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Memory

    New

    Create a new memory object with a given capacity.

    (MEM::new size)

    new is guarded so that size must be a positive integer.

    new creates a new memory structure with the given capacity. For example, (new 30) creates a memory that can hold 30 elements. The capacity of a memory is fixed througout its lifetime. The implementation of new is private.