Add option -k to ltl2tgba

This commit is contained in:
Alexandre Duret-Lutz 2008-12-05 11:21:38 +01:00
parent d1ca1e31aa
commit d5235c6901
4 changed files with 30 additions and 2 deletions

View file

@ -89,6 +89,8 @@ syntax(char* prog)
<< std::endl
<< " -G graph the accepting run seen as an automaton "
<< " (requires -e)" << std::endl
<< " -k display statistics on the TGBA instead of dumping it"
<< std::endl
<< " -L fair-loop approximation (implies -f)" << std::endl
<< " -m try to reduce accepting runs, in a second pass"
<< std::endl
@ -318,6 +320,10 @@ main(int argc, char** argv)
{
graph_run_tgba_opt = true;
}
else if (!strcmp(argv[formula_index], "-k"))
{
output = 9;
}
else if (!strcmp(argv[formula_index], "-L"))
{
fair_loop_approx = true;
@ -723,6 +729,9 @@ main(int argc, char** argv)
spot::never_claim_reachable(std::cout, s, f);
break;
}
case 9:
stats_reachable(a).dump(std::cout);
break;
default:
assert(!"unknown output option");
}