share/analysis-scripts/script_for_creduce_fatal.sh
raw| 1 | #!/bin/bash -e |
| 2 | |
| 3 | # Script to reduce a Frama-C crashing test case. |
| 4 | |
| 5 | # This script requires no modification. |
| 6 | # Names between '@'s will be replaced by creduce.sh. |
| 7 | |
| 8 | set +e |
| 9 | "@FRAMAC@" "@BASE@" @FCFLAGS@ |
| 10 | retcode=$? |
| 11 | # see cmdline.ml for the different exit codes returned by Frama-C |
| 12 | if [ $retcode -eq 125 -o $retcode -eq 4 ]; then |
| 13 | exit 0 |
| 14 | else |
| 15 | exit 1 |
| 16 | fi |
| 17 | set -e |