mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
use stable_sort in analysis from 47f53f6; missed review comment
This commit is contained in:
parent
29472c7b71
commit
2341fe7baa
@ -634,7 +634,7 @@ bool pruneUsingSuccessors(NGHolder &g, NFAVertex u, som_type som) {
|
|||||||
}
|
}
|
||||||
u_succs.push_back(v);
|
u_succs.push_back(v);
|
||||||
}
|
}
|
||||||
sort(u_succs.begin(), u_succs.end(),
|
stable_sort(u_succs.begin(), u_succs.end(),
|
||||||
[&](NFAVertex a, NFAVertex b) {
|
[&](NFAVertex a, NFAVertex b) {
|
||||||
return g[a].char_reach.count() > g[b].char_reach.count();
|
return g[a].char_reach.count() > g[b].char_reach.count();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user