Correct an issue in toparity with parity prefix

* spot/twaalgos/toparity.cc: Use a lower value in the parity
prefix vector to avoid the creation of unwanted {0} marks.
This commit is contained in:
Florian Renkin 2020-04-06 14:39:07 +02:00 committed by Alexandre Duret-Lutz
parent 13ede90210
commit a020607664

View file

@ -1443,7 +1443,8 @@ build_scc(twa_graph_ptr &sub_automaton,
unsigned max_states = -1U)
{
std::vector<int> parity_prefix_colors (SPOT_MAX_ACCSETS, -1);
std::vector<int> parity_prefix_colors (SPOT_MAX_ACCSETS,
- SPOT_MAX_ACCSETS - 2);
unsigned min_prefix_color = SPOT_MAX_ACCSETS + 1;
if (options.parity_prefix)
{