• 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

    Size

    Returns the capacity of a memory structure.

    (MEM::size mem)

    size is guarded with (memory-p mem).

    size returns the capacity of a memory, i.e., the number of elements that the memory can hold. Addresses for mem are naturals in the range 0 through (size mem) - 1.

    A memory's size is specified when it is created with new, and is fixed throughout its lifetime. The implementation of size is private.