postproc: Add option to output Complete automata.
* src/tgbaalgos/postproc.cc, src/tgbaalgos/postproc.hh: Tweak set_pref() to also accept Any|Complete, Small|Complete, or Deterministic|Complete. * src/bin/common_post.hh, src/bin/common_post.cc: Add option --complete and set comp. * src/bin/dstar2tgba.cc, src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc: Pass comp to set_pref(). * src/tgbaalgos/complete.cc: Preserve state-based acceptance. * src/tgbatest/dstar.test, src/tgbatest/ltlcross2.test, src/tgbatest/nondet.test: Augment tests. * doc/org/dstar2tgba.org, doc/org/ltl2tgba.org, NEWS: Document.
This commit is contained in:
parent
b31facffb1
commit
1ab46b0864
14 changed files with 139 additions and 49 deletions
|
|
@ -30,13 +30,34 @@ 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
|
||||
FGa, 0 1
|
||||
GFa, 1 1
|
||||
a U b, 1 1
|
||||
G(Fa | !r) | Fx, 0 1
|
||||
EOF
|
||||
|
||||
cut -d, -f1 expected.2 |
|
||||
../../bin/ltl2tgba -C -F- --stats='%f, %d %p' >out.2
|
||||
diff out.2 expected.2
|
||||
|
||||
|
||||
../../bin/ltl2tgba FGa GFa --stats='%f %d %n %s %p' >out.3
|
||||
cat >expected.3<<EOF
|
||||
FGa 0 1 2 0
|
||||
GFa 1 0 1 1
|
||||
EOF
|
||||
|
||||
diff out.3 expected.3
|
||||
|
||||
|
||||
../../bin/ltl2tgba -DC FGa GFa --stats='%f %d %n %s %p' >out.4
|
||||
cat >expected.4<<EOF
|
||||
FGa 0 1 3 1
|
||||
GFa 1 0 1 1
|
||||
EOF
|
||||
|
||||
diff out.4 expected.4
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue