forked from hernanponcedeleon/Dat3M
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (29 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#Download base image ubuntu 20.04
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
# Update Ubuntu Software repository
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common && \
apt-get install -y git && \
apt-get install -y graphviz && \
apt-get install -y sudo && \
apt-get install -y wget && \
apt-get install -y maven && \
apt-get install -y cmake && \
apt-get install -y autoconf && \
apt-get install -y automake && \
apt-get install -y graphviz
# Install Dat3M
RUN cd home && \
git clone --branch development https://github.com/hernanponcedeleon/Dat3M.git && \
cd Dat3M && \
chmod 755 Dartagnan-SVCOMP.sh && \
mvn clean install -DskipTests
# symlink for clang
RUN ln -s clang-12 /usr/bin/clang
ENV DAT3M_HOME=/home/Dat3M
ENV DAT3M_OUTPUT=$DAT3M_HOME/output
ENV CFLAGS="-I$DAT3M_HOME/include"
ENV OPTFLAGS="-mem2reg -sroa -early-cse -indvars -loop-unroll -fix-irreducible -loop-simplify -simplifycfg -gvn"
ENV LD_LIBRARY_PATH=/usr/local/lib