diff options
author | Gereon Kremer <nafur42@gmail.com> | 2021-09-11 21:13:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 19:13:34 +0000 |
commit | 2384a8d85517e00bc94e7fcf759a75dc6ea9b009 (patch) | |
tree | e4d8084d774b7ad334c0c2b91a7d985d876a990e /src/preprocessing/passes/learned_rewrite.cpp | |
parent | b85e8a3d3f66ca844dc9b4790cd549a8dd0739a7 (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.cpp | 2 |
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")) { } |