• 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
      • Builtins
      • Execloader
      • Aleo
        • Aleobft
          • Aleobft-static
          • Aleobft-stake2
          • Aleobft-dynamic
          • Aleobft-stake
          • Aleobft-proposals
            • Correctness
            • Definition
              • Initialization
              • Transitions
              • States
                • Committees
                • System-states
                • Certificates
                • Transactions
                • Proposals
                • Messages
                • Validator-states
                • Blocks
                • Addresses
                  • Address
                    • Addressp
                    • Address-fix
                    • Address-equiv
                    • Make-address
                      • Change-address
                      • Address->unwrap
                    • Address-option
                    • Address-set
                • Events
                • Reachability
            • Library-extensions
          • Leo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Address

    Make-address

    Basic constructor macro for address structures.

    Syntax
    (make-address [:unwrap <unwrap>]) 
    

    This is the usual way to construct address structures. It simply conses together a structure with the specified fields.

    This macro generates a new address structure from scratch. See also change-address, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-address

    (defmacro make-address (&rest args)
      (std::make-aggregate 'address
                           args '((:unwrap))
                           'make-address
                           nil))

    Function: address

    (defun address (unwrap)
      (declare (xargs :guard (any-p unwrap)))
      (declare (xargs :guard t))
      (let ((__function__ 'address))
        (declare (ignorable __function__))
        (b* ((unwrap (mbe :logic (identity unwrap)
                          :exec unwrap)))
          (list (cons 'unwrap unwrap)))))