spot  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
emptinessta.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2008, 2012, 2013 Laboratoire de Recherche et
3 // Dévelopment de l'Epita (LRDE).
4 // Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique de
5 // Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
6 // Université Pierre et Marie Curie.
7 //
8 // This file is part of Spot, a model checking library.
9 //
10 // Spot is free software; you can redistribute it and/or modify it
11 // 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 // (at your option) any later version.
14 //
15 // Spot is distributed in the hope that it will be useful, but WITHOUT
16 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 // License for more details.
19 //
20 // 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 #ifndef SPOT_TAALGOS_EMPTINESSTA_HH
24 # define SPOT_TAALGOS_EMPTINESSTA_HH
25 
26 #include "ta/taproduct.hh"
27 #include "misc/optionmap.hh"
28 #include "tgbaalgos/gtec/nsheap.hh"
29 #include "tgbaalgos/emptiness_stats.hh"
30 #include <stack>
31 #include <queue>
32 
33 namespace spot
34 {
35 
36  namespace
37  {
38  typedef std::pair<spot::state*, ta_succ_iterator_product*> pair_state_iter;
39  }
40 
53 
66 
88  class SPOT_API ta_check : public ec_statistics
89  {
90  public:
91  ta_check(const ta_product* a, option_map o = option_map());
92  virtual
93  ~ta_check();
94 
112  virtual bool
113  check(bool disable_second_pass = false,
114  bool disable_heuristic_for_livelock_detection = false);
115 
120  virtual bool
121  livelock_detection(const ta_product* t);
122 
124  virtual std::ostream&
125  print_stats(std::ostream& os) const;
126 
127  protected:
128  void
129  clear(numbered_state_heap* h, std::stack<pair_state_iter> todo, std::queue<
130  spot::state*> init_set);
131 
132  void
133  clear(numbered_state_heap* h, std::stack<pair_state_iter> todo,
134  spot::ta_succ_iterator* init_states_it);
135 
138  bool
139  heuristic_livelock_detection(const state * stuttering_succ,
140  numbered_state_heap* h, int h_livelock_root, std::set<const state*,
141  state_ptr_less_than> liveset_curr);
142 
143  const ta_product* a_;
145 
146  // Force the second pass
147  bool is_full_2_pass_;
148 
149  // scc: a stack of strongly connected components (SCC)
150  scc_stack_ta scc;
151 
152  // sscc: a stack of strongly stuttering-connected components (SSCC)
153  scc_stack_ta sscc;
154 
155  };
156 
158 
161 }
162 
163 #endif // SPOT_TAALGOS_EMPTINESSTA_HH

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Thu May 15 2014 11:04:11 for spot by doxygen 1.8.4