twa: fix duplicate propositions in ap()

Calling register_ap() with same atomic proposition several time, for
instance via copy_ap() in a product, would create duplicate atomic
propositions.  This fix will be exercised by the next patch.

* spot/twa/twa.hh: Here.
* spot/twaalgos/compsusp.cc, spot/twaalgos/ltl2taa.cc: Fix
to correctly register atomic propositions.
* NEWS: Mention it.
This commit is contained in:
Alexandre Duret-Lutz 2015-12-24 11:02:27 +01:00
parent fbf5ac0ea7
commit ad37cacbc0
4 changed files with 24 additions and 7 deletions

3
NEWS
View file

@ -71,6 +71,9 @@ New in spot 1.99.6a (not yet released)
Bug fixes:
* twa::ap() would contain duplicates when an atomic proposition
was registered several times.
New in spot 1.99.6 (2015-12-04)
Command-line tools: