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/expr/kind_template.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/expr/kind_template.cpp')
-rw-r--r-- | src/expr/kind_template.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/expr/kind_template.cpp b/src/expr/kind_template.cpp index 5f92af622..aa9107a18 100644 --- a/src/expr/kind_template.cpp +++ b/src/expr/kind_template.cpp @@ -91,5 +91,15 @@ ${type_constant_to_theory_id} throw IllegalArgumentException("", "k", __PRETTY_FUNCTION__, "bad type constant"); } +std::string getStatsPrefix(TheoryId theoryId) { + switch(theoryId) { +${theory_stats_prefixes} +#line 98 "${template}" + default: + break; + } + return "unknown"; +} + }/* CVC4::theory namespace */ }/* CVC4 namespace */ |