• 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-compile.lisp
            • Svstate
              • Svstate-p
              • Svstate-fix
              • Svstate-equiv
              • Make-svstate
                • Svstate->nonblkst
                • Svstate->blkst
                • Change-svstate
            • 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
    • Svstate

    Make-svstate

    Basic constructor macro for svstate structures.

    Syntax
    (make-svstate [:blkst <blkst>] 
                  [:nonblkst <nonblkst>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-svstate

    (defmacro make-svstate (&rest args)
      (std::make-aggregate 'svstate
                           args '((:blkst quote (nil)) (:nonblkst))
                           'make-svstate
                           nil))

    Function: svstate

    (defun svstate (blkst nonblkst)
      (declare (xargs :guard (and (svstack-p blkst)
                                  (svex-alist-p nonblkst))))
      (declare (xargs :guard (consp blkst)))
      (let ((__function__ 'svstate))
        (declare (ignorable __function__))
        (b* ((blkst (mbe :logic (svstack-fix blkst)
                         :exec blkst))
             (nonblkst (mbe :logic (svex-alist-fix nonblkst)
                            :exec nonblkst)))
          (let ((blkst (mbe :logic (svstack-nonempty-fix blkst)
                            :exec blkst)))
            (std::prod-cons blkst nonblkst)))))