• 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
            • Aexp-case
            • Aexp-fix
            • Aexpp
            • Aexp-count
            • Aexp-equiv
            • Aexp-mul
            • Aexp-add
              • Make-aexp-add
                • Aexp-add->right
                • Aexp-add->left
                • Change-aexp-add
              • Aexp-var
              • Aexp-const
              • Aexp-kind
            • Bexp
            • Comm
            • 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
    • Aexp-add

    Make-aexp-add

    Basic constructor macro for aexp-add structures.

    Syntax
    (make-aexp-add [:left <left>] 
                   [:right <right>]) 
    

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

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

    Definition

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

    Macro: make-aexp-add

    (defmacro make-aexp-add (&rest args)
      (std::make-aggregate 'aexp-add
                           args '((:left) (:right))
                           'make-aexp-add
                           nil))

    Function: aexp-add

    (defun aexp-add (left right)
      (declare (xargs :guard (and (aexpp left) (aexpp right))))
      (declare (xargs :guard t))
      (let ((__function__ 'aexp-add))
        (declare (ignorable __function__))
        (b* ((left (mbe :logic (aexp-fix left) :exec left))
             (right (mbe :logic (aexp-fix right)
                         :exec right)))
          (cons :add (list left right)))))