to_parity: Correct order function

* spot/twaalgos/toparity.cc: Use a strict
comparison in group_to_vector.
* spot/twa/acc.cc: Use a strict comparison
in is_parity_max_equiv.
This commit is contained in:
Florian Renkin 2020-04-15 15:25:53 +02:00 committed by Alexandre Duret-Lutz
parent 533640fa74
commit ee3e09f8c9
2 changed files with 19 additions and 11 deletions

View file

@ -1357,10 +1357,10 @@ namespace spot
{
std::sort(disj.begin(), disj.end(),
[](acc_code c1, acc_code c2)
{
(void) c2;
return c1.back().sub.op == acc_cond::acc_op::Inf;
});
{
return (c1 != c2) &&
c1.back().sub.op == acc_cond::acc_op::Inf;
});
unsigned i = 0;
for (; i < disj.size() - 1; ++i)
{
@ -1394,10 +1394,10 @@ namespace spot
else
{ std::sort(conj.begin(), conj.end(),
[](acc_code c1, acc_code c2)
{
(void) c2;
return c1.back().sub.op == acc_cond::acc_op::Fin;
});
{
return (c1 != c2)
&& c1.back().sub.op == acc_cond::acc_op::Fin;
});
unsigned i = 0;
for (; i < conj.size() - 1; i++)
{