3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-11 03:33:36 +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
No known key found for this signature in database
GPG key ID: 8395A8BA109708B2

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