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:
parent
100fe3f00c
commit
262b24e6d7
4 changed files with 31 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue