rename pg_print() as print_pg() and add it to to_str()
* NEWS: Mention those change. * spot/twaalgos/game.hh (print_pg): New function. (pg_print): Mark as deprecated. * spot/twaalgos/game.cc (pg_print): Redirect to print_pg(). (print_pg): Update to output state names. * python/spot/__init__.py: Teach to_str() about print_pg(). * bin/ltlsynt.cc: Adjust to call print_pg(). * tests/python/games.ipynb: Add an example. * tests/core/ltlsynt.test: Adjust to remove the "INIT" note.
This commit is contained in:
parent
b3e994c249
commit
8b93b6967d
7 changed files with 145 additions and 68 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2017-2021 Laboratoire de Recherche et Développement
|
||||
// Copyright (C) 2017-2022 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -112,10 +112,26 @@ namespace spot
|
|||
|
||||
|
||||
/// \ingroup games
|
||||
/// \brief Print a max odd parity game using PG-solver syntax
|
||||
/// \brief Print a parity game using PG-solver syntax
|
||||
///
|
||||
/// The input automaton should have parity acceptance and should
|
||||
/// define state owner. Since the PG solver format want player 1 to
|
||||
/// solve a max odd condition, the acceptance condition will be
|
||||
/// adapted to max odd if necessary.
|
||||
///
|
||||
/// The output will list the initial state as first state (because
|
||||
/// that is the convention of our parser), and list only reachable
|
||||
/// states.
|
||||
///
|
||||
/// If states are named, the names will be output as well.
|
||||
/// @{
|
||||
SPOT_API
|
||||
std::ostream& print_pg(std::ostream& os, const const_twa_graph_ptr& arena);
|
||||
|
||||
SPOT_DEPRECATED("use print_pg() instead")
|
||||
SPOT_API
|
||||
void pg_print(std::ostream& os, const const_twa_graph_ptr& arena);
|
||||
|
||||
/// @}
|
||||
|
||||
/// \ingroup games
|
||||
/// \brief Highlight the edges of a strategy on an automaton.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue