File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
regression/goto-synthesizer Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,20 @@ name=${*:$#}
12
12
name=${name% .c}
13
13
14
14
args=${*: 6: $# -6}
15
- if [[ " $args " != * " _ " * ]]
16
- then
15
+ if [[ " $args " != * " _ " * ]]; then
17
16
args_inst=$args
18
17
args_synthesizer=" "
18
+ args_cbmc=" "
19
19
else
20
20
args_inst=" ${args%% " _ " * } "
21
- args_synthesizer=" ${args#* " _ " } "
21
+ args=${args#* " _ " }
22
+ if [[ " $args " != * " _ " * ]]; then
23
+ args_synthesizer=$args
24
+ args_cbmc=" "
25
+ else
26
+ args_synthesizer=" ${args%% " _ " * } "
27
+ args_cbmc=" ${args#* " _ " } "
28
+ fi
22
29
fi
23
30
24
31
if [[ " ${is_windows} " == " true" ]]; then
@@ -50,5 +57,5 @@ if echo $args_synthesizer | grep -q -- "--dump-loop-contracts" ; then
50
57
else
51
58
$goto_synthesizer ${args_synthesizer} " ${name} -mod.gb" " ${name} -mod-2.gb"
52
59
echo " Running CBMC: "
53
- $cbmc " ${name} -mod-2.gb"
60
+ $cbmc ${args_cbmc} " ${name} -mod-2.gb"
54
61
fi
You can’t perform that action at this time.
0 commit comments