spot 2.2.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List

All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
postproc.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2012, 2013, 2014, 2015, 2016 Laboratoire de Recherche
3 // 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 <spot/twa/twagraph.hh>
23
24 namespace spot
25 {
26 class option_map;
27
30
63 class SPOT_API postprocessor
64 {
65 public:
70 postprocessor(const option_map* opt = nullptr);
71
72 enum output_type { TGBA, BA, Monitor, Generic };
73
89 void
90 set_type(output_type type)
91 {
92 type_ = type;
93 }
94
95 enum
96 {
97 Any = 0,
98 Small = 1, // Small and Deterministic
99 Deterministic = 2, // are exclusive choices.
100 Complete = 4,
101 SBAcc = 8, // State-based acceptance.
102 Unambiguous = 16,
103 };
104 typedef int output_pref;
105
135 void
136 set_pref(output_pref pref)
137 {
138 pref_ = pref;
139 }
140
141 enum optimization_level { Low, Medium, High };
156 void
157 set_level(optimization_level level)
158 {
159 level_ = level;
160 }
161
166 twa_graph_ptr run(twa_graph_ptr input, formula f = nullptr);
167
168 protected:
169 twa_graph_ptr do_simul(const twa_graph_ptr& input, int opt);
170 twa_graph_ptr do_sba_simul(const twa_graph_ptr& input, int opt);
171 twa_graph_ptr do_degen(const twa_graph_ptr& input);
172 twa_graph_ptr do_scc_filter(const twa_graph_ptr& a, bool arg);
173 twa_graph_ptr do_scc_filter(const twa_graph_ptr& a);
174
175 output_type type_ = TGBA;
176 int pref_ = Small;
177 optimization_level level_ = High;
178 // Fine-tuning options fetched from the option_map.
179 bool degen_reset_ = true;
180 bool degen_order_ = false;
181 int degen_cache_ = 1;
182 bool degen_lskip_ = true;
183 bool degen_lowinit_ = false;
184 bool det_scc_ = true;
185 bool det_simul_ = true;
186 bool det_stutter_ = true;
187 int simul_ = -1;
188 int scc_filter_ = -1;
189 int ba_simul_ = -1;
190 bool tba_determinisation_ = false;
191 int sat_minimize_ = 0;
192 int sat_acc_ = 0;
193 int sat_states_ = 0;
194 bool state_based_ = false;
195 bool wdba_minimize_ = true;
196 };
198 }
spot
Definition: graph.hh:32
spot::option_map
Manage a map of options.
Definition: optionmap.hh:37
spot::postprocessor::set_level
void set_level(optimization_level level)
Set the optimization level.
Definition: postproc.hh:157
spot::formula
Main class for temporal logic formula.
Definition: formula.hh:669
spot::postprocessor::set_type
void set_type(output_type type)
Select the desired output type.
Definition: postproc.hh:90
spot::postprocessor::set_pref
void set_pref(output_pref pref)
Select the desired characteristics of the output automaton.
Definition: postproc.hh:136
spot::postprocessor
Wrap TGBA/BA/Monitor post-processing algorithms in an easy interface.
Definition: postproc.hh:63

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.