6 #ifdef CLI_ENABLE_DIMACS_PARSER
7 #include <carl-io/DIMACSImporter.h>
11 template<
typename Strategy>
13 carl::io::DIMACSImporter<Poly> dimacs(filename);
15 while (dimacs.hasNext()) {
16 strategy.add(dimacs.next());
17 switch (strategy.check()) {
19 std::cout <<
"sat" << std::endl;
24 std::cout <<
"unsat" << std::endl;
29 std::cout <<
"unknown" << std::endl;
34 std::cerr <<
"unexpected output!";
39 if (dimacs.hasNext()) strategy.reset();
50 template<
typename Strategy>
52 SMTRAT_LOG_ERROR(
"smtrat",
"This version of SMT-RAT was compiled without support for DIMACS parsing. Please enable it by setting the corresponding CMake option.");
constexpr int SMTRAT_EXIT_UNEXPECTED_ANSWER
constexpr int SMTRAT_EXIT_UNKNOWN
constexpr int SMTRAT_EXIT_SAT
constexpr int SMTRAT_EXIT_UNSAT
Class to create the formulas for axioms.
int run_dimacs_file(Strategy &, const std::string &)
#define SMTRAT_LOG_ERROR(channel, msg)