aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@blinkov.ru>2022-02-10 16:47:11 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:11 +0300
commit5b283123c882433dafbaf6b338adeea16c1a0ea0 (patch)
tree339adc63bce23800021202ae4a8328a843dc447a /contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp
parent1aeb9a455974457866f78722ad98114bafc84e8a (diff)
downloadydb-5b283123c882433dafbaf6b338adeea16c1a0ea0.tar.gz
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp')
-rw-r--r--contrib/libs/hyperscan/src/nfagraph/ng_reports.cpp42
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 bb88aa0d88..4e9b498df0 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) {