Commit 100fe3f0 authored by Florian Renkin's avatar Florian Renkin Committed by Alexandre Duret-Lutz

to_parity: Correct the colors when we have parity pref. + true_clean

* spot/twaalgos/toparity.cc: Don't use the same color for every edges
when the condition is "true" or "false" after parity prefix.
parent ed5cccba
......@@ -896,14 +896,14 @@ apply_false_true_clean(const twa_graph_ptr &sub_automaton, bool is_true,
}
for (unsigned state = 0; state < sub_automaton->num_states(); ++state)
{
auto col = is_true ^ !is_odd;
if (((unsigned) col) > max_free_color)
throw std::runtime_error("CAR needs more sets");
unsigned s_aut = (*init_states)[state];
car_state src = { s_aut, state, perm_t() };
unsigned src_state = car2num_local[src];
for (auto e : aut_->out(s_aut))
{
auto col = is_true ^ !is_odd;
if (((unsigned)col) > max_free_color)
throw std::runtime_error("CAR needs more sets");
if (scc_.scc_of(s_aut) == scc_.scc_of(e.dst))
{
for (auto c : e.acc.sets())
......
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