This commit is contained in:
chriseth
2017-11-22 02:35:34 +00:00
committed by Alex Beregszaszi
parent b37377641d
commit e5de4a66ed
2 changed files with 240 additions and 5 deletions
-5
View File
@@ -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())