mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Only ask for a model if it's SAT
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user