21#include <spot/twa/twagraph.hh>
22#include <spot/twaalgos/game.hh>
23#include <spot/twaalgos/relabel.hh>
53 double total_time = 0.0;
54 double trans_time = 0.0;
55 double split_time = 0.0;
56 double paritize_time = 0.0;
57 double solve_time = 0.0;
58 double strat2aut_time = 0.0;
59 double simplify_strat_time = 0.0;
60 double aig_time = 0.0;
61 unsigned nb_states_arena = 0;
62 unsigned nb_states_arena_env = 0;
63 unsigned nb_strat_states = 0;
64 unsigned nb_strat_edges = 0;
65 unsigned nb_simpl_strat_states = 0;
66 unsigned nb_simpl_strat_edges = 0;
67 unsigned nb_latches = 0;
68 unsigned nb_gates = 0;
69 bool realizable =
false;
78 verbose_stream{nullptr},
87 std::optional<bench_var> bv;
88 std::ostream* verbose_stream;
123 SPOT_API twa_graph_ptr
125 const bdd& output_bdd,
bool complete_env =
true,
126 synthesis_info::splittype sp
127 = synthesis_info::splittype::AUTO);
132 SPOT_API twa_graph_ptr
133 split_2step(
const const_twa_graph_ptr& aut,
bool complete_env =
true,
134 synthesis_info::splittype sp
135 = synthesis_info::splittype::AUTO);
142 SPOT_API twa_graph_ptr
155 SPOT_API twa_graph_ptr
160 SPOT_API std::ostream&
161 operator<<(std::ostream& os, synthesis_info::algo s);
165 SPOT_API std::ostream &
180 SPOT_API twa_graph_ptr
182 const std::vector<std::string>& all_outs,
184 SPOT_API twa_graph_ptr
186 const std::vector<std::string>& all_outs);
187 SPOT_API twa_graph_ptr
189 const std::vector<std::string>& all_outs,
191 SPOT_API twa_graph_ptr
193 const std::vector<std::string>& all_outs);
204 SPOT_API twa_graph_ptr
206 SPOT_API twa_graph_ptr
208 SPOT_API twa_graph_ptr
210 SPOT_API twa_graph_ptr
212 SPOT_API twa_graph_ptr
214 SPOT_API twa_graph_ptr
223 enum class realizability_code
232 realizability_code success;
250 SPOT_API std::pair<std::vector<formula>, std::vector<std::set<formula>>>
253 SPOT_API std::pair<std::vector<formula>, std::vector<std::set<formula>>>
255 const std::vector<std::string>& outs);
274 const std::vector<std::string>& output_aps,
287 relabeling_map env_map;
288 relabeling_map player_map;
307 bool split_env =
false,
308 bool split_play =
false,
309 unsigned max_letter = -1u,
310 unsigned max_letter_mult = -1u);
Manage a map of options.
Definition optionmap.hh:34
bool solve_game(const twa_graph_ptr &arena)
Generic interface for game solving.
twa_graph_ptr solved_game_to_split_mealy(twa_graph_ptr arena, synthesis_info &gi)
creates a mealy machine from a solved game arena taking into account the options given in gi....
twa_graph_ptr solved_game_to_separated_mealy(twa_graph_ptr arena, synthesis_info &gi)
creates a mealy machine from a solved game arena taking into account the options given in gi....
std::pair< std::vector< formula >, std::vector< std::set< formula > > > split_independent_formulas(formula f, const std::vector< std::string > &outs)
Seeks to decompose a formula into independently synthetizable sub-parts. The conjunction of all sub-p...
twa_graph_ptr split_2step(const const_twa_graph_ptr &aut, const bdd &output_bdd, bool complete_env=true, synthesis_info::splittype sp=synthesis_info::splittype::AUTO)
make each transition a 2-step transition, transforming the graph into an alternating arena
twa_graph_ptr unsplit_2step(const const_twa_graph_ptr &aut)
the inverse of split_2step
game_relabeling_map partitioned_game_relabel_here(twa_graph_ptr &arena, bool relabel_env, bool relabel_play, bool split_env=false, bool split_play=false, unsigned max_letter=-1u, unsigned max_letter_mult=-1u)
Tries to relabel a SPLIT game arena using fresh propositions. Can be applied to env or player dependi...
twa_graph_ptr ltl_to_game(const formula &f, const std::vector< std::string > &all_outs, synthesis_info &gi)
Creates a game from a specification and a set of output propositions.
mealy_like try_create_direct_strategy(formula f, const std::vector< std::string > &output_aps, synthesis_info &gi, bool want_strategy=false)
Creates a strategy for the formula given by calling all intermediate steps.
twa_graph_ptr solved_game_to_mealy(twa_graph_ptr arena, synthesis_info &gi)
creates a mealy machine from a solved game arena taking into account the options given in gi....
void relabel_game_here(twa_graph_ptr &arena, game_relabeling_map &rel_maps)
Undoes a relabeling done by partitioned_game_relabel_here. A dedicated function is necessary in order...
Definition automata.hh:26
Definition synthesis.hh:286
A struct that represents different types of mealy like objects.
Definition synthesis.hh:222
Definition synthesis.hh:52
Benchmarking data and options for synthesis.
Definition synthesis.hh:32