* doc/tl/tl.bib: Move ... * doc/spot.bib: ... here, and augment it with all references that appeared verbatim in Doxygen comments. * doc/Makefile.am, doc/tl/Makefile.am doc/tl/tl.tex: Adjust for the move. * doc/Doxyfile.in: Point to spot.bib. * spot/gen/automata.hh, spot/gen/formulas.hh, spot/misc/game.hh, spot/misc/minato.hh spot/taalgos/emptinessta.hh, spot/taalgos/minimize.hh, spot/taalgos/tgba2ta.hh, spot/tl/formula.hh, spot/tl/remove_x.hh, spot/tl/simplify.hh, spot/tl/snf.hh, spot/twaalgos/cobuchi.hh, spot/twaalgos/cycles.hh, spot/twaalgos/dualize.hh, spot/twaalgos/gtec/gtec.hh, spot/twaalgos/gv04.hh, spot/twaalgos/ltl2taa.hh, spot/twaalgos/ltl2tgba_fm.hh, spot/twaalgos/magic.hh, spot/twaalgos/minimize.hh, spot/twaalgos/parity.hh, spot/twaalgos/powerset.hh, spot/twaalgos/randomgraph.hh, spot/twaalgos/se05.hh, spot/twaalgos/simulation.hh, spot/twaalgos/strength.hh, spot/twaalgos/stutter.hh, spot/twaalgos/tau03.hh, spot/twaalgos/totgba.hh, spot/twaalgos/toweak.hh: Use \cite instead of a verbatim bibtex entry.
132 lines
4.9 KiB
C++
132 lines
4.9 KiB
C++
// -*- coding: utf-8 -*-
|
|
// Copyright (C) 2017-2019 Laboratoire de Recherche et Développement
|
|
// de l'Epita (LRDE).
|
|
//
|
|
// This file is part of Spot, a model checking library.
|
|
//
|
|
// Spot is free software; you can redistribute it and/or modify it
|
|
// under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation; either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Spot is distributed in the hope that it will be useful, but WITHOUT
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
// License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#pragma once
|
|
|
|
#include <spot/misc/bitvect.hh>
|
|
#include <spot/twa/fwd.hh>
|
|
|
|
#include <vector>
|
|
|
|
namespace spot
|
|
{
|
|
/// A vector of nca_st_info is given as argument to nsa_to_nca() or
|
|
/// dnf_to_nca(). Each nca_st_info has information about a state that must be
|
|
/// seen infinitely often.
|
|
/// For a state 's' visited infinitely often by a run, the information
|
|
/// provided is:
|
|
/// - the clause number satisfied by the run (from left to right)
|
|
/// - the state number of 's'
|
|
/// - destinations of all outgoing edges of 's' (represented as a bitvect)
|
|
struct nca_st_info
|
|
{
|
|
unsigned clause_num;
|
|
unsigned state_num;
|
|
bitvect* all_dst;
|
|
|
|
nca_st_info(unsigned clause, unsigned st, bitvect* dst)
|
|
{
|
|
clause_num = clause;
|
|
state_num = st;
|
|
all_dst = dst;
|
|
}
|
|
|
|
~nca_st_info()
|
|
{
|
|
delete all_dst;
|
|
}
|
|
};
|
|
|
|
typedef std::vector<struct nca_st_info*> vect_nca_info;
|
|
|
|
/// \brief Converts a nondet Streett-like aut. to a nondet. co-Büchi aut.
|
|
///
|
|
/// This function works in top of the augmented subset construction algorithm
|
|
/// and is described in section 3.1 of \cite boker.2011.fossacs .
|
|
///
|
|
/// This implementation is quite different from the described algorithm. It
|
|
/// is made to work with automaton with Street-like acceptance (including
|
|
/// Büchi).
|
|
///
|
|
/// \a aut The automaton to convert.
|
|
/// \a named_states name each state for easier debugging.
|
|
/// \a nca_info retrieve information about state visited infinitely often.
|
|
SPOT_API twa_graph_ptr
|
|
nsa_to_nca(const_twa_graph_ptr aut,
|
|
bool named_states = false,
|
|
vect_nca_info* nca_info = nullptr);
|
|
|
|
/// \brief Converts an aut. with acceptance in DNF to a nondet. co-Büchi aut.
|
|
///
|
|
/// This function converts the Rabin-like automaton into a Strett-like
|
|
/// automaton and then calls nsa_to_nca() on it. It is described in section
|
|
/// 3.2 of \cite boker.2011.fossacs .
|
|
///
|
|
/// \a aut The automaton to convert.
|
|
/// \a named_states name each state for easier debugging.
|
|
/// \a nca_info retrieve information about state visited infinitely often.
|
|
SPOT_API twa_graph_ptr
|
|
dnf_to_nca(const_twa_graph_ptr aut,
|
|
bool named_states = false,
|
|
vect_nca_info* nca_info = nullptr);
|
|
|
|
/// \brief Converts any ω-automata to non-deterministic co-buchi
|
|
///
|
|
/// The language of the resulting automaton always include the
|
|
/// original language, and is a superset iff the original language
|
|
/// can not be expressed using a co-Büchi acceptance condition.
|
|
///
|
|
/// The implementation dispatches between dnf_to_nca, nsa_to_nca,
|
|
/// and a trivial implementation for weak automata.
|
|
SPOT_API twa_graph_ptr
|
|
to_nca(const_twa_graph_ptr aut, bool named_states = false);
|
|
|
|
/// \brief Converts a nondet Streett-like aut. to a det. co-Büchi aut.
|
|
///
|
|
/// This function calls first nsa_to_nca() in order to retrieve som
|
|
/// information and then runs a breakpoint construction. The algorithm is
|
|
/// described in section 4 of \cite boker.2011.fossacs .
|
|
///
|
|
/// \a aut The automaton to convert.
|
|
/// \a named_states name each state for easier debugging.
|
|
SPOT_API twa_graph_ptr
|
|
nsa_to_dca(const_twa_graph_ptr aut, bool named_states = false);
|
|
|
|
/// \brief Converts an aut. with acceptance in DNF to a det. co-Büchi aut.
|
|
///
|
|
/// This function calls first nra_to_nca() in order to retrieve som
|
|
/// information and then runs a breakpoint construction. The algorithm is
|
|
/// described in section 4 of \cite boker.2011.fossacs .
|
|
///
|
|
/// \a aut The automaton to convert.
|
|
/// \a named_states name each state for easier debugging.
|
|
SPOT_API twa_graph_ptr
|
|
dnf_to_dca(const_twa_graph_ptr aut, bool named_states = false);
|
|
|
|
/// \brief Converts any ω-automata to deterministic co-buchi
|
|
///
|
|
/// The language of the resulting automaton always include the
|
|
/// original language, and is a superset iff the original language
|
|
/// can not be expressed using a co-Büchi acceptance condition.
|
|
///
|
|
/// The implementation dispatches between dnf_to_dca, nsa_to_dca,
|
|
/// and a trivial implementation for deterministic weak automata.
|
|
SPOT_API twa_graph_ptr
|
|
to_dca(const_twa_graph_ptr aut, bool named_states = false);
|
|
}
|