Skip to content

Commit

Permalink
Flush SMT profiling info before (check-sat)
Browse files Browse the repository at this point in the history
  • Loading branch information
thpani committed Aug 23, 2024
1 parent db471f8 commit 3c5f240
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ class SymbStateRewriterImpl(
}

override def flushStatistics(): Unit = {
profilerListener.foreach { _.dumpToFile() }
statListener.locator.writeStats()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ class TransitionExecutorImpl[ExecCtxT](consts: Set[String], vars: Set[String], c
* timed out or reported *unknown*.
*/
override def sat(timeoutSec: Int): Option[Boolean] = {
ctx.rewriter.flushStatistics()
ctx.rewriter.solverContext.satOrTimeout(timeoutSec)
}

Expand Down

0 comments on commit 3c5f240

Please sign in to comment.