Add a is_weak_scc() function based on cycle enumeration.

* src/tgbaalgos/isweakscc.cc, src/tgbaalgos/isweakscc.hh: New files.
* src/tgbaalgos/Makefile.am: Add them.
* src/tgbatest/ltl2tgba.cc: Add a -KW option.
* src/tgbatest/cycles.test: Test it on a small example.
This commit is contained in:
Alexandre Duret-Lutz 2012-09-20 18:05:34 +02:00
parent 374a489e3f
commit 420fcd62e4
5 changed files with 158 additions and 0 deletions

View file

@ -60,3 +60,9 @@ echo "s$x,s$w,,;"
run 0 ../ltl2tgba -KC -X johnson-fig1.tgba > out
test `wc -l < out` -eq 10
run 0 ../ltl2tgba -KW '(Ga -> Gb) W c' > out
test `grep 'is weak' out | wc -l` -eq 4
test `grep 'is not weak' out | wc -l` -eq 1