autfilt: add a --sbacc option

... to force automata into state-based acceptance.

* src/tgbaalgos/sbacc.cc, src/tgbaalgos/sbacc.hh,
src/tgbatest/sbacc.test: New files.
* src/tgbaalgos/Makefile.am, src/tgbatest/Makefile.am: Add
them.
* src/tgba/tgbagraph.hh (copy_acceptance_conditions_of):
Call set_acceptance_conditions().
* src/bin/autfilt.cc: Add option --sbacc.
This commit is contained in:
Alexandre Duret-Lutz 2015-02-03 20:53:29 +01:00
parent cbee5c1a3f
commit acb67c1bf6
7 changed files with 238 additions and 4 deletions

View file

@ -1,6 +1,6 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2014 Laboratoire de Recherche et Développement de
// l'Epita.
// Copyright (C) 2014, 2015 Laboratoire de Recherche et Développement
// de l'Epita.
//
// This file is part of Spot, a model checking library.
//
@ -429,8 +429,7 @@ namespace spot
/// \brief Copy the acceptance conditions of another tgba.
void copy_acceptance_conditions_of(const const_tgba_ptr& a)
{
assert(acc_.num_sets() == 0);
acc_.add_sets(a->acc().num_sets());
set_acceptance_conditions(a->acc().num_sets());
}
void copy_ap_of(const const_tgba_ptr& a)