Skip to content

Commit 52a9de8

Browse files
authored
Merge pull request ethereum#7682 from ethereum/smt_z3486_tests
[SMTChecker] Update test expectations for z3 4.8.6
2 parents 5423dd6 + 999d8c6 commit 52a9de8

File tree

5 files changed

+18
-38
lines changed

5 files changed

+18
-38
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,12 @@ jobs:
431431
- checkout
432432
- restore_cache:
433433
keys:
434-
- dependencies-osx-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}
434+
- dependencies-osx-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
435435
- run:
436436
name: Install build dependencies
437437
command: ./.circleci/osx_install_dependencies.sh
438438
- save_cache:
439-
key: dependencies-osx-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}
439+
key: dependencies-osx-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
440440
paths:
441441
- /usr/local/bin
442442
- /usr/local/sbin
@@ -459,7 +459,7 @@ jobs:
459459
- checkout
460460
- restore_cache:
461461
keys:
462-
- dependencies-osx-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}
462+
- dependencies-osx-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
463463
- attach_workspace:
464464
at: build
465465
- run: *run_soltest
@@ -475,7 +475,7 @@ jobs:
475475
- checkout
476476
- restore_cache:
477477
keys:
478-
- dependencies-osx-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}
478+
- dependencies-osx-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
479479
- attach_workspace:
480480
at: build
481481
- run: *run_cmdline_tests

.circleci/osx_install_dependencies.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ then
4343
./scripts/install_obsolete_jsoncpp_1_7_4.sh
4444

4545
# z3
46-
wget https://github.com/Z3Prover/z3/releases/download/Z3-4.8.5/z3-4.8.5-x64-osx-10.14.2.zip
47-
unzip z3-4.8.5-x64-osx-10.14.2.zip
48-
rm -f z3-4.8.5-x64-osx-10.14.2.zip
49-
cp z3-4.8.5-x64-osx-10.14.2/bin/libz3.a /usr/local/lib
50-
cp z3-4.8.5-x64-osx-10.14.2/bin/z3 /usr/local/bin
51-
cp z3-4.8.5-x64-osx-10.14.2/include/* /usr/local/include
52-
rm -rf z3-4.8.5-x64-osx-10.14.2
46+
wget https://github.com/Z3Prover/z3/releases/download/z3-4.8.6/z3-4.8.6-x64-osx-10.14.6.zip
47+
unzip z3-4.8.6-x64-osx-10.14.6.zip
48+
rm -f z3-4.8.6-x64-osx-10.14.6.zip
49+
cp z3-4.8.6-x64-osx-10.14.6/bin/libz3.a /usr/local/lib
50+
cp z3-4.8.6-x64-osx-10.14.6/bin/z3 /usr/local/bin
51+
cp z3-4.8.6-x64-osx-10.14.6/include/* /usr/local/include
52+
rm -rf z3-4.8.6-x64-osx-10.14.6
5353

5454
# evmone
5555
wget https://github.com/ethereum/evmone/releases/download/v0.1.0/evmone-0.1.0-darwin-x86_64.tar.gz

test/libsolidity/smtCheckerTests/invariants/loop_array_for.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ contract Simple {
77
for (i = 0; i < n; ++i)
88
a[i] = i;
99
require(n > 1);
10-
// Assertion is safe but current solver version cannot solve it.
10+
// Assertion is safe but current solver version times out.
1111
// Keep test for next solver release.
1212
assert(a[n-1] > a[n-2]);
1313
}
1414
}
1515
// ----
16-
// Warning: (267-290): Assertion violation happens here
16+
// Warning: (261-284): Error trying to invoke SMT solver.
17+
// Warning: (261-284): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/while_loop_array_assignment_storage_memory.sol

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/libsolidity/smtCheckerTests/loops/while_loop_array_assignment_storage_storage.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ contract LoopFor2 {
1414
c[i] = b[i];
1515
++i;
1616
}
17+
// Fails as false positive.
1718
assert(b[0] == c[0]);
1819
assert(a[0] == 900);
1920
assert(b[0] == 900);
2021
}
2122
}
2223
// ----
23-
// Warning: (290-309): Assertion violation happens here
24-
// Warning: (313-332): Assertion violation happens here
24+
// Warning: (296-316): Assertion violation happens here
25+
// Warning: (320-339): Assertion violation happens here
26+
// Warning: (343-362): Assertion violation happens here

0 commit comments

Comments
 (0)