• 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
              • Compilation
              • Static-semantics
                • Type-checking
                • Static-environments
                • Curve-parameterization
                • Function-recursion
                • Struct-recursion
                • Input-checking
                • Program-checking
                  • Api
                  • Lookup-main-function
                  • Api+senv
                    • Api+senv-fix
                    • Api+senv-equiv
                    • Make-api+senv
                      • Change-api+senv
                      • Api+senv->senv
                      • Api+senv->api
                      • Api+senv-p
                    • Check-program
                    • Api+senv-result
                    • Api-result
                  • Type-maps-for-struct-components
                  • Program-and-input-checking
                  • Output-checking
                • 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
    • Api+senv

    Make-api+senv

    Basic constructor macro for api+senv structures.

    Syntax
    (make-api+senv [:api <api>] 
                   [:senv <senv>]) 
    

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

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

    Definition

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

    Macro: make-api+senv

    (defmacro make-api+senv (&rest args)
      (std::make-aggregate 'api+senv
                           args '((:api) (:senv))
                           'make-api+senv
                           nil))

    Function: api+senv

    (defun api+senv (api senv)
      (declare (xargs :guard (and (apip api) (senvp senv))))
      (declare (xargs :guard t))
      (let ((__function__ 'api+senv))
        (declare (ignorable __function__))
        (b* ((api (mbe :logic (api-fix api) :exec api))
             (senv (mbe :logic (senv-fix senv)
                        :exec senv)))
          (cons :api+senv (list (cons 'api api)
                                (cons 'senv senv))))))