safra: Fix the nesting comparision function
* src/twaalgos/safra.cc, src/twaalgos/safra.hh: Here.
This commit is contained in:
parent
ebe03cf3d0
commit
64cdd1adc7
2 changed files with 5 additions and 4 deletions
|
|
@ -37,8 +37,8 @@ namespace spot
|
|||
size_t i = 0;
|
||||
for (; i < m; ++i)
|
||||
{
|
||||
if (lhs[i] < rhs[i])
|
||||
return true;
|
||||
if (lhs[i] != rhs[i])
|
||||
return lhs[i] < rhs[i];
|
||||
}
|
||||
return lhs.size() > rhs.size();
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ namespace spot
|
|||
return nodes_ < other.nodes_;
|
||||
}
|
||||
|
||||
void safra_state::print_debug(unsigned state_id)
|
||||
void safra_state::print_debug(unsigned state_id) const
|
||||
{
|
||||
std::cerr << "State: " << state_id << "{ ";
|
||||
for (auto& n: nodes_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue