From c6b2e085d4eb2c232a528a96e13fc7b65fd98fea Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Tue, 6 Mar 2018 16:54:06 -0800 Subject: 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"). --- src/theory/bv/slicer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/theory/bv/slicer.cpp') diff --git a/src/theory/bv/slicer.cpp b/src/theory/bv/slicer.cpp index fa234fcde..4c4b7c723 100644 --- a/src/theory/bv/slicer.cpp +++ b/src/theory/bv/slicer.cpp @@ -640,12 +640,12 @@ std::string UnionFind::debugPrint(TermId id) { } UnionFind::Statistics::Statistics(): - d_numNodes("theory::bv::slicer::NumberOfNodes", 0), - d_numRepresentatives("theory::bv::slicer::NumberOfRepresentatives", 0), - d_numSplits("theory::bv::slicer::NumberOfSplits", 0), - d_numMerges("theory::bv::slicer::NumberOfMerges", 0), + d_numNodes("theory::bv::slicer::NumNodes", 0), + d_numRepresentatives("theory::bv::slicer::NumRepresentatives", 0), + d_numSplits("theory::bv::slicer::NumSplits", 0), + d_numMerges("theory::bv::slicer::NumMerges", 0), d_avgFindDepth("theory::bv::slicer::AverageFindDepth"), - d_numAddedEqualities("theory::bv::slicer::NumberOfEqualitiesAdded", Slicer::d_numAddedEqualities) + d_numAddedEqualities("theory::bv::slicer::NumEqualitiesAdded", Slicer::d_numAddedEqualities) { smtStatisticsRegistry()->registerStat(&d_numRepresentatives); smtStatisticsRegistry()->registerStat(&d_numSplits); -- cgit v1.2.3