spot  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
postproc.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2012, 2013, 2014 Laboratoire de Recherche et
3 // 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 #ifndef SPOT_TGBAALGOS_POSTPROC_HH
21 # define SPOT_TGBAALGOS_POSTPROC_HH
22 
23 #include "tgba/tgba.hh"
24 
25 namespace spot
26 {
27  class option_map;
28 
31 
59  class SPOT_API postprocessor
60  {
61  public:
66  postprocessor(const option_map* opt = 0);
67 
68  enum output_type { TGBA, BA, Monitor };
69  void
70  set_type(output_type type)
71  {
72  type_ = type;
73  }
74 
75  enum
76  {
77  Any = 0,
78  Small = 1,
79  Deterministic = 2,
80  // 3 reserved for unambiguous
81  // Combine Complete as 'Small | Complete' or 'Deterministic | Complete'
82  Complete = 4
83  };
84  typedef int output_pref;
85 
86  void
87  set_pref(output_pref pref)
88  {
89  pref_ = pref;
90  }
91 
92  enum optimization_level { Low, Medium, High };
93  void
94  set_level(optimization_level level)
95  {
96  level_ = level;
97  }
98 
100  const tgba* run(const tgba* input_disown, const ltl::formula* f);
101 
102  protected:
103  const tgba* do_simul(const tgba* input, int opt);
104  const tgba* do_ba_simul(const tgba* input, int opt);
105  const tgba* do_degen(const tgba* input);
106 
107  output_type type_;
108  int pref_;
109  optimization_level level_;
110  // Fine-tuning options fetched from the option_map.
111  bool degen_reset_;
112  bool degen_order_;
113  int degen_cache_;
114  bool degen_lskip_;
115  int simul_;
116  int simul_limit_;
117  int scc_filter_;
118  int ba_simul_;
119  bool tba_determinisation_;
120  int sat_minimize_;
121  int sat_acc_;
122  int sat_states_;
123  bool state_based_;
124  bool wdba_minimize_;
125  };
127 }
128 
129 #endif // SPOT_TGBAALGOS_POSTPROC_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