twagraph: fix merge_edges() ignoring the first edge

This fixes #441, reported by Jérôme Dubois.

* tests/python/mergedge.py: New file.
* tests/Makefile.am: Add it.
* spot/twa/twagraph.cc (merge_edges): Fix initialization of second
loop.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2020-11-24 15:55:36 +01:00
parent c5c8e8c516
commit 30b165d821
4 changed files with 35 additions and 2 deletions

5
NEWS
View file

@ -1,6 +1,9 @@
New in spot 2.9.5.dev (not yet released)
Nothing yet.
Bugs fixed:
- twa_graph::merge_edges() could fail to merge two transitions if the
destination transition was the first of the automaton. (Issue #441)
New in spot 2.9.5 (2020-11-19)