-
Notifications
You must be signed in to change notification settings - Fork 13
/
env.sh
35 lines (26 loc) · 906 Bytes
/
env.sh
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
#!/bin/bash
# Get the current working directory and store it in PROJECTHOME
PROJECTHOME=$(pwd)
# Detect the operating system type and store it in sysOS
sysOS=`uname -s`
# Set the major version of LLVM
MajorLLVMVer=16
# Define the full LLVM version
LLVMVer=${MajorLLVMVer}.0.0
# Set the home directories for LLVM and Z3
LLVMHome="llvm-${LLVMVer}.obj"
Z3Home="z3.obj"
# Change this to your SVF root directory
svf_root=`pwd`/../SVF
# Export the paths for the LLVM, Z3, and SVF directories
export LLVM_DIR=$svf_root/$LLVMHome
export Z3_DIR=$svf_root/$Z3Home
export SVF_DIR=$svf_root
# Update the PATH to include the binary directories for SVF, LLVM, and the project
export PATH=$SVF_DIR/Release-build/bin:$PATH
export PATH=$LLVM_DIR/bin:$PATH
export PATH=$PROJECTHOME/bin:$PATH
# Print the paths to the terminal for verification
echo "SVF_DIR="$SVF_DIR
echo "LLVM_DIR="$LLVM_DIR
echo "Z3_DIR="$Z3_DIR