status.hh 1.9 KB
Newer Older
1
2
3
// -*- coding: utf-8 -*-
// Copyright (C) 2013 Laboratoire de Recherche et Développement de
// l'Epita (LRDE).
4
// Copyright (C) 2004  Laboratoire d'Informatique de Paris 6 (LIP6),
5
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
6
7
8
9
10
11
// et Marie Curie.
//
// 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
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/>.
22
23
24
25
26
27
28

#ifndef SPOT_TGBAALGOS_GTEC_STATUS_HH
# define SPOT_TGBAALGOS_GTEC_STATUS_HH

#include "sccstack.hh"
#include "nsheap.hh"
#include "tgba/tgba.hh"
29
#include <iosfwd>
30
31
32
33
34
35
36
37

namespace spot
{
  /// \brief The status of the emptiness-check on success.
  ///
  /// This contains everything needed to construct a counter-example:
  /// the automata, the stack of SCCs traversed by the counter-example,
  /// and the heap of visited states with their indexes.
38
  class SPOT_API couvreur99_check_status
39
40
  {
  public:
41
    couvreur99_check_status(const tgba* aut,
42
			   const numbered_state_heap_factory* nshf);
43
    ~couvreur99_check_status();
44
45
46

    const tgba* aut;
    scc_stack root;
47
    numbered_state_heap* h;	///< Heap of visited states.
48
    const state* cycle_seed;
49
50
51

    /// Output statistics about this object.
    void print_stats(std::ostream& os) const;
52
53
54

    /// Return the number of states visited by the search
    int states() const;
55
56
57
58
59
  };

}

#endif // SPOT_TGBAALGOS_GTEC_STATUS_HH