Commit e1d4522c authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

hoa: fix output

* src/tgbaalgos/hoaf.cc: Do not initialize acc_cond::mark_t with -1U.
parent 45e9b96b
......@@ -107,7 +107,8 @@ namespace spot
{
auto src = todo.front();
todo.pop_front();
acc_cond::mark_t prev = -1U;
bool notfirst = false;
acc_cond::mark_t prev = 0U;
bool st_acc = true;
bdd sum = bddfalse;
bdd available = bddtrue;
......@@ -137,10 +138,15 @@ namespace spot
if (st_acc)
{
acc_cond::mark_t acc = i->current_acceptance_conditions();
if (prev != -1U && prev != acc)
st_acc = false;
if (notfirst && prev != acc)
{
st_acc = false;
}
else
prev = acc;
{
notfirst = true;
prev = acc;
}
}
}
if (is_complete)
......
Markdown is supported
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