• 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-assign->writes
            • Svstmt-assign->blockingp
            • Make-svstmt-assign
              • Change-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-assign

    Make-svstmt-assign

    Basic constructor macro for svstmt-assign structures.

    Syntax
    (make-svstmt-assign [:writes <writes>] 
                        [:blockingp <blockingp>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-svstmt-assign

    (defmacro make-svstmt-assign (&rest args)
      (std::make-aggregate 'svstmt-assign
                           args '((:writes) (:blockingp . t))
                           'make-svstmt-assign
                           nil))

    Function: svstmt-assign

    (defun svstmt-assign (writes blockingp)
      (declare (xargs :guard (and (svstmt-writelist-p writes)
                                  (booleanp blockingp))))
      (declare (xargs :guard t))
      (let ((__function__ 'svstmt-assign))
        (declare (ignorable __function__))
        (b* ((writes (mbe :logic (svstmt-writelist-fix writes)
                          :exec writes))
             (blockingp (mbe :logic (bool-fix blockingp)
                             :exec blockingp)))
          (cons :assign (std::prod-cons writes blockingp)))))