summaryrefslogtreecommitdiff
path: root/src/theory/strings/sequences_stats.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-04-10 10:45:52 -0500
committerGitHub <noreply@github.com>2020-04-10 10:45:52 -0500
commit854d36b3ebb85579eefd654a18ed882b99649fb5 (patch)
treefc63a961464d22499ef39230472766aa01feaa58 /src/theory/strings/sequences_stats.cpp
parent92ed7681941b3b6d9c857724454860ac72d778d9 (diff)
Add a few stats to strings (#4252)
To give an idea of the high-level behavior.
Diffstat (limited to 'src/theory/strings/sequences_stats.cpp')
-rw-r--r--src/theory/strings/sequences_stats.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/theory/strings/sequences_stats.cpp b/src/theory/strings/sequences_stats.cpp
index afcfb1a60..c830a68bd 100644
--- a/src/theory/strings/sequences_stats.cpp
+++ b/src/theory/strings/sequences_stats.cpp
@@ -22,7 +22,9 @@ namespace theory {
namespace strings {
SequencesStatistics::SequencesStatistics()
- : d_inferences("theory::strings::inferences"),
+ : d_checkRuns("theory::strings::checkRuns", 0),
+ d_strategyRuns("theory::strings::strategyRuns", 0),
+ d_inferences("theory::strings::inferences"),
d_cdSimplifications("theory::strings::cdSimplifications"),
d_reductions("theory::strings::reductions"),
d_regexpUnfoldingsPos("theory::strings::regexpUnfoldingsPos"),
@@ -38,6 +40,8 @@ SequencesStatistics::SequencesStatistics()
0),
d_lemmasInfer("theory::strings::lemmasInfer", 0)
{
+ smtStatisticsRegistry()->registerStat(&d_checkRuns);
+ smtStatisticsRegistry()->registerStat(&d_strategyRuns);
smtStatisticsRegistry()->registerStat(&d_inferences);
smtStatisticsRegistry()->registerStat(&d_cdSimplifications);
smtStatisticsRegistry()->registerStat(&d_reductions);
@@ -56,6 +60,8 @@ SequencesStatistics::SequencesStatistics()
SequencesStatistics::~SequencesStatistics()
{
+ smtStatisticsRegistry()->unregisterStat(&d_checkRuns);
+ smtStatisticsRegistry()->unregisterStat(&d_strategyRuns);
smtStatisticsRegistry()->unregisterStat(&d_inferences);
smtStatisticsRegistry()->unregisterStat(&d_cdSimplifications);
smtStatisticsRegistry()->unregisterStat(&d_reductions);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback