Skip to content
Snippets Groups Projects
Commit eea47565 authored by Andre Maroneze's avatar Andre Maroneze Committed by David Bühler
Browse files

[dev] enable passing options to creduce script

parent 0a68dfa2
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,12 @@ Note: these options must be placed _before_ all other arguments. ...@@ -70,6 +70,12 @@ Note: these options must be placed _before_ all other arguments.
input), this script will copy a template to the current directory and you input), this script will copy a template to the current directory and you
need to fill it so that creduce will work. This usage mode requires knowing need to fill it so that creduce will work. This usage mode requires knowing
how C-Reduce works. how C-Reduce works.
- If you want to pass options to the creduce/cvise executable itself, you need
to use environment variable CREDUCE_OPTIONS. For instance, if you want the
result to be \"obfuscated\" when using cvise, use option --renaming:
CREDUCE_OPTIONS=\"--renaming\" frama-c-script creduce <file> <Frama-C options>
" "
#### Command-line and environment validation #### Command-line and environment validation
...@@ -292,7 +298,7 @@ if [ $? -ne 0 ]; then ...@@ -292,7 +298,7 @@ if [ $? -ne 0 ]; then
fi fi
set -e set -e
"$CREDUCE" script_for_creduce.sh "$base" "$CREDUCE" $CREDUCE_OPTIONS script_for_creduce.sh "$base"
echo "Finished reducing file: $dir_for_reduction/$base" echo "Finished reducing file: $dir_for_reduction/$base"
echo "Remember to remove 'script_for_creduce.sh' after you are done." echo "Remember to remove 'script_for_creduce.sh' after you are done."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment