Skip to content

Commit a00e6c6

Browse files
author
Leo
authored
Merge pull request #13740 from ethereum/z3_4_11_2_tests
update SMTChecker tests with Z3 4.11.2
2 parents eb2f874 + d660f0c commit a00e6c6

File tree

75 files changed

+141
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+141
-295
lines changed

.circleci/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ version: 2.1
99
parameters:
1010
ubuntu-2004-docker-image:
1111
type: string
12-
# solbuildpackpusher/solidity-buildpack-deps:ubuntu2004-15
13-
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:e4f83457bf1d6475c3189e9013da77289793a5ecd6a0e15dbec9411880b11e22"
12+
# solbuildpackpusher/solidity-buildpack-deps:ubuntu2004-16
13+
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:ee1def5806f40c35d583234e172ec5769bb9a08b6f5bbc713c1a2658846dbced"
1414
ubuntu-2004-clang-docker-image:
1515
type: string
16-
# solbuildpackpusher/solidity-buildpack-deps:ubuntu2004.clang-15
17-
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:8dda4fdae312f840fbb4e25b9ef01ad3209e9014e49e4564ab0f0d2510225131"
16+
# solbuildpackpusher/solidity-buildpack-deps:ubuntu2004.clang-16
17+
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:8f635529a10e0ddf955d6d72360261966e5fee0b5c5211070370ca2fc4e0ab7c"
1818
ubuntu-1604-clang-ossfuzz-docker-image:
1919
type: string
20-
# solbuildpackpusher/solidity-buildpack-deps:ubuntu1604.clang.ossfuzz-20
21-
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:7b3ccaed3b5d37dc2cc4bbe1a1e40949266292dcdbc3ad015271ab4e5e6f5038"
20+
# solbuildpackpusher/solidity-buildpack-deps:ubuntu1604.clang.ossfuzz-21
21+
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:ae6b695fb8a0806702bb6a1a9616fbb33ac3288f25990fa799aab2c045c80ea1"
2222
emscripten-docker-image:
2323
type: string
24-
# solbuildpackpusher/solidity-buildpack-deps:emscripten-13
25-
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:f1c13f3450d1f2e53ea18ac1ac1a17e932573cb9a5ccd0fd9ef6dd44f6402fa9"
24+
# solbuildpackpusher/solidity-buildpack-deps:emscripten-14
25+
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:d7d4ec28cdc3e61fc6a048b88ebdff1c5e67f3353cf1739cbaea07ec2481eb16"
2626
evm-version:
2727
type: string
2828
default: london

.circleci/osx_install_dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ then
6161
./scripts/install_obsolete_jsoncpp_1_7_4.sh
6262

6363
# z3
64-
z3_version="4.11.0"
64+
z3_version="4.11.2"
6565
z3_dir="z3-${z3_version}-x64-osx-10.16"
6666
z3_package="${z3_dir}.zip"
6767
wget "https://github.com/Z3Prover/z3/releases/download/z3-${z3_version}/${z3_package}"
68-
validate_checksum "$z3_package" b6a4a6d587e4bfb0643db81129f0f447692fae13d4bd1bd4d93f1c0301b75ffc
68+
validate_checksum "$z3_package" a56b6c40d9251a963aabe1f15731dd88ad1cb801d0e7b16e45f8b232175e165c
6969
unzip "$z3_package"
7070
rm "$z3_package"
7171
cp "${z3_dir}/bin/libz3.a" /usr/local/lib

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ configure_file("${CMAKE_SOURCE_DIR}/cmake/templates/license.h.in" include/licens
7575

7676
include(EthOptions)
7777
configure_project(TESTS)
78-
set(LATEST_Z3_VERSION "4.11.0")
78+
set(LATEST_Z3_VERSION "4.11.2")
7979
set(MINIMUM_Z3_VERSION "4.8.0")
8080
find_package(Z3)
8181
if (${Z3_FOUND})

scripts/build_emscripten.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else
3434
BUILD_DIR="$1"
3535
fi
3636

37-
# solbuildpackpusher/solidity-buildpack-deps:emscripten-13
37+
# solbuildpackpusher/solidity-buildpack-deps:emscripten-14
3838
# NOTE: Without `safe.directory` git would assume it's not safe to operate on /root/project since it's owned by a different user.
3939
# See https://github.blog/2022-04-12-git-security-vulnerability-announced/
4040
docker run -v "$(pwd):/root/project" -w /root/project \

scripts/error_codes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ def examine_id_coverage(top_dir, source_id_to_file_names, new_ids_only=False):
227227
return False
228228

229229
old_source_only_ids = {
230-
"1584", "1823",
230+
"1218", "1584", "1823",
231231
"1988", "2066", "2833", "3356",
232232
"3893", "3996", "4010", "4458", "4802",
233-
"4902", "5272", "5622", "5798", "7128", "7400",
233+
"4902", "5272", "5622", "5798", "5840", "7128", "7400",
234234
"7589", "7593", "7649", "7710",
235235
"8065", "8084", "8140", "8158",
236236
"8312", "8592", "9134", "9609",

test/cmdlineTests/model_checker_invariants_all/err

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Warning: Return value of low-level calls not used.
55
| ^^^^^^^^^^^
66

77
Info: Contract invariant(s) for model_checker_invariants_all/input.sol:test:
8-
((x <= 0) || true)
8+
(!(x >= 1) || true)
99
Reentrancy property(ies) for model_checker_invariants_all/input.sol:test:
10-
(((!(x <= 0) || (x' <= 0)) && (!(x <= 0) || (<errorCode> <= 0))) || true)
10+
(((!(x <= 0) || !(x' >= 1)) && (!(x <= 0) || !(<errorCode> >= 1))) || true)
1111
<errorCode> = 0 -> no errors
1212
<errorCode> = 1 -> Assertion failed at assert(x == 0)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Info: Contract invariant(s) for model_checker_invariants_contract/input.sol:test:
2-
((x <= 0) || true)
2+
(!(x >= 1) || true)

test/cmdlineTests/model_checker_invariants_contract_reentrancy/err

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Warning: Return value of low-level calls not used.
55
| ^^^^^^^^^^^
66

77
Info: Contract invariant(s) for model_checker_invariants_contract_reentrancy/input.sol:test:
8-
((x <= 0) || true)
8+
(!(x >= 1) || true)
99
Reentrancy property(ies) for model_checker_invariants_contract_reentrancy/input.sol:test:
10-
(((!(x <= 0) || (x' <= 0)) && (!(x <= 0) || (<errorCode> <= 0))) || true)
10+
(((!(x <= 0) || !(x' >= 1)) && (!(x <= 0) || !(<errorCode> >= 1))) || true)
1111
<errorCode> = 0 -> no errors
1212
<errorCode> = 1 -> Assertion failed at assert(x == 0)

test/cmdlineTests/model_checker_invariants_reentrancy/err

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Warning: Return value of low-level calls not used.
55
| ^^^^^^^^^^^
66

77
Info: Reentrancy property(ies) for model_checker_invariants_reentrancy/input.sol:test:
8-
(((!(x <= 0) || (x' <= 0)) && (!(x <= 0) || (<errorCode> <= 0))) || true)
8+
(((!(x <= 0) || !(x' >= 1)) && (!(x <= 0) || !(<errorCode> >= 1))) || true)
99
<errorCode> = 0 -> no errors
1010
<errorCode> = 1 -> Assertion failed at assert(x < 10)

test/cmdlineTests/standard_model_checker_invariants_contract/output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"component": "general",
66
"errorCode": "1180",
77
"formattedMessage": "Info: Contract invariant(s) for A:test:
8-
((x <= 0) || true)
8+
(!(x >= 1) || true)
99

1010

1111
",
1212
"message": "Contract invariant(s) for A:test:
13-
((x <= 0) || true)
13+
(!(x >= 1) || true)
1414
",
1515
"severity": "info",
1616
"type": "Info"

0 commit comments

Comments
 (0)