spot  1.99.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
twasafracomplement.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2009, 2010, 2011, 2013, 2014, 2015 Laboratoire de
3 // Recherche et Développement de l'Epita (LRDE).
4 //
5 // This file is part of Spot, a model checking library.
6 //
7 // Spot is free software; you can redistribute it and/or modify it
8 // under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // Spot is distributed in the hope that it will be useful, but WITHOUT
13 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 
20 #pragma once
21 
22 #include <vector>
23 #include "twa.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 SPOT_API tgba_safra_complement : public twa
50  {
51  public:
52  tgba_safra_complement(const const_twa_graph_ptr& a);
53  virtual ~tgba_safra_complement();
54 
55  // tgba interface.
56  virtual state* get_init_state() const;
57  virtual twa_succ_iterator* succ_iter(const state* state) const;
58 
59  virtual std::string format_state(const state* state) const;
60 
61  void* get_safra() const
62  {
63  return safra_;
64  }
65 
66  protected:
67  virtual bdd compute_support_conditions(const state* state) const;
68  private:
69  const_twa_graph_ptr automaton_;
70  void* safra_;
71 #if TRANSFORM_TO_TBA
72  acc_cond::mark_t the_acceptance_cond_;
73 #endif
74 #if TRANSFORM_TO_TGBA
75  // Map to i the i-th acceptance condition of the final automaton.
76  std::vector<acc_cond::mark_t> acceptance_cond_vec_;
77 #endif
78  };
79 
80  typedef std::shared_ptr<tgba_safra_complement> tgba_safra_complement_ptr;
81  typedef std::shared_ptr<const tgba_safra_complement>
82  const_tgba_safra_complement_ptr;
83  inline tgba_safra_complement_ptr
84  make_safra_complement(const const_twa_graph_ptr& a)
85  {
86  return std::make_shared<tgba_safra_complement>(a);
87  }
88 
94  void SPOT_API display_safra(const const_tgba_safra_complement_ptr& a);
95 }
Definition: public.hh:31
Build a complemented automaton.
Definition: twasafracomplement.hh:49
A Transition-based ω-Automaton.
Definition: twa.hh:480
Abstract class for states.
Definition: twa.hh:40
Iterate over the successors of a state.
Definition: twa.hh:329
Definition: acc.hh:34

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Wed Aug 26 2015 08:42:37 for spot by doxygen 1.8.8