Commit 8ac24acb authored by Florian Renkin's avatar Florian Renkin Committed by Alexandre Duret-Lutz
Browse files

ltlsynt: Add more elements in csv

* bin/ltlsynt.cc: Add the number of states of the dpa
and of the parity game in the csv.
parent 7c09f64c
......@@ -135,6 +135,8 @@ static double paritize_time = 0.0;
static double bgame_time = 0.0;
static double solve_time = 0.0;
static double strat2aut_time = 0.0;
static unsigned nb_states_dpa = 0;
static unsigned nb_states_parity_game = 0;
enum solver
{
......@@ -318,7 +320,8 @@ namespace
out << ",\"strat2aut_time\"";
out << ",\"realizable\"";
}
out << '\n';
out << ",\"dpa_num_states\",\"parity_game_num_states\""
<< '\n';
}
std::ostringstream os;
os << f;
......@@ -335,7 +338,9 @@ namespace
out << ',' << strat2aut_time;
out << ',' << realizable;
}
out << '\n';
out << ',' << nb_states_dpa
<< ',' << nb_states_parity_game
<< '\n';
outf.close(opt_csv);
}
......@@ -532,6 +537,7 @@ namespace
break;
}
}
nb_states_dpa = dpa->num_states();
if (want_time)
sw.start();
auto owner = complete_env(dpa);
......@@ -557,6 +563,7 @@ namespace
solve_time = sw.stop();
if (verbose)
std::cerr << "parity game solved in " << solve_time << " seconds\n";
nb_states_parity_game = pg.num_states();
timer.stop();
if (winning_region[1].count(pg.get_init_state_number()))
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment