Skip to content

Commit aee707e

Browse files
committed
Bump Z3 and CVC5
1 parent 20e30f5 commit aee707e

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

scripts/docker/buildpack-deps/Dockerfile.ubuntu.clang.ossfuzz

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,17 @@ RUN set -ex; \
8484

8585
# Z3
8686
RUN set -ex; \
87-
git clone --depth 1 -b z3-4.12.1 https://github.com/Z3Prover/z3.git \
88-
/usr/src/z3; \
89-
cd /usr/src/z3; \
90-
mkdir build; \
91-
cd build; \
92-
LDFLAGS=$CXXFLAGS cmake -DZ3_BUILD_LIBZ3_SHARED=OFF -DCMAKE_INSTALL_PREFIX=/usr \
93-
-DCMAKE_BUILD_TYPE=Release ..; \
94-
make libz3 -j; \
95-
make install; \
96-
rm -rf /usr/src/z3
87+
z3_version="4.13.3"; \
88+
z3_archive_name="z3-${z3_version}-x64-glibc-2.35"; \
89+
wget "https://github.com/Z3Prover/z3/releases/download/z3-${z3_version}/${z3_archive_name}.zip" -O /opt/z3.zip; \
90+
test "$(sha256sum /opt/z3.zip)" = "32c7377026733c9d7b33c21cd77a68f50ba682367207b031a6bfd80140a8722f /opt/z3.zip"; \
91+
unzip -j /opt/z3.zip "${z3_archive_name}/bin/z3" -d /usr/bin; \
92+
rm -f /opt/z3.zip;
9793

9894
# Eldarica
9995
RUN set -ex; \
10096
apt-get update; \
101-
apt-get install -qy unzip openjdk-11-jre; \
97+
apt-get install -qqy openjdk-11-jre; \
10298
eldarica_version="2.1"; \
10399
wget "https://github.com/uuverifiers/eldarica/releases/download/v${eldarica_version}/eldarica-bin-${eldarica_version}.zip" -O /opt/eld_binaries.zip; \
104100
test "$(sha256sum /opt/eld_binaries.zip)" = "0ac43f45c0925383c9d2077f62bbb515fd792375f3b2b101b30c9e81dcd7785c /opt/eld_binaries.zip"; \
@@ -107,14 +103,12 @@ RUN set -ex; \
107103

108104
# CVC5
109105
RUN set -ex; \
110-
cvc5_version="1.1.2"; \
111-
wget "https://github.com/cvc5/cvc5/releases/download/cvc5-${cvc5_version}/cvc5-Linux-static.zip" -O /opt/cvc5.zip; \
112-
test "$(sha256sum /opt/cvc5.zip)" = "cf291aef67da8eaa8d425a51f67f3f72f36db8b1040655dc799b64e3d69e6086 /opt/cvc5.zip"; \
113-
unzip /opt/cvc5.zip -x "cvc5-Linux-static/lib/cmake/*" -d /opt; \
114-
mv /opt/cvc5-Linux-static/bin/* /usr/bin; \
115-
mv /opt/cvc5-Linux-static/include/* /usr/include; \
116-
mv /opt/cvc5-Linux-static/lib/* /usr/lib; \
117-
rm -rf /opt/cvc5-Linux-static /opt/cvc5.zip;
106+
cvc5_version="1.2.0"; \
107+
cvc5_archive_name="cvc5-Linux-x86_64-static"; \
108+
wget "https://github.com/cvc5/cvc5/releases/download/cvc5-${cvc5_version}/${cvc5_archive_name}.zip" -O /opt/cvc5.zip; \
109+
test "$(sha256sum /opt/cvc5.zip)" = "d18f174ff9a11923c32c3f871f844ed16bd77a28f51050b8e7c8d821c98a1c2e /opt/cvc5.zip"; \
110+
unzip -j /opt/cvc5.zip "${cvc5_archive_name}/bin/cvc5" -d /usr/bin; \
111+
rm -f /opt/cvc5.zip;
118112

119113
# OSSFUZZ: libprotobuf-mutator
120114
RUN set -ex; \

0 commit comments

Comments
 (0)