SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
AAFStatistics.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #ifdef SMTRAT_DEVOPTION_Statistics
6 
7 namespace smtrat {
8 namespace mcsat {
9 
10 class AAFStatistics: public Statistics {
11 private:
12  std::size_t mCalled = 0;
13  std::size_t mSuccess = 0;
14 public:
15  bool enabled() const {
16  return (mCalled > 0) || (mSuccess > 0);
17  }
18  void collect() {
19  Statistics::addKeyValuePair("called", mCalled);
20  Statistics::addKeyValuePair("success", mSuccess);
21  }
22 
23  void called() {
24  ++mCalled;
25  }
26 
27  void success() {
28  ++mSuccess;
29  }
30 
31 };
32 
33 }
34 }
35 
36 #endif
Class to create the formulas for axioms.
carl::statistics::Statistics Statistics
Definition: Statistics.h:7