• 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
              • Dynamic-semantics
                • Execution
                • Values
                • Dynamic-environments
                • Arithmetic-operations
                • Curve-parameterization
                • Shift-operations
                • Errors
                • Value-expressions
                • Locations
                • Input-execution
                  • Eval-input-item-list
                  • Eval-input-item
                  • Funarg
                    • Funarg-fix
                    • Funarg-equiv
                    • Make-funarg
                      • Change-funarg
                      • Funarg->value
                      • Funarg->sort
                      • Funarg->name
                      • Funargp
                    • Funarg-option
                    • Eval-input-section-list
                    • Eval-input-section
                    • Eval-input-file
                    • Funarg-result
                    • Funarg-list-result
                    • Funarg-list
                  • Edwards-bls12-generator
                  • Equality-operations
                  • Logical-operations
                  • Program-execution
                  • Ordering-operations
                  • Bitwise-operations
                  • Literal-evaluation
                  • Type-maps-for-struct-components
                  • Output-execution
                  • Tuple-operations
                  • Struct-operations
                • 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
    • Funarg

    Make-funarg

    Basic constructor macro for funarg structures.

    Syntax
    (make-funarg [:name <name>] 
                 [:sort <sort>] 
                 [:value <value>]) 
    

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

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

    Definition

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

    Macro: make-funarg

    (defmacro make-funarg (&rest args)
      (std::make-aggregate 'funarg
                           args '((:name) (:sort) (:value))
                           'make-funarg
                           nil))

    Function: funarg

    (defun funarg (name sort value)
      (declare (xargs :guard (and (identifierp name)
                                  (var/const-sortp sort)
                                  (valuep value))))
      (declare (xargs :guard t))
      (let ((__function__ 'funarg))
        (declare (ignorable __function__))
        (b* ((name (mbe :logic (identifier-fix name)
                        :exec name))
             (sort (mbe :logic (var/const-sort-fix sort)
                        :exec sort))
             (value (mbe :logic (value-fix value)
                         :exec value)))
          (cons :funarg (list (cons 'name name)
                              (cons 'sort sort)
                              (cons 'value value))))))