• 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
        • 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
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)))))