diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2018-03-06 16:54:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-06 16:54:06 -0800 |
commit | c6b2e085d4eb2c232a528a96e13fc7b65fd98fea (patch) | |
tree | 632708f158acc6a3b5b3201212fa2ba1a0606c30 /src/theory/theory.cpp | |
parent | 612bb0013f180a7d414f0a4b1e770aaa7ed09152 (diff) |
Make statistics output consistent. (#1647)
* Fixes --hide-zero-stats (and really skips the 0 values)
* Removes the additional newline after each statistic
* Introduces theory::getStatsPrefix(TheoryId) to generate consistent
prefixes for statistics based on the theory id
(e.g., THEORY_BV -> "theory::bv").
Diffstat (limited to 'src/theory/theory.cpp')
-rw-r--r-- | src/theory/theory.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/theory/theory.cpp b/src/theory/theory.cpp index 069767968..2ef4f42bf 100644 --- a/src/theory/theory.cpp +++ b/src/theory/theory.cpp @@ -69,8 +69,8 @@ Theory::Theory(TheoryId id, d_careGraph(NULL), d_quantEngine(NULL), d_extTheory(NULL), - d_checkTime(getFullInstanceName() + "::checkTime"), - d_computeCareGraphTime(getFullInstanceName() + "::computeCareGraphTime"), + d_checkTime(getStatsPrefix(id) + "::checkTime"), + d_computeCareGraphTime(getStatsPrefix(id) + "::computeCareGraphTime"), d_sharedTerms(satContext), d_out(&out), d_valuation(valuation), @@ -337,12 +337,6 @@ EntailmentCheckParameters::EntailmentCheckParameters(TheoryId tid) : d_tid(tid) { } -std::string Theory::getFullInstanceName() const { - std::stringstream ss; - ss << "theory<" << d_id << ">" << d_instanceName; - return ss.str(); -} - EntailmentCheckParameters::~EntailmentCheckParameters(){} TheoryId EntailmentCheckParameters::getTheoryId() const { |