SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
formula_analyzer.cpp
Go to the documentation of this file.
1 #include "formula_analyzer.h"
2 
3 #include "config.h"
5 
6 #ifdef CLI_ENABLE_ANALYZER
7 
8 #include "parser_smtlib_utils.h"
9 #include "execute_smtlib.h"
10 
11 namespace smtrat {
12 
13 int analyze_file(const std::string& filename) {
14  auto e = parseformula::FormulaCollector();
15  executeFile(filename, e);
16 
17  auto& stats = analyze_formula(e.getFormula());
18 
19  if (e.has_info("status")) {
20  stats.add("answer", e.get_info("status"));
21  }
22 
23  return 0;
24 }
25 
26 }
27 
28 #else
29 
30 namespace smtrat {
31 
32 int analyze_file(const std::string&) {
33  return 0;
34 }
35 
36 }
37 
38 #endif
Class to create the formulas for axioms.
analyzer::AnalyzerStatistics & analyze_formula(const FormulaT &f)
int analyze_file(const std::string &)
int executeFile(const std::string &pathToInputFile, Executor &e)
Parse the file and save it in formula.