Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-regex

Source of release 0.6.1

0.6.1 / src / regex / es_table_compile.lucb

#==============================================================================================
#
#   es_table_compile - Expected compile results
#
#   DESCRIPTION:
#       Generated from upstream libregexp (C, compared locally, not kept in this repo), do not edit: rows of luce-js's libregexp port
#       tests, printed by a C driver linked with QuickJS libregexp.c, libunicode.c and
#       cutils.c (2026-06-04). Each row is a pattern, its flags, a host
#       mode (see es_tests.lucb) and its outcome.
#
#==============================================================================================

let es_compile_cases: CompileCase[413] = [
    CompileCase("abc", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a|b|c", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a*", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a+?", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a??b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{2}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{2,}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{2,4}?", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{2,4}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a)|b", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(a|ab)(c|bcd)(d*)", 0, 0, "ok cc=4 flags=0x0"),
    CompileCase("^abc$", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("^b", 4, 0, "ok cc=1 flags=0x4"),
    CompileCase("a$", 4, 0, "ok cc=1 flags=0x4"),
    CompileCase("^$", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("^$", 4, 0, "ok cc=1 flags=0x4"),
    CompileCase(".", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase(".", 8, 0, "ok cc=1 flags=0x8"),
    CompileCase("[^a]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\d+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\D+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\s+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\S+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\w+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\W+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\bfoo\\b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\Bo", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a*)*b", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(a*)+", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:a|b)*c", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a)\\1", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(a)?\\1b", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("\\1(a)", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?<y>\\d{4})-(?<m>\\d{2})", 0, 0, "ok cc=3 flags=0x80 names=<y>,<m>"),
    CompileCase("\\k<y>(?<y>a)", 0, 0, "ok cc=2 flags=0x80 names=<y>"),
    CompileCase("(?<a>x)|(?<a>y)", 0, 0, "ok cc=3 flags=0x80 names=<a>,<a>"),
    CompileCase("(?:(?<a>x)|(?<a>y))\\k<a>", 0, 0, "ok cc=3 flags=0x80 names=<a>,<a>"),
    CompileCase("(?<a>.)\\k<a>", 0, 0, "ok cc=2 flags=0x80 names=<a>"),
    CompileCase("(?<a>.)\\k<a>", 16, 0, "ok cc=2 flags=0x90 names=<a>"),
    CompileCase("(?=a)a", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?!a)\\w", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=\\$)\\d+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<!\\$)\\b\\d+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=(\\d)(\\d))x", 0, 0, "ok cc=3 flags=0x0"),
    CompileCase("(?<=\\1(a))b", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?=(a+))a*b\\1", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?=(a+))", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(.*?)a(?!(a+)b\\2c)\\2(.*)", 0, 0, "ok cc=4 flags=0x0"),
    CompileCase("(z)((a+)?(b+)?(c))*", 0, 0, "ok cc=6 flags=0x0"),
    CompileCase("a{0}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a){0,1}b", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:(a)|b)*", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:a{2,3}){2}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a{1,2}?){3}", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(a{1,2}){3,4}?", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("x*y+$", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[a-z]+", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("[A-Z]+", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\\u{1F600}", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\u{61}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("^.$", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("^.$", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("^..$", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\u{1f600}]", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[\u{1f600}-\u{1f64f}]+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{L}+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{Lu}", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{Script=Greek}+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{scx=Hira}+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\P{L}+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{ASCII_Hex_Digit}+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{Any}", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{gc=Nd}+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{Lowercase}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\P{Lowercase}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\P{Ll}", 258, 0, "ok cc=1 flags=0x102"),
    CompileCase("\\p{RGI_Emoji}", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[\\p{RGI_Emoji_Flag_Sequence}]", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[\\p{L}--[a-z]]+", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[\\w&&\\d]+", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[[a-z]--[aeiou]]+", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[\\q{abc|d}x]", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[\\q{abc|ab|}x]+", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[\\q{abc}]", 258, 0, "ok cc=1 flags=0x102"),
    CompileCase("[\\q{}]", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[a[b[c]]]+", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("\\u0041", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\x41", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\101", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\0", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\08", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\8", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\18", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\377", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\400", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\b]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\cJ", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\c_]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\c1]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\c", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\c1", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{,2}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("{", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("x{2,1", 0, 0, "err=invalid repetition count"),
    CompileCase("a{1}?", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\k", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\k<a", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\z", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("s", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("s", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\\w", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\W", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\bK", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\B", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\u{3c3}", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\u{3c3}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[^k]", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[^k]", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("(?i:a)b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?i-m:^a)", 4, 0, "ok cc=1 flags=0x4"),
    CompileCase("(?m:^a)", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?s:.)", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?-i:a)", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("(?-s:.)", 8, 0, "ok cc=1 flags=0x8"),
    CompileCase("\u{df}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\u{df}", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\u{130}", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\u{131}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\u{10400}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[\\u{10400}-\\u{10410}]", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[a-\\u{10FFFF}]+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\uD83D\\uDE00", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\uD83D\\uDE00", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\uD83D", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\uDE00", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\uDE00", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("(?:)*", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a*)*?b", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:a?)*?c", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(|a)*", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(|a)+b", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:x*)*y", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a|b)*c", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("a*?", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?:a*?){2,5}b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?:(a)|b){2,5}", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:(a)|b)+", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:(a)|(b))*?c", 0, 0, "ok cc=3 flags=0x0"),
    CompileCase("(?:()|a)*", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:\\b|a)*x", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=ab)c", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=a.c)d", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=\\ba)b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=^|x)y", 4, 0, "ok cc=1 flags=0x4"),
    CompileCase("(?<=[a-c]{2})d", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=(a+))b", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?<=(?<n>a)b)c", 0, 0, "ok cc=2 flags=0x80 names=<n>"),
    CompileCase("(?<!a)b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=\\u{1F600})a", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("(?<=.)b", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("(?<=(.)\\1)x", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?<=\\k<n>(?<n>.))x", 0, 0, "ok cc=2 flags=0x80 names=<n>"),
    CompileCase("(?<=\\k<n>(?<n>.))x", 2, 0, "ok cc=2 flags=0x82 names=<n>"),
    CompileCase("(?=a)*a", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?=a){2}a", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{0,4294967295}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{2147483647}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{2147483648,}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\d-x]+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[-a]+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[a-]+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[^]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\]]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\-]", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[\\w-]+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[a-z\\d_]+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\u{e0}-\u{ff}]+", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("[\u{100}-\u{17f}]", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("[\\s\\S]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a|b|c|d|e|f|g)+", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("a", 32, 0, "ok cc=1 flags=0x20"),
    CompileCase("a+", 32, 0, "ok cc=1 flags=0x20"),
    CompileCase("\\b", 32, 0, "ok cc=1 flags=0x20"),
    CompileCase("a|", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a", 1, 0, "ok cc=1 flags=0x1"),
    CompileCase(".", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("^", 36, 0, "ok cc=1 flags=0x24"),
    CompileCase("$", 32, 0, "ok cc=1 flags=0x20"),
    CompileCase("\\B", 32, 0, "ok cc=1 flags=0x20"),
    CompileCase("(?:a|b)*b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a)|(b)|(c)|(d)|(e)|(f)|(g)|(h)|(i)|(j)|(k)|(l)|(m)", 0, 0, "ok cc=14 flags=0x0"),
    CompileCase("(?=(\\w+))\\1:", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?!(\\w))\\1", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?=(a)(b))(?!(c))", 0, 0, "ok cc=4 flags=0x0"),
    CompileCase("(?:(?=(\\w))\\w)+x", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("^(?:(a)|b)+$", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:(?:(a)b)*c)*", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("(?:a(?=b))+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?:a|b)(?=\\1)", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\d{3}|[a-z]{4}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(\\w+)\\s(\\w+)", 0, 0, "ok cc=3 flags=0x0"),
    CompileCase("([A-Z])\\w+\\1", 2, 0, "ok cc=2 flags=0x2"),
    CompileCase("(\\w)\\1", 2, 0, "ok cc=2 flags=0x2"),
    CompileCase("(\\w)\\1", 18, 0, "ok cc=2 flags=0x12"),
    CompileCase("[\\u017f]", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("[\\u017f]", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[a-z]", 258, 0, "ok cc=1 flags=0x102"),
    CompileCase("\\u212a", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\\u212a", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[\\u0390\\u1fd3]", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\ufb05", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\u{1e9e}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\u{345}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[\\p{Ll}]", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\\p{L}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\P", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a\0b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\u{e9}+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\u{e9}", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\u{100}", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\u{2c65}", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\u{23a}", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("[\u{100}-\u{200}]+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(a)|b", 64, 0, "ok cc=2 flags=0x40"),
    CompileCase("(?:ab|cd)+|ef", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("(?:a+)+b", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(\\d+)\\s+\\1", 0, 0, "ok cc=2 flags=0x0"),
    CompileCase("[^\\d\\s]+", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\D]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[^\\D]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\S\\d]", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[^\\W]", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[\\W]", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("[^\\W\\d]", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{Nd}{2}", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[\\p{Lu}\\d]+", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[^\\p{L}]", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[\\P{L}]", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("(?<\u{e9}>.)", 0, 0, "ok cc=2 flags=0x80 names=<\u{e9}>"),
    CompileCase("(?<\u{1d49c}>.)\\k<\u{1d49c}>", 16, 0, "ok cc=2 flags=0x90 names=<\u{1d49c}>"),
    CompileCase("(?<a\\u0062>.)\\k<ab>", 0, 0, "ok cc=2 flags=0x80 names=<ab>"),
    CompileCase("(?<a\\uD835\\uDC9C>.)", 0, 0, "ok cc=2 flags=0x80 names=<a\u{1d49c}>"),
    CompileCase("(?<\\u{1d49c}>.)", 16, 0, "ok cc=2 flags=0x90 names=<\u{1d49c}>"),
    CompileCase("(?<$_>.)", 0, 0, "ok cc=2 flags=0x80 names=<$_>"),
    CompileCase("a)", 0, 0, "err=extraneous characters at the end"),
    CompileCase("(", 0, 0, "err=expecting ')'"),
    CompileCase("(a", 0, 0, "err=expecting ')'"),
    CompileCase("[a", 0, 0, "err=unexpected end"),
    CompileCase("[a", 16, 0, "err=unexpected end"),
    CompileCase("*", 0, 0, "err=nothing to repeat"),
    CompileCase("+a", 0, 0, "err=nothing to repeat"),
    CompileCase("?", 0, 0, "err=nothing to repeat"),
    CompileCase("a**", 0, 0, "err=nothing to repeat"),
    CompileCase("a{2,1}", 0, 0, "err=invalid repetition count"),
    CompileCase("a{2,1}", 16, 0, "err=invalid repetition count"),
    CompileCase("{1}", 0, 0, "err=nothing to repeat"),
    CompileCase("{1,}", 0, 0, "err=nothing to repeat"),
    CompileCase("{1,2}", 0, 0, "err=nothing to repeat"),
    CompileCase("(?<a>x)(?<a>y)", 0, 0, "err=duplicate group name"),
    CompileCase("(?<1a>x)", 0, 0, "err=invalid group name"),
    CompileCase("(?<a", 0, 0, "err=invalid group name"),
    CompileCase("(?<>x)", 0, 0, "err=invalid group name"),
    CompileCase("(?<a-b>x)", 0, 0, "err=invalid group name"),
    CompileCase("\\k<a>", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\k<a>", 16, 0, "err=group name not defined"),
    CompileCase("\\k", 16, 0, "err=expecting group name"),
    CompileCase("\\k<a", 16, 0, "err=invalid group name"),
    CompileCase("(?<a>x)\\k<b>", 0, 0, "err=group name not defined"),
    CompileCase("(?<a>x)\\k", 0, 0, "err=expecting group name"),
    CompileCase("(?<a>x)\\k<1>", 0, 0, "err=invalid group name"),
    CompileCase("[b-a]", 0, 0, "err=invalid class range"),
    CompileCase("[b-a]", 16, 0, "err=invalid class range"),
    CompileCase("\\p{Foo}", 16, 0, "err=unknown unicode property name"),
    CompileCase("\\p{Script=Foo}", 16, 0, "err=unknown unicode script"),
    CompileCase("\\p{sc=Latn}", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{gc=Foo}", 16, 0, "err=unknown unicode general category"),
    CompileCase("\\p{Foo=Bar}", 16, 0, "err=unknown unicode property name"),
    CompileCase("\\p{L", 16, 0, "err=expecting '}'"),
    CompileCase("\\p", 16, 0, "err=expecting '{' after \\p"),
    CompileCase("\\pL", 16, 0, "err=expecting '{' after \\p"),
    CompileCase("\\p{RGI_Emoji}", 16, 0, "err=unknown unicode property name"),
    CompileCase("\\P{RGI_Emoji}", 256, 0, "err=unknown unicode property name"),
    CompileCase("[^\\p{RGI_Emoji}]", 256, 0, "err=negated character class with strings in regular expression debu"),
    CompileCase("\\p{aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}", 16, 0, "err=unknown unicode property name"),
    CompileCase("\\p{Script=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}", 16, 0, "err=unknown unicode property value"),
    CompileCase("\\c", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\c1", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\-", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("{", 16, 0, "err=syntax error"),
    CompileCase("}", 16, 0, "err=syntax error"),
    CompileCase("]", 16, 0, "err=syntax error"),
    CompileCase("a{", 16, 0, "err=invalid repetition count"),
    CompileCase("a{1", 16, 0, "err=expecting '}'"),
    CompileCase("a{1,", 16, 0, "err=expecting '}'"),
    CompileCase("\\z", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("(?i-i:a)", 0, 0, "err=invalid modifiers"),
    CompileCase("(?ii:a)", 0, 0, "err=duplicate modifier: 'i'"),
    CompileCase("(?-:a)", 0, 0, "err=invalid modifiers"),
    CompileCase("(?x)", 0, 0, "err=invalid group"),
    CompileCase("(?i)", 0, 0, "err=expecting ':'"),
    CompileCase("(?i", 0, 0, "err=expecting ':'"),
    CompileCase("(?", 0, 0, "err=invalid group"),
    CompileCase("(?-m-s:a)", 0, 0, "err=expecting ':'"),
    CompileCase("(?<=a", 0, 0, "err=expecting ')'"),
    CompileCase("(?=a", 0, 0, "err=expecting ')'"),
    CompileCase("\\1", 16, 0, "err=back reference out of range in regular expression"),
    CompileCase("\\2(a)", 16, 0, "err=back reference out of range in regular expression"),
    CompileCase("\\01", 16, 0, "err=invalid decimal escape in regular expression"),
    CompileCase("\\00", 16, 0, "err=invalid decimal escape in regular expression"),
    CompileCase("[\\d-z]", 16, 0, "err=invalid class range"),
    CompileCase("[a-\\d]", 16, 0, "err=invalid class range"),
    CompileCase("[\\d-\\w]", 16, 0, "err=invalid class range"),
    CompileCase("[[a]&&&b]", 256, 0, "err=invalid class set operation in regular expression"),
    CompileCase("[a&&&b]", 256, 0, "err=invalid class set operation in regular expression"),
    CompileCase("[a--b&&c]", 256, 0, "err=invalid operation in regular expression"),
    CompileCase("[a&&b--c]", 256, 0, "err=invalid operation in regular expression"),
    CompileCase("[a&&b]", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[a&&]", 256, 0, "err=invalid character in class in regular expression"),
    CompileCase("[&&a]", 256, 0, "err=invalid class set operation in regular expression"),
    CompileCase("[^\\q{ab}]", 256, 0, "err=negated character class with strings in regular expression debu"),
    CompileCase("[^\\q{a}]", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[(]", 256, 0, "err=invalid character in class in regular expression"),
    CompileCase("[a-]", 256, 0, "err=invalid character in class in regular expression"),
    CompileCase("[a!!b]", 256, 0, "err=invalid class set operation in regular expression"),
    CompileCase("[\\q{a]", 256, 0, "err=invalid character in class in regular expression"),
    CompileCase("[\\q]", 256, 0, "err=expecting '{' after \\q"),
    CompileCase("\\q{a}", 256, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("[\\q{a}]", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("[a-z&&b]", 256, 0, "err=invalid class set operation in regular expression"),
    CompileCase("[a--]", 256, 0, "err=invalid character in class in regular expression"),
    CompileCase("[a--[b]]", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("\\u{110000}", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\u{}", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\u{61", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\x", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\x4", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\u12", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\u12", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\x4", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{99999999999}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{99999999999,1}", 0, 0, "err=invalid repetition count"),
    CompileCase("\\99999999999", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\99999999999", 16, 0, "err=back reference out of range in regular expression"),
    CompileCase("(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)", 0, 0, "ok cc=255 flags=0x0"),
    CompileCase("(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)", 0, 0, "err=too many captures"),
    CompileCase("(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:a){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:a){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}){2}", 0, 0, "err=too many imbricated quantifiers"),
    CompileCase("(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:a){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:a){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a|b", 0, 2, "err=stack overflow"),
    CompileCase("[a]", 0, 2, "err=stack overflow"),
    CompileCase("[[a]]", 256, 2, "err=stack overflow"),
    CompileCase("abc", 0, 100, "err=out of memory"),
    CompileCase("abc", 0, 101, "err=out of memory"),
    CompileCase("abc", 0, 102, "err=out of memory"),
    CompileCase("abc", 0, 103, "err=out of memory"),
    CompileCase("a|b", 0, 101, "err=out of memory"),
    CompileCase("(?<n>a)", 0, 101, "err=out of memory"),
    CompileCase("(?<n>a)", 0, 102, "err=out of memory"),
    CompileCase("[a-z]", 2, 101, "err=out of memory"),
    CompileCase("[a-z]", 2, 102, "err=out of memory"),
    CompileCase("[a-z]", 2, 103, "err=out of memory"),
    CompileCase("[a-z]", 2, 110, "err=out of memory"),
    CompileCase("\\p{L}", 16, 101, "err=out of memory"),
    CompileCase("\\p{L}", 16, 102, "err=out of memory"),
    CompileCase("\\p{L}", 16, 103, "err=out of memory"),
    CompileCase("\\p{L}", 18, 104, "err=out of memory"),
    CompileCase("[\\q{abc|de}]", 256, 101, "err=out of memory"),
    CompileCase("[\\q{abc|de}]", 256, 102, "err=out of memory"),
    CompileCase("[\\q{abc|de}]", 256, 103, "err=out of memory"),
    CompileCase("[\\q{abc|de}]", 256, 104, "err=out of memory"),
    CompileCase("[\\q{abc|de}]", 256, 105, "err=out of memory"),
    CompileCase("[\\q{abc|de}]", 256, 106, "err=out of memory"),
    CompileCase("\\d", 0, 101, "err="),
    CompileCase("\\D", 0, 102, "err="),
    CompileCase("x*", 0, 101, "err=out of memory"),
    CompileCase("a", 127, 0, "ok cc=1 flags=0x7f"),
    CompileCase("a", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("a", 272, 0, "ok cc=1 flags=0x110"),
    CompileCase("", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("", 32, 0, "ok cc=1 flags=0x20"),
    CompileCase("\\p{Lu}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\p{Lu}", 258, 0, "ok cc=1 flags=0x102"),
    CompileCase("\\P{Lu}", 18, 0, "ok cc=1 flags=0x12"),
    CompileCase("\\P{Lu}", 258, 0, "ok cc=1 flags=0x102"),
    CompileCase("[\\p{L}&&\\p{Greek}]", 256, 0, "err=unknown unicode property name"),
    CompileCase("\\p{Script_Extensions=Latin}", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{General_Category=Letter}", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("\\p{Basic_Emoji}", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("\\p{Emoji_Keycap_Sequence}", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("\\p{RGI_Emoji_Tag_Sequence}", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("\\p{RGI_Emoji_ZWJ_Sequence}", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("\\p{RGI_Emoji_Modifier_Sequence}", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("[\\p{Basic_Emoji}--\\q{\u{1f600}}]", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("\\p{Emoji_Keycap_Sequence}", 258, 0, "ok cc=1 flags=0x102"),
    CompileCase("[\\q{KK|ss|\u{17f}\u{17f}}]", 258, 0, "ok cc=1 flags=0x102"),
    CompileCase("\\s", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("\\S", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\s]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[^\\s]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\\S]", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("\\w", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("[\u{100}-\u{ffff}]", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("[\u{100}-\u{ffff}]", 2, 0, "ok cc=1 flags=0x2"),
    CompileCase("[\\u{10000}-\\u{10ffff}]", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[^\\u{10000}-\\u{10ffff}]", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[^a]", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("(?:a|b|c)", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a|b|c|", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=a|bc)d", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<=(a)+)", 0, 0, "ok cc=2 flags=0x0"),
]