spot  1.99.3
 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 = 0);
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,
103  const ltl::formula* f);
104 
105  protected:
106  twa_graph_ptr do_simul(const twa_graph_ptr& input, int opt);
107  twa_graph_ptr do_sba_simul(const twa_graph_ptr& input, int opt);
108  twa_graph_ptr do_degen(const twa_graph_ptr& input);
109 
110  output_type type_;
111  int pref_;
112  optimization_level level_;
113  // Fine-tuning options fetched from the option_map.
114  bool degen_reset_;
115  bool degen_order_;
116  int degen_cache_;
117  bool degen_lskip_;
118  bool degen_lowinit_;
119  int simul_;
120  int scc_filter_;
121  int ba_simul_;
122  bool tba_determinisation_;
123  int sat_minimize_;
124  int sat_acc_;
125  int sat_states_;
126  bool state_based_;
127  bool wdba_minimize_;
128  };
130 }
Definition: public.hh:31
Manage a map of options.
Definition: optionmap.hh:36
An LTL formula.
Definition: formula.hh:71
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 Wed Aug 26 2015 08:42:37 for spot by doxygen 1.8.8