spot  1.99.4
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
postproc.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2012, 2013, 2014, 2015 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 #pragma once
21 
22 #include "twa/twagraph.hh"
23 
24 namespace spot
25 {
26  class option_map;
27 
30 
58  class SPOT_API postprocessor
59  {
60  public:
65  postprocessor(const option_map* opt = nullptr);
66 
67  enum output_type { TGBA, BA, Monitor, Generic };
68  void
69  set_type(output_type type)
70  {
71  type_ = type;
72  }
73 
74  enum
75  {
76  Any = 0,
77  Small = 1, // Small and Deterministic
78  Deterministic = 2, // are exclusive choices.
79  Complete = 4,
80  SBAcc = 8, // State-based acceptance.
81  Unambiguous = 16,
82  };
83  typedef int output_pref;
84 
85  void
86  set_pref(output_pref pref)
87  {
88  pref_ = pref;
89  }
90 
91  enum optimization_level { Low, Medium, High };
92  void
93  set_level(optimization_level level)
94  {
95  level_ = level;
96  }
97 
102  twa_graph_ptr run(twa_graph_ptr input, formula f);
103 
104  protected:
105  twa_graph_ptr do_simul(const twa_graph_ptr& input, int opt);
106  twa_graph_ptr do_sba_simul(const twa_graph_ptr& input, int opt);
107  twa_graph_ptr do_degen(const twa_graph_ptr& input);
108 
109  output_type type_;
110  int pref_;
111  optimization_level level_;
112  // Fine-tuning options fetched from the option_map.
113  bool degen_reset_;
114  bool degen_order_;
115  int degen_cache_;
116  bool degen_lskip_;
117  bool degen_lowinit_;
118  int simul_;
119  int scc_filter_;
120  int ba_simul_;
121  bool tba_determinisation_;
122  int sat_minimize_;
123  int sat_acc_;
124  int sat_states_;
125  bool state_based_;
126  bool wdba_minimize_;
127  };
129 }
Definition: graph.hh:31
Manage a map of options.
Definition: optionmap.hh:36
Main class for temporal logic formula.
Definition: formula.hh:574
Wrap TGBA/BA/Monitor post-processing algorithms in an easy interface.
Definition: postproc.hh:58

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Thu Oct 1 2015 05:49:14 for spot by doxygen 1.8.8