spot  1.0.2
tgbasafracomplement.hh
Go to the documentation of this file.
1 // Copyright (C) 2009, 2010, 2011 Laboratoire de Recherche et Développement
2 // de l'Epita (LRDE).
3 //
4 // This file is part of Spot, a model checking library.
5 //
6 // Spot is free software; you can redistribute it and/or modify it
7 // under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // Spot is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 // License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 #ifndef SPOT_TGBA_TGBASAFRACOMPLEMENT_HH
20 # define SPOT_TGBA_TGBASAFRACOMPLEMENT_HH
21 
22 # include <vector>
23 # include "tgba/tgba.hh"
24 
25 #ifndef TRANSFORM_TO_TBA
26 # define TRANSFORM_TO_TBA 0
27 #endif
28 #define TRANSFORM_TO_TGBA (!TRANSFORM_TO_TBA)
29 
30 namespace spot
31 {
49  class tgba_safra_complement : public tgba
50  {
51  public:
52  tgba_safra_complement(const tgba* a);
53  virtual ~tgba_safra_complement();
54 
55  // tgba interface.
56  virtual state* get_init_state() const;
57  virtual tgba_succ_iterator*
58  succ_iter(const state* local_state,
59  const state* global_state = 0,
60  const tgba* global_automaton = 0) const;
61 
62  virtual bdd_dict* get_dict() const;
63  virtual std::string format_state(const state* state) const;
64  virtual bdd all_acceptance_conditions() const;
65  virtual bdd neg_acceptance_conditions() const;
66 
67  void* get_safra() const
68  {
69  return safra_;
70  }
71 
72  protected:
73  virtual bdd compute_support_conditions(const state* state) const;
74  virtual bdd compute_support_variables(const state* state) const;
75  private:
76  const tgba* automaton_;
77  void* safra_;
78 #if TRANSFORM_TO_TBA
79  bdd the_acceptance_cond_;
80 #endif
81 #if TRANSFORM_TO_TGBA
84  // Map to i the i-th acceptance condition of the final automaton.
85  std::vector<bdd> acceptance_cond_vec_;
86 #endif
87  };
88 
95  void display_safra(const tgba_safra_complement* a);
96 }
97 
98 #endif // SPOT_TGBA_TGBASAFRACOMPLEMENT_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed Mar 6 2013 09:25:14 for spot by doxygen 1.8.1.2