much time when the formula is large, and it is useless when the purpose is model-checking with Spin. * src/tgbaalgos/neverclaim.hh (never_claim_reachable): Add the comments option. * src/tgbaalgos/neverclaim.cc (never_claim_bfs, never_claim_reachable): Honor the comment option. * src/tgba/tests/ltl2tgba.cc (-N): Do not comment states. (-NN) New option to output a commented never claim.
46 lines
1.7 KiB
C++
46 lines
1.7 KiB
C++
// Copyright (C) 2004, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
|
|
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
|
// et Marie Curie.
|
|
//
|
|
// 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 2 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 Spot; see the file COPYING. If not, write to the Free
|
|
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
// 02111-1307, USA.
|
|
|
|
#ifndef SPOT_TGBAALGOS_NEVERCLAIM_HH
|
|
# define SPOT_TGBAALGOS_NEVERCLAIM_HH
|
|
|
|
#include <iosfwd>
|
|
#include "ltlast/formula.hh"
|
|
#include "tgba/tgbatba.hh"
|
|
|
|
namespace spot
|
|
{
|
|
/// \brief Print reachable states in Spin never claim format.
|
|
/// \ingroup tgba_io
|
|
///
|
|
/// \param os The output stream to print on.
|
|
/// \param g The degeneralized automaton to output.
|
|
/// \param f The (optional) formula associated to the automaton. If given
|
|
/// it will be output as a comment.
|
|
/// \param comments Whether to comment each state of the never clause
|
|
/// with the label of the \a g automaton.
|
|
std::ostream& never_claim_reachable(std::ostream& os,
|
|
const tgba_sba_proxy* g,
|
|
const ltl::formula* f = 0,
|
|
bool comments = false);
|
|
}
|
|
|
|
#endif // SPOT_TGBAALGOS_NEVERCLAIM_HH
|