synthesis: rename create_game() to ltl_to_game()

* bin/ltlsynt.cc, spot/twaalgos/aiger.hh, spot/twaalgos/synthesis.cc,
spot/twaalgos/synthesis.hh, tests/python/synthesis.ipynb,
tests/python/synthesis.py: Here.
This commit is contained in:
Alexandre Duret-Lutz 2021-10-18 09:17:40 +02:00
parent 5fd4d94031
commit c43712682f
6 changed files with 25 additions and 31 deletions

View file

@ -454,7 +454,7 @@ namespace spot
/// Unless \a ins and \a outs are specified, only the propositions
/// actually used in the strategy appear in the aiger circuit. So it
/// can happen that, for instance, propositions marked as output
/// during the call to create_game are absent.
/// during the call to ltl_to_game() are absent.
/// If \a ins and \a outs are used, all properties they list are
/// guaranteed to appear in the aiger circuit.
/// @{

View file

@ -808,7 +808,7 @@ namespace spot
}
namespace // Anonymous create_game
namespace // Anonymous ltl_to_game
{
static translator
create_translator(synthesis_info& gi)
@ -873,7 +873,7 @@ namespace spot
} // anonymous
twa_graph_ptr
create_game(const formula& f,
ltl_to_game(const formula& f,
const std::vector<std::string>& all_outs,
synthesis_info& gi)
{
@ -1068,26 +1068,26 @@ namespace spot
}
twa_graph_ptr
create_game(const formula& f,
ltl_to_game(const formula& f,
const std::vector<std::string>& all_outs)
{
synthesis_info dummy;
return create_game(f, all_outs, dummy);
return ltl_to_game(f, all_outs, dummy);
}
twa_graph_ptr
create_game(const std::string& f,
ltl_to_game(const std::string& f,
const std::vector<std::string>& all_outs)
{
return create_game(parse_formula(f), all_outs);
return ltl_to_game(parse_formula(f), all_outs);
}
twa_graph_ptr
create_game(const std::string& f,
ltl_to_game(const std::string& f,
const std::vector<std::string>& all_outs,
synthesis_info& gi)
{
return create_game(parse_formula(f), all_outs, gi);
return ltl_to_game(parse_formula(f), all_outs, gi);
}
void

View file

@ -150,34 +150,28 @@ namespace spot
/// \brief Creates a game from a specification and a set of
/// output propositions
///
/// \param f The specification given as LTL/PSL formula
/// \param f The specification given as an LTL/PSL formula, or
/// as a string.
/// \param all_outs The names of all output propositions
/// \param gi synthesis_info structure
/// \note All propositions in the formula that do not appear in all_outs
/// arer treated as input variables.
/// are treated as input variables.
/// @{
SPOT_API twa_graph_ptr
create_game(const formula& f,
ltl_to_game(const formula& f,
const std::vector<std::string>& all_outs,
synthesis_info& gi);
/// \ingroup synthesis
/// \brief create_game called with default options
SPOT_API twa_graph_ptr
create_game(const formula& f,
ltl_to_game(const formula& f,
const std::vector<std::string>& all_outs);
/// \ingroup synthesis
/// \brief Like create_game but formula given as string
SPOT_API twa_graph_ptr
create_game(const std::string& f,
ltl_to_game(const std::string& f,
const std::vector<std::string>& all_outs,
synthesis_info& gi);
/// \ingroup synthesis
/// \brief create_game called with default options
SPOT_API twa_graph_ptr
create_game(const std::string& f,
ltl_to_game(const std::string& f,
const std::vector<std::string>& all_outs);
/// @}
/// \ingroup synthesis
/// \brief Takes a solved game and restricts the automaton to the