pcre2/testdata/testoutput16

326 lines
6.1 KiB
Plaintext
Raw Normal View History

2014-10-11 17:56:25 +02:00
# This test is run only when JIT support is available. It checks JIT complete
# and partial modes, and things that are different with JIT.
2014-10-06 19:28:42 +02:00
2014-10-11 17:56:25 +02:00
#pattern jitverify
2014-10-06 19:28:42 +02:00
2014-10-11 17:56:25 +02:00
# JIT does not support this pattern (callout at start of condition).
2014-10-06 19:28:42 +02:00
/(?(?C1)(?=a)a)/I
Capturing subpattern count = 0
May match empty string
2014-10-11 17:56:25 +02:00
Subject length lower bound = 0
JIT compilation was not successful
2014-10-06 19:28:42 +02:00
2014-10-11 17:56:25 +02:00
# Check that an infinite recursion loop is caught.
2014-10-06 19:28:42 +02:00
2014-10-11 17:56:25 +02:00
/(?(R)a*(?1)|((?R))b)/
aaaabcde
Failed: error -46: JIT stack limit reached
2014-10-06 19:28:42 +02:00
2014-10-11 17:56:25 +02:00
/abcd/I
Capturing subpattern count = 0
First code unit = 'a'
Last code unit = 'd'
Subject length lower bound = 4
JIT compilation was successful
2014-10-06 19:28:42 +02:00
abcd
0: abcd (JIT)
xyz
No match (JIT)
/abcd/
abcd
0: abcd (JIT)
2014-10-11 17:56:25 +02:00
ab\=ps
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
2014-10-11 17:56:25 +02:00
ab\=ph
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
xyz
No match (JIT)
2014-11-02 16:34:31 +01:00
/abcd/jitfast
abcd
0: abcd (JIT)
ab\=ps
Partial match: ab (JIT)
ab\=ph
Partial match: ab (JIT)
xyz
No match (JIT)
2014-10-06 19:28:42 +02:00
/abcd/jit=1
abcd
0: abcd (JIT)
2014-10-11 17:56:25 +02:00
ab\=ps
2014-10-06 19:28:42 +02:00
Partial match: ab
2014-10-11 17:56:25 +02:00
ab\=ph
2014-10-06 19:28:42 +02:00
Partial match: ab
xyz
No match (JIT)
2014-10-11 17:56:25 +02:00
xyz\=ps
2014-10-06 19:28:42 +02:00
No match
2014-11-02 16:34:31 +01:00
/abcd/jit=1,jitfast
abcd
0: abcd (JIT)
ab\=ps
Failed: error -45: bad JIT option
2014-11-02 16:34:31 +01:00
ab\=ph
Failed: error -45: bad JIT option
2014-11-02 16:34:31 +01:00
xyz
No match (JIT)
xyz\=ps
Failed: error -45: bad JIT option
2014-11-02 16:34:31 +01:00
2014-10-06 19:28:42 +02:00
/abcd/jit=2
abcd
0: abcd
2014-10-11 17:56:25 +02:00
ab\=ps
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
2014-10-11 17:56:25 +02:00
ab\=ph
2014-10-06 19:28:42 +02:00
Partial match: ab
xyz
No match
2014-11-02 16:34:31 +01:00
/abcd/jit=2,jitfast
abcd
Failed: error -45: bad JIT option
2014-11-02 16:34:31 +01:00
ab\=ps
Partial match: ab (JIT)
ab\=ph
Failed: error -45: bad JIT option
2014-11-02 16:34:31 +01:00
xyz
Failed: error -45: bad JIT option
2014-11-02 16:34:31 +01:00
2014-10-06 19:28:42 +02:00
/abcd/jit=3
abcd
0: abcd (JIT)
2014-10-11 17:56:25 +02:00
ab\=ps
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
2014-10-11 17:56:25 +02:00
ab\=ph
2014-10-06 19:28:42 +02:00
Partial match: ab
xyz
No match (JIT)
/abcd/jit=4
abcd
0: abcd
2014-10-11 17:56:25 +02:00
ab\=ps
2014-10-06 19:28:42 +02:00
Partial match: ab
2014-10-11 17:56:25 +02:00
ab\=ph
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
xyz
No match
/abcd/jit=5
abcd
0: abcd (JIT)
2014-10-11 17:56:25 +02:00
ab\=ps
2014-10-06 19:28:42 +02:00
Partial match: ab
2014-10-11 17:56:25 +02:00
ab\=ph
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
xyz
No match (JIT)
/abcd/jit=6
abcd
0: abcd
2014-10-11 17:56:25 +02:00
ab\=ps
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
2014-10-11 17:56:25 +02:00
ab\=ph
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
xyz
No match
/abcd/jit=7
abcd
0: abcd (JIT)
2014-10-11 17:56:25 +02:00
ab\=ps
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
2014-10-11 17:56:25 +02:00
ab\=ph
2014-10-06 19:28:42 +02:00
Partial match: ab (JIT)
xyz
No match (JIT)
/abcd/I,jit=2
Capturing subpattern count = 0
First code unit = 'a'
Last code unit = 'd'
Subject length lower bound = 4
2014-10-11 17:56:25 +02:00
JIT compilation was successful
2014-10-06 19:28:42 +02:00
/(*NO_START_OPT)a(*:m)b/mark
a
No match, mark = m (JIT)
/^12345678abcd/m
12345678abcd
0: 12345678abcd (JIT)
2014-10-11 17:56:25 +02:00
# Limits tests that give different output with JIT.
/(a+)*zz/I
Capturing subpattern count = 1
Starting code units: a z
Last code unit = 'z'
Subject length lower bound = 2
JIT compilation was successful
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\=find_limits
Minimum match limit = 3
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazz (JIT)
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaz\=find_limits
Minimum match limit = 16384
No match (JIT)
!((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)!I
Capturing subpattern count = 1
May match empty string
Subject length lower bound = 0
JIT compilation was successful
/* this is a C style comment */\=find_limits
Minimum match limit = 2
0: /* this is a C style comment */ (JIT)
1: /* this is a C style comment */
/^(?>a)++/
aa\=find_limits
Minimum match limit = 2
0: aa (JIT)
aaaaaaaaa\=find_limits
Minimum match limit = 2
0: aaaaaaaaa (JIT)
/(a)(?1)++/
aa\=find_limits
Minimum match limit = 2
0: aa (JIT)
1: a
aaaaaaaaa\=find_limits
Minimum match limit = 2
0: aaaaaaaaa (JIT)
1: a
/a(?:.)*?a/ims
abbbbbbbbbbbbbbbbbbbbba\=find_limits
Minimum match limit = 1
0: abbbbbbbbbbbbbbbbbbbbba (JIT)
/a(?:.(*THEN))*?a/ims
abbbbbbbbbbbbbbbbbbbbba\=find_limits
Minimum match limit = 1
0: abbbbbbbbbbbbbbbbbbbbba (JIT)
/a(?:.(*THEN:ABC))*?a/ims
abbbbbbbbbbbbbbbbbbbbba\=find_limits
Minimum match limit = 1
0: abbbbbbbbbbbbbbbbbbbbba (JIT)
/^(?>a+)(?>b+)(?>c+)(?>d+)(?>e+)/
aabbccddee\=find_limits
Minimum match limit = 6
0: aabbccddee (JIT)
/^(?>(a+))(?>(b+))(?>(c+))(?>(d+))(?>(e+))/
aabbccddee\=find_limits
Minimum match limit = 6
0: aabbccddee (JIT)
1: aa
2: bb
3: cc
4: dd
5: ee
/^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/
aabbccddee\=find_limits
Minimum match limit = 6
0: aabbccddee (JIT)
1: aa
2: cc
3: ee
2014-10-06 19:28:42 +02:00
2014-11-02 16:34:31 +01:00
/^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/jitfast
aabbccddee\=find_limits
Minimum match limit = 6
0: aabbccddee (JIT)
1: aa
2: cc
3: ee
aabbccddee\=jitstack=1
0: aabbccddee (JIT)
1: aa
2: cc
2014-11-02 16:34:31 +01:00
3: ee
2014-10-11 17:56:25 +02:00
/(a+)*zz/
aaaaaaaaaaaaaz
No match (JIT)
aaaaaaaaaaaaaz\=match_limit=3000
Failed: error -47: match limit exceeded
2014-10-11 17:56:25 +02:00
/(*LIMIT_MATCH=3000)(a+)*zz/I
Capturing subpattern count = 1
Match limit = 3000
Starting code units: a z
Last code unit = 'z'
Subject length lower bound = 2
JIT compilation was successful
aaaaaaaaaaaaaz
Failed: error -47: match limit exceeded
2014-10-11 17:56:25 +02:00
aaaaaaaaaaaaaz\=match_limit=60000
Failed: error -47: match limit exceeded
2014-10-11 17:56:25 +02:00
/(*LIMIT_MATCH=60000)(*LIMIT_MATCH=3000)(a+)*zz/I
Capturing subpattern count = 1
Match limit = 3000
Starting code units: a z
Last code unit = 'z'
Subject length lower bound = 2
JIT compilation was successful
aaaaaaaaaaaaaz
Failed: error -47: match limit exceeded
2014-10-11 17:56:25 +02:00
/(*LIMIT_MATCH=60000)(a+)*zz/I
Capturing subpattern count = 1
Match limit = 60000
Starting code units: a z
Last code unit = 'z'
Subject length lower bound = 2
JIT compilation was successful
aaaaaaaaaaaaaz
No match (JIT)
aaaaaaaaaaaaaz\=match_limit=3000
Failed: error -47: match limit exceeded
2014-10-11 17:56:25 +02:00
# These three have infinitely nested recursions.
/((?2))((?1))/
abc
Failed: error -46: JIT stack limit reached
2014-10-11 17:56:25 +02:00
/((?(R2)a+|(?1)b))/
aaaabcde
Failed: error -46: JIT stack limit reached
2014-10-11 17:56:25 +02:00
/(?(R)a*(?1)|((?R))b)/
aaaabcde
Failed: error -46: JIT stack limit reached
2014-10-11 17:56:25 +02:00
2014-11-02 16:34:31 +01:00
# Invalid options disable JIT when called via pcre2_match(), causing the
# match to happen via the interpreter, but for fast JIT invalid options are
# ignored, so an unanchored match happens.
/abcd/jit
abcd\=anchored
0: abcd
fail abcd\=anchored
No match
/abcd/jitfast
abcd\=anchored
0: abcd (JIT)
succeed abcd\=anchored
0: abcd (JIT)
2014-10-11 17:56:25 +02:00
# End of testinput16