forked from aJanker/TypeChef-Sampling-Busybox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eval.sh
executable file
·33 lines (27 loc) · 910 Bytes
/
eval.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
#!/bin/bash
path=$(cd "$(dirname "$0")"; pwd)
filesToProcess() {
local listFile=casestudy/busybox_files
cat $listFile
}
flags=" --bdd \
--study busybox --reuseAST --refEval inline --refLink $path/CLinking.interface \
-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"
filesToProcess|while read i; do
echo "Analysing $path/busybox-1.18.5/$i.c"
echo "With settings: $flags"
../Morpheus/morpheus.sh $path/busybox-1.18.5/$i.c $flags
echo "Verifiying $path/result/$i"
busybox-1.18.5/verify.sh $path/result/$i.c
done