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
No known key found for this signature in database
GPG Key ID: 8395A8BA109708B2
1 changed files with 2 additions and 0 deletions

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");