Commit ae501552 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

dotty: output label for unreachable state even if SCCs are shown

* src/tgbaalgos/dotty.cc: Fix output of unreachable states.
* src/tgbatest/readsave.test: Add test.
parent a4b6faba
......@@ -154,7 +154,7 @@ namespace spot
unsigned ns = aut_->num_states();
for (unsigned n = 0; n < ns; ++n)
{
if (!si)
if (!si || !si->reachable_state(n))
process_state(n);
for (auto& t: aut_->out(n))
process_link(t);
......
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2009, 2010, 2012, 2014 Laboratoire de Recherche et
# Développement de l'Epita (LRDE).
# Copyright (C) 2009, 2010, 2012, 2014, 2015 Laboratoire de Recherche
# et Développement de l'Epita (LRDE).
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
......@@ -284,3 +284,53 @@ cat >expected <<EOF
"!b & X(b & GFa)","!b; cycle{a & b}"
EOF
diff output expected
$autfilt --dot=vcsn >output <<EOF
HOA: v1
States: 4
Start: 2
Start: 3
AP: 2 "a" "b"
acc-name: Buchi
Acceptance: 1 Inf(0)
properties: trans-labels explicit-labels state-acc
--BODY--
State: 0 {0}
[1] 0
State: 1 {0}
[0] 1
State: 2
[1] 0
State: 3
[0] 1
--END--
EOF
cat >expected <<EOF
digraph G {
node [shape="circle"]
I [label="", style=invis, height=0]
I -> 3
subgraph cluster_0 {
label=""
1 [label="1"]
}
subgraph cluster_1 {
label=""
0 [label="0"]
}
subgraph cluster_2 {
label=""
3 [label="3"]
}
0 -> 0 [label="b\n{0}"]
1 -> 1 [label="a\n{0}"]
2 [label="2"]
2 -> 0 [label="b"]
3 -> 1 [label="a"]
3 -> 0 [label="b"]
}
EOF
diff output expected
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment