21#include <spot/twa/twagraph.hh>
22#include <spot/twaalgos/game.hh>
23#include <spot/twaalgos/relabel.hh>
57 unsigned sub_specs = 0;
59 double total_time = 0.0;
63 double sum_trans_time = 0.0;
68 double sum_split_time = 0.0;
72 double sum_paritize_time = 0.0;
74 double sum_solve_time = 0.0;
77 double sum_strat2aut_time = 0.0;
80 double sum_simplify_strat_time = 0.0;
82 double aig_time = 0.0;
86 unsigned max_trans_states = 0;
87 unsigned max_trans_edges = 0;
88 unsigned max_trans_colors = 0;
89 unsigned max_trans_ap = 0;
93 unsigned max_game_states = 0;
94 unsigned max_game_colors = 0;
98 unsigned max_strat_states = 0;
99 unsigned max_strat_edges = 0;
102 unsigned sum_strat_states = 0;
103 unsigned sum_strat_edges = 0;
107 unsigned max_simpl_strat_states = 0;
108 unsigned max_simpl_strat_edges = 0;
111 unsigned sum_simpl_strat_states = 0;
112 unsigned sum_simpl_strat_edges = 0;
114 unsigned aig_latches = 0;
115 unsigned aig_gates = 0;
118 bool realizable =
false;
122 : force_sbacc{false},
127 verbose_stream{nullptr},
128 dict(make_bdd_dict())
136 std::optional<bench_var> bv;
137 std::ostream* verbose_stream;
172 SPOT_API twa_graph_ptr
174 const bdd& output_bdd,
bool complete_env =
true,
175 synthesis_info::splittype sp
176 = synthesis_info::splittype::AUTO);
181 SPOT_API twa_graph_ptr
182 split_2step(
const const_twa_graph_ptr& aut,
bool complete_env =
true,
183 synthesis_info::splittype sp
184 = synthesis_info::splittype::AUTO);
191 SPOT_API twa_graph_ptr
204 SPOT_API twa_graph_ptr
209 SPOT_API std::ostream&
210 operator<<(std::ostream& os, synthesis_info::algo s);
214 SPOT_API std::ostream &
229 SPOT_API twa_graph_ptr
231 const std::vector<std::string>& all_outs,
233 SPOT_API twa_graph_ptr
235 const std::vector<std::string>& all_outs);
236 SPOT_API twa_graph_ptr
238 const std::vector<std::string>& all_outs,
240 SPOT_API twa_graph_ptr
242 const std::vector<std::string>& all_outs);
253 SPOT_API twa_graph_ptr
255 SPOT_API twa_graph_ptr
257 SPOT_API twa_graph_ptr
259 SPOT_API twa_graph_ptr
261 SPOT_API twa_graph_ptr
263 SPOT_API twa_graph_ptr
272 enum class realizability_code
281 realizability_code success;
299 SPOT_API std::pair<std::vector<formula>, std::vector<std::set<formula>>>
302 SPOT_API std::pair<std::vector<formula>, std::vector<std::set<formula>>>
304 const std::vector<std::string>& outs);
323 const std::vector<std::string>& output_aps,
336 relabeling_map env_map;
337 relabeling_map player_map;
356 bool split_env =
false,
357 bool split_play =
false,
358 unsigned max_letter = -1u,
359 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:335
A struct that represents different types of mealy like objects.
Definition: synthesis.hh:271
Definition: synthesis.hh:54
Benchmarking data and options for synthesis.
Definition: synthesis.hh:32