diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 05:43:05 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 05:43:05 +0800 |
commit | 278372c13d611b829fbad6984a0a3951f0a11d99 (patch) | |
tree | deecf5d5db3f12dc96f82b867bb7c97c2eaac353 | |
parent | ae0959ae125ac2ae7084041a87c0736a8e7df6c6 (diff) | |
download | dexon-solidity-278372c13d611b829fbad6984a0a3951f0a11d99.tar.gz dexon-solidity-278372c13d611b829fbad6984a0a3951f0a11d99.tar.zst dexon-solidity-278372c13d611b829fbad6984a0a3951f0a11d99.zip |
Add assert for both branches in mergeVariables in SMTChecker
-rw-r--r-- | libsolidity/formal/SMTChecker.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/formal/SMTChecker.cpp b/libsolidity/formal/SMTChecker.cpp index e2a51267..c992fd61 100644 --- a/libsolidity/formal/SMTChecker.cpp +++ b/libsolidity/formal/SMTChecker.cpp @@ -752,6 +752,7 @@ void SMTChecker::mergeVariables(vector<VariableDeclaration const*> const& _varia set<VariableDeclaration const*> uniqueVars(_variables.begin(), _variables.end()); for (auto const* decl: uniqueVars) { + solAssert(_countersEndTrue.count(decl) && _countersEndFalse.count(decl), ""); int trueCounter = _countersEndTrue.at(decl).index(); int falseCounter = _countersEndFalse.at(decl).index(); solAssert(trueCounter != falseCounter, ""); |