remove_fin: never return acceptance "f"

Fixes #333.

* spot/twaalgos/remfin.cc, spot/twaalgos/remfin.hh,
spot/twaalgos/totgba.cc: Adjust.  The assert() added
to remove_fin() triggered a lot of failure in the test
suite before the different functions were fixed.
* tests/core/remfin.test, tests/python/tra2tba.py:
Adjust expected result.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2018-03-16 13:52:39 +01:00
parent f2b3653226
commit 1db3472a99
6 changed files with 64 additions and 14 deletions

View file

@ -48,12 +48,16 @@ namespace spot
rabin_to_buchi_maybe(const const_twa_graph_ptr& aut);
/// \ingroup twa_acc_transform
/// \brief Rewrite an automaton without Fin acceptance.
/// \brief Rewrite an automaton without Fin or f acceptance.
///
/// This algorithm dispatches between many strategies. It has
/// dedicated algorithms for weak automata, automata with Rabin-like
/// acceptance, automata with Streett-like acceptance, and some
/// generic code that will work on any kind of acceptance condition.
///
/// In Spot "f" acceptance is not considered Fin-less, because
/// it can be seen as a case of generalized co-Büchi with 0 sets.
/// Just like "t" corresponds generalized Büchi with 0 sets.)
SPOT_API twa_graph_ptr
remove_fin(const const_twa_graph_ptr& aut);
}