bin: --dot=s display SCCs

* src/tgbaalgos/dotty.cc: Add option 's' to display SCCs.
* src/bin/dstar2tgba.cc, src/bin/common_aoutput.cc: Document it.
* src/tgbatest/neverclaimread.test: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2015-01-03 14:01:40 +01:00
parent 5b723bf8c0
commit b048f65dd8
4 changed files with 36 additions and 10 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2010, 2011, 2012, 2013, 2014 Laboratoire de Recherche
# et Développement de l'Epita (LRDE).
# Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 Laboratoire de
# Recherche et Développement de l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
#
@ -322,16 +322,21 @@ accept_all:
skip
}
EOF
../../bin/autfilt --dot <input >stdout 2>stderr && exit 1
../../bin/autfilt --dot=sc <input >stdout 2>stderr && exit 1
cat >expected <<EOF
digraph G {
rankdir=LR
node [shape="circle"]
I [label="", style=invis, width=0]
I -> 0
subgraph cluster_0 {
1 [label="1", peripheries=2]
}
subgraph cluster_1 {
0 [label="0"]
}
0 -> 1 [label="b"]
0 -> 0 [label="0"]
1 [label="1", peripheries=2]
1 -> 1 [label="1"]
}
EOF