-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbdd_sampling.sh
executable file
·49 lines (42 loc) · 1.44 KB
/
bdd_sampling.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
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#SBATCH -D /scratch/janker/busybox/Morpheus-BusyBoxEvaluation
#SBATCH --job-name=typechef
#SBATCH -p chimaira
#SBATCH -A spl
#SBATCH --get-user-env
#SBATCH -n 1
#SBATCH -c 2
#SBATCH --mail-type=FAIL
#SBATCH [email protected]
#SBATCH --mem_bind=local
#SBATCH --output=/dev/null
#SBATCH --error=/dev/null
#SBATCH --time=12:00:00
#SBATCH --array=0-516
#SBATCH --exclude=chimaira17
path=$(pwd)
#path=$(echo $path | sed s/scratch/local/g)
filesToProcess() {
local listFile=casestudy/busybox_files
cat $listFile
}
flags=" --bdd --reuseAST \
-x CONFIG_ \
-c $path/casestudy/redhat.properties \
--include $path/casestudy/config.h \
-I $path/busybox-1.18.5/include \
--featureModelDimacs $path/casestudy/BB_fm.dimacs \
--recordTiming --parserstatistics --lexNoStdout \
-U HAVE_LIBDMALLOC \
-DCONFIG_FIND \
-U CONFIG_FEATURE_WGET_LONG_OPTIONS \
-U ENABLE_NC_110_COMPAT \
-U CONFIG_EXTRA_COMPAT \
-D_GNU_SOURCE"
configId=${SLURM_ARRAY_TASK_ID}
i=`cat casestudy/busybox_files | head -n $((configId + 1)) | tail -n1`
echo "Analysing $path/busybox-1.18.5/$i.c"
echo "With settings: $flags"
./sampling.sh $path/busybox-1.18.5/$i.c $flags
#sbatch -p chimaira -A spl -n 1 -c 2 --time=06:00:00 --mem_bind=local --output=/dev/null --error=/dev/null /home/janker/clusterScripts/bb_sampling.sh $path/busybox-1.18.5/$i.c $flags
# timeout 3h ../TypeChef/typechef.sh $path/busybox-1.18.5/$i.c $flags