dupexp.hh 2.33 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
# include "tgba/tgbagraph.hh"
27
28
29

namespace spot
{
30
  /// \ingroup tgba_misc
31
  /// \brief Build an explicit automaton from all states of \a aut,
32
  /// numbering states in bread first order as they are processed.
33
  SPOT_API tgba_digraph*
34
  tgba_dupexp_bfs(const tgba* aut);
35
  /// \ingroup tgba_misc
36
  /// \brief Build an explicit automaton from all states of \a aut,
37
  /// numbering states in depth first order as they are processed.
38
  SPOT_API tgba_digraph*
39
  tgba_dupexp_dfs(const tgba* aut);
Thomas Badie's avatar
Thomas Badie committed
40

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

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

60
#endif // SPOT_TGBAALGOS_DUPEXP_HH