diff options
author | chriseth <chris@ethereum.org> | 2017-09-29 22:53:26 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-11-22 10:35:34 +0800 |
commit | 22c689d516bc69b49797005de0cd64c23fcaad2f (patch) | |
tree | e36791f5d514af7cdb133de89198c2e1906d5eba /libsolidity/formal/Z3Interface.cpp | |
parent | e5de4a66eda8211bb38b874f7683534d6cfc1c24 (diff) | |
download | dexon-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.cpp | 2 |
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) |