rename cleanup_acceptance() as cleanup_acceptance_here()

And add a cleanup_acceptance() version that copies.

* src/tgbaalgos/cleanacc.cc, src/tgbaalgos/cleanacc.hh: Rename
and add the second version.
* src/bin/autfilt.cc, src/bin/ltlcross.cc,
src/tgbaalgos/dtgbacomp.cc, src/tgbaalgos/remfin.cc: Use
cleanup_acceptance_here.
This commit is contained in:
Alexandre Duret-Lutz 2015-03-31 10:44:53 +02:00
parent c5ecd09fb6
commit df981a0676
6 changed files with 22 additions and 11 deletions

View file

@ -173,8 +173,7 @@ namespace spot
{
// Simply complete the automaton, and complement its
// acceptance.
auto res = tgba_complete(aut);
cleanup_acceptance(res);
auto res = cleanup_acceptance_here(tgba_complete(aut));
res->set_acceptance(res->acc().num_sets(),
res->get_acceptance().complement());
return res;