summaryrefslogtreecommitdiff
path: root/src/preprocessing/passes/learned_rewrite.cpp
diff options
context:
space:
mode:
authorGereon Kremer <nafur42@gmail.com>2021-09-11 21:13:34 +0200
committerGitHub <noreply@github.com>2021-09-11 19:13:34 +0000
commit2384a8d85517e00bc94e7fcf759a75dc6ea9b009 (patch)
treee4d8084d774b7ad334c0c2b91a7d985d876a990e /src/preprocessing/passes/learned_rewrite.cpp
parentb85e8a3d3f66ca844dc9b4790cd549a8dd0739a7 (diff)
Use StatisticsRegistry from Env (#7166)
This commit better integrates the StatisticsRegistry with the environment. It makes the registry an `EnvObj` itself and adds a getter to `EnvObj` to get the registry. It also refactors parts of cvc5 to use this new mechanism to obtain the registry instead of using the (global, static) `smtStatisticsRegistry()` function.
Diffstat (limited to 'src/preprocessing/passes/learned_rewrite.cpp')
-rw-r--r--src/preprocessing/passes/learned_rewrite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preprocessing/passes/learned_rewrite.cpp b/src/preprocessing/passes/learned_rewrite.cpp
index c2693e927..81f5718cf 100644
--- a/src/preprocessing/passes/learned_rewrite.cpp
+++ b/src/preprocessing/passes/learned_rewrite.cpp
@@ -52,7 +52,7 @@ std::ostream& operator<<(std::ostream& out, LearnedRewriteId i)
LearnedRewrite::LearnedRewrite(PreprocessingPassContext* preprocContext)
: PreprocessingPass(preprocContext, "learned-rewrite"),
- d_lrewCount(smtStatisticsRegistry().registerHistogram<LearnedRewriteId>(
+ d_lrewCount(statisticsRegistry().registerHistogram<LearnedRewriteId>(
"LearnedRewrite::lrewCount"))
{
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback