to_dca/to_nca: fix handling of co-Büchi input
* spot/twaalgos/cobuchi.cc (to_dca, to_nca): Do not process the input if it is already co-Büchi. * tests/core/dca.test: Test this. * NEWS: Mention the bug.
This commit is contained in:
parent
fc205c1883
commit
7957a231a1
3 changed files with 36 additions and 2 deletions
|
|
@ -338,6 +338,9 @@ namespace spot
|
|||
twa_graph_ptr
|
||||
to_nca(const_twa_graph_ptr aut, bool named_states)
|
||||
{
|
||||
if (aut->acc().is_co_buchi())
|
||||
return make_twa_graph(aut, twa::prop_set::all());
|
||||
|
||||
if (auto weak = weak_to_cobuchi(aut))
|
||||
return weak;
|
||||
|
||||
|
|
@ -684,8 +687,12 @@ namespace spot
|
|||
to_dca(const_twa_graph_ptr aut, bool named_states)
|
||||
{
|
||||
if (is_deterministic(aut))
|
||||
if (auto weak = weak_to_cobuchi(aut))
|
||||
return weak;
|
||||
{
|
||||
if (aut->acc().is_co_buchi())
|
||||
return make_twa_graph(aut, twa::prop_set::all());
|
||||
if (auto weak = weak_to_cobuchi(aut))
|
||||
return weak;
|
||||
}
|
||||
|
||||
const acc_cond::acc_code& code = aut->get_acceptance();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue