Skip to content

Commit

Permalink
Better error printing
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed May 25, 2018
1 parent bd4b24f commit 61644ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1258,26 +1258,26 @@ void Solver::set_up_sql_writer()
void Solver::check_config_parameters() const
{
if (conf.max_confl < 0) {
std::cerr << "Maximum number conflicts set must be greater or equal to 0" << endl;
std::cerr << "ERROR: Maximum number conflicts set must be greater or equal to 0" << endl;
exit(-1);
}

if (conf.shortTermHistorySize <= 0) {
std::cerr << "You MUST give a short term history size (\"--gluehist\") greater than 0!" << endl;
std::cerr << "ERROR: You MUST give a short term history size (\"--gluehist\") greater than 0!" << endl;
exit(-1);
}

#ifdef USE_GAUSS
if ((drat->enabled() || solver->conf.simulate_drat) &&
conf.gaussconf.decision_until > 0
) {
std::cerr << "Cannot have both DRAT and GAUSS on at the same time!" << endl;
std::cerr << "ERROR: Cannot have both DRAT and GAUSS on at the same time!" << endl;
exit(-1);
}
#endif

if (conf.greedy_undef) {
std::cerr << "Unfortunately, greedy undef is broken" << endl;
std::cerr << "ERROR: Unfortunately, greedy undef is broken" << endl;
exit(-1);
}

Expand Down

0 comments on commit 61644ad

Please sign in to comment.