-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrunVAA.sh
executable file
·30 lines (25 loc) · 901 Bytes
/
runVAA.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=$(pwd)
filesToProcess() {
local listFile=casestudy/busybox_files
cat $listFile
}
flags=" --bdd --serializeAST \
-A cfginnonvoidfunction -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 \
--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"
../TypeChef-VAA/typechef.sh $path/busybox-1.18.5/$i.c $flags
done