remfin: add is_buchi_realizable() method

* NEWS: Update.
* spot/tl/hierarchy.cc: Replace rabin_to_buchi_maybe() with
is_buchi_realizable().
* spot/twaalgos/remfin.cc: Implement it.
* spot/twaalgos/remfin.hh: Declare it.
This commit is contained in:
Alexandre GBAGUIDI AISSE 2017-09-21 16:42:28 +01:00
parent 1b4002401a
commit ebe3a15dcc
4 changed files with 45 additions and 9 deletions

View file

@ -67,17 +67,16 @@ namespace spot
p.set_type(spot::postprocessor::Generic);
p.set_pref(spot::postprocessor::Deterministic);
p.set_level(spot::postprocessor::Low);
auto dra = p.run(aut);
if (dra->acc().is_generalized_buchi())
auto dpa = p.run(aut);
if (dpa->acc().is_generalized_buchi())
{
assert(is_deterministic(dra));
assert(is_deterministic(dpa));
return true;
}
else
{
auto ba = rabin_to_buchi_maybe(to_generalized_rabin(dra));
assert(ba);
return is_deterministic(ba);
auto dra = to_generalized_rabin(dpa);
return rabin_is_buchi_realizable(dra);
}
}
}