Only ask for a model if it's SAT

This commit is contained in:
Leonardo Alt
2018-07-27 14:13:22 +02:00
parent bc51b0f6c2
commit 06dbcb3afe
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ pair<CheckResult, vector<string>> SMTLib2Interface::check(vector<Expression> con
result = CheckResult::ERROR;
vector<string> values;
if (result != CheckResult::UNSATISFIABLE && result != CheckResult::ERROR)
if (result == CheckResult::SATISFIABLE && result != CheckResult::ERROR)
values = parseValues(find(response.cbegin(), response.cend(), '\n'), response.cend());
return make_pair(result, values);
}