Quick implementation of a "useless SCC" filter using scc_map.

* src/tgbaalgos/sccfilter.hh, src/tgbaalgos/sccfilter.cc: New
files.
* src/tgbaalgos/Makefile.am: Add them.
This commit is contained in:
Alexandre Duret-Lutz 2009-11-18 15:36:35 +01:00
parent 99981153e6
commit 74f620d192
4 changed files with 145 additions and 0 deletions

View file

@ -0,0 +1,34 @@
// Copyright (C) 2009 Laboratoire de Recherche et Developpement de
// l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// Spot is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
// License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Spot; see the file COPYING. If not, write to the Free
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
#ifndef SPOT_TGBAALGOS_SCCFILTER_HH
# define SPOT_TGBAALGOS_SCCFILTER_HH
#include "tgba/tgba.hh"
namespace spot
{
// Prune unaccepting SCCs and remove superfluous acceptance conditions.
tgba* scc_filter(const tgba* aut);
}
#endif // SPOT_TGBAALGOS_SCC_HH