Use StatisticsRegistry from Env (#7166)
authorGereon Kremer <nafur42@gmail.com>
Sat, 11 Sep 2021 19:13:34 +0000 (21:13 +0200)
committerGitHub <noreply@github.com>
Sat, 11 Sep 2021 19:13:34 +0000 (19:13 +0000)
commit2384a8d85517e00bc94e7fcf759a75dc6ea9b009
treee4d8084d774b7ad334c0c2b91a7d985d876a990e
parentb85e8a3d3f66ca844dc9b4790cd549a8dd0739a7
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.
31 files changed:
src/preprocessing/passes/bool_to_bv.cpp
src/preprocessing/passes/bool_to_bv.h
src/preprocessing/passes/bv_to_bool.cpp
src/preprocessing/passes/bv_to_bool.h
src/preprocessing/passes/ite_simp.cpp
src/preprocessing/passes/ite_simp.h
src/preprocessing/passes/learned_rewrite.cpp
src/preprocessing/passes/miplib_trick.cpp
src/preprocessing/passes/miplib_trick.h
src/preprocessing/passes/non_clausal_simp.cpp
src/preprocessing/passes/non_clausal_simp.h
src/preprocessing/passes/unconstrained_simplifier.cpp
src/preprocessing/preprocessing_pass.cpp
src/preprocessing/util/ite_utilities.cpp
src/preprocessing/util/ite_utilities.h
src/smt/env.cpp
src/smt/env_obj.cpp
src/smt/env_obj.h
src/theory/arith/theory_arith.cpp
src/theory/arith/theory_arith_private.cpp
src/theory/arith/theory_arith_private.h
src/theory/arrays/theory_arrays.cpp
src/theory/bv/theory_bv.cpp
src/theory/bv/theory_bv.h
src/theory/theory.cpp
src/theory/theory_engine.cpp
src/theory/theory_inference_manager.cpp
src/util/statistics_registry.cpp
src/util/statistics_registry.h
test/unit/test_env.h [new file with mode: 0644]
test/unit/util/stats_black.cpp