SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
NLSATStatistics.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 NLSATStatistics: public Statistics {
11 private:
12  std::size_t mExplanationCalled = 0;
13  std::size_t mExplanationSuccess = 0;
14 public:
15  bool enabled() const {
16  return (mExplanationCalled > 0) || (mExplanationSuccess > 0);
17  }
18  void collect() {
19  Statistics::addKeyValuePair("explanation_called", mExplanationCalled);
20  Statistics::addKeyValuePair("explanation_success", mExplanationSuccess);
21  }
22 
23  void explanationCalled() {
24  ++mExplanationCalled;
25  }
26 
27  void explanationSuccess() {
28  ++mExplanationSuccess;
29  }
30 
31 };
32 
33 }
34 }
35 
36 #endif
Class to create the formulas for axioms.
carl::statistics::Statistics Statistics
Definition: Statistics.h:7