637 Commits

Author SHA1 Message Date
Justin Viiret
8f1b3c89fa rose: remove no-longer-used convertBadLeaves pass 2017-04-26 14:41:29 +10:00
Matthew Barr
bc2f336d9d Work around for deficiency in C++11/14/17 standard
As explained to us by STL at Microsoft (the author of their
vector), there is a hole in the standard wrt the vector copy
constructor, which always exists even if it won't compile.
2017-04-26 14:41:29 +10:00
Justin Viiret
68bdc800fc dump: render literals as regexes (with comments) 2017-04-26 14:41:29 +10:00
Justin Viiret
22edaad1dd fdr: compile algo/heuristics improvements
These changes fix a small bug in the algorithm used for bucket
assignment in FDR's compile process, and also tweak a few of the
heuristics governing it.
2017-04-26 14:41:29 +10:00
EaseTheWorld
e58a33c9cb Change sqlite3_errstr to sqlite3_errmsg
sqlite3_errstr was introduced in 3.7.15 (http://sqlite.org/changes.html)
which breaks build in redhat6 (sqlite3 ver 3.6.X)
and in line 77, sqlite3_errmsg is already used.
2017-04-26 14:38:03 +10:00
Matthew Barr
fc91f293be Merge branch 'master' into develop 2017-04-26 14:14:28 +10:00
Matthew Barr
7aff6f6136 Merge branch 'release-4.4' into github_master v4.4.1 2017-03-01 13:09:48 +11:00
Matthew Barr
f7d3ccc7e5 Bump version number for release 2017-03-01 13:05:44 +11:00
Matthew Barr
3a067778dc changelog: updates for 4.4.1 2017-03-01 13:05:44 +11:00
Justin Viiret
a5a6051b8b runtime: init more of scratch in pure-literal exec 2017-03-01 13:05:44 +11:00
Alex Coyte
31dd33a9be lbr: set lastEscape on expand 2017-03-01 13:05:44 +11:00
Alex Coyte
e717525194 Check if any tugs are alive when compressing/expanding repeats 2017-03-01 13:05:20 +11:00
Alex Coyte
8f8ba2d591 basic unit test to check correct stream state is being used. 2017-03-01 13:05:10 +11:00
Alex Coyte
f9324febde Ensure the queue structure is initialised in roseEnginesEod(). 2017-03-01 13:05:10 +11:00
Matthew Barr
f4c2fc3b9b Merge branch develop into master v4.4.0 2017-01-20 14:16:41 +11:00
Matthew Barr
53a8d97e77 Bump version number for release 2017-01-20 14:15:53 +11:00
Justin Viiret
64c9bdc7b0 changelog: updates for 4.4 release 2017-01-20 14:15:53 +11:00
Matthew Barr
c6e28567c1 Documentation updates for the fat runtime 2017-01-20 14:15:53 +11:00
Matthew Barr
8c2e033540 cmake: test reverse_graph instead of using version
It seems that some distros are using a patched Boost 1.62.0 which means our
workaround in reverse_graph has a conflict. Add a CMake test to see if we
need to use the patched reverse_graph.
2017-01-20 09:26:34 +11:00
Justin Viiret
cacf07fe9b prefilter: workaround for \b in UCP and !UTF8 mode
For now, just drop the assertion (which will still return a superset of
matches, as per prefiltering semantics).
2017-01-20 09:19:51 +11:00
Alex Coyte
734eb2ce62 we can only trim lookarounds based on information common to all literals 2017-01-17 11:39:17 +11:00
Alex Coyte
35716c70ef ensure that we add default top when creating a new infix graph 2017-01-17 11:39:04 +11:00
Matthew Barr
e23316f453 Boost 1.61 required for clang/libc++
The libc++ headers aren't specific enough and causes the compiler to think
there are ambiguous functions when using older Boost versions.
2017-01-17 11:38:31 +11:00
Matthew Barr
1c9f38e98d Silence ABI notes in release builds 2017-01-17 11:38:16 +11:00
Matthew Barr
46f74300f2 update copyright year 2017-01-17 11:38:09 +11:00
Matthew Barr
981e9896b4 MSVC gets confused by one line of the graph tests 2017-01-06 11:24:16 +11:00
Matthew Barr
988ee0eb55 MSVC requires the attribute before the type 2017-01-06 11:24:12 +11:00
Alex Coyte
10346f53f7 mcclellan: handle 0 length block scans correctly 2017-01-06 11:22:59 +11:00
Alex Coyte
c699e98750 Add explicit casts to succ table entry calculations.
Although overflow should not be possible given the range of alphaShift, this
resolves coverity scan issues CID 158536 and CID 158537.
2017-01-06 11:22:26 +11:00
Matthew Barr
83e69cc195 hyperscan#41: ignore carriage-return in pattern files 2017-01-03 08:55:20 +11:00
Matthew Barr
2f57681bb6 cmake: check the generator for fat runtime builds
The RULE_LAUNCH_COMPILE property only works for Unix Makefiles, or
for Ninja with CMake newer than v3.0.
2016-12-14 15:35:44 +11:00
Matthew Barr
8334745063 SSE2 preprocessor test for MSVC
MSVC doesn't define __SSE2__ but we can figure it out from
other macros.
2016-12-14 15:35:44 +11:00
Matthew Barr
ea5e3bc0b1 Mark dispatch functions as public API 2016-12-14 15:35:44 +11:00
Matthew Barr
0d87116d33 cmake: check clang version for fat runtime support 2016-12-14 15:35:44 +11:00
Matthew Barr
f29b203a86 cmake: combine hs_exec src lists correctly 2016-12-14 15:35:28 +11:00
Matthew Barr
5754709dd5 Don't ignore unused attrib warnings in test 2016-12-14 15:35:28 +11:00
Matthew Barr
1ed2bdc46f Don't set flags for common files 2016-12-14 15:35:22 +11:00
Matthew Barr
c337ac665b cmake: default to fat runtime for release builds 2016-12-14 15:35:19 +11:00
Matthew Barr
6967c7ddf1 cmake: unneeded header check 2016-12-14 15:35:16 +11:00
Matthew Barr
0d0e1a5106 api: hs_valid_platform 2016-12-14 15:35:13 +11:00
Matthew Barr
c3a73446ee Fat runtime 2016-12-14 15:34:54 +11:00
Matthew Barr
2214296b7f Convert compile-time code to not require SIMD 2016-12-14 15:29:01 +11:00
Matthew Barr
e993fe1eb0 Remove erroneous semicolon 2016-12-14 15:28:58 +11:00
Justin Viiret
e271781d95 multibit, fatbit: make _size build-time only
This commit makes mmbit_size() and fatbit_size compile-time only, and
adds a resource limit for very large multibits.
2016-12-14 15:28:54 +11:00
Alex Coyte
8b7b06d2a4 calcDepthFromSource: only take one copy of the graph 2016-12-14 15:28:47 +11:00
Alex Coyte
582f71c5bb mcsheng: remove dead code 2016-12-14 15:27:31 +11:00
Alex Coyte
e51b6d23b9 introduce Sheng-McClellan hybrid 2016-12-14 15:27:18 +11:00
Matthew Barr
f626276271 hsbench: add Hyperscan benchmarker
The hsbench tool provides an easy way to measure Hyperscan's
performance for a particular set of patterns and corpus of data
to be scanned.
2016-12-14 15:26:01 +11:00
Justin Viiret
06cde4c94d ng_literal_analysis: use ue2_graph
This reduces compile time ~10% on a number of large cases.
2016-12-02 11:35:56 +11:00
Justin Viiret
32af5fa794 mcclellan: fix printf format specifiers 2016-12-02 11:35:52 +11:00