/* This file was generated automatically by the Snowball to ISO C++ compiler */
/* http://snowballstem.org/ */

#include <config.h>
#include <limits.h>
#include "earlyenglish.h"

#define s_0_0 (s_0_1 + 2)
static const symbol s_pool[] = {
#define s_0_1 0
'i', 'e', 's',
#define s_0_2 3
's', 's', 'e', 's',
#define s_0_3 s_0_2
#define s_1_1 7
'b', 'b',
#define s_1_2 9
'd', 'd',
#define s_1_3 11
'f', 'f',
#define s_1_4 13
'g', 'g',
#define s_1_5 15
'b', 'l',
#define s_1_6 17
'm', 'm',
#define s_1_7 19
'n', 'n',
#define s_1_8 21
'p', 'p',
#define s_1_9 23
'r', 'r',
#define s_1_10 25
'a', 't',
#define s_1_11 27
't', 't',
#define s_1_12 29
'i', 'z',
#define s_2_0 (s_2_1 + 1)
#define s_2_1 31
'e', 'e', 'd',
#define s_2_2 34
'i', 'n', 'g',
#define s_2_3 37
'e', 't', 'h',
#define s_2_4 40
'e', 's', 't',
#define s_3_0 43
'a', 'n', 'c', 'i',
#define s_3_1 47
'e', 'n', 'c', 'i',
#define s_3_2 51
'a', 'b', 'l', 'i',
#define s_3_3 55
'e', 'l', 'i',
#define s_3_4 58
'a', 'l', 'l', 'i',
#define s_3_5 62
'o', 'u', 's', 'l', 'i',
#define s_3_6 67
'e', 'n', 't', 'l', 'i',
#define s_3_7 72
'a', 'l', 'i', 't', 'i',
#define s_3_8 77
'b', 'i', 'l', 'i', 't', 'i',
#define s_3_9 83
'i', 'v', 'i', 't', 'i',
#define s_3_10 (s_3_11 + 1)
#define s_3_11 88
'a', 't', 'i', 'o', 'n', 'a', 'l',
#define s_3_12 95
'a', 'l', 'i', 's', 'm',
#define s_3_13 s_3_11
#define s_3_14 100
'i', 'z', 'a', 't', 'i', 'o', 'n',
#define s_3_15 107
'i', 'z', 'e', 'r',
#define s_3_16 111
'a', 't', 'o', 'r',
#define s_3_17 115
'i', 'v', 'e', 'n', 'e', 's', 's',
#define s_3_18 122
'f', 'u', 'l', 'n', 'e', 's', 's',
#define s_3_19 129
'o', 'u', 's', 'n', 'e', 's', 's',
#define s_4_0 136
'i', 'c', 'a', 't', 'e',
#define s_4_1 141
'a', 't', 'i', 'v', 'e',
#define s_4_2 146
'a', 'l', 'i', 'z', 'e',
#define s_4_3 151
'i', 'c', 'i', 't', 'i',
#define s_4_4 156
'i', 'c', 'a', 'l',
#define s_4_5 160
'f', 'u', 'l',
#define s_4_6 163
'n', 'e', 's', 's',
#define s_5_0 167
'i', 'c',
#define s_5_1 169
'a', 'n', 'c', 'e',
#define s_5_2 173
'e', 'n', 'c', 'e',
#define s_5_3 177
'a', 'b', 'l', 'e',
#define s_5_4 181
'i', 'b', 'l', 'e',
#define s_5_5 185
'a', 't', 'e',
#define s_5_6 188
'i', 'v', 'e',
#define s_5_7 191
'i', 'z', 'e',
#define s_5_8 194
'i', 't', 'i',
#define s_5_9 197
'a', 'l',
#define s_5_10 199
'i', 's', 'm',
#define s_5_11 202
'i', 'o', 'n',
#define s_5_12 205
'e', 'r',
#define s_5_13 207
'o', 'u', 's',
#define s_5_14 210
'a', 'n', 't',
#define s_5_15 (s_5_16 + 1)
#define s_5_16 (s_5_17 + 1)
#define s_5_17 213
'e', 'm', 'e', 'n', 't',
#define s_5_18 s_5_13
};


static const struct among a_0[4] =
{
/*  0 */ { 1, s_0_0, -1, 3},
/*  1 */ { 3, s_0_1, 0, 2},
/*  2 */ { 4, s_0_2, 0, 1},
/*  3 */ { 2, s_0_3, 0, -1}
};


static const struct among a_1[13] =
{
/*  0 */ { 0, 0, -1, 3},
/*  1 */ { 2, s_1_1, 0, 2},
/*  2 */ { 2, s_1_2, 0, 2},
/*  3 */ { 2, s_1_3, 0, 2},
/*  4 */ { 2, s_1_4, 0, 2},
/*  5 */ { 2, s_1_5, 0, 1},
/*  6 */ { 2, s_1_6, 0, 2},
/*  7 */ { 2, s_1_7, 0, 2},
/*  8 */ { 2, s_1_8, 0, 2},
/*  9 */ { 2, s_1_9, 0, 2},
/* 10 */ { 2, s_1_10, 0, 1},
/* 11 */ { 2, s_1_11, 0, 2},
/* 12 */ { 2, s_1_12, 0, 1}
};


static const struct among a_2[5] =
{
/*  0 */ { 2, s_2_0, -1, 2},
/*  1 */ { 3, s_2_1, 0, 1},
/*  2 */ { 3, s_2_2, -1, 2},
/*  3 */ { 3, s_2_3, -1, 2},
/*  4 */ { 3, s_2_4, -1, 2}
};


static const struct among a_3[20] =
{
/*  0 */ { 4, s_3_0, -1, 3},
/*  1 */ { 4, s_3_1, -1, 2},
/*  2 */ { 4, s_3_2, -1, 4},
/*  3 */ { 3, s_3_3, -1, 6},
/*  4 */ { 4, s_3_4, -1, 9},
/*  5 */ { 5, s_3_5, -1, 11},
/*  6 */ { 5, s_3_6, -1, 5},
/*  7 */ { 5, s_3_7, -1, 9},
/*  8 */ { 6, s_3_8, -1, 13},
/*  9 */ { 5, s_3_9, -1, 12},
/* 10 */ { 6, s_3_10, -1, 1},
/* 11 */ { 7, s_3_11, 10, 8},
/* 12 */ { 5, s_3_12, -1, 9},
/* 13 */ { 5, s_3_13, -1, 8},
/* 14 */ { 7, s_3_14, 13, 7},
/* 15 */ { 4, s_3_15, -1, 7},
/* 16 */ { 4, s_3_16, -1, 8},
/* 17 */ { 7, s_3_17, -1, 12},
/* 18 */ { 7, s_3_18, -1, 10},
/* 19 */ { 7, s_3_19, -1, 11}
};


static const struct among a_4[7] =
{
/*  0 */ { 5, s_4_0, -1, 2},
/*  1 */ { 5, s_4_1, -1, 3},
/*  2 */ { 5, s_4_2, -1, 1},
/*  3 */ { 5, s_4_3, -1, 2},
/*  4 */ { 4, s_4_4, -1, 2},
/*  5 */ { 3, s_4_5, -1, 3},
/*  6 */ { 4, s_4_6, -1, 3}
};


static const struct among a_5[19] =
{
/*  0 */ { 2, s_5_0, -1, 1},
/*  1 */ { 4, s_5_1, -1, 1},
/*  2 */ { 4, s_5_2, -1, 1},
/*  3 */ { 4, s_5_3, -1, 1},
/*  4 */ { 4, s_5_4, -1, 1},
/*  5 */ { 3, s_5_5, -1, 1},
/*  6 */ { 3, s_5_6, -1, 1},
/*  7 */ { 3, s_5_7, -1, 1},
/*  8 */ { 3, s_5_8, -1, 1},
/*  9 */ { 2, s_5_9, -1, 1},
/* 10 */ { 3, s_5_10, -1, 1},
/* 11 */ { 3, s_5_11, -1, 2},
/* 12 */ { 2, s_5_12, -1, 1},
/* 13 */ { 3, s_5_13, -1, 1},
/* 14 */ { 3, s_5_14, -1, 1},
/* 15 */ { 3, s_5_15, -1, 1},
/* 16 */ { 4, s_5_16, 15, 1},
/* 17 */ { 5, s_5_17, 16, 1},
/* 18 */ { 2, s_5_18, -1, 1}
};

static const unsigned char g_v[] = { 17, 65, 16, 1 };

static const unsigned char g_v_WXY[] = { 1, 17, 65, 208, 1 };

static const symbol s_0[] = { 's', 's' };
static const symbol s_1[] = { 'i' };
static const symbol s_2[] = { 'e', 'e' };
static const symbol s_3[] = { 'e' };
static const symbol s_4[] = { 'e' };
static const symbol s_5[] = { 'i' };
static const symbol s_6[] = { 't', 'i', 'o', 'n' };
static const symbol s_7[] = { 'e', 'n', 'c', 'e' };
static const symbol s_8[] = { 'a', 'n', 'c', 'e' };
static const symbol s_9[] = { 'a', 'b', 'l', 'e' };
static const symbol s_10[] = { 'e', 'n', 't' };
static const symbol s_11[] = { 'e' };
static const symbol s_12[] = { 'i', 'z', 'e' };
static const symbol s_13[] = { 'a', 't', 'e' };
static const symbol s_14[] = { 'a', 'l' };
static const symbol s_15[] = { 'f', 'u', 'l' };
static const symbol s_16[] = { 'o', 'u', 's' };
static const symbol s_17[] = { 'i', 'v', 'e' };
static const symbol s_18[] = { 'b', 'l', 'e' };
static const symbol s_19[] = { 'a', 'l' };
static const symbol s_20[] = { 'i', 'c' };
static const symbol s_21[] = { 'Y' };
static const symbol s_22[] = { 'Y' };
static const symbol s_23[] = { 'y' };

int Xapian::InternalStemEarlyenglish::r_shortv() { /* backwardmode */
    if (out_grouping_b_U(g_v_WXY, 89, 121, 0)) return 0; /* non v_WXY, line 21 */
    if (in_grouping_b_U(g_v, 97, 121, 0)) return 0; /* grouping v, line 21 */
    if (out_grouping_b_U(g_v, 97, 121, 0)) return 0; /* non v, line 21 */
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_R1() { /* backwardmode */
    if (!(I_p1 <= c)) return 0; /* $(<integer expression> <= <integer expression>), line 23 */
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_R2() { /* backwardmode */
    if (!(I_p2 <= c)) return 0; /* $(<integer expression> <= <integer expression>), line 24 */
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_Step_1a() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 27 */
    if (c <= lb || p[c - 1] != 115) return 0; /* substring, line 27 */
    among_var = find_among_b(s_pool, a_0, 4, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 27 */
    switch (among_var) { /* among, line 27 */
        case 1:
            {   int ret = slice_from_s(2, s_0); /* <-, line 28 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int ret = slice_from_s(1, s_1); /* <-, line 29 */
                if (ret < 0) return ret;
            }
            break;
        case 3:
            if (slice_del() == -1) return -1; /* delete, line 31 */
            break;
    }
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_Step_1b() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 36 */
    if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((1048976 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* substring, line 36 */
    among_var = find_among_b(s_pool, a_2, 5, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 36 */
    switch (among_var) { /* among, line 36 */
        case 1:
            {   int ret = r_R1(); /* call R1, line 37 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(2, s_2); /* <-, line 37 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int m_test1 = l - c; /* test, line 42 */
                {    /* gopast */ /* grouping v, line 42 */
                    int ret = out_grouping_b_U(g_v, 97, 121, 1);
                    if (ret < 0) return 0;
                    c -= ret;
                }
                c = l - m_test1;
            }
            if (slice_del() == -1) return -1; /* delete, line 42 */
            {   int m_test2 = l - c; /* test, line 43 */
                if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((68514004 >> (p[c - 1] & 0x1f)) & 1)) among_var = 3; else /* substring, line 43 */
                among_var = find_among_b(s_pool, a_1, 13, 0, 0);
                if (!(among_var)) return 0;
                c = l - m_test2;
            }
            switch (among_var) { /* among, line 43 */
                case 1:
                    {   int saved_c = c;
                        insert_s(c, c, 1, s_3); /* <+, line 45 */
                        c = saved_c;
                    }
                    break;
                case 2:
                    ket = c; /* [, line 48 */
                    {   int ret = skip_utf8(p, c, lb, 0, -1);
                        if (ret < 0) return 0;
                        c = ret; /* next, line 48 */
                    }
                    bra = c; /* ], line 48 */
                    if (slice_del() == -1) return -1; /* delete, line 48 */
                    break;
                case 3:
                    if (c != I_p1) return 0; /* atmark, line 49 */
                    {   int m_test3 = l - c; /* test, line 49 */
                        {   int ret = r_shortv(); /* call shortv, line 49 */
                            if (ret <= 0) return ret;
                        }
                        c = l - m_test3;
                    }
                    {   int saved_c = c;
                        insert_s(c, c, 1, s_4); /* <+, line 49 */
                        c = saved_c;
                    }
                    break;
            }
            break;
    }
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_Step_1c() { /* backwardmode */
    ket = c; /* [, line 56 */
    {   int m1 = l - c; (void)m1; /* or, line 56 */
        if (c <= lb || p[c - 1] != 'y') goto lab1; /* literal, line 56 */
        c--;
        goto lab0;
    lab1:
        c = l - m1;
        if (c <= lb || p[c - 1] != 'Y') return 0; /* literal, line 56 */
        c--;
    }
lab0:
    bra = c; /* ], line 56 */
    {    /* gopast */ /* grouping v, line 57 */
        int ret = out_grouping_b_U(g_v, 97, 121, 1);
        if (ret < 0) return 0;
        c -= ret;
    }
    {   int ret = slice_from_s(1, s_5); /* <-, line 58 */
        if (ret < 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_Step_2() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 62 */
    if (c - 2 <= lb || p[c - 1] >> 5 != 3 || !((815616 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* substring, line 62 */
    among_var = find_among_b(s_pool, a_3, 20, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 62 */
    {   int ret = r_R1(); /* call R1, line 62 */
        if (ret <= 0) return ret;
    }
    switch (among_var) { /* among, line 62 */
        case 1:
            {   int ret = slice_from_s(4, s_6); /* <-, line 63 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int ret = slice_from_s(4, s_7); /* <-, line 64 */
                if (ret < 0) return ret;
            }
            break;
        case 3:
            {   int ret = slice_from_s(4, s_8); /* <-, line 65 */
                if (ret < 0) return ret;
            }
            break;
        case 4:
            {   int ret = slice_from_s(4, s_9); /* <-, line 66 */
                if (ret < 0) return ret;
            }
            break;
        case 5:
            {   int ret = slice_from_s(3, s_10); /* <-, line 67 */
                if (ret < 0) return ret;
            }
            break;
        case 6:
            {   int ret = slice_from_s(1, s_11); /* <-, line 68 */
                if (ret < 0) return ret;
            }
            break;
        case 7:
            {   int ret = slice_from_s(3, s_12); /* <-, line 70 */
                if (ret < 0) return ret;
            }
            break;
        case 8:
            {   int ret = slice_from_s(3, s_13); /* <-, line 72 */
                if (ret < 0) return ret;
            }
            break;
        case 9:
            {   int ret = slice_from_s(2, s_14); /* <-, line 73 */
                if (ret < 0) return ret;
            }
            break;
        case 10:
            {   int ret = slice_from_s(3, s_15); /* <-, line 76 */
                if (ret < 0) return ret;
            }
            break;
        case 11:
            {   int ret = slice_from_s(3, s_16); /* <-, line 78 */
                if (ret < 0) return ret;
            }
            break;
        case 12:
            {   int ret = slice_from_s(3, s_17); /* <-, line 80 */
                if (ret < 0) return ret;
            }
            break;
        case 13:
            {   int ret = slice_from_s(3, s_18); /* <-, line 81 */
                if (ret < 0) return ret;
            }
            break;
    }
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_Step_3() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 86 */
    if (c - 2 <= lb || p[c - 1] >> 5 != 3 || !((528928 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* substring, line 86 */
    among_var = find_among_b(s_pool, a_4, 7, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 86 */
    {   int ret = r_R1(); /* call R1, line 86 */
        if (ret <= 0) return ret;
    }
    switch (among_var) { /* among, line 86 */
        case 1:
            {   int ret = slice_from_s(2, s_19); /* <-, line 87 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int ret = slice_from_s(2, s_20); /* <-, line 89 */
                if (ret < 0) return ret;
            }
            break;
        case 3:
            if (slice_del() == -1) return -1; /* delete, line 91 */
            break;
    }
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_Step_4() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 96 */
    if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((3961384 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* substring, line 96 */
    among_var = find_among_b(s_pool, a_5, 19, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 96 */
    {   int ret = r_R2(); /* call R2, line 96 */
        if (ret <= 0) return ret;
    }
    switch (among_var) { /* among, line 96 */
        case 1:
            if (slice_del() == -1) return -1; /* delete, line 99 */
            break;
        case 2:
            {   int m1 = l - c; (void)m1; /* or, line 100 */
                if (c <= lb || p[c - 1] != 's') goto lab1; /* literal, line 100 */
                c--;
                goto lab0;
            lab1:
                c = l - m1;
                if (c <= lb || p[c - 1] != 't') return 0; /* literal, line 100 */
                c--;
            }
        lab0:
            if (slice_del() == -1) return -1; /* delete, line 100 */
            break;
    }
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_Step_5a() { /* backwardmode */
    ket = c; /* [, line 105 */
    if (c <= lb || p[c - 1] != 'e') return 0; /* literal, line 105 */
    c--;
    bra = c; /* ], line 105 */
    {   int m1 = l - c; (void)m1; /* or, line 106 */
        {   int ret = r_R2(); /* call R2, line 106 */
            if (ret == 0) goto lab1;
            if (ret < 0) return ret;
        }
        goto lab0;
    lab1:
        c = l - m1;
        {   int ret = r_R1(); /* call R1, line 106 */
            if (ret <= 0) return ret;
        }
        {   int m2 = l - c; (void)m2; /* not, line 106 */
            {   int ret = r_shortv(); /* call shortv, line 106 */
                if (ret == 0) goto lab2;
                if (ret < 0) return ret;
            }
            return 0;
        lab2:
            c = l - m2;
        }
    }
lab0:
    if (slice_del() == -1) return -1; /* delete, line 107 */
    return 1;
}

int Xapian::InternalStemEarlyenglish::r_Step_5b() { /* backwardmode */
    ket = c; /* [, line 111 */
    if (c <= lb || p[c - 1] != 'l') return 0; /* literal, line 111 */
    c--;
    bra = c; /* ], line 111 */
    {   int ret = r_R2(); /* call R2, line 112 */
        if (ret <= 0) return ret;
    }
    if (c <= lb || p[c - 1] != 'l') return 0; /* literal, line 112 */
    c--;
    if (slice_del() == -1) return -1; /* delete, line 113 */
    return 1;
}

int Xapian::InternalStemEarlyenglish::stem() { /* forwardmode */
    B_Y_found = 0; /* unset Y_found, line 119 */
    {   int c1 = c; /* do, line 120 */
        bra = c; /* [, line 120 */
        if (c == l || p[c] != 'y') goto lab0; /* literal, line 120 */
        c++;
        ket = c; /* ], line 120 */
        {   int ret = slice_from_s(1, s_21); /* <-, line 120 */
            if (ret < 0) return ret;
        }
        B_Y_found = 1; /* set Y_found, line 120 */
    lab0:
        c = c1;
    }
    {   int c2 = c; /* do, line 121 */
        while(1) { /* repeat, line 121 */
            int c3 = c;
            while(1) { /* goto, line 121 */
                int c4 = c;
                if (in_grouping_U(g_v, 97, 121, 0)) goto lab3; /* grouping v, line 121 */
                bra = c; /* [, line 121 */
                if (c == l || p[c] != 'y') goto lab3; /* literal, line 121 */
                c++;
                ket = c; /* ], line 121 */
                c = c4;
                break;
            lab3:
                c = c4;
                {   int ret = skip_utf8(p, c, 0, l, 1);
                    if (ret < 0) goto lab2;
                    c = ret; /* goto, line 121 */
                }
            }
            {   int ret = slice_from_s(1, s_22); /* <-, line 121 */
                if (ret < 0) return ret;
            }
            B_Y_found = 1; /* set Y_found, line 121 */
            continue;
        lab2:
            c = c3;
            break;
        }
        c = c2;
    }
    I_p1 = l; /* $p1 = <integer expression>, line 123 */
    I_p2 = l; /* $p2 = <integer expression>, line 124 */
    {   int c5 = c; /* do, line 125 */
        {    /* gopast */ /* grouping v, line 126 */
            int ret = out_grouping_U(g_v, 97, 121, 1);
            if (ret < 0) goto lab4;
            c += ret;
        }
        {    /* gopast */ /* non v, line 126 */
            int ret = in_grouping_U(g_v, 97, 121, 1);
            if (ret < 0) goto lab4;
            c += ret;
        }
        I_p1 = c; /* setmark p1, line 126 */
        {    /* gopast */ /* grouping v, line 127 */
            int ret = out_grouping_U(g_v, 97, 121, 1);
            if (ret < 0) goto lab4;
            c += ret;
        }
        {    /* gopast */ /* non v, line 127 */
            int ret = in_grouping_U(g_v, 97, 121, 1);
            if (ret < 0) goto lab4;
            c += ret;
        }
        I_p2 = c; /* setmark p2, line 127 */
    lab4:
        c = c5;
    }
    lb = c; c = l; /* backwards, line 130 */

    {   int m6 = l - c; (void)m6; /* do, line 131 */
        {   int ret = r_Step_1a(); /* call Step_1a, line 131 */
            if (ret == 0) goto lab5;
            if (ret < 0) return ret;
        }
    lab5:
        c = l - m6;
    }
    {   int m7 = l - c; (void)m7; /* do, line 132 */
        {   int ret = r_Step_1b(); /* call Step_1b, line 132 */
            if (ret == 0) goto lab6;
            if (ret < 0) return ret;
        }
    lab6:
        c = l - m7;
    }
    {   int m8 = l - c; (void)m8; /* do, line 133 */
        {   int ret = r_Step_1c(); /* call Step_1c, line 133 */
            if (ret == 0) goto lab7;
            if (ret < 0) return ret;
        }
    lab7:
        c = l - m8;
    }
    {   int m9 = l - c; (void)m9; /* do, line 134 */
        {   int ret = r_Step_2(); /* call Step_2, line 134 */
            if (ret == 0) goto lab8;
            if (ret < 0) return ret;
        }
    lab8:
        c = l - m9;
    }
    {   int m10 = l - c; (void)m10; /* do, line 135 */
        {   int ret = r_Step_3(); /* call Step_3, line 135 */
            if (ret == 0) goto lab9;
            if (ret < 0) return ret;
        }
    lab9:
        c = l - m10;
    }
    {   int m11 = l - c; (void)m11; /* do, line 136 */
        {   int ret = r_Step_4(); /* call Step_4, line 136 */
            if (ret == 0) goto lab10;
            if (ret < 0) return ret;
        }
    lab10:
        c = l - m11;
    }
    {   int m12 = l - c; (void)m12; /* do, line 137 */
        {   int ret = r_Step_5a(); /* call Step_5a, line 137 */
            if (ret == 0) goto lab11;
            if (ret < 0) return ret;
        }
    lab11:
        c = l - m12;
    }
    {   int m13 = l - c; (void)m13; /* do, line 138 */
        {   int ret = r_Step_5b(); /* call Step_5b, line 138 */
            if (ret == 0) goto lab12;
            if (ret < 0) return ret;
        }
    lab12:
        c = l - m13;
    }
    c = lb;
    {   int c14 = c; /* do, line 141 */
        if (!(B_Y_found)) goto lab13; /* Boolean test Y_found, line 141 */
        while(1) { /* repeat, line 141 */
            int c15 = c;
            while(1) { /* goto, line 141 */
                int c16 = c;
                bra = c; /* [, line 141 */
                if (c == l || p[c] != 'Y') goto lab15; /* literal, line 141 */
                c++;
                ket = c; /* ], line 141 */
                c = c16;
                break;
            lab15:
                c = c16;
                {   int ret = skip_utf8(p, c, 0, l, 1);
                    if (ret < 0) goto lab14;
                    c = ret; /* goto, line 141 */
                }
            }
            {   int ret = slice_from_s(1, s_23); /* <-, line 141 */
                if (ret < 0) return ret;
            }
            continue;
        lab14:
            c = c15;
            break;
        }
    lab13:
        c = c14;
    }
    return 1;
}

Xapian::InternalStemEarlyenglish::InternalStemEarlyenglish()
    : B_Y_found(0), I_p2(0), I_p1(0)
{
}

Xapian::InternalStemEarlyenglish::~InternalStemEarlyenglish()
{
}

std::string
Xapian::InternalStemEarlyenglish::get_description() const
{
    return "earlyenglish";
}
