spot  2.16
stutter.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) by the Spot authors, see the AUTHORS file for details.
3 //
4 // This file is part of Spot, a model checking library.
5 //
6 // Spot is free software; you can redistribute it and/or modify it
7 // under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // Spot is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 // License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 #pragma once
20 
21 #include <spot/twa/twagraph.hh>
22 
24 
25 namespace spot
26 {
33  SPOT_API twa_graph_ptr
35 
49  SPOT_API twa_graph_ptr
50  sl2_inplace(twa_graph_ptr aut, bool* changedptr = nullptr);
51 
52  SPOT_API twa_graph_ptr
53  sl2(const_twa_graph_ptr aut, bool* changedptr = nullptr);
55 
71  SPOT_API twa_graph_ptr
72  closure_inplace(twa_graph_ptr aut, bool* changedptr = nullptr);
73 
74  SPOT_API twa_graph_ptr
75  closure(const_twa_graph_ptr aut, bool* changedptr = nullptr);
77 
96  SPOT_API bool
98 
112  SPOT_API bool
114  const_twa_graph_ptr aut_nf = nullptr,
115  int algo = 0);
116 
138  SPOT_API trival
140  formula f = nullptr,
141  bool do_not_determinize = false,
142  bool find_counterexamples = false);
143 
144 
156  SPOT_API std::vector<bool>
158  const_twa_graph_ptr neg = nullptr);
159 
160  SPOT_API std::vector<bool>
163 
181  SPOT_API void
183  formula f_pos, unsigned color = 0);
184  SPOT_API void
186  const_twa_graph_ptr neg = nullptr,
187  unsigned color = 0);
189 
202  SPOT_API std::vector<bdd>
204  const_twa_graph_ptr neg = nullptr);
205 
206  SPOT_API std::vector<bdd>
209 
210 
225  SPOT_API int
227  const std::vector<bool>& sistates);
228 
244  SPOT_API std::vector<bool>
246  (twa_graph_ptr aut, const std::vector<bool>& sistates);
247 
248 }
Main class for temporal logic formula.
Definition: formula.hh:847
A class implementing Kleene's three-valued logic.
Definition: trival.hh:33
trival check_stutter_invariance(twa_graph_ptr aut_f, formula f=nullptr, bool do_not_determinize=false, bool find_counterexamples=false)
Check whether aut is stutter-invariant.
int is_stutter_invariant_forward_closed(twa_graph_ptr aut, const std::vector< bool > &sistates)
Test if the set of stutter-invariant states is forward-closed.
twa_graph_ptr closure_inplace(twa_graph_ptr aut, bool *changedptr=nullptr)
Close the automaton by allowing duplicate letter removal.
twa_graph_ptr closure(const_twa_graph_ptr aut, bool *changedptr=nullptr)
Close the automaton by allowing duplicate letter removal.
twa_graph_ptr sl2(const_twa_graph_ptr aut, bool *changedptr=nullptr)
Close the automaton by allowing letters to be duplicated.
twa_graph_ptr sl2_inplace(twa_graph_ptr aut, bool *changedptr=nullptr)
Close the automaton by allowing letters to be duplicated.
std::vector< bool > make_stutter_invariant_forward_closed_inplace(twa_graph_ptr aut, const std::vector< bool > &sistates)
Change the automaton so its set of stutter-invariant state is forward-closed.
twa_graph_ptr sl(const_twa_graph_ptr aut)
Close the automaton by allowing letters to be duplicated.
void highlight_stutter_invariant_states(twa_graph_ptr pos, formula f_pos, unsigned color=0)
Highlight the states of pos that are stutter-invariant.
std::vector< bool > stutter_invariant_states(const_twa_graph_ptr pos, const_twa_graph_ptr neg=nullptr)
Determine the states that are stutter-invariant in pos.
bool is_stutter_invariant(formula f, twa_graph_ptr aut_f=nullptr)
Check if a formula is stutter invariant.
std::vector< bdd > stutter_invariant_letters(const_twa_graph_ptr pos, const_twa_graph_ptr neg=nullptr)
Determine the letters with which each state is stutter-invariant.
std::shared_ptr< twa_graph > twa_graph_ptr
Shared pointer to a mutable twa_graph.
Definition: fwd.hh:44
std::shared_ptr< const twa_graph > const_twa_graph_ptr
Shared pointer to a const twa_graph.
Definition: fwd.hh:38
Definition: automata.hh:26

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.1