• 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
          • Svstmt-scope
          • Svstmt-assign
          • Svstmt-compile
          • Svstmt-constraints
          • Svstmt-jump
          • Svstmtlist
          • Svstmt-kind
          • Svstmt.lisp
            • Svstmt-write
              • Svstmt-write-fix
              • Svstmt-write-equiv
              • Make-svstmt-write
                • Svstmt-write->lhs
                • Change-svstmt-write
                • Svstmt-write->rhs
                • Svstmt-write-p
              • Svstmt-writelist-vars
              • Svstmt-write-vars
              • Svstmt-writelist
              • Svjump-p
            • 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-write

    Make-svstmt-write

    Basic constructor macro for svstmt-write structures.

    Syntax
    (make-svstmt-write [:lhs <lhs>] 
                       [:rhs <rhs>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-svstmt-write

    (defmacro make-svstmt-write (&rest args)
      (std::make-aggregate 'svstmt-write
                           args '((:lhs) (:rhs))
                           'make-svstmt-write
                           nil))

    Function: svstmt-write

    (defun svstmt-write (lhs rhs)
      (declare (xargs :guard (and (svex-select-p lhs) (svex-p rhs))))
      (declare (xargs :guard t))
      (let ((__function__ 'svstmt-write))
        (declare (ignorable __function__))
        (b* ((lhs (mbe :logic (svex-select-fix lhs)
                       :exec lhs))
             (rhs (mbe :logic (svex-fix rhs) :exec rhs)))
          (std::prod-cons lhs rhs))))