• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
        • Primitive-functions
        • Translated-terms
          • Tterm-constant-list->value-list
          • Tterm-free-vars
          • Tterm-option
          • Tterm-constant-list
          • Tterm-case-constant-listp
          • Lift-term
          • Tterms
            • Tterm
              • Tterm-case
              • Tterm-equiv
              • Tterm-call
                • Tterm-call->function
                • Tterm-call->arguments
                • Make-tterm-call
                  • Change-tterm-call
                • Ttermp
                • Tterm-constant
                • Tterm-variable
                • Tterm-kind
                • Tterm-fix
                • Tterm-count
              • Tfunction
              • Tterm-list
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
        • 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
    • Tterm-call

    Make-tterm-call

    Basic constructor macro for tterm-call structures.

    Syntax
    (make-tterm-call [:function <function>] 
                     [:arguments <arguments>]) 
    

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

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

    Definition

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

    Macro: make-tterm-call

    (defmacro make-tterm-call (&rest args)
      (std::make-aggregate 'tterm-call
                           args '((:function) (:arguments))
                           'make-tterm-call
                           nil))

    Function: tterm-call

    (defun tterm-call (function arguments)
      (declare (xargs :guard (and (tfunctionp function)
                                  (tterm-listp arguments))))
      (declare (xargs :guard t))
      (let ((__function__ 'tterm-call))
        (declare (ignorable __function__))
        (b* ((function (mbe :logic (tfunction-fix function)
                            :exec function))
             (arguments (mbe :logic (tterm-list-fix arguments)
                             :exec arguments)))
          (cons :call (list function arguments)))))