• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Bv
        • Imp-language
          • Semantics
            • Step
            • Write-var
            • Outcome
            • Beval
            • Read-var
            • Config
              • Config-fix
              • Config-equiv
              • Make-config
                • Config->comms
                • Change-config
                • Configp
                • Config->env
              • Terminatingp
              • Aeval
              • Step*
              • Stepn
              • Env
            • Abstract-syntax
            • Interpreter
          • Event-macros
          • Java
          • 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
    • Config

    Make-config

    Basic constructor macro for config structures.

    Syntax
    (make-config [:comms <comms>] 
                 [:env <env>]) 
    

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

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

    Definition

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

    Macro: make-config

    (defmacro make-config (&rest args)
      (std::make-aggregate 'config
                           args '((:comms) (:env))
                           'make-config
                           nil))

    Function: config

    (defun config (comms env)
      (declare (xargs :guard (and (comm-listp comms) (envp env))))
      (declare (xargs :guard t))
      (let ((__function__ 'config))
        (declare (ignorable __function__))
        (b* ((comms (mbe :logic (comm-list-fix comms)
                         :exec comms))
             (env (mbe :logic (env-fix env) :exec env)))
          (cons :config (list comms env)))))