• 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
              • Make-comm-while
                • Comm-while->body
                • Comm-while->cond
                • Change-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-while

    Make-comm-while

    Basic constructor macro for comm-while structures.

    Syntax
    (make-comm-while [:cond <cond>] 
                     [:body <body>]) 
    

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

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

    Definition

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

    Macro: make-comm-while

    (defmacro make-comm-while (&rest args)
      (std::make-aggregate 'comm-while
                           args '((:cond) (:body))
                           'make-comm-while
                           nil))

    Function: comm-while

    (defun comm-while (cond body)
      (declare (xargs :guard (and (bexpp cond) (comm-listp body))))
      (declare (xargs :guard t))
      (let ((__function__ 'comm-while))
        (declare (ignorable __function__))
        (b* ((cond (mbe :logic (bexp-fix cond) :exec cond))
             (body (mbe :logic (comm-list-fix body)
                        :exec body)))
          (cons :while (list cond body)))))