• 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
      • Riscv
      • Taspi
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                  • Identifier
                  • Identifier-option
                  • Programid
                    • Programid-fix
                    • Programid-equiv
                    • Make-programid
                      • Programid->network
                      • Change-programid
                      • Programidp
                      • Programid->name
                    • Locator
                    • Identifier-grammar-chars-p
                    • Identifier-option-result
                    • Programid-result
                    • Locator-result
                    • Identifier-result
                    • Identifier-list-result
                    • Identifier-string-p
                    • Identifier-set
                    • Identifier-list
                  • Types
                  • Struct-init
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Programid

    Make-programid

    Basic constructor macro for programid structures.

    Syntax
    (make-programid [:name <name>] 
                    [:network <network>]) 
    

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

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

    Definition

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

    Macro: make-programid

    (defmacro make-programid (&rest args)
      (std::make-aggregate 'programid
                           args '((:name) (:network))
                           'make-programid
                           nil))

    Function: programid

    (defun programid (name network)
      (declare (xargs :guard (and (identifierp name)
                                  (identifierp network))))
      (declare (xargs :guard t))
      (let ((__function__ 'programid))
        (declare (ignorable __function__))
        (b* ((name (mbe :logic (identifier-fix name)
                        :exec name))
             (network (mbe :logic (identifier-fix network)
                           :exec network)))
          (cons :programid (list (cons 'name name)
                                 (cons 'network network))))))