• 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
          • Svstmt-p
          • Svstmt-if
          • Svstmt-equiv
          • Svstmt-xcond
            • Make-svstmt-xcond
              • Svstmt-xcond->cond
              • Svstmt-xcond->body
              • Change-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-xcond

    Make-svstmt-xcond

    Basic constructor macro for svstmt-xcond structures.

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

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-svstmt-xcond

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

    Function: svstmt-xcond

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