diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-07-27 20:13:22 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-07-27 20:13:22 +0800 |
commit | 06dbcb3afea63a935afc492b926f6b434bb78fa4 (patch) | |
tree | 5746de73ba539bbae43c50093dedd8fc8b9a0801 /libsolidity/formal/SMTLib2Interface.cpp | |
parent | bc51b0f6c257e8abc47a7375a6397e1310e8d298 (diff) | |
download | dexon-solidity-06dbcb3afea63a935afc492b926f6b434bb78fa4.tar.gz dexon-solidity-06dbcb3afea63a935afc492b926f6b434bb78fa4.tar.zst dexon-solidity-06dbcb3afea63a935afc492b926f6b434bb78fa4.zip |
Only ask for a model if it's SAT
Diffstat (limited to 'libsolidity/formal/SMTLib2Interface.cpp')
-rw-r--r-- | libsolidity/formal/SMTLib2Interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/formal/SMTLib2Interface.cpp b/libsolidity/formal/SMTLib2Interface.cpp index 0e00665a..00ac523f 100644 --- a/libsolidity/formal/SMTLib2Interface.cpp +++ b/libsolidity/formal/SMTLib2Interface.cpp @@ -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); } |