Skip to content

Commit 50dd2a2

Browse files
committed
Allow specify cbmc args in goto-synthesizer regression tests
1 parent f868847 commit 50dd2a2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

regression/goto-synthesizer/chain.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,20 @@ name=${*:$#}
1212
name=${name%.c}
1313

1414
args=${*:6:$#-6}
15-
if [[ "$args" != *" _ "* ]]
16-
then
15+
if [[ "$args" != *" _ "* ]]; then
1716
args_inst=$args
1817
args_synthesizer=""
18+
args_cbmc=""
1919
else
2020
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
2229
fi
2330

2431
if [[ "${is_windows}" == "true" ]]; then
@@ -50,5 +57,5 @@ if echo $args_synthesizer | grep -q -- "--dump-loop-contracts" ; then
5057
else
5158
$goto_synthesizer ${args_synthesizer} "${name}-mod.gb" "${name}-mod-2.gb"
5259
echo "Running CBMC: "
53-
$cbmc "${name}-mod-2.gb"
60+
$cbmc ${args_cbmc} "${name}-mod-2.gb"
5461
fi

0 commit comments

Comments
 (0)