diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:11 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:11 +0300 |
commit | 5b283123c882433dafbaf6b338adeea16c1a0ea0 (patch) | |
tree | 339adc63bce23800021202ae4a8328a843dc447a /contrib/libs/hyperscan/src/rose/rose_build_anchored.h | |
parent | 1aeb9a455974457866f78722ad98114bafc84e8a (diff) | |
download | ydb-5b283123c882433dafbaf6b338adeea16c1a0ea0.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/rose/rose_build_anchored.h')
-rw-r--r-- | contrib/libs/hyperscan/src/rose/rose_build_anchored.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/contrib/libs/hyperscan/src/rose/rose_build_anchored.h b/contrib/libs/hyperscan/src/rose/rose_build_anchored.h index ef9d575e31..37d268ac5a 100644 --- a/contrib/libs/hyperscan/src/rose/rose_build_anchored.h +++ b/contrib/libs/hyperscan/src/rose/rose_build_anchored.h @@ -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: @@ -30,50 +30,50 @@ #define ROSE_BUILD_ANCHORED #include "ue2common.h" -#include "rose_build_impl.h" +#include "rose_build_impl.h" #include "nfagraph/ng_holder.h" -#include "util/bytecode_ptr.h" +#include "util/bytecode_ptr.h" #include <map> #include <vector> #include <set> -struct anchored_matcher_info; +struct anchored_matcher_info; namespace ue2 { class RoseBuildImpl; -struct raw_dfa; -struct LitFragment; +struct raw_dfa; +struct LitFragment; -/** - * \brief Construct a set of anchored DFAs from our anchored literals/engines. - */ -std::vector<raw_dfa> buildAnchoredDfas(RoseBuildImpl &build, - const std::vector<LitFragment> &fragments); +/** + * \brief Construct a set of anchored DFAs from our anchored literals/engines. + */ +std::vector<raw_dfa> buildAnchoredDfas(RoseBuildImpl &build, + const std::vector<LitFragment> &fragments); + +/** + * \brief Construct an anchored_matcher_info runtime structure from the given + * set of DFAs. + * + * Remap the literal final_ids used for raw_dfa reports to the program offsets + * given in litPrograms. + */ +bytecode_ptr<anchored_matcher_info> +buildAnchoredMatcher(RoseBuildImpl &build, + const std::vector<LitFragment> &fragments, + std::vector<raw_dfa> &dfas); + +u32 anchoredStateSize(const anchored_matcher_info &atable); -/** - * \brief Construct an anchored_matcher_info runtime structure from the given - * set of DFAs. - * - * Remap the literal final_ids used for raw_dfa reports to the program offsets - * given in litPrograms. - */ -bytecode_ptr<anchored_matcher_info> -buildAnchoredMatcher(RoseBuildImpl &build, - const std::vector<LitFragment> &fragments, - std::vector<raw_dfa> &dfas); - -u32 anchoredStateSize(const anchored_matcher_info &atable); - #define ANCHORED_FAIL 0 #define ANCHORED_SUCCESS 1 #define ANCHORED_REMAP 2 -int addAnchoredNFA(RoseBuildImpl &build, const NGHolder &wrapper, +int addAnchoredNFA(RoseBuildImpl &build, const NGHolder &wrapper, const std::map<NFAVertex, std::set<u32>> &reportMap); -int addToAnchoredMatcher(RoseBuildImpl &build, const NGHolder &anchored, +int addToAnchoredMatcher(RoseBuildImpl &build, const NGHolder &anchored, u32 exit_id, ReportID *remap); } // namespace ue2 |