/* This file was generated automatically by the Snowball to ISO C++ compiler */

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

static const symbol s_pool[] = {
#define s_0_0 0
'n', 'd', 'e',
#define s_0_1 3
'e', 'n',
#define s_0_2 (s_0_3 + 1)
#define s_0_3 5
'\'', 's',
#define s_0_4 (s_0_5 + 1)
#define s_0_5 7
'i', 'e', 's',
#define s_0_6 10
'a', 'u', 's',
#define s_1_0 13
'd', 'e',
#define s_1_1 15
'g', 'e',
#define s_1_2 17
'i', 's', 'c', 'h', 'e',
#define s_1_3 22
'j', 'e',
#define s_1_4 24
'l', 'i', 'j', 'k', 'e',
#define s_1_5 29
'l', 'e',
#define s_1_6 31
'e', 'n', 'e',
#define s_1_7 34
'r', 'e',
#define s_1_8 36
's', 'e',
#define s_1_9 38
't', 'e',
#define s_1_10 40
'i', 'e', 'v', 'e',
#define s_2_0 44
'h', 'e', 'i', 'd',
#define s_2_1 48
'f', 'i', 'e',
#define s_2_2 51
'g', 'i', 'e',
#define s_2_3 54
'a', 't', 'i', 'e',
#define s_2_4 58
'i', 's', 'm', 'e',
#define s_2_5 62
'i', 'n', 'g',
#define s_2_6 65
'a', 'r', 'i', 'j',
#define s_2_7 69
'e', 'r', 'i', 'j',
#define s_2_8 73
's', 'e', 'l',
#define s_2_9 76
'r', 'd', 'e', 'r',
#define s_2_10 80
's', 't', 'e', 'r',
#define s_2_11 84
'i', 't', 'e', 'i', 't',
#define s_2_12 89
'd', 's', 't',
#define s_2_13 92
't', 's', 't',
#define s_3_0 95
'e', 'n', 'd',
#define s_3_1 98
'a', 't', 'i', 'e', 'f',
#define s_3_2 s_3_9
#define s_3_3 s_3_10
#define s_3_4 103
'i', 'o', 'n', 'e', 'e', 'l',
#define s_3_5 109
'b', 'a', 'a', 'r',
#define s_3_6 113
'l', 'a', 'a', 'r',
#define s_3_7 117
'n', 'a', 'a', 'r',
#define s_3_8 121
'r', 'a', 'a', 'r',
#define s_3_9 125
'e', 'r', 'i', 'g', 'e', 'r',
#define s_3_10 131
'a', 'c', 'h', 't', 'i', 'g', 'e', 'r',
#define s_3_11 139
'l', 'i', 'j', 'k', 'e', 'r',
#define s_3_12 145
't', 'a', 'n', 't',
#define s_3_13 149
'e', 'r', 'i', 'g', 's', 't',
#define s_3_14 155
'a', 'c', 'h', 't', 'i', 'g', 's', 't',
#define s_3_15 163
'l', 'i', 'j', 'k', 's', 't',
#define s_4_0 s_4_1
#define s_4_1 169
'i', 'g', 'e', 'r',
#define s_4_2 173
'i', 'g', 's', 't',
#define s_5_0 177
'f', 't',
#define s_5_1 179
'k', 't',
#define s_5_2 181
'p', 't',
#define s_6_0 183
'b', 'b',
#define s_6_1 185
'c', 'c',
#define s_6_2 187
'd', 'd',
#define s_6_3 189
'f', 'f',
#define s_6_4 191
'g', 'g',
#define s_6_5 193
'h', 'h',
#define s_6_6 195
'j', 'j',
#define s_6_7 197
'k', 'k',
#define s_6_8 199
'l', 'l',
#define s_6_9 201
'm', 'm',
#define s_6_10 203
'n', 'n',
#define s_6_11 205
'p', 'p',
#define s_6_12 207
'q', 'q',
#define s_6_13 209
'r', 'r',
#define s_6_14 211
's', 's',
#define s_6_15 213
't', 't',
#define s_6_16 (s_6_17 + 1)
#define s_6_17 215
'v', 'v',
#define s_6_18 217
'w', 'w',
#define s_6_19 219
'x', 'x',
#define s_6_20 (s_6_21 + 1)
#define s_6_21 221
'z', 'z',
#define s_7_0 223
'd',
#define s_7_1 224
't',
};


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


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


static const struct among a_2[14] =
{
/*  0 */ { 4, s_2_0, -1, 3},
/*  1 */ { 3, s_2_1, -1, 7},
/*  2 */ { 3, s_2_2, -1, 8},
/*  3 */ { 4, s_2_3, -1, 1},
/*  4 */ { 4, s_2_4, -1, 5},
/*  5 */ { 3, s_2_5, -1, 5},
/*  6 */ { 4, s_2_6, -1, 6},
/*  7 */ { 4, s_2_7, -1, 5},
/*  8 */ { 3, s_2_8, -1, 3},
/*  9 */ { 4, s_2_9, -1, 4},
/* 10 */ { 4, s_2_10, -1, 3},
/* 11 */ { 5, s_2_11, -1, 2},
/* 12 */ { 3, s_2_12, -1, 10},
/* 13 */ { 3, s_2_13, -1, 9}
};


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


static const struct among a_4[3] =
{
/*  0 */ { 2, s_4_0, -1, 1},
/*  1 */ { 4, s_4_1, -1, 1},
/*  2 */ { 4, s_4_2, -1, 1}
};


static const struct among a_5[3] =
{
/*  0 */ { 2, s_5_0, -1, 2},
/*  1 */ { 2, s_5_1, -1, 1},
/*  2 */ { 2, s_5_2, -1, 3}
};


static const struct among a_6[22] =
{
/*  0 */ { 2, s_6_0, -1, 1},
/*  1 */ { 2, s_6_1, -1, 2},
/*  2 */ { 2, s_6_2, -1, 3},
/*  3 */ { 2, s_6_3, -1, 4},
/*  4 */ { 2, s_6_4, -1, 5},
/*  5 */ { 2, s_6_5, -1, 6},
/*  6 */ { 2, s_6_6, -1, 7},
/*  7 */ { 2, s_6_7, -1, 8},
/*  8 */ { 2, s_6_8, -1, 9},
/*  9 */ { 2, s_6_9, -1, 10},
/* 10 */ { 2, s_6_10, -1, 11},
/* 11 */ { 2, s_6_11, -1, 12},
/* 12 */ { 2, s_6_12, -1, 13},
/* 13 */ { 2, s_6_13, -1, 14},
/* 14 */ { 2, s_6_14, -1, 15},
/* 15 */ { 2, s_6_15, -1, 16},
/* 16 */ { 1, s_6_16, -1, 21},
/* 17 */ { 2, s_6_17, 16, 17},
/* 18 */ { 2, s_6_18, -1, 18},
/* 19 */ { 2, s_6_19, -1, 19},
/* 20 */ { 1, s_6_20, -1, 22},
/* 21 */ { 2, s_6_21, 20, 20}
};


static const struct among a_7[2] =
{
/*  0 */ { 1, s_7_0, -1, 1},
/*  1 */ { 1, s_7_1, -1, 2}
};

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

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

static const unsigned char g_AOU[] = { 1, 64, 16 };

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

static const symbol s_0[] = { 'i', 'j' };
static const symbol s_1[] = { 'i', 'j' };
static const symbol s_2[] = { 'i', 'j' };
static const symbol s_3[] = { 'i', 'e' };
static const symbol s_4[] = { 'a', 'r' };
static const symbol s_5[] = { 'e', 'r' };
static const symbol s_6[] = { 'e' };
static const symbol s_7[] = { 'a', 'u' };
static const symbol s_8[] = { 'h', 'e', 'd' };
static const symbol s_9[] = { 'h', 'e', 'i', 'd' };
static const symbol s_10[] = { 'n', 'd' };
static const symbol s_11[] = { 'n', 'd' };
static const symbol s_12[] = { '\'', 't' };
static const symbol s_13[] = { 'e', 't' };
static const symbol s_14[] = { 'r', 'n', 't' };
static const symbol s_15[] = { 'r', 'n' };
static const symbol s_16[] = { 'i', 'n', 'k' };
static const symbol s_17[] = { 'i', 'n', 'g' };
static const symbol s_18[] = { 'm', 'p' };
static const symbol s_19[] = { 'm' };
static const symbol s_20[] = { 'g' };
static const symbol s_21[] = { 'l', 'i', 'j', 'k' };
static const symbol s_22[] = { 'i', 's', 'c', 'h' };
static const symbol s_23[] = { 't' };
static const symbol s_24[] = { 's' };
static const symbol s_25[] = { 'r' };
static const symbol s_26[] = { 'l' };
static const symbol s_27[] = { 'e', 'n' };
static const symbol s_28[] = { 'i', 'e', 'f' };
static const symbol s_29[] = { 'e', 'e', 'r' };
static const symbol s_30[] = { 'r' };
static const symbol s_31[] = { 'a', 'a', 'r' };
static const symbol s_32[] = { 'f' };
static const symbol s_33[] = { 'g' };
static const symbol s_34[] = { 't' };
static const symbol s_35[] = { 'd' };
static const symbol s_36[] = { 'i', 'e' };
static const symbol s_37[] = { 'e', 'e', 'r' };
static const symbol s_38[] = { 'n' };
static const symbol s_39[] = { 'l' };
static const symbol s_40[] = { 'r' };
static const symbol s_41[] = { 't', 'e', 'e', 'r' };
static const symbol s_42[] = { 'l', 'i', 'j', 'k' };
static const symbol s_43[] = { 'k' };
static const symbol s_44[] = { 'f' };
static const symbol s_45[] = { 'p' };
static const symbol s_46[] = { 'b' };
static const symbol s_47[] = { 'c' };
static const symbol s_48[] = { 'd' };
static const symbol s_49[] = { 'f' };
static const symbol s_50[] = { 'g' };
static const symbol s_51[] = { 'h' };
static const symbol s_52[] = { 'j' };
static const symbol s_53[] = { 'k' };
static const symbol s_54[] = { 'l' };
static const symbol s_55[] = { 'm' };
static const symbol s_56[] = { 'n' };
static const symbol s_57[] = { 'p' };
static const symbol s_58[] = { 'q' };
static const symbol s_59[] = { 'r' };
static const symbol s_60[] = { 's' };
static const symbol s_61[] = { 't' };
static const symbol s_62[] = { 'v' };
static const symbol s_63[] = { 'w' };
static const symbol s_64[] = { 'x' };
static const symbol s_65[] = { 'z' };
static const symbol s_66[] = { 'f' };
static const symbol s_67[] = { 's' };
static const symbol s_68[] = { 'g', 'e' };
static const symbol s_69[] = { 'g', 'e' };
static const symbol s_70[] = { 'i', 'j' };
static const symbol s_71[] = { 'i', 'j' };
static const symbol s_72[] = { 'Y' };
static const symbol s_73[] = { 'Y' };
static const symbol s_74[] = { 'y' };

int Xapian::InternalStemKraaij_pohlmann::r_R1() { /* backwardmode */
    I_x = c; /* setmark x, line 34 */
    if (!(I_x >= I_p1)) return 0; /* $x >= <integer expression>, line 34 */
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_R2() { /* backwardmode */
    I_x = c; /* setmark x, line 35 */
    if (!(I_x >= I_p2)) return 0; /* $x >= <integer expression>, line 35 */
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_V() { /* backwardmode */
    {   int m_test1 = l - c; /* test, line 37 */
        {   int m2 = l - c; /*(void)m2*/; /* or, line 37 */
            if (in_grouping_b_U(g_v, 97, 121, 0)) goto lab1; /* grouping v, line 37 */
            goto lab0;
        lab1:
            c = l - m2;
            if (!(eq_s_b(2, s_0))) return 0; /* literal, line 37 */
        }
    lab0:
        c = l - m_test1;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_VX() { /* backwardmode */
    {   int m_test1 = l - c; /* test, line 38 */
        {   int ret = skip_utf8(p, c, lb, 0, -1);
            if (ret < 0) return 0;
            c = ret; /* next, line 38 */
        }
        {   int m2 = l - c; /*(void)m2*/; /* or, line 38 */
            if (in_grouping_b_U(g_v, 97, 121, 0)) goto lab1; /* grouping v, line 38 */
            goto lab0;
        lab1:
            c = l - m2;
            if (!(eq_s_b(2, s_1))) return 0; /* literal, line 38 */
        }
    lab0:
        c = l - m_test1;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_C() { /* backwardmode */
    {   int m_test1 = l - c; /* test, line 39 */
        {   int m2 = l - c; /*(void)m2*/; /* not, line 39 */
            if (!(eq_s_b(2, s_2))) goto lab0; /* literal, line 39 */
            return 0;
        lab0:
            c = l - m2;
        }
        if (out_grouping_b_U(g_v, 97, 121, 0)) return 0; /* non v, line 39 */
        c = l - m_test1;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_lengthen_V() { /* backwardmode */
    {   int m1 = l - c; /*(void)m1*/; /* do, line 41 */
        if (out_grouping_b_U(g_v_WX, 97, 121, 0)) goto lab0; /* non v_WX, line 42 */
        ket = c; /* [, line 42 */
        {   int m2 = l - c; /*(void)m2*/; /* or, line 42 */
            if (in_grouping_b_U(g_AOU, 97, 117, 0)) goto lab2; /* grouping AOU, line 42 */
            bra = c; /* ], line 42 */
            {   int m_test3 = l - c; /* test, line 42 */
                {   int m4 = l - c; /*(void)m4*/; /* or, line 42 */
                    if (out_grouping_b_U(g_v, 97, 121, 0)) goto lab4; /* non v, line 42 */
                    goto lab3;
                lab4:
                    c = l - m4;
                    if (c > lb) goto lab2; /* atlimit, line 42 */
                }
            lab3:
                c = l - m_test3;
            }
            goto lab1;
        lab2:
            c = l - m2;
            if (c <= lb || p[c - 1] != 'e') goto lab0; /* literal, line 43 */
            c--;
            bra = c; /* ], line 43 */
            {   int m_test5 = l - c; /* test, line 43 */
                {   int m6 = l - c; /*(void)m6*/; /* or, line 43 */
                    if (out_grouping_b_U(g_v, 97, 121, 0)) goto lab6; /* non v, line 43 */
                    goto lab5;
                lab6:
                    c = l - m6;
                    if (c > lb) goto lab0; /* atlimit, line 43 */
                }
            lab5:
                {   int m7 = l - c; /*(void)m7*/; /* not, line 44 */
                    if (in_grouping_b_U(g_AIOU, 97, 117, 0)) goto lab7; /* grouping AIOU, line 44 */
                    goto lab0;
                lab7:
                    c = l - m7;
                }
                {   int m8 = l - c; /*(void)m8*/; /* not, line 45 */
                    {   int ret = skip_utf8(p, c, lb, 0, -1);
                        if (ret < 0) goto lab8;
                        c = ret; /* next, line 45 */
                    }
                    if (in_grouping_b_U(g_AIOU, 97, 117, 0)) goto lab8; /* grouping AIOU, line 45 */
                    if (out_grouping_b_U(g_v, 97, 121, 0)) goto lab8; /* non v, line 45 */
                    goto lab0;
                lab8:
                    c = l - m8;
                }
                c = l - m_test5;
            }
        }
    lab1:
        {   symbol * ret = slice_to(S_ch); /* -> ch, line 46 */
            if (ret == 0) return -1;
            S_ch = ret;
        }
        {   int saved_c = c;
            insert_v(c, c, S_ch); /* <+ ch, line 46 */
            c = saved_c;
        }
    lab0:
        c = l - m1;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Step_1() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 51 */
    if (c <= lb || p[c - 1] >> 5 != 3 || !((540704 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* among, line 51 */
    among_var = find_among_b(s_pool, a_0, 7, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 51 */
    switch (among_var) { /* among, line 51 */
        case 0: return 0;
        case 1:
            if (slice_del() == -1) return -1; /* delete, line 53 */
            break;
        case 2:
            {   int ret = r_R1(); /* call R1, line 54 */
                if (ret <= 0) return ret;
            }
            {   int m1 = l - c; /*(void)m1*/; /* not, line 54 */
                if (c <= lb || p[c - 1] != 't') goto lab0; /* literal, line 54 */
                c--;
                {   int ret = r_R1(); /* call R1, line 54 */
                    if (ret == 0) goto lab0;
                    if (ret < 0) return ret;
                }
                return 0;
            lab0:
                c = l - m1;
            }
            {   int ret = r_C(); /* call C, line 54 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 54 */
            break;
        case 3:
            {   int ret = r_R1(); /* call R1, line 55 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(2, s_3); /* <-, line 55 */
                if (ret < 0) return ret;
            }
            break;
        case 4:
            {   int m2 = l - c; /*(void)m2*/; /* or, line 57 */
                if (!(eq_s_b(2, s_4))) goto lab2; /* literal, line 57 */
                {   int ret = r_R1(); /* call R1, line 57 */
                    if (ret == 0) goto lab2;
                    if (ret < 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 57 */
                    if (ret == 0) goto lab2;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 57 */
                if (slice_del() == -1) return -1; /* delete, line 57 */
                {   int ret = r_lengthen_V(); /* call lengthen_V, line 57 */
                    if (ret == 0) goto lab2;
                    if (ret < 0) return ret;
                }
                goto lab1;
            lab2:
                c = l - m2;
                if (!(eq_s_b(2, s_5))) goto lab3; /* literal, line 58 */
                {   int ret = r_R1(); /* call R1, line 58 */
                    if (ret == 0) goto lab3;
                    if (ret < 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 58 */
                    if (ret == 0) goto lab3;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 58 */
                if (slice_del() == -1) return -1; /* delete, line 58 */
                goto lab1;
            lab3:
                c = l - m2;
                {   int ret = r_R1(); /* call R1, line 59 */
                    if (ret <= 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 59 */
                    if (ret <= 0) return ret;
                }
                {   int ret = slice_from_s(1, s_6); /* <-, line 59 */
                    if (ret < 0) return ret;
                }
            }
        lab1:
            break;
        case 5:
            {   int ret = r_R1(); /* call R1, line 61 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_V(); /* call V, line 61 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(2, s_7); /* <-, line 61 */
                if (ret < 0) return ret;
            }
            break;
        case 6:
            {   int m3 = l - c; /*(void)m3*/; /* or, line 62 */
                if (!(eq_s_b(3, s_8))) goto lab5; /* literal, line 62 */
                {   int ret = r_R1(); /* call R1, line 62 */
                    if (ret == 0) goto lab5;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 62 */
                {   int ret = slice_from_s(4, s_9); /* <-, line 62 */
                    if (ret < 0) return ret;
                }
                goto lab4;
            lab5:
                c = l - m3;
                if (!(eq_s_b(2, s_10))) goto lab6; /* literal, line 63 */
                if (slice_del() == -1) return -1; /* delete, line 63 */
                goto lab4;
            lab6:
                c = l - m3;
                if (c <= lb || p[c - 1] != 'd') goto lab7; /* literal, line 64 */
                c--;
                {   int ret = r_R1(); /* call R1, line 64 */
                    if (ret == 0) goto lab7;
                    if (ret < 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 64 */
                    if (ret == 0) goto lab7;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 64 */
                if (slice_del() == -1) return -1; /* delete, line 64 */
                goto lab4;
            lab7:
                c = l - m3;
                {   int m4 = l - c; /*(void)m4*/; /* or, line 65 */
                    if (c <= lb || p[c - 1] != 'i') goto lab10; /* literal, line 65 */
                    c--;
                    goto lab9;
                lab10:
                    c = l - m4;
                    if (c <= lb || p[c - 1] != 'j') goto lab8; /* literal, line 65 */
                    c--;
                }
            lab9:
                {   int ret = r_V(); /* call V, line 65 */
                    if (ret == 0) goto lab8;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 65 */
                goto lab4;
            lab8:
                c = l - m3;
                {   int ret = r_R1(); /* call R1, line 66 */
                    if (ret <= 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 66 */
                    if (ret <= 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 66 */
                {   int ret = r_lengthen_V(); /* call lengthen_V, line 66 */
                    if (ret <= 0) return ret;
                }
            }
        lab4:
            break;
        case 7:
            {   int ret = slice_from_s(2, s_11); /* <-, line 67 */
                if (ret < 0) return ret;
            }
            break;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Step_2() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 73 */
    if (c - 1 <= lb || p[c - 1] != 101) return 0; /* among, line 73 */
    among_var = find_among_b(s_pool, a_1, 11, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 73 */
    switch (among_var) { /* among, line 73 */
        case 0: return 0;
        case 1:
            {   int m1 = l - c; /*(void)m1*/; /* or, line 74 */
                if (!(eq_s_b(2, s_12))) goto lab1; /* literal, line 74 */
                bra = c; /* ], line 74 */
                if (slice_del() == -1) return -1; /* delete, line 74 */
                goto lab0;
            lab1:
                c = l - m1;
                if (!(eq_s_b(2, s_13))) goto lab2; /* literal, line 75 */
                bra = c; /* ], line 75 */
                {   int ret = r_R1(); /* call R1, line 75 */
                    if (ret == 0) goto lab2;
                    if (ret < 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 75 */
                    if (ret == 0) goto lab2;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 75 */
                goto lab0;
            lab2:
                c = l - m1;
                if (!(eq_s_b(3, s_14))) goto lab3; /* literal, line 76 */
                bra = c; /* ], line 76 */
                {   int ret = slice_from_s(2, s_15); /* <-, line 76 */
                    if (ret < 0) return ret;
                }
                goto lab0;
            lab3:
                c = l - m1;
                if (c <= lb || p[c - 1] != 't') goto lab4; /* literal, line 77 */
                c--;
                bra = c; /* ], line 77 */
                {   int ret = r_R1(); /* call R1, line 77 */
                    if (ret == 0) goto lab4;
                    if (ret < 0) return ret;
                }
                {   int ret = r_VX(); /* call VX, line 77 */
                    if (ret == 0) goto lab4;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 77 */
                goto lab0;
            lab4:
                c = l - m1;
                if (!(eq_s_b(3, s_16))) goto lab5; /* literal, line 78 */
                bra = c; /* ], line 78 */
                {   int ret = slice_from_s(3, s_17); /* <-, line 78 */
                    if (ret < 0) return ret;
                }
                goto lab0;
            lab5:
                c = l - m1;
                if (!(eq_s_b(2, s_18))) goto lab6; /* literal, line 79 */
                bra = c; /* ], line 79 */
                {   int ret = slice_from_s(1, s_19); /* <-, line 79 */
                    if (ret < 0) return ret;
                }
                goto lab0;
            lab6:
                c = l - m1;
                if (c <= lb || p[c - 1] != '\'') goto lab7; /* literal, line 80 */
                c--;
                bra = c; /* ], line 80 */
                {   int ret = r_R1(); /* call R1, line 80 */
                    if (ret == 0) goto lab7;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 80 */
                goto lab0;
            lab7:
                c = l - m1;
                bra = c; /* ], line 81 */
                {   int ret = r_R1(); /* call R1, line 81 */
                    if (ret <= 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 81 */
                    if (ret <= 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 81 */
            }
        lab0:
            break;
        case 2:
            {   int ret = r_R1(); /* call R1, line 82 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(1, s_20); /* <-, line 82 */
                if (ret < 0) return ret;
            }
            break;
        case 3:
            {   int ret = r_R1(); /* call R1, line 83 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(4, s_21); /* <-, line 83 */
                if (ret < 0) return ret;
            }
            break;
        case 4:
            {   int ret = r_R1(); /* call R1, line 84 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(4, s_22); /* <-, line 84 */
                if (ret < 0) return ret;
            }
            break;
        case 5:
            {   int ret = r_R1(); /* call R1, line 85 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 85 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 85 */
            break;
        case 6:
            {   int ret = r_R1(); /* call R1, line 86 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(1, s_23); /* <-, line 86 */
                if (ret < 0) return ret;
            }
            break;
        case 7:
            {   int ret = r_R1(); /* call R1, line 87 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(1, s_24); /* <-, line 87 */
                if (ret < 0) return ret;
            }
            break;
        case 8:
            {   int ret = r_R1(); /* call R1, line 88 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(1, s_25); /* <-, line 88 */
                if (ret < 0) return ret;
            }
            break;
        case 9:
            {   int ret = r_R1(); /* call R1, line 89 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 89 */
            insert_s(c, c, 1, s_26); /* attach, line 89 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 89 */
                if (ret <= 0) return ret;
            }
            break;
        case 10:
            {   int ret = r_R1(); /* call R1, line 90 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 90 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 90 */
            insert_s(c, c, 2, s_27); /* attach, line 90 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 90 */
                if (ret <= 0) return ret;
            }
            break;
        case 11:
            {   int ret = r_R1(); /* call R1, line 91 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 91 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(3, s_28); /* <-, line 91 */
                if (ret < 0) return ret;
            }
            break;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Step_3() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 97 */
    if (c - 2 <= lb || p[c - 1] >> 5 != 3 || !((1316016 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* among, line 97 */
    among_var = find_among_b(s_pool, a_2, 14, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 97 */
    switch (among_var) { /* among, line 97 */
        case 0: return 0;
        case 1:
            {   int ret = r_R1(); /* call R1, line 98 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(3, s_29); /* <-, line 98 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int ret = r_R1(); /* call R1, line 99 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 99 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 99 */
                if (ret <= 0) return ret;
            }
            break;
        case 3:
            {   int ret = r_R1(); /* call R1, line 102 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 102 */
            break;
        case 4:
            {   int ret = slice_from_s(1, s_30); /* <-, line 103 */
                if (ret < 0) return ret;
            }
            break;
        case 5:
            {   int ret = r_R1(); /* call R1, line 106 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 106 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 106 */
                if (ret <= 0) return ret;
            }
            break;
        case 6:
            {   int ret = r_R1(); /* call R1, line 107 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 107 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(3, s_31); /* <-, line 107 */
                if (ret < 0) return ret;
            }
            break;
        case 7:
            {   int ret = r_R2(); /* call R2, line 108 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 108 */
            insert_s(c, c, 1, s_32); /* attach, line 108 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 108 */
                if (ret <= 0) return ret;
            }
            break;
        case 8:
            {   int ret = r_R2(); /* call R2, line 109 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 109 */
            insert_s(c, c, 1, s_33); /* attach, line 109 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 109 */
                if (ret <= 0) return ret;
            }
            break;
        case 9:
            {   int ret = r_R1(); /* call R1, line 110 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 110 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(1, s_34); /* <-, line 110 */
                if (ret < 0) return ret;
            }
            break;
        case 10:
            {   int ret = r_R1(); /* call R1, line 111 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 111 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(1, s_35); /* <-, line 111 */
                if (ret < 0) return ret;
            }
            break;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Step_4() { /* backwardmode */
    int among_var;
    {   int m1 = l - c; /*(void)m1*/; /* or, line 136 */
        ket = c; /* [, line 117 */
        if (c - 2 <= lb || p[c - 1] >> 5 != 3 || !((1315024 >> (p[c - 1] & 0x1f)) & 1)) goto lab1; /* among, line 117 */
        among_var = find_among_b(s_pool, a_3, 16, 0, 0);
        if (!(among_var)) goto lab1;
        bra = c; /* ], line 117 */
        switch (among_var) { /* among, line 117 */
            case 0: goto lab1;
            case 1:
                {   int ret = r_R1(); /* call R1, line 118 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(2, s_36); /* <-, line 118 */
                    if (ret < 0) return ret;
                }
                break;
            case 2:
                {   int ret = r_R1(); /* call R1, line 119 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(3, s_37); /* <-, line 119 */
                    if (ret < 0) return ret;
                }
                break;
            case 3:
                {   int ret = r_R1(); /* call R1, line 120 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 120 */
                break;
            case 4:
                {   int ret = r_R1(); /* call R1, line 121 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = r_V(); /* call V, line 121 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(1, s_38); /* <-, line 121 */
                    if (ret < 0) return ret;
                }
                break;
            case 5:
                {   int ret = r_R1(); /* call R1, line 122 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = r_V(); /* call V, line 122 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(1, s_39); /* <-, line 122 */
                    if (ret < 0) return ret;
                }
                break;
            case 6:
                {   int ret = r_R1(); /* call R1, line 123 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = r_V(); /* call V, line 123 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(1, s_40); /* <-, line 123 */
                    if (ret < 0) return ret;
                }
                break;
            case 7:
                {   int ret = r_R1(); /* call R1, line 124 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(4, s_41); /* <-, line 124 */
                    if (ret < 0) return ret;
                }
                break;
            case 8:
                {   int ret = r_R1(); /* call R1, line 126 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(4, s_42); /* <-, line 126 */
                    if (ret < 0) return ret;
                }
                break;
            case 9:
                {   int ret = r_R1(); /* call R1, line 129 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 129 */
                break;
            case 10:
                {   int ret = r_R1(); /* call R1, line 133 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 133 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 133 */
                {   int ret = r_lengthen_V(); /* call lengthen_V, line 133 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                break;
        }
        goto lab0;
    lab1:
        c = l - m1;
        ket = c; /* [, line 137 */
        if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((1310848 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* among, line 137 */
        among_var = find_among_b(s_pool, a_4, 3, 0, 0);
        if (!(among_var)) return 0;
        bra = c; /* ], line 137 */
        switch (among_var) { /* among, line 137 */
            case 0: return 0;
            case 1:
                {   int ret = r_R1(); /* call R1, line 140 */
                    if (ret <= 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 140 */
                    if (ret <= 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 140 */
                {   int ret = r_lengthen_V(); /* call lengthen_V, line 140 */
                    if (ret <= 0) return ret;
                }
                break;
        }
    }
lab0:
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Step_7() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 147 */
    if (c - 1 <= lb || p[c - 1] != 116) return 0; /* among, line 147 */
    among_var = find_among_b(s_pool, a_5, 3, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 147 */
    switch (among_var) { /* among, line 147 */
        case 0: return 0;
        case 1:
            {   int ret = slice_from_s(1, s_43); /* <-, line 148 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int ret = slice_from_s(1, s_44); /* <-, line 149 */
                if (ret < 0) return ret;
            }
            break;
        case 3:
            {   int ret = slice_from_s(1, s_45); /* <-, line 150 */
                if (ret < 0) return ret;
            }
            break;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Step_6() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 156 */
    if (c <= lb || p[c - 1] >> 5 != 3 || !((98532828 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* among, line 156 */
    among_var = find_among_b(s_pool, a_6, 22, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 156 */
    switch (among_var) { /* among, line 156 */
        case 0: return 0;
        case 1:
            {   int ret = slice_from_s(1, s_46); /* <-, line 157 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int ret = slice_from_s(1, s_47); /* <-, line 158 */
                if (ret < 0) return ret;
            }
            break;
        case 3:
            {   int ret = slice_from_s(1, s_48); /* <-, line 159 */
                if (ret < 0) return ret;
            }
            break;
        case 4:
            {   int ret = slice_from_s(1, s_49); /* <-, line 160 */
                if (ret < 0) return ret;
            }
            break;
        case 5:
            {   int ret = slice_from_s(1, s_50); /* <-, line 161 */
                if (ret < 0) return ret;
            }
            break;
        case 6:
            {   int ret = slice_from_s(1, s_51); /* <-, line 162 */
                if (ret < 0) return ret;
            }
            break;
        case 7:
            {   int ret = slice_from_s(1, s_52); /* <-, line 163 */
                if (ret < 0) return ret;
            }
            break;
        case 8:
            {   int ret = slice_from_s(1, s_53); /* <-, line 164 */
                if (ret < 0) return ret;
            }
            break;
        case 9:
            {   int ret = slice_from_s(1, s_54); /* <-, line 165 */
                if (ret < 0) return ret;
            }
            break;
        case 10:
            {   int ret = slice_from_s(1, s_55); /* <-, line 166 */
                if (ret < 0) return ret;
            }
            break;
        case 11:
            {   int ret = slice_from_s(1, s_56); /* <-, line 167 */
                if (ret < 0) return ret;
            }
            break;
        case 12:
            {   int ret = slice_from_s(1, s_57); /* <-, line 168 */
                if (ret < 0) return ret;
            }
            break;
        case 13:
            {   int ret = slice_from_s(1, s_58); /* <-, line 169 */
                if (ret < 0) return ret;
            }
            break;
        case 14:
            {   int ret = slice_from_s(1, s_59); /* <-, line 170 */
                if (ret < 0) return ret;
            }
            break;
        case 15:
            {   int ret = slice_from_s(1, s_60); /* <-, line 171 */
                if (ret < 0) return ret;
            }
            break;
        case 16:
            {   int ret = slice_from_s(1, s_61); /* <-, line 172 */
                if (ret < 0) return ret;
            }
            break;
        case 17:
            {   int ret = slice_from_s(1, s_62); /* <-, line 173 */
                if (ret < 0) return ret;
            }
            break;
        case 18:
            {   int ret = slice_from_s(1, s_63); /* <-, line 174 */
                if (ret < 0) return ret;
            }
            break;
        case 19:
            {   int ret = slice_from_s(1, s_64); /* <-, line 175 */
                if (ret < 0) return ret;
            }
            break;
        case 20:
            {   int ret = slice_from_s(1, s_65); /* <-, line 176 */
                if (ret < 0) return ret;
            }
            break;
        case 21:
            {   int ret = slice_from_s(1, s_66); /* <-, line 177 */
                if (ret < 0) return ret;
            }
            break;
        case 22:
            {   int ret = slice_from_s(1, s_67); /* <-, line 178 */
                if (ret < 0) return ret;
            }
            break;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Step_1c() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 184 */
    if (c <= lb || (p[c - 1] != 100 && p[c - 1] != 116)) return 0; /* among, line 184 */
    among_var = find_among_b(s_pool, a_7, 2, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 184 */
    {   int ret = r_R1(); /* call R1, line 184 */
        if (ret <= 0) return ret;
    }
    {   int ret = r_C(); /* call C, line 184 */
        if (ret <= 0) return ret;
    }
    switch (among_var) { /* among, line 184 */
        case 0: return 0;
        case 1:
            {   int m1 = l - c; /*(void)m1*/; /* not, line 185 */
                if (c <= lb || p[c - 1] != 'n') goto lab0; /* literal, line 185 */
                c--;
                {   int ret = r_R1(); /* call R1, line 185 */
                    if (ret == 0) goto lab0;
                    if (ret < 0) return ret;
                }
                return 0;
            lab0:
                c = l - m1;
            }
            if (slice_del() == -1) return -1; /* delete, line 185 */
            break;
        case 2:
            {   int m2 = l - c; /*(void)m2*/; /* not, line 186 */
                if (c <= lb || p[c - 1] != 'h') goto lab1; /* literal, line 186 */
                c--;
                {   int ret = r_R1(); /* call R1, line 186 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                return 0;
            lab1:
                c = l - m2;
            }
            if (slice_del() == -1) return -1; /* delete, line 186 */
            break;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Lose_prefix() { /* forwardmode */
    bra = c; /* [, line 192 */
    if (!(eq_s(2, s_68))) return 0; /* literal, line 192 */
    ket = c; /* ], line 192 */
    {   int c_test1 = c; /* test, line 192 */
        {   int ret = skip_utf8(p, c, 0, l, + 3); /* hop, line 192 */
            if (ret < 0) return 0;
            c = ret;
        }
        c = c_test1;
    }
    if (out_grouping_U(g_v, 97, 121, 1) < 0) return 0; /* goto */ /* grouping v, line 192 */
    if (in_grouping_U(g_v, 97, 121, 1) < 0) return 0; /* goto */ /* non v, line 192 */
    B_GE_removed = 1; /* set GE_removed, line 193 */
    if (slice_del() == -1) return -1; /* delete, line 194 */
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_Lose_infix() { /* forwardmode */
    {   int ret = skip_utf8(p, c, 0, l, 1);
        if (ret < 0) return 0;
        c = ret; /* next, line 198 */
    }
    while(1) { /* gopast, line 199 */
        bra = c; /* [, line 199 */
        if (!(eq_s(2, s_69))) goto lab0; /* literal, line 199 */
        ket = c; /* ], line 199 */
        break;
    lab0:
        {   int ret = skip_utf8(p, c, 0, l, 1);
            if (ret < 0) return 0;
            c = ret; /* gopast, line 199 */
        }
    }
    {   int c_test1 = c; /* test, line 199 */
        {   int ret = skip_utf8(p, c, 0, l, + 3); /* hop, line 199 */
            if (ret < 0) return 0;
            c = ret;
        }
        c = c_test1;
    }
    if (out_grouping_U(g_v, 97, 121, 1) < 0) return 0; /* goto */ /* grouping v, line 199 */
    if (in_grouping_U(g_v, 97, 121, 1) < 0) return 0; /* goto */ /* non v, line 199 */
    B_GE_removed = 1; /* set GE_removed, line 200 */
    if (slice_del() == -1) return -1; /* delete, line 201 */
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::r_measure() { /* forwardmode */
    {   int c1 = c; /* do, line 205 */
        c = l; /* tolimit, line 206 */
        I_p1 = c; /* setmark p1, line 207 */
        I_p2 = c; /* setmark p2, line 208 */
        c = c1;
    }
    {   int c2 = c; /* do, line 210 */
        while(1) { /* repeat, line 211 */
            if (out_grouping_U(g_v, 97, 121, 0)) goto lab2; /* non v, line 211 */
            continue;
        lab2:
            break;
        }
        {   int i = 1;
            while(1) { /* atleast, line 211 */
                int c3 = c;
                {   int c4 = c; /* or, line 211 */
                    if (!(eq_s(2, s_70))) goto lab5; /* literal, line 211 */
                    goto lab4;
                lab5:
                    c = c4;
                    if (in_grouping_U(g_v, 97, 121, 0)) goto lab3; /* grouping v, line 211 */
                }
            lab4:
                i--;
                continue;
            lab3:
                c = c3;
                break;
            }
            if (i > 0) goto lab1;
        }
        if (out_grouping_U(g_v, 97, 121, 0)) goto lab1; /* non v, line 211 */
        I_p1 = c; /* setmark p1, line 211 */
        while(1) { /* repeat, line 212 */
            if (out_grouping_U(g_v, 97, 121, 0)) goto lab6; /* non v, line 212 */
            continue;
        lab6:
            break;
        }
        {   int i = 1;
            while(1) { /* atleast, line 212 */
                int c5 = c;
                {   int c6 = c; /* or, line 212 */
                    if (!(eq_s(2, s_71))) goto lab9; /* literal, line 212 */
                    goto lab8;
                lab9:
                    c = c6;
                    if (in_grouping_U(g_v, 97, 121, 0)) goto lab7; /* grouping v, line 212 */
                }
            lab8:
                i--;
                continue;
            lab7:
                c = c5;
                break;
            }
            if (i > 0) goto lab1;
        }
        if (out_grouping_U(g_v, 97, 121, 0)) goto lab1; /* non v, line 212 */
        I_p2 = c; /* setmark p2, line 212 */
    lab1:
        c = c2;
    }
    return 1;
}

int Xapian::InternalStemKraaij_pohlmann::stem() { /* forwardmode */
    B_Y_found = 0; /* unset Y_found, line 218 */
    B_stemmed = 0; /* unset stemmed, line 219 */
    {   int c1 = c; /* do, line 220 */
        bra = c; /* [, line 220 */
        if (c == l || p[c] != 'y') goto lab0; /* literal, line 220 */
        c++;
        ket = c; /* ], line 220 */
        {   int ret = slice_from_s(1, s_72); /* <-, line 220 */
            if (ret < 0) return ret;
        }
        B_Y_found = 1; /* set Y_found, line 220 */
    lab0:
        c = c1;
    }
    {   int c2 = c; /* do, line 221 */
        while(1) { /* repeat, line 221 */
            int c3 = c;
            while(1) { /* goto, line 221 */
                int c4 = c;
                if (in_grouping_U(g_v, 97, 121, 0)) goto lab3; /* grouping v, line 221 */
                bra = c; /* [, line 221 */
                if (c == l || p[c] != 'y') goto lab3; /* literal, line 221 */
                c++;
                ket = c; /* ], line 221 */
                c = c4;
                break;
            lab3:
                c = c4;
                {   int ret = skip_utf8(p, c, 0, l, 1);
                    if (ret < 0) goto lab2;
                    c = ret; /* goto, line 221 */
                }
            }
            {   int ret = slice_from_s(1, s_73); /* <-, line 221 */
                if (ret < 0) return ret;
            }
            B_Y_found = 1; /* set Y_found, line 221 */
            continue;
        lab2:
            c = c3;
            break;
        }
        c = c2;
    }
    {   int ret = r_measure(); /* call measure, line 223 */
        if (ret <= 0) return ret;
    }
    lb = c; c = l; /* backwards, line 225 */

    {   int m5 = l - c; /*(void)m5*/; /* do, line 226 */
        {   int ret = r_Step_1(); /* call Step_1, line 226 */
            if (ret == 0) goto lab4;
            if (ret < 0) return ret;
        }
        B_stemmed = 1; /* set stemmed, line 226 */
    lab4:
        c = l - m5;
    }
    {   int m6 = l - c; /*(void)m6*/; /* do, line 227 */
        {   int ret = r_Step_2(); /* call Step_2, line 227 */
            if (ret == 0) goto lab5;
            if (ret < 0) return ret;
        }
        B_stemmed = 1; /* set stemmed, line 227 */
    lab5:
        c = l - m6;
    }
    {   int m7 = l - c; /*(void)m7*/; /* do, line 228 */
        {   int ret = r_Step_3(); /* call Step_3, line 228 */
            if (ret == 0) goto lab6;
            if (ret < 0) return ret;
        }
        B_stemmed = 1; /* set stemmed, line 228 */
    lab6:
        c = l - m7;
    }
    {   int m8 = l - c; /*(void)m8*/; /* do, line 229 */
        {   int ret = r_Step_4(); /* call Step_4, line 229 */
            if (ret == 0) goto lab7;
            if (ret < 0) return ret;
        }
        B_stemmed = 1; /* set stemmed, line 229 */
    lab7:
        c = l - m8;
    }
    c = lb;
    B_GE_removed = 0; /* unset GE_removed, line 231 */
    {   int c9 = c; /* do, line 232 */
        {   int c10 = c; /* and, line 232 */
            {   int ret = r_Lose_prefix(); /* call Lose_prefix, line 232 */
                if (ret == 0) goto lab8;
                if (ret < 0) return ret;
            }
            c = c10;
            {   int ret = r_measure(); /* call measure, line 232 */
                if (ret == 0) goto lab8;
                if (ret < 0) return ret;
            }
        }
    lab8:
        c = c9;
    }
    lb = c; c = l; /* backwards, line 233 */

    {   int m11 = l - c; /*(void)m11*/; /* do, line 234 */
        if (!(B_GE_removed)) goto lab9; /* Boolean test GE_removed, line 234 */
        {   int ret = r_Step_1c(); /* call Step_1c, line 234 */
            if (ret == 0) goto lab9;
            if (ret < 0) return ret;
        }
    lab9:
        c = l - m11;
    }
    c = lb;
    B_GE_removed = 0; /* unset GE_removed, line 236 */
    {   int c12 = c; /* do, line 237 */
        {   int c13 = c; /* and, line 237 */
            {   int ret = r_Lose_infix(); /* call Lose_infix, line 237 */
                if (ret == 0) goto lab10;
                if (ret < 0) return ret;
            }
            c = c13;
            {   int ret = r_measure(); /* call measure, line 237 */
                if (ret == 0) goto lab10;
                if (ret < 0) return ret;
            }
        }
    lab10:
        c = c12;
    }
    lb = c; c = l; /* backwards, line 238 */

    {   int m14 = l - c; /*(void)m14*/; /* do, line 239 */
        if (!(B_GE_removed)) goto lab11; /* Boolean test GE_removed, line 239 */
        {   int ret = r_Step_1c(); /* call Step_1c, line 239 */
            if (ret == 0) goto lab11;
            if (ret < 0) return ret;
        }
    lab11:
        c = l - m14;
    }
    c = lb;
    lb = c; c = l; /* backwards, line 241 */

    {   int m15 = l - c; /*(void)m15*/; /* do, line 242 */
        {   int ret = r_Step_7(); /* call Step_7, line 242 */
            if (ret == 0) goto lab12;
            if (ret < 0) return ret;
        }
        B_stemmed = 1; /* set stemmed, line 242 */
    lab12:
        c = l - m15;
    }
    {   int m16 = l - c; /*(void)m16*/; /* do, line 243 */
        {   int m17 = l - c; /*(void)m17*/; /* or, line 243 */
            if (!(B_stemmed)) goto lab15; /* Boolean test stemmed, line 243 */
            goto lab14;
        lab15:
            c = l - m17;
            if (!(B_GE_removed)) goto lab13; /* Boolean test GE_removed, line 243 */
        }
    lab14:
        {   int ret = r_Step_6(); /* call Step_6, line 243 */
            if (ret == 0) goto lab13;
            if (ret < 0) return ret;
        }
    lab13:
        c = l - m16;
    }
    c = lb;
    {   int c18 = c; /* do, line 245 */
        if (!(B_Y_found)) goto lab16; /* Boolean test Y_found, line 245 */
        while(1) { /* repeat, line 245 */
            int c19 = c;
            while(1) { /* goto, line 245 */
                int c20 = c;
                bra = c; /* [, line 245 */
                if (c == l || p[c] != 'Y') goto lab18; /* literal, line 245 */
                c++;
                ket = c; /* ], line 245 */
                c = c20;
                break;
            lab18:
                c = c20;
                {   int ret = skip_utf8(p, c, 0, l, 1);
                    if (ret < 0) goto lab17;
                    c = ret; /* goto, line 245 */
                }
            }
            {   int ret = slice_from_s(1, s_74); /* <-, line 245 */
                if (ret < 0) return ret;
            }
            continue;
        lab17:
            c = c19;
            break;
        }
    lab16:
        c = c18;
    }
    return 1;
}

Xapian::InternalStemKraaij_pohlmann::InternalStemKraaij_pohlmann()
    : B_GE_removed(0), B_stemmed(0), B_Y_found(0), I_p2(0), I_p1(0), I_x(0), S_ch(0)
{
    S_ch = create_s();
}

Xapian::InternalStemKraaij_pohlmann::~InternalStemKraaij_pohlmann()
{
    lose_s(S_ch);
}

std::string
Xapian::InternalStemKraaij_pohlmann::get_description() const
{
    return "kraaij_pohlmann";
}
