3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00
This commit is contained in:
Nikolaj Bjorner 2018-11-14 13:44:45 -08:00
commit 1713259c3d
2 changed files with 4 additions and 3 deletions

View file

@ -238,10 +238,10 @@ static void cnf_backbones(bool use_chunk, char const* file_name) {
std::cerr << "(error \"failed to open file '" << file_name << "'\")" << std::endl;
exit(ERR_OPEN_FILE);
}
parse_dimacs(in, solver);
if (!parse_dimacs(in, std::cerr, solver)) return;
}
else {
parse_dimacs(std::cin, solver);
if (!parse_dimacs(std::cin, std::cerr, solver)) return;
}
IF_VERBOSE(20, solver.display_status(verbose_stream()););

View file

@ -34,7 +34,8 @@ void tst_sat_lookahead(char ** argv, int argc, int& i) {
std::cerr << "(error \"failed to open file '" << file_name << "'\")" << std::endl;
exit(ERR_OPEN_FILE);
}
parse_dimacs(in, solver);
if (!parse_dimacs(in, std::cerr, solver))
return;
}
sat::lookahead lh(solver);