SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
Statistics.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../config.h"
4 #include <carl-statistics/Statistics.h>
5 
6 namespace smtrat {
8 
9  template<typename T>
10  auto& statistics_get(const std::string& name) {
11  return carl::statistics::get<T>(name);
12  }
13 
14  #ifdef SMTRAT_DEVOPTION_Statistics
15  #define SMTRAT_STATISTICS_INIT(class, variable, name) class& variable = carl::statistics::get<class>(name)
16  #define SMTRAT_STATISTICS_INIT_STATIC(class, variable, name) static class& variable = carl::statistics::get<class>(name)
17  #define SMTRAT_STATISTICS_CALL(function) function
18  #define SMTRAT_TIME_START(variable) auto variable = carl::statistics::Timer::start()
19  #define SMTRAT_TIME_FINISH(timer, variable) timer.finish(variable)
20  #else
21  #define SMTRAT_STATISTICS_INIT(class, variable, name)
22  #define SMTRAT_STATISTICS_INIT_STATIC(class, variable, name)
23  #define SMTRAT_STATISTICS_CALL(function)
24  #define SMTRAT_TIME_START(variable)
25  #define SMTRAT_TIME_FINISH(timer, start)
26  #endif
27 }
Class to create the formulas for axioms.
auto & statistics_get(const std::string &name)
Definition: Statistics.h:10
carl::statistics::Statistics Statistics
Definition: Statistics.h:7