dot: --dot=1 to ignore names and force numbered states
Fixes #78. * src/twaalgos/dotty.cc: Add option '1'. * src/taalgos/dotty.cc: Ignore '1'. * src/bin/dstar2tgba.cc, src/bin/common_aoutput.cc: Document it. * src/tests/readsave.test: Test it.
This commit is contained in:
parent
b1cdab6f95
commit
51309cf742
5 changed files with 36 additions and 6 deletions
|
|
@ -510,6 +510,28 @@ EOF
|
|||
$autfilt --dot=bao in >out
|
||||
diff out expected
|
||||
|
||||
cat >expected2 <<EOF
|
||||
digraph G {
|
||||
rankdir=LR
|
||||
label="Fin(⓿) | (Fin(❶) & Inf(❷)) | Fin(❸)"
|
||||
labelloc="t"
|
||||
I [label="", style=invis, width=0]
|
||||
0 [label="0"]
|
||||
1 [label="1\n⓿❸"]
|
||||
2 [label="2\n⓿❷❸"]
|
||||
3 [label="3\n❸"]
|
||||
4 [label="4\n❷❸"]
|
||||
5 [label="5\n❶❸"]
|
||||
6 [label="6\n⓿"]
|
||||
7 [label="7\n⓿❷"]
|
||||
8 [label="8\n⓿❸"]
|
||||
9 [label="9\n⓿❷❸"]
|
||||
}
|
||||
EOF
|
||||
|
||||
# This should remove the state names
|
||||
$autfilt --dot=bao1 in | grep -v '>' >out
|
||||
diff out expected2
|
||||
|
||||
# Let's pretend that this is some used supplied input, as discussed in
|
||||
# the comments of https://github.com/adl/hoaf/issues/39
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue