isdet: simplify is_deterministic(), add is_complete().
* 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.
This commit is contained in:
parent
bcd794c608
commit
4dd8d80292
8 changed files with 84 additions and 30 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2012 Laboratoire de Recherche et Développement
|
||||
# Copyright (C) 2012, 2013 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -21,13 +21,17 @@
|
|||
. ./defs
|
||||
set -e
|
||||
|
||||
../../bin/ltl2tgba FGa GFa --stats='%f %d' >out.1
|
||||
cat >expected.1<<EOF
|
||||
FGa 0
|
||||
GFa 1
|
||||
FGa, 0 0
|
||||
GFa, 1 1
|
||||
a U b, 1 0
|
||||
G(Fa | !r) | Fx, 0 1
|
||||
EOF
|
||||
|
||||
cmp out.1 expected.1
|
||||
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
|
||||
|
|
@ -35,4 +39,4 @@ FGa 0 1 2
|
|||
GFa 1 0 1
|
||||
EOF
|
||||
|
||||
cmp out.2 expected.2
|
||||
diff out.2 expected.2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue