SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
parser_smtlib_utils.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../parser/InstructionHandler.h"
4 
6 
8 private:
9  std::vector<FormulaT> mFormulas;
10  carl::Logic mLogic;
11 public:
12  void add(const smtrat::FormulaT& f) {
13  mFormulas.emplace_back(f);
14  }
15  void addSoft(const FormulaT& f, Rational /*weight*/, const std::string& /*name*/) {
16  mFormulas.emplace_back(f);
17  }
18  void annotateName(const smtrat::FormulaT&, const std::string&) {}
19  void check() {}
20  void declareFun(const carl::Variable&) {}
21  void declareSort(const std::string&, const unsigned&) {}
22  void defineSort(const std::string&, const std::vector<std::string>&, const carl::Sort&) {}
23  void qe() {}
24  void exit() {}
25  void getAssertions() {}
26  void getAllModels() {}
27  void getAssignment() {}
28  void getModel() {}
29  void getObjectives() {}
30  void getProof() {}
31  void getUnsatCore() {}
32  void getValue(const std::vector<carl::Variable>&) {}
34  void pop(std::size_t) {}
35  void push(std::size_t) {}
36  void reset() {}
37  void resetAssertions() {}
38  void setLogic(const carl::Logic& l) {
39  mLogic = l;
40  }
41  int getExitCode() const {
42  return 0;
43  }
44 
45  FormulaT getFormula() const {
47  }
48  auto getLogic() const {
49  return mLogic;
50  }
51 };
52 
53 }
void declareFun(const carl::Variable &)
void annotateName(const smtrat::FormulaT &, const std::string &)
void declareSort(const std::string &, const unsigned &)
void defineSort(const std::string &, const std::vector< std::string > &, const carl::Sort &)
void addObjective(const smtrat::Poly &, smtrat::parser::OptimizationType)
void addSoft(const FormulaT &f, Rational, const std::string &)
void getValue(const std::vector< carl::Variable > &)
void add(const smtrat::FormulaT &f)
carl::Formula< Poly > FormulaT
Definition: types.h:37
carl::MultivariatePolynomial< Rational > Poly
Definition: types.h:25
mpq_class Rational
Definition: types.h:19