reduce_parity: fix to work on automata with deleted edges

* spot/twaalgos/parity.cc (reduce_parity): Use the
size of the edge vector to initialize piprime1 and piprime2,
not the number of edges.
* tests/python/parity.py: Add test case, based on a report
by Yann Thierry-Mieg.
This commit is contained in:
Alexandre Duret-Lutz 2022-02-13 18:37:34 +01:00
parent 58f33deeca
commit 3f9f6029e7
3 changed files with 25 additions and 5 deletions

5
NEWS
View file

@ -57,6 +57,11 @@ New in spot 2.10.4.dev (net yet released)
- purge_dead_states() will now also remove edges labeled by false
(except self-loops).
Bugs fixed:
- reduce_parity() produced incorrect results when applied to
automata with deleted edges.
New in spot 2.10.4 (2022-02-01)
Bug fixed: