• 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

    Change-svstate

    Modifying constructor for svstate structures.

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

    This is an often useful alternative to make-svstate.

    We construct a new svstate structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by defprod.

    Macro: change-svstate

    (defmacro change-svstate (x &rest args)
      (std::change-aggregate 'svstate
                             x args
                             '((:blkst . svstate->blkst)
                               (:nonblkst . svstate->nonblkst))
                             'change-svstate
                             'remake-svstate))