genem.hh 1.95 KB
Newer Older
1
// -*- coding: utf-8 -*-
2
// Copyright (C) 2017-2019 Laboratoire de Recherche et Developpement
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// 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

22
#include <spot/twaalgos/emptiness.hh>
23 24 25 26 27
#include <spot/twaalgos/sccinfo.hh>

namespace spot
{
  /// \ingroup emptiness_check_algorithms
Clément Gillard's avatar
Clément Gillard committed
28
  /// \brief Emptiness check of an automaton, for any acceptance condition.
29 30 31
  SPOT_API bool
  generic_emptiness_check(const const_twa_graph_ptr& aut);

32 33 34 35 36 37 38
  /// \ingroup emptiness_check_algorithms
  /// \brief Accepting run search in an automaton, for any acceptance condition.
  /// \return An accepting run over the automaton, or nullptr if the language is
  /// empty.
  SPOT_API twa_run_ptr
  generic_accepting_run(const const_twa_graph_ptr& aut);

39 40 41 42
  /// \ingroup emptiness_check_algorithms
  /// \brief Emptiness check of one SCC, for any acceptance condition.
  SPOT_API bool
  generic_emptiness_check_for_scc(const scc_info& si, unsigned scc);
43 44 45 46 47 48 49 50 51

  /// \ingroup emptiness_check_algorithms
  /// \brief Emptiness check of one SCC, for any acceptance condition.
  ///
  /// This version makes it possible to ignore the acceptance
  /// condition of the automaton, and use \a forced_acc.
  SPOT_API bool
  generic_emptiness_check_for_scc(const scc_info& si, unsigned scc,
                                  const acc_cond& forced_acc);
52
}