// set up all reports
bool clone = false;
- for (auto &pair : reports_to_vertices) {
+ for (const auto &pair : reports_to_vertices) {
const auto &reports = pair.first;
- const auto &vertices = pair.second;
+ const auto &svertices = pair.second;
- for (auto src : vertices) {
+ for (auto src : svertices) {
// get all predecessors up to edit distance
auto src_vertices_by_depth =
gatherPredecessorsByDepth(g, src, edit_distance);
}
*numNewVertices += predGroups.size();
- for (auto &group : predGroups) {
+ for (const auto &group : predGroups) {
const depth &predDepth = group.first;
- const vector<NFAEdge> &preds = group.second;
+ const vector<NFAEdge> &gspreds = group.second;
// Clone v for this depth with all its associated out-edges.
u32 clone_idx = depths.size(); // next index to be used
continue;
}
}
- engine_groups[DedupeLeftKey(build, std::move(vpreds), left)].emplace_back(left);
- auto preds_copy = std::move(preds);
++ auto preds_copy = std::move(vpreds);
+ engine_groups[DedupeLeftKey(build, preds_copy , left)].emplace_back(left);
}
/* We don't bother chunking as we expect deduping to be successful if the