spot 2.11.2.dev
strength.hh
1// -*- coding: utf-8 -*-
2// Copyright (C) 2010-2011, 2013-2019 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 <spot/twaalgos/sccinfo.hh>
23
24namespace spot
25{
46 SPOT_API bool
47 is_terminal_automaton(const const_twa_graph_ptr& aut, scc_info* sm = nullptr,
48 bool ignore_trivial_scc = false);
49
63 SPOT_API bool
64 is_weak_automaton(const const_twa_graph_ptr& aut, scc_info* sm = nullptr);
65
80 SPOT_API bool
81 is_very_weak_automaton(const const_twa_graph_ptr& aut,
82 scc_info* sm = nullptr);
83
97 SPOT_API bool
98 is_inherently_weak_automaton(const const_twa_graph_ptr& aut,
99 scc_info* sm = nullptr);
100
114 SPOT_API bool
115 is_safety_automaton(const const_twa_graph_ptr& aut,
116 scc_info* sm = nullptr);
117
124 SPOT_API bool
125 is_liveness_automaton(const const_twa_graph_ptr& aut);
126
136 SPOT_API void
137 check_strength(const twa_graph_ptr& aut, scc_info* sm = nullptr);
138
139
166 SPOT_API twa_graph_ptr
167 decompose_scc(const const_twa_graph_ptr& aut, const char* keep);
168
176 SPOT_API twa_graph_ptr
177 decompose_scc(scc_info& sm, const char* keep);
178
179 SPOT_DEPRECATED("use decompose_scc() instead")
180 SPOT_API twa_graph_ptr
181 decompose_strength(const const_twa_graph_ptr& aut, const char* keep);
182
192 SPOT_API twa_graph_ptr
193 decompose_scc(scc_info& sm, unsigned scc_num, bool accepting = false);
194}
Compute an SCC map and gather assorted information.
Definition: sccinfo.hh:443
SPOT_DEPRECATED("use to_parity() instead") twa_graph_ptr iar(const const_twa_graph_ptr &aut
Turn a Rabin-like or Streett-like automaton into a parity automaton based on the index appearence rec...
Definition: automata.hh:27
bool is_weak_automaton(const const_twa_graph_ptr &aut, scc_info *sm=nullptr)
Check whether an automaton is weak.
bool is_inherently_weak_automaton(const const_twa_graph_ptr &aut, scc_info *sm=nullptr)
Check whether an automaton is inherently weak.
twa_graph_ptr decompose_scc(const const_twa_graph_ptr &aut, const char *keep)
Extract a sub-automaton of a given strength.
bool is_very_weak_automaton(const const_twa_graph_ptr &aut, scc_info *sm=nullptr)
Check whether an automaton is very-weak.
bool is_safety_automaton(const const_twa_graph_ptr &aut, scc_info *sm=nullptr)
Check whether an automaton is a safety automaton.
bool is_liveness_automaton(const const_twa_graph_ptr &aut)
Whether the automaton represents a liveness property.
void check_strength(const twa_graph_ptr &aut, scc_info *sm=nullptr)
Check whether an automaton is weak or terminal.
bool is_terminal_automaton(const const_twa_graph_ptr &aut, scc_info *sm=nullptr, bool ignore_trivial_scc=false)
Check whether an automaton is terminal.

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.4