twa: do not set prop_state_acc in set_acceptance
Reported by Juraj Major. * spot/twa/twa.hh: check num_sets() in prop_state_acc() so we do not have to set it in set_acceptance(), causing trouble if set_acceptance() is called multiple times. * tests/python/setacc.py: New test case. * tests/Makefile.am: Add it. * THANKS: Add Juraj. * NEWS: Mention the bug.
This commit is contained in:
parent
a70589fe13
commit
dd706d7847
5 changed files with 34 additions and 7 deletions
4
NEWS
4
NEWS
|
|
@ -66,6 +66,10 @@ New in spot 2.1.2.dev (not yet released)
|
|||
* remove_fin() could produce incorrect result on incomplete
|
||||
automata tagged as weak and deterministic.
|
||||
|
||||
* calling set_acceptance() several time on an automaton could result
|
||||
in unexpected behaviors, because set_acceptance(0,...) used to
|
||||
set the state-based acceptance flag automatically.
|
||||
|
||||
New in spot 2.1.2 (2016-10-14)
|
||||
|
||||
Command-line tools:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue