game: fix handling of useless SCCs

This is a bug I introduced while merging Philipp's patch.

* spot/misc/game.cc (parity_game::solve): Set the strategy for player
0 in useless SCCs.
(parity_game::fix_scc): Do not use sub_game_ to detect edges exiting
the SCC.
* tests/python/game.py: New file.
* tests/Makefile.am: Add it.
This commit is contained in:
Alexandre Duret-Lutz 2020-09-24 12:18:14 +02:00
parent 2f819e5034
commit 392c1a0ec3
3 changed files with 77 additions and 13 deletions

View file

@ -393,6 +393,7 @@ TESTS_python = \
python/dualize.py \
python/ecfalse.py \
python/except.py \
python/game.py \
python/gen.py \
python/genem.py \
python/implies.py \