mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-19 02:30:35 +03:00
ng_depth: rename calcDepth functions, return vec
This commit is contained in:
committed by
Matthew Barr
parent
15c8a7bd98
commit
dfe1b8a2af
@@ -734,8 +734,7 @@ void pruneExtUnreachable(NGHolder &g, const ReportManager &rm) {
|
||||
|
||||
const auto &report = rm.getReport(*reports.begin());
|
||||
|
||||
vector<NFAVertexBidiDepth> depths;
|
||||
calcDepths(g, depths);
|
||||
auto depths = calcBidiDepths(g);
|
||||
|
||||
vector<NFAEdge> dead;
|
||||
|
||||
@@ -957,8 +956,7 @@ void replaceMinLengthWithOffset(NGHolder &g, ReportManager &rm) {
|
||||
*/
|
||||
static
|
||||
void removeUnneededOffsetBounds(NGHolder &g, ReportManager &rm) {
|
||||
vector<NFAVertexDepth> depths;
|
||||
calcDepths(g, depths);
|
||||
auto depths = calcDepths(g);
|
||||
|
||||
replaceReports(g, [&](NFAVertex v, ReportID id) {
|
||||
const auto &d = depths.at(g[v].index);
|
||||
|
||||
Reference in New Issue
Block a user