File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
regression/goto-instrument Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,15 @@ is_windows=$4
10
10
sources=${*: $# }
11
11
args=${*: 5: $# -5}
12
12
13
+ if [[ " $args " != * " _ " * ]]
14
+ then
15
+ args_inst=$args
16
+ args_cbmc=" "
17
+ else
18
+ args_inst=" ${args%% " _ " * } "
19
+ args_cbmc=" ${args#* " _ " } "
20
+ fi
21
+
13
22
set -- $sources
14
23
target=${*: $# }
15
24
target=${target% .c}
21
30
fi
22
31
23
32
rm -f " ${target} -mod.gb"
24
- $goto_instrument --no-malloc-may-fail ${args } " ${target} .gb" " ${target} -mod.gb"
33
+ $goto_instrument ${args_inst } " ${target} .gb" " ${target} -mod.gb"
25
34
if [ ! -e " ${target} -mod.gb" ] ; then
26
35
cp " ${target} .gb" " ${target} -mod.gb"
27
36
elif echo $args | grep -q -- " --dump-c-type-header" ; then
@@ -39,5 +48,5 @@ elif echo $args | grep -q -- "--dump-c" ; then
39
48
40
49
rm " ${target} -mod.c"
41
50
fi
42
- $goto_instrument --no-malloc-may-fail -- show-goto-functions " ${target} -mod.gb"
43
- $cbmc --no-standard-checks " ${target} -mod.gb"
51
+ $goto_instrument --show-goto-functions " ${target} -mod.gb"
52
+ $cbmc ${args_cbmc} " ${target} -mod.gb"
You can’t perform that action at this time.
0 commit comments