dotty: fix combination of 's' with 'n'

* src/tgbaalgos/dotty.cc: Add empty label to each cluster
if both 's' and 'n' are used.
* src/tgbatest/neverclaimread.test: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2015-01-04 16:04:07 +01:00
parent a5d52633bd
commit 403179087e
2 changed files with 9 additions and 1 deletions

View file

@ -143,6 +143,10 @@ namespace spot
for (unsigned i = 0; i < sccs; ++i)
{
os_ << " subgraph cluster_" << i << " {\n";
if (opt_name_)
// Reset the label, otherwise the graph label would
// be inherited by the cluster.
os_ << " label=\"\"\n";
for (auto s: si->states_of(i))
process_state(s);
os_ << " }\n";