diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-01-31 10:14:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 10:14:31 -0600 |
commit | 8bf406cd70b5883a7894485006834ff69682dbd6 (patch) | |
tree | 3612ea25a4547a231a253d28a002092401ffe236 /src/theory/quantifiers/sygus/sygus_stats.cpp | |
parent | f069ec7aee5a3433b54598defdc4af53e3573670 (diff) |
Refactor sygus stats (#3684)
Diffstat (limited to 'src/theory/quantifiers/sygus/sygus_stats.cpp')
-rw-r--r-- | src/theory/quantifiers/sygus/sygus_stats.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/theory/quantifiers/sygus/sygus_stats.cpp b/src/theory/quantifiers/sygus/sygus_stats.cpp new file mode 100644 index 000000000..bee2e1d56 --- /dev/null +++ b/src/theory/quantifiers/sygus/sygus_stats.cpp @@ -0,0 +1,53 @@ +/********************* */ +/*! \file sygus_stats.cpp + ** \verbatim + ** Top contributors (to current version): + ** Andrew Reynolds, Tim King, Morgan Deters + ** This file is part of the CVC4 project. + ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS + ** in the top-level source directory) and their institutional affiliations. + ** All rights reserved. See the file COPYING in the top-level source + ** directory for licensing information.\endverbatim + ** + ** \brief A shared statistics class for sygus. + ** + **/ + +#include "theory/quantifiers/sygus/sygus_stats.h" + +#include "smt/smt_statistics_registry.h" + +namespace CVC4 { +namespace theory { +namespace quantifiers { + +SygusStatistics::SygusStatistics() + : d_cegqi_lemmas_ce("SynthEngine::cegqi_lemmas_ce", 0), + d_cegqi_lemmas_refine("SynthEngine::cegqi_lemmas_refine", 0), + d_cegqi_si_lemmas("SynthEngine::cegqi_lemmas_si", 0), + d_solutions("SynthConjecture::solutions", 0), + d_filtered_solutions("SynthConjecture::filtered_solutions", 0), + d_candidate_rewrites_print("SynthConjecture::candidate_rewrites_print", 0) + +{ + smtStatisticsRegistry()->registerStat(&d_cegqi_lemmas_ce); + smtStatisticsRegistry()->registerStat(&d_cegqi_lemmas_refine); + smtStatisticsRegistry()->registerStat(&d_cegqi_si_lemmas); + smtStatisticsRegistry()->registerStat(&d_solutions); + smtStatisticsRegistry()->registerStat(&d_filtered_solutions); + smtStatisticsRegistry()->registerStat(&d_candidate_rewrites_print); +} + +SygusStatistics::~SygusStatistics() +{ + smtStatisticsRegistry()->unregisterStat(&d_cegqi_lemmas_ce); + smtStatisticsRegistry()->unregisterStat(&d_cegqi_lemmas_refine); + smtStatisticsRegistry()->unregisterStat(&d_cegqi_si_lemmas); + smtStatisticsRegistry()->unregisterStat(&d_solutions); + smtStatisticsRegistry()->unregisterStat(&d_filtered_solutions); + smtStatisticsRegistry()->unregisterStat(&d_candidate_rewrites_print); +} + +} // namespace quantifiers +} // namespace theory +} /* namespace CVC4 */ |