dupexp.hh 2.52 KB
Newer Older
1
// -*- coding: utf-8 -*-
2
3
// Copyright (C) 2012, 2013, 2014 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
4
5
6
// Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris
// 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
// Université Pierre et Marie Curie.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
7
8
9
10
11
//
// 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
12
// the Free Software Foundation; either version 3 of the License, or
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
13
14
15
16
17
18
19
20
// (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
21
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
22

23
24
#ifndef SPOT_TGBAALGOS_DUPEXP_HH
# define SPOT_TGBAALGOS_DUPEXP_HH
25

26
27
28
29
# include "misc/common.hh"
# include "tgba/fwd.hh"
# include "tgba/tgba.hh"
# include <vector>
30
31
32

namespace spot
{
33
  /// \ingroup tgba_misc
34
  /// \brief Build an explicit automaton from all states of \a aut,
35
  /// numbering states in bread first order as they are processed.
36
  SPOT_API tgba_digraph_ptr
37
  tgba_dupexp_bfs(const const_tgba_ptr& aut, tgba::prop_set p);
38
  /// \ingroup tgba_misc
39
  /// \brief Build an explicit automaton from all states of \a aut,
40
  /// numbering states in depth first order as they are processed.
41
  SPOT_API tgba_digraph_ptr
42
  tgba_dupexp_dfs(const const_tgba_ptr& aut, tgba::prop_set p);
Thomas Badie's avatar
Thomas Badie committed
43

44
  /// \ingroup tgba_misc
45
  /// \brief Build an explicit automaton from all states of \a aut,
Thomas Badie's avatar
Thomas Badie committed
46
  /// numbering states in bread first order as they are processed.
47
48
49
  /// \a aut the automaton to duplicate
  /// \a relation a map of all the new states (represented by
  /// their number) to the old states.
50
  SPOT_API tgba_digraph_ptr
51
  tgba_dupexp_bfs(const const_tgba_ptr& aut, tgba::prop_set p,
52
		  std::vector<const state*>& relation);
53

54
  /// \ingroup tgba_misc
Thomas Badie's avatar
Thomas Badie committed
55
56
  /// \brief Build an explicit automata from all states of \a aut,
  /// numbering states in depth first order as they are processed.
57
58
59
  /// \a aut the automaton to duplicate
  /// \a relation a map of all the new states (represented by
  /// their number) to the old states.
60
  SPOT_API tgba_digraph_ptr
61
  tgba_dupexp_dfs(const const_tgba_ptr& aut, tgba::prop_set p,
62
		  std::vector<const state*>& relation);
63
64
}

65
#endif // SPOT_TGBAALGOS_DUPEXP_HH