From dc2dff839ce8a8066f24bf725cc68532ff4a5aef Mon Sep 17 00:00:00 2001 From: Leonardo Alt Date: Tue, 12 Nov 2019 12:58:42 +0100 Subject: [PATCH] [SMTChecker] Remove flaky tests until we fix the SMTChecker tests --- .../invariants/loop_array_for.sol | 17 ------------ ..._loop_array_assignment_storage_storage.sol | 26 ------------------- 2 files changed, 43 deletions(-) delete mode 100644 test/libsolidity/smtCheckerTests/invariants/loop_array_for.sol delete mode 100644 test/libsolidity/smtCheckerTests/loops/while_loop_array_assignment_storage_storage.sol diff --git a/test/libsolidity/smtCheckerTests/invariants/loop_array_for.sol b/test/libsolidity/smtCheckerTests/invariants/loop_array_for.sol deleted file mode 100644 index 7169b444e..000000000 --- a/test/libsolidity/smtCheckerTests/invariants/loop_array_for.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma experimental SMTChecker; - -contract Simple { - uint[] a; - function f(uint n) public { - uint i; - for (i = 0; i < n; ++i) - a[i] = i; - require(n > 1); - // Assertion is safe but current solver version times out. - // Keep test for next solver release. - assert(a[n-1] > a[n-2]); - } -} -// ---- -// Warning: (261-284): Error trying to invoke SMT solver. -// Warning: (261-284): Assertion violation happens here diff --git a/test/libsolidity/smtCheckerTests/loops/while_loop_array_assignment_storage_storage.sol b/test/libsolidity/smtCheckerTests/loops/while_loop_array_assignment_storage_storage.sol deleted file mode 100644 index 92d1ded3e..000000000 --- a/test/libsolidity/smtCheckerTests/loops/while_loop_array_assignment_storage_storage.sol +++ /dev/null @@ -1,26 +0,0 @@ -pragma experimental SMTChecker; - -contract LoopFor2 { - uint[] b; - uint[] c; - - function testUnboundedForLoop(uint n) public { - b[0] = 900; - uint[] storage a = b; - require(n > 0 && n < 100); - uint i; - while (i < n) { - b[i] = i + 1; - c[i] = b[i]; - ++i; - } - // Fails as false positive. - assert(b[0] == c[0]); - assert(a[0] == 900); - assert(b[0] == 900); - } -} -// ---- -// Warning: (296-316): Assertion violation happens here -// Warning: (320-339): Assertion violation happens here -// Warning: (343-362): Assertion violation happens here