diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:10 +0300 |
commit | 1aeb9a455974457866f78722ad98114bafc84e8a (patch) | |
tree | e4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp | |
parent | bd5ef432f5cfb1e18851381329d94665a4c22470 (diff) | |
download | ydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp')
-rw-r--r-- | contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp b/contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp index 4e9b498df0..bb88aa0d88 100644 --- a/contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp +++ b/contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, Intel Corporation + * Copyright (c) 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -65,26 +65,26 @@ bool can_exhaust(const NGHolder &g, const ReportManager &rm) { return true; } -void set_report(NGHolder &g, ReportID internal_report) { - // First, wipe the report IDs on all vertices. - for (auto v : vertices_range(g)) { - g[v].reports.clear(); - } - - // Any predecessors of accept get our id. - for (auto v : inv_adjacent_vertices_range(g.accept, g)) { - g[v].reports.insert(internal_report); - } - - // Same for preds of acceptEod, except accept itself. - for (auto v : inv_adjacent_vertices_range(g.acceptEod, g)) { - if (v == g.accept) { - continue; - } - g[v].reports.insert(internal_report); - } -} - +void set_report(NGHolder &g, ReportID internal_report) { + // First, wipe the report IDs on all vertices. + for (auto v : vertices_range(g)) { + g[v].reports.clear(); + } + + // Any predecessors of accept get our id. + for (auto v : inv_adjacent_vertices_range(g.accept, g)) { + g[v].reports.insert(internal_report); + } + + // Same for preds of acceptEod, except accept itself. + for (auto v : inv_adjacent_vertices_range(g.acceptEod, g)) { + if (v == g.accept) { + continue; + } + g[v].reports.insert(internal_report); + } +} + /** Derive a maximum offset for the graph from the max_offset values of its * reports. Returns MAX_OFFSET for inf. */ u64a findMaxOffset(const NGHolder &g, const ReportManager &rm) { |