3 #include "../parser/ParserWrapper.h"
5 #include "../CLIStatistics.h"
14 template<
typename Executor>
16 if (pathToInputFile ==
"-") {
17 queueInstructions =
false;
22 std::ifstream infile(pathToInputFile);
24 std::cerr <<
"Could not open file: " << pathToInputFile << std::endl;
37 template<
typename Executor>
41 #pragma comment(linker, "/STACK:10000000")
45 getrlimit(RLIMIT_STACK, &rl);
46 rl.rlim_cur = rl.rlim_max;
47 setrlimit(RLIMIT_STACK, &rl);
51 bool queueInstructions =
true;
52 if (!
parseInput(pathToInputFile, e, queueInstructions)) {
53 std::cerr <<
"Parse error" << std::endl;
56 if (queueInstructions) {
constexpr int SMTRAT_EXIT_NOSUCHFILE
constexpr int SMTRAT_EXIT_PARSERFAILURE
bool hasInstructions() const
Class to create the formulas for axioms.
bool parseSMT2File(parser::InstructionHandler &handler, bool queueInstructions, std::istream &input)
bool parseInput(const std::string &pathToInputFile, Executor &e, bool &queueInstructions)
int executeFile(const std::string &pathToInputFile, Executor &e)
Parse the file and save it in formula.
#define SMTRAT_LOG_WARN(channel, msg)
#define SMTRAT_LOG_DEBUG(channel, msg)
#define SMTRAT_TIME_START(variable)
#define SMTRAT_TIME_FINISH(timer, start)