ce.hh 1.78 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
#pragma once
24
25

#include "status.hh"
26
27
#include "twaalgos/emptiness.hh"
#include "twaalgos/emptiness_stats.hh"
28
29
30

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

41
    virtual tgba_run_ptr accepting_run();
42
43
44

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

45
    virtual unsigned acss_states() const;
46

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

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