aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-09-29 16:30:12 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-22 10:35:34 +0800
commite5de4a66eda8211bb38b874f7683534d6cfc1c24 (patch)
tree76fca6d49a3aaf8cfef89a89bf936d8df89d7cb1 /libsolidity
parentb37377641dd1cac7d1b5d5307ea6f7517c0f321f (diff)
downloaddexon-solidity-e5de4a66eda8211bb38b874f7683534d6cfc1c24.tar.gz
dexon-solidity-e5de4a66eda8211bb38b874f7683534d6cfc1c24.tar.zst
dexon-solidity-e5de4a66eda8211bb38b874f7683534d6cfc1c24.zip
Tests.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/formal/SMTChecker.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/libsolidity/formal/SMTChecker.cpp b/libsolidity/formal/SMTChecker.cpp
index 428afa9f..1cf5dc95 100644
--- a/libsolidity/formal/SMTChecker.cpp
+++ b/libsolidity/formal/SMTChecker.cpp
@@ -106,11 +106,6 @@ bool SMTChecker::visit(WhileStatement const& _node)
{
// TODO Check if condition is always true
- // TODO Weird side effects like
- // uint x = 1;
- // while (x ++ > 0) { assert(x == 2); }
- // solution: clear variables first, then execute and assert condition, then executed body.
-
auto touchedVariables = m_variableUsage->touchedVariables(_node);
resetVariables(touchedVariables);
if (_node.isDoWhile())