SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
StatisticsSettings.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace smtrat {
7 namespace statistics {
8 
11  std::string xml_filename;
13 };
14 
15 template<typename T>
16 void registerStatisticsSettings(T& parser) {
17  namespace po = boost::program_options;
18  auto& settings = settings::Settings::getInstance();
19  auto& s = settings.get<StatisticsSettings>("statistics");
20 
21  parser.add("Statistics settings").add_options()
22  ("stats.export-xml", po::bool_switch(&s.export_as_xml), "store statistics to xml file")
23  ("stats.xml-filename", po::value<std::string>(&s.xml_filename)->default_value("stats.xml"), "filename of xml output")
24  ("stats.print", po::bool_switch(&s.print_as_smtlib), "print statistics to stdout")
25  ;
26 }
27 
28 }
29 
30 inline const auto& settings_statistics() {
31  static const auto& s = settings::Settings::getInstance().get<statistics::StatisticsSettings>("statistics");
32  return s;
33 }
34 
35 }
void registerStatisticsSettings(T &parser)
Class to create the formulas for axioms.
const auto & settings_statistics()