• 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
        • Atj
        • Aij
        • Language
          • Syntax
          • Semantics
            • Primitive-function-macros
            • Primitive-values
            • Floating-point-placeholders
            • Pointers
              • Pointerp
              • Pointer
              • New-pointer
                • Pointer-list
              • Floating-point-value-set-parameters
              • Values
              • Primitive-operations
              • Primitive-conversions
              • Reference-values
        • Taspi
        • Riscv
        • Bitcoin
        • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Pointers

    New-pointer

    Obtain a new Java pointer.

    Signature
    (new-pointer pointers) → pointer
    Arguments
    pointers — Guard (pointer-listp pointers).
    Returns
    pointer — Type (pointerp pointer).

    See pointerp for details on how new pointers are obtained. This function is a guarded wrapper of the constrained function new-pointer-raw introduced with pointerp.

    Definitions and Theorems

    Function: new-pointer

    (defun new-pointer (pointers)
      (declare (xargs :guard (pointer-listp pointers)))
      (let ((__function__ 'new-pointer))
        (declare (ignorable __function__))
        (new-pointer-raw pointers)))

    Theorem: pointerp-of-new-pointer

    (defthm pointerp-of-new-pointer
      (b* ((pointer (new-pointer pointers)))
        (pointerp pointer))
      :rule-classes :rewrite)

    Theorem: new-pointer-is-new

    (defthm new-pointer-is-new
      (not (member-equal (new-pointer pointers)
                         pointers)))