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/parser/smt2/smt2.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/parser/smt2/smt2.cpp')
-rw-r--r-- | src/parser/smt2/smt2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/smt2/smt2.cpp b/src/parser/smt2/smt2.cpp index d55b9f54b..332c66be1 100644 --- a/src/parser/smt2/smt2.cpp +++ b/src/parser/smt2/smt2.cpp @@ -317,7 +317,7 @@ bool Smt2::isOperatorEnabled(const std::string& name) const { bool Smt2::isTheoryEnabled(Theory theory) const { switch(theory) { case THEORY_ARRAYS: - return d_logic.isTheoryEnabled(theory::THEORY_ARRAY); + return d_logic.isTheoryEnabled(theory::THEORY_ARRAYS); case THEORY_BITVECTORS: return d_logic.isTheoryEnabled(theory::THEORY_BV); case THEORY_CORE: @@ -477,7 +477,7 @@ void Smt2::setLogic(std::string name) { } } - if(d_logic.isTheoryEnabled(theory::THEORY_ARRAY)) { + if(d_logic.isTheoryEnabled(theory::THEORY_ARRAYS)) { addTheory(THEORY_ARRAYS); } |