ce.hh 1.87 KB
Newer Older
1
// -*- coding: utf-8 -*-
2
// Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement de
3
// l'Epita (LRDE).
4
// Copyright (C) 2004, 2005  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

#ifndef SPOT_TGBAALGOS_GTEC_CE_HH
# define SPOT_TGBAALGOS_GTEC_CE_HH

#include "status.hh"
27
#include "tgbaalgos/emptiness.hh"
28
#include "tgbaalgos/emptiness_stats.hh"
29
30
31

namespace spot
{
32
  /// Compute a counter example from a spot::couvreur99_check_status
33
  class SPOT_API couvreur99_check_result:
34
    public emptiness_check_result,
35
    public acss_statistics
36
37
  {
  public:
38
39
    couvreur99_check_result(const
			    std::shared_ptr<const couvreur99_check_status>& ecs,
40
			    option_map o = option_map());
41

42
    virtual tgba_run_ptr accepting_run();
43
44
45

    void print_stats(std::ostream& os) const;

46
    virtual unsigned acss_states() const;
47

48
  protected:
49
    /// Called by accepting_run() to find a cycle which traverses all
50
    /// acceptance conditions in the accepted SCC.
51
    void accepting_cycle();
52
53

  private:
54
55
    std::shared_ptr<const couvreur99_check_status> ecs_;
    tgba_run_ptr run_;
56
57
58
59
  };
}

#endif // SPOT_TGBAALGOS_GTEC_CE_HH