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

#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 */
    if (!(I_p1 <= c)) return 0; /* $p1 <= <integer expression>, line 32 */
    return 1;
}

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

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

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

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

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

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

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

int Xapian::InternalStemKraaij_pohlmann::r_Step_3() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 95 */
    if (c - 2 <= lb || p[c - 1] >> 5 != 3 || !((1316016 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* among, line 95 */
    among_var = find_among_b(s_pool, a_2, 14, 0, 0);
    if (!(among_var)) return 0;
    bra = c; /* ], line 95 */
    switch (among_var) { /* among, line 95 */
        case 0: return 0;
        case 1:
            {   int ret = r_R1(); /* call R1, line 96 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(3, s_29); /* <-, line 96 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int ret = r_R1(); /* call R1, line 97 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 97 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 97 */
                if (ret <= 0) return ret;
            }
            break;
        case 3:
            {   int ret = r_R1(); /* call R1, line 100 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 100 */
            break;
        case 4:
            {   int ret = slice_from_s(1, s_30); /* <-, line 101 */
                if (ret < 0) return ret;
            }
            break;
        case 5:
            {   int ret = r_R1(); /* call R1, line 104 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 104 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 104 */
                if (ret <= 0) return ret;
            }
            break;
        case 6:
            {   int ret = r_R1(); /* call R1, line 105 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 105 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(3, s_31); /* <-, line 105 */
                if (ret < 0) return ret;
            }
            break;
        case 7:
            {   int ret = r_R2(); /* call R2, line 106 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 106 */
            insert_s(c, c, 1, s_32); /* attach, line 106 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 106 */
                if (ret <= 0) return ret;
            }
            break;
        case 8:
            {   int ret = r_R2(); /* call R2, line 107 */
                if (ret <= 0) return ret;
            }
            if (slice_del() == -1) return -1; /* delete, line 107 */
            insert_s(c, c, 1, s_33); /* attach, line 107 */
            {   int ret = r_lengthen_V(); /* call lengthen_V, line 107 */
                if (ret <= 0) return ret;
            }
            break;
        case 9:
            {   int ret = r_R1(); /* call R1, line 108 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 108 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(1, s_34); /* <-, line 108 */
                if (ret < 0) return ret;
            }
            break;
        case 10:
            {   int ret = r_R1(); /* call R1, line 109 */
                if (ret <= 0) return ret;
            }
            {   int ret = r_C(); /* call C, line 109 */
                if (ret <= 0) return ret;
            }
            {   int ret = slice_from_s(1, s_35); /* <-, line 109 */
                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 134 */
        ket = c; /* [, line 115 */
        if (c - 2 <= lb || p[c - 1] >> 5 != 3 || !((1315024 >> (p[c - 1] & 0x1f)) & 1)) goto lab1; /* among, line 115 */
        among_var = find_among_b(s_pool, a_3, 16, 0, 0);
        if (!(among_var)) goto lab1;
        bra = c; /* ], line 115 */
        switch (among_var) { /* among, line 115 */
            case 0: goto lab1;
            case 1:
                {   int ret = r_R1(); /* call R1, line 116 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(2, s_36); /* <-, line 116 */
                    if (ret < 0) return ret;
                }
                break;
            case 2:
                {   int ret = r_R1(); /* call R1, line 117 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(3, s_37); /* <-, line 117 */
                    if (ret < 0) return ret;
                }
                break;
            case 3:
                {   int ret = r_R1(); /* call R1, line 118 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 118 */
                break;
            case 4:
                {   int ret = r_R1(); /* call R1, line 119 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = r_V(); /* call V, line 119 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(1, s_38); /* <-, line 119 */
                    if (ret < 0) return ret;
                }
                break;
            case 5:
                {   int ret = r_R1(); /* call R1, line 120 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = r_V(); /* call V, line 120 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(1, s_39); /* <-, line 120 */
                    if (ret < 0) return ret;
                }
                break;
            case 6:
                {   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_40); /* <-, line 121 */
                    if (ret < 0) return ret;
                }
                break;
            case 7:
                {   int ret = r_R1(); /* call R1, line 122 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = slice_from_s(4, s_41); /* <-, line 122 */
                    if (ret < 0) return ret;
                }
                break;
            case 8:
                {   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_42); /* <-, line 124 */
                    if (ret < 0) return ret;
                }
                break;
            case 9:
                {   int ret = r_R1(); /* call R1, line 127 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 127 */
                break;
            case 10:
                {   int ret = r_R1(); /* call R1, line 131 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 131 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 131 */
                {   int ret = r_lengthen_V(); /* call lengthen_V, line 131 */
                    if (ret == 0) goto lab1;
                    if (ret < 0) return ret;
                }
                break;
        }
        goto lab0;
    lab1:
        c = l - m1;
        ket = c; /* [, line 135 */
        if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((1310848 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* among, line 135 */
        among_var = find_among_b(s_pool, a_4, 3, 0, 0);
        if (!(among_var)) return 0;
        bra = c; /* ], line 135 */
        switch (among_var) { /* among, line 135 */
            case 0: return 0;
            case 1:
                {   int ret = r_R1(); /* call R1, line 138 */
                    if (ret <= 0) return ret;
                }
                {   int ret = r_C(); /* call C, line 138 */
                    if (ret <= 0) return ret;
                }
                if (slice_del() == -1) return -1; /* delete, line 138 */
                {   int ret = r_lengthen_V(); /* call lengthen_V, line 138 */
                    if (ret <= 0) return ret;
                }
                break;
        }
    }
lab0:
    return 1;
}

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

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

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

int Xapian::InternalStemKraaij_pohlmann::r_Lose_prefix() { /* forwardmode */
    bra = c; /* [, line 190 */
    if (!(eq_s(2, s_68))) return 0; /* literal, line 190 */
    ket = c; /* ], line 190 */
    {   int c_test1 = c; /* test, line 190 */
        {   int ret = skip_utf8(p, c, 0, l, + 3); /* hop, line 190 */
            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 190 */
    if (in_grouping_U(g_v, 97, 121, 1) < 0) return 0; /* goto */ /* non v, line 190 */
    B_GE_removed = 1; /* set GE_removed, line 191 */
    if (slice_del() == -1) return -1; /* delete, line 192 */
    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 196 */
    }
    while(1) { /* gopast, line 197 */
        bra = c; /* [, line 197 */
        if (!(eq_s(2, s_69))) goto lab0; /* literal, line 197 */
        ket = c; /* ], line 197 */
        break;
    lab0:
        {   int ret = skip_utf8(p, c, 0, l, 1);
            if (ret < 0) return 0;
            c = ret; /* gopast, line 197 */
        }
    }
    {   int c_test1 = c; /* test, line 197 */
        {   int ret = skip_utf8(p, c, 0, l, + 3); /* hop, line 197 */
            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 197 */
    if (in_grouping_U(g_v, 97, 121, 1) < 0) return 0; /* goto */ /* non v, line 197 */
    B_GE_removed = 1; /* set GE_removed, line 198 */
    if (slice_del() == -1) return -1; /* delete, line 199 */
    return 1;
}

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

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

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

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

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

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

Xapian::InternalStemKraaij_pohlmann::InternalStemKraaij_pohlmann()
    : B_GE_removed(0), B_stemmed(0), B_Y_found(0), I_p2(0), I_p1(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";
}
