aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/Z3Interface.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-09-29 22:53:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-22 10:35:34 +0800
commit22c689d516bc69b49797005de0cd64c23fcaad2f (patch)
treee36791f5d514af7cdb133de89198c2e1906d5eba /libsolidity/formal/Z3Interface.cpp
parente5de4a66eda8211bb38b874f7683534d6cfc1c24 (diff)
downloaddexon-solidity-22c689d516bc69b49797005de0cd64c23fcaad2f.tar.gz
dexon-solidity-22c689d516bc69b49797005de0cd64c23fcaad2f.tar.zst
dexon-solidity-22c689d516bc69b49797005de0cd64c23fcaad2f.zip
Check for conditions being constant.
Diffstat (limited to 'libsolidity/formal/Z3Interface.cpp')
-rw-r--r--libsolidity/formal/Z3Interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/formal/Z3Interface.cpp b/libsolidity/formal/Z3Interface.cpp
index 6111b2c8..0c083abc 100644
--- a/libsolidity/formal/Z3Interface.cpp
+++ b/libsolidity/formal/Z3Interface.cpp
@@ -91,7 +91,7 @@ pair<CheckResult, vector<string>> Z3Interface::check(vector<Expression> const& _
solAssert(false, "");
}
- if (result != CheckResult::UNSATISFIABLE)
+ if (result != CheckResult::UNSATISFIABLE && !_expressionsToEvaluate.empty())
{
z3::model m = m_solver.get_model();
for (Expression const& e: _expressionsToEvaluate)