• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
        • Svstmt
          • Svstmt-case
          • Svstmt-while
            • Make-svstmt-while
              • Svstmt-while->next
              • Svstmt-while->cond
              • Svstmt-while->body
              • Change-svstmt-while
            • Svstmt-p
            • Svstmt-if
            • Svstmt-equiv
            • Svstmt-xcond
            • Svstmt-scope
            • Svstmt-assign
            • Svstmt-compile
            • Svstmt-constraints
            • Svstmt-jump
            • Svstmtlist
            • Svstmt-kind
            • Svstmt.lisp
            • Svstmt-fix
            • Svstmt-count
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svstmt-while

    Make-svstmt-while

    Basic constructor macro for svstmt-while structures.

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

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-svstmt-while

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

    Function: svstmt-while

    (defun svstmt-while (cond body next)
      (declare (xargs :guard (and (svex-p cond)
                                  (svstmtlist-p body)
                                  (svstmtlist-p next))))
      (declare (xargs :guard t))
      (let ((__function__ 'svstmt-while))
        (declare (ignorable __function__))
        (b* ((cond (mbe :logic (svex-fix cond) :exec cond))
             (body (mbe :logic (svstmtlist-fix body)
                        :exec body))
             (next (mbe :logic (svstmtlist-fix next)
                        :exec next)))
          (cons :while (list cond body next)))))