* src/tgbaalgos/isdet.cc: Simplify determinism check. * src/tgbaalgos/isdet.hh, src/tgbaalgos/isdet.cc (is_complete): New function. * src/tgbaalgos/stats.cc, src/tgbaalgos/stats.hh, src/bin/dstar2tgba.cc src/bin/ltl2tgba.cc: Add escape sequence %p to the possible statistics to show whether an automaton is complete. * src/tgbatest/nondet.test: Add a couple more tests.
42 lines
1.1 KiB
Bash
Executable file
42 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
# -*- coding: utf-8 -*-
|
|
# Copyright (C) 2012, 2013 Laboratoire de Recherche et Développement
|
|
# de l'Epita (LRDE).
|
|
#
|
|
# 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 3 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
. ./defs
|
|
set -e
|
|
|
|
cat >expected.1<<EOF
|
|
FGa, 0 0
|
|
GFa, 1 1
|
|
a U b, 1 0
|
|
G(Fa | !r) | Fx, 0 1
|
|
EOF
|
|
|
|
cut -d, -f1 expected.1 |
|
|
../../bin/ltl2tgba -F- --stats='%f, %d %p' >out.1
|
|
|
|
diff out.1 expected.1
|
|
|
|
../../bin/ltl2tgba FGa GFa --stats='%f %d %n %s' >out.2
|
|
cat >expected.2<<EOF
|
|
FGa 0 1 2
|
|
GFa 1 0 1
|
|
EOF
|
|
|
|
diff out.2 expected.2
|