• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Community
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
            • Svtv-chase
              • Svtv-chase-update
              • Svtv-chase-repl1
              • Svtv-p
              • Svtv-to-fsm
              • Make-svtv
              • Svtv-fix
              • Change-svtv
              • Svtv-equiv
              • Svtv->orig-overrides
              • Svtv->orig-internals
              • Svtv->expanded-overrides
              • Svtv->states
              • Svtv->nextstate
              • Svtv->expanded-ins
              • Svtv->outmasks
              • Svtv->outexprs
              • Svtv->orig-outs
              • Svtv->orig-ins
              • Svtv->inmasks
              • Svtv->nphases
              • Svtv->name
              • Svtv->labels
              • Svtv->inmap
              • Svtv->form
            • Svtv-spec
            • Defsvtv
            • Process.lisp
            • Svtv-doc
            • Svtv-chase$
            • Svtv-versus-stv
            • Svtv-debug-fsm
            • Structure.lisp
            • Svtv-debug
            • Def-pipeline-thm
            • Expand.lisp
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svtv-chase

    Svtv-chase-repl1

    Re-enter the svtv-chase read-eval-print loop, with no change to the environment or SVTV.

    Signature
    (svtv-chase-repl1 &key (moddb 'moddb) 
                      (aliases 'aliases) 
                      (svtv-chase-data 'svtv-chase-data) 
                      (state 'state)) 
     
      → 
    (mv new-svtv-chase-data new-state)
    Arguments
    moddb — Guard (moddb-ok moddb).

    Definitions and Theorems

    Function: svtv-chase-repl1-fn

    (defun svtv-chase-repl1-fn (moddb aliases svtv-chase-data state)
     (declare (xargs :stobjs (moddb aliases svtv-chase-data state)))
     (declare (xargs :guard (moddb-ok moddb)))
     (declare
      (xargs
       :guard
       (and
        (open-input-channel-p *standard-oi*
                              :object state)
        (< (svtv-chase-data->modidx svtv-chase-data)
           (moddb->nmods moddb))
        (<=
         (moddb-mod-totalwires (svtv-chase-data->modidx svtv-chase-data)
                               moddb)
         (aliass-length aliases)))))
     (let ((__function__ 'svtv-chase-repl1))
      (declare (ignorable __function__))
      (b*
       (((mv exitp svtv-chase-data state)
         (svtv-chase-rep))
        ((when exitp)
         (cw!
          "~%Exiting SVTV-CHASE.  You may execute ~x0 to re-enter or ~x1 ~
                  to change the simulation inputs.~%"
          '(svtv-chase-repl)
          '(svtv-chase-update env))
         (mv svtv-chase-data state)))
       (svtv-chase-repl1))))

    Theorem: nth-of-svtv-chase-repl1

    (defthm nth-of-svtv-chase-repl1
     (b* (((mv ?new-svtv-chase-data ?new-state)
           (svtv-chase-repl1-fn moddb aliases svtv-chase-data state)))
      (implies
       (not
          (member-equal (nfix n)
                        (list *svtv-chase-data->smartp*
                              *svtv-chase-data->stack*
                              *svtv-chase-data->sigtype*
                              *svtv-chase-data->vars*
                              *svtv-chase-data->expr*
                              *svtv-chase-data->print-with-mask-mode*
                              *svtv-chase-data->print-overrides-mode*)))
       (equal (nth n new-svtv-chase-data)
              (nth n svtv-chase-data)))))