status.hh 1.81 KB
Newer Older
1
// -*- coding: utf-8 -*-
2
3
// Copyright (C) 2013, 2014 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
#pragma once
24
25

#include "sccstack.hh"
26
#include "twa/twa.hh"
27
#include <iosfwd>
28
29
30
31
32
33
34
35

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.
36
  class SPOT_API couvreur99_check_status
37
38
  {
  public:
39
    couvreur99_check_status(const const_twa_ptr& aut);
40

41
    ~couvreur99_check_status();
42

43
    const_twa_ptr aut;
44
    scc_stack root;
45
46
47
48
49

    typedef std::unordered_map<const state*, int,
			       state_ptr_hash, state_ptr_equal> hash_type;
    hash_type h;

50
    const state* cycle_seed;
51
52
53

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

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