unit_propagation: Correct result when multiple colors are possible

* spot/twa/acc.cc: Here.
* tests/core/acc.cc, tests/core/acc.test, tests/core/remfin.test:
Update tests.
This commit is contained in:
Florian Renkin 2020-04-18 19:29:41 +02:00 committed by Alexandre Duret-Lutz
parent 100fe3f00c
commit 262b24e6d7
4 changed files with 31 additions and 18 deletions

View file

@ -2599,7 +2599,8 @@ namespace spot
if (!fin)
{
auto m = pos[-1].mark & possibles;
if (m.count() == 1 || conj)
if ((!conj && pos[-1].mark.count() == 1)
|| (conj && m.count() > 0))
{
found_one = true;
res |= m;
@ -2611,7 +2612,8 @@ namespace spot
if (!found_one || fin)
{
auto m = pos[-1].mark & possibles;
if (m.count() == 1 || !conj)
if ((conj && pos[-1].mark.count() == 1)
|| (!conj && m.count() > 0))
{
found_one = true;
fin = true;