* src/tgbatest/randtgba.cc: Typo.

This commit is contained in:
Denis Poitrenaud 2005-01-10 18:26:14 +00:00
parent 1cc003ec38
commit 3f2790061a
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2005-01-10 Denis Poitrenaud <Denis.Poitrenaud@lip6.fr>
* src/tgbatest/randtgba.cc: Typo.
2005-01-10 Alexandre Duret-Lutz <adl@src.lip6.fr> 2005-01-10 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgbatest/ltl2tgba.cc: Typo. * src/tgbatest/ltl2tgba.cc: Typo.

View file

@ -580,6 +580,8 @@ main(int argc, char** argv)
if (formula) if (formula)
a = product = new spot::tgba_product(formula, a); a = product = new spot::tgba_product(formula, a);
int real_n_acc = a->number_of_acceptance_conditions();
if (!opt_ec) if (!opt_ec)
{ {
if (opt_dot) if (opt_dot)
@ -590,7 +592,7 @@ main(int argc, char** argv)
else else
{ {
spot::tgba* degen = 0; spot::tgba* degen = 0;
if (opt_degen && opt_n_acc != 1) if (opt_degen && real_n_acc != 1)
degen = new spot::tgba_tba_proxy(a); degen = new spot::tgba_tba_proxy(a);
int n_alg = sizeof(ec_algos) / sizeof(*ec_algos); int n_alg = sizeof(ec_algos) / sizeof(*ec_algos);
@ -605,7 +607,7 @@ main(int argc, char** argv)
spot::emptiness_check_result* res; spot::emptiness_check_result* res;
if (opt_O && strcmp(opt_O, ec_algos[i].name)) if (opt_O && strcmp(opt_O, ec_algos[i].name))
continue; continue;
ec = cons_emptiness_check(i, a, degen, opt_n_acc); ec = cons_emptiness_check(i, a, degen, real_n_acc);
if (!ec) if (!ec)
continue; continue;
++n_ec; ++n_ec;
@ -620,7 +622,7 @@ main(int argc, char** argv)
break; break;
delete res; delete res;
delete ec; delete ec;
ec = cons_emptiness_check(i, a, degen, opt_n_acc); ec = cons_emptiness_check(i, a, degen, real_n_acc);
} }
tm_ec.stop(algo); tm_ec.stop(algo);
const spot::ec_statistics* ecs = const spot::ec_statistics* ecs =
@ -747,7 +749,6 @@ main(int argc, char** argv)
delete product; delete product;
delete r; delete r;
delete formula;
if (opt_ec) if (opt_ec)
{ {
@ -756,6 +757,7 @@ main(int argc, char** argv)
} }
} }
while (opt_ec); while (opt_ec);
delete formula;
if (!ec_stats.empty()) if (!ec_stats.empty())
{ {