aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/CVC4Interface.cpp
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-07-27 20:13:22 +0800
committerLeonardo Alt <leo@ethereum.org>2018-07-27 20:13:22 +0800
commit06dbcb3afea63a935afc492b926f6b434bb78fa4 (patch)
tree5746de73ba539bbae43c50093dedd8fc8b9a0801 /libsolidity/formal/CVC4Interface.cpp
parentbc51b0f6c257e8abc47a7375a6397e1310e8d298 (diff)
downloaddexon-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/CVC4Interface.cpp')
-rw-r--r--libsolidity/formal/CVC4Interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/formal/CVC4Interface.cpp b/libsolidity/formal/CVC4Interface.cpp
index c6f2771d..0cb70d2f 100644
--- a/libsolidity/formal/CVC4Interface.cpp
+++ b/libsolidity/formal/CVC4Interface.cpp
@@ -109,7 +109,7 @@ pair<CheckResult, vector<string>> CVC4Interface::check(vector<Expression> const&
solAssert(false, "");
}
- if (result != CheckResult::UNSATISFIABLE && !_expressionsToEvaluate.empty())
+ if (result == CheckResult::SATISFIABLE && !_expressionsToEvaluate.empty())
{
for (Expression const& e: _expressionsToEvaluate)
values.push_back(toString(m_solver.getValue(toCVC4Expr(e))));