Skip to content

Commit

Permalink
Renamed no-malloc-fail to no-malloc-may-fail to mirror malloc-may-fai…
Browse files Browse the repository at this point in the history
…l on tests runners
  • Loading branch information
Enrico Steffinlongo committed Dec 19, 2023
1 parent c63610b commit c3c7bc0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion regression/contracts-dfcc/chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else
fi

if [[ "${args_inst}" != *"malloc"* ]]; then
args_inst="--no-malloc-fail $args_inst"
args_inst="--no-malloc-may-fail $args_inst"
fi

rm -f "${name}${dfcc_suffix}-mod.gb"
Expand Down
4 changes: 2 additions & 2 deletions regression/goto-instrument/chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ else
fi

rm -f "${target}-mod.gb"
$goto_instrument --no-malloc-fail ${args} "${target}.gb" "${target}-mod.gb"
$goto_instrument --no-malloc-may-fail ${args} "${target}.gb" "${target}-mod.gb"
if [ ! -e "${target}-mod.gb" ] ; then
cp "${target}.gb" "${target}-mod.gb"
elif echo $args | grep -q -- "--dump-c-type-header" ; then
Expand All @@ -39,5 +39,5 @@ elif echo $args | grep -q -- "--dump-c" ; then

rm "${target}-mod.c"
fi
$goto_instrument --no-malloc-fail --show-goto-functions "${target}-mod.gb"
$goto_instrument --no-malloc-may-fail --show-goto-functions "${target}-mod.gb"
$cbmc --no-standard-checks "${target}-mod.gb"
6 changes: 3 additions & 3 deletions regression/goto-synthesizer/chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fi
rm -f "${name}-mod.gb"
rm -f "${name}-mod-2.gb"
echo "Running goto-instrument: "
$goto_instrument --no-malloc-fail ${args_inst} "${name}.gb" "${name}-mod.gb"
$goto_instrument --no-malloc-may-fail ${args_inst} "${name}.gb" "${name}-mod.gb"
if [ ! -e "${name}-mod.gb" ] ; then
cp "$name.gb" "${name}-mod.gb"
elif echo $args_inst | grep -q -- "--dump-c" ; then
Expand All @@ -53,9 +53,9 @@ elif echo $args_inst | grep -q -- "--dump-c" ; then
fi
echo "Running goto-synthesizer: "
if echo $args_synthesizer | grep -q -- "--dump-loop-contracts" ; then
$goto_synthesizer ${args_synthesizer} --no-malloc-fail "${name}-mod.gb"
$goto_synthesizer ${args_synthesizer} --no-malloc-may-fail "${name}-mod.gb"
else
$goto_synthesizer ${args_synthesizer} --no-malloc-fail "${name}-mod.gb" "${name}-mod-2.gb"
$goto_synthesizer ${args_synthesizer} --no-malloc-may-fail "${name}-mod.gb" "${name}-mod-2.gb"
echo "Running CBMC: "
$cbmc --no-standard-checks ${args_cbmc} "${name}-mod-2.gb"
fi

0 comments on commit c3c7bc0

Please sign in to comment.