Datasets:

Modalities:
Text
Formats:
json
Size:
< 1K
Tags:
code
DOI:
Libraries:
Datasets
pandas
License:
File size: 1,390 Bytes
8d5ae49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:22.04
WORKDIR /root

# Install dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    ninja-build \
    cmake \
    sudo \
    ccache \
    python3-pip \
    libkrb5-3 \
    zlib1g-dev \
    liblttng-ust1t64 \
    libssl-dev \
    libicu-dev \
    cargo \
    gawk \
    bison \
    wget \
    flex \
    curl \
    jq \
    git
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN apt-get update && apt-get install -y \
    llvm-20-dev \
    clang-20 \
    && rm -rf /var/lib/apt/lists/*

# Clone and build alive2
RUN git clone https://github.com/AliveToolkit/alive2.git && \
    cd alive2 && mkdir -p build && cd build && \
    cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_TV=1 && \
    cmake --build . -j

# Install python dependencies

# Clone the repository and llvm
RUN git clone https://github.com/dtcxzyw/llvm-apr-benchmark.git && \
    cd llvm-apr-benchmark && \
    pip3 install -r requirements.txt && \
    mkdir -p work && cd work && \
    git clone https://github.com/llvm/llvm-project.git && \

# Set environment variables
ENV LAB_LLVM_DIR=/root/llvm-apr-benchmark/work/llvm-project
ENV LAB_LLVM_BUILD_DIR=/root/llvm-apr-benchmark/work/llvm-build
ENV LAB_LLVM_ALIVE_TV=/root/alive2/build/alive-tv
ENV LAB_DATASET_DIR=/root/llvm-apr-benchmark/dataset
ENV LAB_FIX_DIR=/root/llvm-apr-benchmark/examples/fixes