Wang, Xiang W
bf87f8c003
chimera: hybrid of Hyperscan and PCRE
2018-07-09 11:30:35 -04:00
Chang, Harry
8a1c497f44
Logical Combination of patterns.
2018-06-27 14:04:57 +08:00
Wang, Xiang W
08b00f6149
hscollider: fix input length for UTF8 check
2018-06-27 14:04:53 +08:00
Justin Viiret
f877f14641
ue2_graph: more direct property_graph defn
2018-06-27 13:40:26 +08:00
Justin Viiret
a1d4eec116
nfagraph: remove ng_undirected.h
2018-06-27 13:40:21 +08:00
Justin Viiret
3c776b25c3
ng_repeat: use undirected_graph
2018-06-27 13:40:15 +08:00
Justin Viiret
c7c90c7ab7
graph_undirected: adapt bidi graph to undirected
...
Introduces an adaptor (like the BGL's reverse_graph) that presents an
undirected view of a bidirectional graph.
Initially used in ng_calc_components.
2018-06-27 13:40:10 +08:00
Justin Viiret
16076ed4a3
mcsheng: debug format string fixes
2018-06-27 13:39:30 +08:00
Justin Viiret
25adf3f512
sheng: fix reportCurrent eod flag
...
eod here should be 0, not 1. The reportCurrent NFA API function for
Sheng is unused at the moment, so this wasn't causing any problems
earlier.
2018-06-27 13:39:24 +08:00
Justin Viiret
e65479dae5
mcclellancompile: MAX_SHERMAN_LIST_LEN can be 9
2018-06-27 13:39:10 +08:00
Justin Viiret
ce7cfbde82
misc: docs, typo fixes, small cleanups
2018-06-27 13:39:05 +08:00
Justin Viiret
ea9d1f69fb
rose_build_add: remove unused max_adj param
...
In prepAcceptForAddAnchoredNFA(), we used to support different values
for max_adj. Since it's now always zero, remove it.
2018-06-27 13:39:00 +08:00
Justin Viiret
08bf909e2b
ng_violet: make calcSplitRatio operation faster
...
Implements count_reachable in a less malloc-happy way, improving
compile performance. Adds a count() function to small_color_map.
2018-06-27 13:38:55 +08:00
Justin Viiret
cadc7028b1
ng_width: turn min width check into assert
2018-06-27 13:38:32 +08:00
Matthew Barr
50ea83cb26
Move cpuid checks inline.
...
During fat runtime function resolution there was a chance that the PLT
might not be initialised in time for us to call the cpuid check
functions. Moving them inline means there is no PLT to worry about.
Fixes #78
2018-01-19 06:32:18 -05:00
Matthew Barr
090632f61a
ext param - more consistent depth check
2018-01-19 06:24:21 -05:00
Justin Viiret
58eda9155d
doc: use doxygen @p to refer to parameters
2018-01-19 06:17:22 -05:00
Justin Viiret
def9636d01
doc: document that hs_close_stream frees memory
...
Add explicit documentation that hs_close_stream() will free the stream
state after returning any matches.
2018-01-19 06:16:14 -05:00
Matthew Barr
1891f14755
Add support for Hamming distance approx matching
2018-01-19 06:11:43 -05:00
Matthew Barr
5021d7ab78
De-const the empty maps.
...
Clang 3.8 complains about attempting to default init const objects
without a user-provided constructor.
2017-09-22 15:17:56 +10:00
Hong, Yang A
ae918116ab
find_better_daddy: position change
2017-09-18 13:31:09 +10:00
Matthew Barr
dd286323a9
Don't let haigs into Tamarama
2017-09-18 13:29:34 +10:00
Justin Viiret
ba0bf0c991
rose_build_add_mask: improve findMaskLiteral perf
2017-09-18 13:29:34 +10:00
Matthew Barr
3b63a95f01
Handle any exceptions while constructing compiler elements
...
Specifically, NG has a Rose which has a LeftEng which has a depth, which can
throw an error on construction. If we put these in the try-catch we don't
have to worry so much in future.
2017-09-18 13:29:34 +10:00
Matthew Barr
5fc2c803a2
teddy: alignment decl should match defn
...
Spotted by coverity. #174512
2017-09-18 13:29:34 +10:00
Justin Viiret
af519f3190
hwlm_build: default for HWLMProto::make_small
...
Silences Coverity warning.
2017-09-18 13:29:34 +10:00
Justin Viiret
19e95b0314
rose_build_matchers: init LitFragment fields
...
Silences Coverity warning about squash, delay_squash.
2017-09-18 13:29:34 +10:00
Alex Coyte
a1fdc3afcf
dedupeLeftfixesVariableLag: refactor, more blockmode deduping
2017-09-18 13:29:34 +10:00
Alex Coyte
d6c050abd6
maintain castle report information
2017-09-18 13:29:34 +10:00
Justin Viiret
ea2e85ac87
ng_squash: switch to using unordered_map
...
Also some cleaning up, small performance improvements.
2017-09-18 13:29:34 +10:00
Alex Coyte
ace592e247
tidy mergeCastleSuffixes
2017-09-18 13:29:34 +10:00
Alex Coyte
6f452668ec
refactor mergeCastleLeftfixes
2017-09-18 13:29:34 +10:00
Alex Coyte
cee0b722a3
reimplement hasSameEngineType()
2017-09-18 13:29:34 +10:00
Justin Viiret
7fe53fec10
partitioned_set: use lower_bound(), not scan
2017-09-18 13:29:34 +10:00
Matthew Barr
29e1aae3fb
Use an unsigned byte, not char
2017-09-18 13:29:33 +10:00
Justin Viiret
012b347284
ue2_literal: define npos in ue2string.cpp
2017-09-18 13:29:33 +10:00
Justin Viiret
85c8822dd1
fdr_compile: simplify lambda use
...
This was failing to compile on MSVC.
2017-09-18 13:29:33 +10:00
Justin Viiret
b694fed727
mcclellancompile: simplify calc_min_dist_from_bob
2017-09-18 13:29:33 +10:00
Justin Viiret
58c3de0d33
mcclellancompile: don't copy dstate unnecessarily
2017-09-18 13:29:33 +10:00
Justin Viiret
3b392d6b70
accel_dfa_build_strat: make extend() faster
2017-09-18 13:29:33 +10:00
Justin Viiret
fe31b387e8
hash: use std::hash for string hashing
2017-09-18 13:26:18 +10:00
Justin Viiret
25170b32eb
ue2_literal: better hash function
2017-09-18 13:26:18 +10:00
Justin Viiret
1aad3b0ed1
ue2_literal: make nocase member a dynamic_bitset
...
We were previously using vector<bool>, but dynamic_bitset provides a
faster any() impl
2017-09-18 13:26:18 +10:00
Justin Viiret
36136f1003
fdr_compile: don't do string copies in isSuffix
2017-09-18 13:26:05 +10:00
Justin Viiret
d5b3f2b508
gatherReports: fewer map lookups
2017-09-18 13:26:05 +10:00
Justin Viiret
ba6f638c40
accel_dfa_build_strat: use flat_set
2017-09-18 13:26:05 +10:00
Justin Viiret
d25740b615
smallwrite_build: make failure_map unordered
2017-09-18 13:25:52 +10:00
Justin Viiret
14333f5b0b
rdfa: make getImplAlphaSize() inline
2017-09-18 13:25:52 +10:00
Justin Viiret
84030aa0fc
castlecompile: remove unused container
2017-09-18 13:25:52 +10:00
Alex Coyte
47e64646b4
move mergeDupeLeaves() and uncalcLeaves() to rose_build_role_aliasing
...
Unlike the rest of rose_build_mergem, these functions relate to merging
roles/vertices rather than merging engines.
2017-09-18 13:22:56 +10:00