• 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
        • Sv-tutorial
        • Expressions
          • Rewriting
            • Svex-rewrite
            • Svexlist-rewrite-nrev
            • Svex-args-apply-masks
            • 4veclist-quote
            • Svex-simpconfig-p
            • Svex-rewrite-memo-correct
            • Svex-alist-maybe-rewrite-fixpoint
            • Svexlist-compute-masks
            • Svexlist-rewrite-under-masks
            • Svex-alist-rewrite-fixpoint
            • Svexlist-maybe-rewrite-fixpoint
            • Svexlist-rewrite-fixpoint
            • Svexlist-mask-acons
            • Svexlist-mask-alist/toposort
            • Svex-call-simp
            • Svex-alist-compose
            • Svexlist-rewrite-top
            • Svex-alist-subst
            • Svex-alist-compose-rw
            • Svex-argmasks-lookup
            • Svex-alist-subst-rw
            • Svexlist-mask-acons-rev
            • Svex-mask-lookup
            • Svex-mask-acons
            • Svexlist-mask-alist
            • Svex-alist-rewrite-top
            • Constraintlist-compose
            • Svex-substconfig
            • Svex-simpconfig-fix
            • Svex-subst
            • Svex-rewrite-memo-vars-ok
            • Svex-norm-call
            • Svex-3value-mask
            • Svexlist-count-calls-aux
            • Svex-mask-alist-keys
            • Rewriter-tracing
              • Svex-rewrite-trace-profile
              • Svex-rewrite-trace-rule
            • Svex-rewrite-top
            • Svexlist-maskfree-rewrite-nrev
            • Svexlist-multirefs-top
            • Svexlist-count-calls
            • Svex-unify
            • Svexlist-toposort-p
            • Svexlist-maskfree-rewrite-top
            • Svex-alist-compose-nrev
            • Rewriting-concatenations
            • Svex-svex-memo
            • Svex-mask-alist
            • Svex-alist-subst-nrev
            • Svex-simpconfig-fix!
            • Svex-rewrite-rules
          • Svex
          • Bit-blasting
          • Functions
          • 4vmask
          • Why-infinite-width
          • Svex-vars
          • Evaluation
          • Values
        • Symbolic-test-vector
        • Vl-to-svex
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Rewriting

Rewriter-tracing

Optional support for tracing the application of rewrite rules.

(svex-rewrite-trace rule mask args localp rhs subst) is an attachable function (see defattach) for tracing or profiling svex rewrite rules.

This is an advanced feature for SV hackers and is probably only useful if you are trying to extend or debug the svex rewriters. You may need to separately load the following book to use these attachments. (It is not included by default to avoid trust tags.)

(include-book "centaur/sv/svex/rewrite-trace" :dir :system)

Definitions and Theorems

Function: svex-rewrite-trace-default

(defun svex-rewrite-trace-default (rule mask args localp rhs subst)
  (declare (xargs :guard t)
           (ignorable rule mask args localp rhs subst))
  nil)

Subtopics

Svex-rewrite-trace-profile
Profile the number of applications of rewrite rules.
Svex-rewrite-trace-rule
Trace individual rewrite rules, printing to cw.