SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
GBCalculationStatistics.cpp
Go to the documentation of this file.
3 #ifdef SMTRAT_DEVOPTION_Statistics
4 
5 #include <algorithm>
6 namespace smtrat
7 {
8 
9 std::map<unsigned,GBCalculationStats*> GBCalculationStats::instances = std::map<unsigned,GBCalculationStats*>();
10 
11 GBCalculationStats& GBCalculationStats::getInstance(unsigned key)
12 {
13  if( instances[key] == 0 )
14  instances[key] = new GBCalculationStats();
15  return *instances[key];
16 }
17 
18 void GBCalculationStats::printAll(std::ostream& os) {
19  for(auto stats = instances.begin(); stats != instances.end(); ++stats ) {
20  stats->second->print(os);
21  }
22 }
23 
24 void GBCalculationStats::print(std::ostream& ) {
25 
26 }
27 
28 void GBCalculationStats::collect() {
29  Statistics::addKeyValuePair("TSQ with constant", mBuchbergerStats->getNrTSQWithConstant());
30  Statistics::addKeyValuePair("TSQ without constant", mBuchbergerStats->getNrTSQWithoutConstant());
31  Statistics::addKeyValuePair("Single term seperable", mBuchbergerStats->getSingleTermSFP());
32  Statistics::addKeyValuePair("RRI-VO identity", mBuchbergerStats->getNrReducibleIdentities());
33 }
34 
35 }
36 
37 #endif
38 
void print(std::ostream &stream, const FormulaDB &db, const FormulaID id, const std::size_t level)
Class to create the formulas for axioms.