Add TA minimization: merge bisimulating states

* src/taalgos/minimize.hh, src/taalgos/minimize.cc: implements a
minimization of TA by merging bisimular states.
* src/taalgos/statessetbuilder.hh, src/taalgos/statessetbuilder.cc:
returns the set of reachable states of a TA (used in minimize.cc).
* src/taalgos/Makefile.am: add them.
* src/tgbatest/ltl2tgba.cc: add commands to test TA minimization
This commit is contained in:
Ala Eddine 2011-03-08 15:06:56 +01:00 committed by Alexandre Duret-Lutz
parent 81e80e6069
commit cd04d9acf3
6 changed files with 605 additions and 3 deletions

View file

@ -0,0 +1,35 @@
// Copyright (C) 2010 Laboratoire de Recherche et Développement
// 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_TAALGOS_STATESSETBUILDER_HH
# define SPOT_TAALGOS_STATESSETBUILDER_HH
#include "ta/ta.hh"
namespace spot
{
/// \brief Compute states set for an automaton.
std::set<const state*> get_states_set(const ta* t);
/// @}
}
#endif // SPOT_TAALGOS_STATESSETBUILDER_HH