• 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
              • Make-comm-if
              • Comm-if->then
              • Comm-if->else
              • Comm-if->cond
              • Change-comm-if
              • Comm-equiv
              • Comm-while
              • 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-if

    Change-comm-if

    Modifying constructor for comm-if structures.

    Syntax
    (change-comm-if x 
                    [:cond <cond>] 
                    [:then <then>] 
                    [:else <else>]) 
    

    This is an often useful alternative to make-comm-if.

    We construct a new comm-if structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

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

    Macro: change-comm-if

    (defmacro change-comm-if (x &rest args)
      (std::change-aggregate 'comm-if
                             x args
                             '((:cond . comm-if->cond)
                               (:then . comm-if->then)
                               (:else . comm-if->else))
                             'change-comm-if
                             'nil))