-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbdd.sh
executable file
·31 lines (25 loc) · 935 Bytes
/
bdd.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
#!/bin/bash
path=$(cd "$(dirname "$0")"; pwd)
filesToProcess() {
local listFile=casestudy/busybox_files
cat $listFile
}
flags=" --bdd \
-A doublefree -A xfree -A uninitializedmemory -A casetermination -A danglingswitchcode -A checkstdlibfuncreturn -A deadstore -A interactiondegree \
-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 --simplifyFM $path/casestudy/busybox.model \
--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"
timeout 3h ../TypeChef/typechef.sh $path/busybox-1.18.5/$i.c $flags
done