dot: quote identifiers containing a minus
* spot/twaalgos/dot.cc: Quote identifiers containing a minus. * tests/core/alternating.test: Add test case. * NEWS: Mention the bug.
This commit is contained in:
parent
166a26417c
commit
b4279d3a12
3 changed files with 64 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2016-2018, 2020-2021 Laboratoire de Recherche et
|
||||
# Copyright (C) 2016-2018, 2020-2022 Laboratoire de Recherche et
|
||||
# Développement de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -1009,3 +1009,41 @@ test '2_0_1_1_1_1_3_3' = "`autfilt --stats=$stats in`"
|
|||
|
||||
autfilt --stats='%[x]U' in 2>stderr && exit2
|
||||
grep '%\[x\]U' stderr
|
||||
|
||||
cat >in <<EOF
|
||||
HOA: v1
|
||||
States: 2
|
||||
Start: 1
|
||||
AP: 1 "a"
|
||||
acc-name: co-Buchi
|
||||
Acceptance: 1 Fin(0)
|
||||
properties: trans-labels explicit-labels trans-acc complete univ-branch
|
||||
--BODY--
|
||||
State: 0
|
||||
[t] 0
|
||||
State: 1
|
||||
[t] 0&1 {0}
|
||||
[0] 0
|
||||
--END--
|
||||
EOF
|
||||
autfilt -du in >out.dot
|
||||
# T0T-1 is not a valid name for GraphViz, it has to be quoted.
|
||||
cat >exp.dot <<EOF
|
||||
digraph "" {
|
||||
rankdir=LR
|
||||
label="Fin(0)\n[co-Büchi]"
|
||||
labelloc="t"
|
||||
node [shape="circle"]
|
||||
I [label="", style=invis, width=0]
|
||||
I -> 1
|
||||
1 [label="1"]
|
||||
1 -> -1 [label="1\n{0}", arrowhead=onormal]
|
||||
-1 [label=<>,shape=point,width=0.05,height=0.05]
|
||||
"T0T-1" [label="", style=invis, width=0]
|
||||
-1 -> "T0T-1"
|
||||
-1 -> 1
|
||||
T0T1 [label="", style=invis, width=0]
|
||||
1 -> T0T1 [label="a"]
|
||||
}
|
||||
EOF
|
||||
diff out.dot exp.dot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue