* src/tgbatest/reductgba.test, src/tgba/tgbareduc.cc:

There is bug in reduction with scc.
* src/tgbatest/reduccmp.test: More test.

* src/tgbatest/reductgba.test: Wrong test are removed.
This commit is contained in:
martinez 2004-06-21 12:15:19 +00:00
parent f680eb0d80
commit 6d5593ae48
4 changed files with 116 additions and 37 deletions

54
src/tgbatest/reduccmp.test Executable file
View file

@ -0,0 +1,54 @@
#!/bin/sh
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
# This file is part of Spot, a model checking library.
#
# Spot is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Spot is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Spot; see the file COPYING. If not, write to the Free
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./defs
# FIXME
exit 0
set -e
cat >input <<EOF
acc = c;
s1, "s2", "a", c;
"s2", "s3", "a",;
"3", s2, "a",;
EOF
run 0 ./reduccmp 0 input
run 0 ./reduccmp 0 input > stdout
cat >expected <<EOF
digraph G {
0 [label="", style=invis, height=0]
0 -> 1
1 [label="s1, SCC -1"]
}
EOF
# Sort out some possible inversions in the output.
# (The order is not guaranteed by SPOT.)
sed 's/!b & a/a \& !b/g' stdout > tmp_ && mv tmp_ stdout
diff stdout expected
#rm input stdout expected