• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                  • Expressionp
                  • Expression-case
                  • Expression-equiv
                  • Expression-static-call
                    • Expression-static-call->type
                    • Make-expression-static-call
                      • Expression-static-call->args
                      • Expression-static-call->fun
                      • Change-expression-static-call
                    • Expression-binary
                    • Expression-cond
                    • Expression-assoc-const
                    • Expression-struct-component
                    • Expression-struct
                    • Expression-kind
                    • Expression-unary
                    • Expression-tuple-component
                    • Expression-internal-call
                    • Expression-external-call
                    • Expression-var/const
                    • Expression-tuple
                    • Expression-literal
                    • Expression-unit
                    • Expression-fix
                    • Expression-count
                  • Syntax-abstraction
                  • Statement
                  • Files
                  • Input-files
                  • Identifiers
                  • 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
    • Expression-static-call

    Make-expression-static-call

    Basic constructor macro for expression-static-call structures.

    Syntax
    (make-expression-static-call [:type <type>] 
                                 [:fun <fun>] 
                                 [:args <args>]) 
    

    This is the usual way to construct expression-static-call structures. It simply conses together a structure with the specified fields.

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

    Definition

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

    Macro: make-expression-static-call

    (defmacro make-expression-static-call (&rest args)
      (std::make-aggregate 'expression-static-call
                           args '((:type) (:fun) (:args))
                           'make-expression-static-call
                           nil))

    Function: expression-static-call

    (defun expression-static-call (type fun args)
     (declare (xargs :guard (and (typep type)
                                 (identifierp fun)
                                 (expression-listp args))))
     (declare (xargs :guard (type-namedp type)))
     (let ((__function__ 'expression-static-call))
      (declare (ignorable __function__))
      (b* ((type (mbe :logic (type-fix type) :exec type))
           (fun (mbe :logic (identifier-fix fun)
                     :exec fun))
           (args (mbe :logic (expression-list-fix args)
                      :exec args)))
       (let
        ((type
          (mbe
           :logic
           (if (type-namedp type)
               type
             (make-type-internal-named :get (identifier-fix :irrelevant)
                                       :recordp nil))
           :exec type)))
        (cons :static-call (list type fun args))))))