• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
        • Semantics
        • Abstract-syntax
          • Aexp
          • Bexp
          • Comm
            • Comm-case
            • Comm-if
            • Comm-equiv
            • Comm-while
            • Comm-asg
              • Make-comm-asg
                • Comm-asg->var
                • Comm-asg->exp
                • Change-comm-asg
              • Commp
              • Comm-kind
              • Comm-fix
              • Comm-count
            • Comm-list
            • Command-fixtypes
          • Interpreter
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • 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
    • Comm-asg

    Make-comm-asg

    Basic constructor macro for comm-asg structures.

    Syntax
    (make-comm-asg [:var <var>] 
                   [:exp <exp>]) 
    

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

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

    Definition

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

    Macro: make-comm-asg

    (defmacro make-comm-asg (&rest args)
      (std::make-aggregate 'comm-asg
                           args '((:var) (:exp))
                           'make-comm-asg
                           nil))

    Function: comm-asg

    (defun comm-asg (var exp)
      (declare (xargs :guard (and (stringp var) (aexpp exp))))
      (declare (xargs :guard t))
      (let ((__function__ 'comm-asg))
        (declare (ignorable __function__))
        (b* ((var (mbe :logic (str-fix var) :exec var))
             (exp (mbe :logic (aexp-fix exp) :exec exp)))
          (cons :asg (list var exp)))))