1
0
mirror of synced 2026-02-18 05:43:39 +00:00

Fix handling of -sat and -unsat options when the solver returns unknown.

This commit is contained in:
Alberto Gonzalez
2020-04-01 19:32:44 +00:00
parent 6af8b767b4
commit ce033a8e36

View File

@@ -507,6 +507,8 @@ struct QbfSatPass : public Pass {
}
else if (!ret.unknown && !ret.sat && opt.sat)
log_cmd_error("expected problem to be SAT\n");
else if (ret.unknown && (opt.sat || opt.unsat))
log_cmd_error("expected problem to be %s\n", opt.sat? "SAT" : "UNSAT");
} else {
specialize_from_file(module, opt.specialize_soln_file);
Pass::call(design, "opt_clean");