Fix bugs in minimize().

* src/tgbaalgos/minimize.cc (init_sets, minimize): Fix memory
leaks and a usage of the wrong automaton.
* src/tgbatest/wdba.test: Try using -Rm with -R3 or -R3b, and with
valgrind.  This caught all the bugs fixed above.
This commit is contained in:
Alexandre Duret-Lutz 2010-11-25 12:58:33 +01:00
parent 72139fd760
commit 7d8a5310e4
3 changed files with 44 additions and 4 deletions

View file

@ -87,6 +87,11 @@ EOF
success=:
while read f; do
# Run ltl2tgba through valgrind with some combination of options to
# detect any crash
run 0 ../ltl2tgba -f -R3 -DS -Rm "!($f)" >/dev/null
run 0 ../ltl2tgba -l -R3b -DS -Rm "!($f)" >/dev/null
# If the labels of the state have only digits, assume the minimization
# worked.
x=`../ltl2tgba -f -Rm "!($f)" |
@ -102,6 +107,11 @@ done < obligations.txt
echo ====
while read f; do
# Run ltl2tgba through valgrind with some combination of options to
# detect any crash
run 0 ../ltl2tgba -f -R3 -DS -Rm "!($f)" >/dev/null
run 0 ../ltl2tgba -l -R3b -DS -Rm "!($f)" >/dev/null
# If the labels of the state have only digits, assume the minimization
# worked.
x=`../ltl2tgba -f -Rm "!($f)" |