• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Concrete-syntax
            • Ascii-identifiers
            • Unambiguity
            • Preprocessing
            • Abstract-syntax
            • Implementation-environments
            • Standard
            • Gcc-builtins
            • Code-ensembles
              • Code-ensemble
                • Code-ensemblep
                • Code-ensemble-fix
                • Code-ensemble-equiv
                • Code-ensemble->transunits
                • Make-code-ensemble
                  • Code-ensemble->ienv
                  • Change-code-ensemble
                • Irr-code-ensemble
              • Purity
            • Atc
            • Language
            • Transformation-tools
            • Representation
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Code-ensemble

    Make-code-ensemble

    Basic constructor macro for code-ensemble structures.

    Syntax
    (make-code-ensemble [:transunits <transunits>] 
                        [:ienv <ienv>]) 
    

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

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

    Definition

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

    Macro: make-code-ensemble

    (defmacro make-code-ensemble (&rest args)
      (std::make-aggregate 'code-ensemble
                           args '((:transunits) (:ienv))
                           'make-code-ensemble
                           nil))

    Function: code-ensemble

    (defun code-ensemble (transunits ienv)
      (declare (xargs :guard (and (transunit-ensemblep transunits)
                                  (ienvp ienv))))
      (declare (xargs :guard t))
      (b* ((transunits (mbe :logic (transunit-ensemble-fix transunits)
                            :exec transunits))
           (ienv (mbe :logic (c::ienv-fix ienv)
                      :exec ienv)))
        (list (cons 'transunits transunits)
              (cons 'ienv ienv))))