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

#include <limits.h>
#include "turkish.h"

#define s_0_0 s_0_2
#define s_0_1 s_0_3
static const symbol s_pool[] = {
#define s_0_2 0
'm', 'i', 'z',
#define s_0_3 3
'n', 'i', 'z',
#define s_0_4 6
'm', 'u', 'z',
#define s_0_5 9
'n', 'u', 'z',
#define s_0_6 12
'm', 0xC4, 0xB1, 'z',
#define s_0_7 16
'n', 0xC4, 0xB1, 'z',
#define s_0_8 20
'm', 0xC3, 0xBC, 'z',
#define s_0_9 24
'n', 0xC3, 0xBC, 'z',
#define s_1_0 28
'l', 'e', 'r', 'i',
#define s_1_1 32
'l', 'a', 'r', 0xC4, 0xB1,
#define s_2_0 37
'n', 'i',
#define s_2_1 39
'n', 'u',
#define s_2_2 41
'n', 0xC4, 0xB1,
#define s_2_3 44
'n', 0xC3, 0xBC,
#define s_3_0 47
'i', 'n',
#define s_3_1 49
'u', 'n',
#define s_3_2 51
0xC4, 0xB1, 'n',
#define s_3_3 54
0xC3, 0xBC, 'n',
#define s_4_0 57
'a',
#define s_4_1 58
'e',
#define s_5_0 59
'n', 'a',
#define s_5_1 61
'n', 'e',
#define s_6_0 63
'd', 'a',
#define s_6_1 65
't', 'a',
#define s_6_2 67
'd', 'e',
#define s_6_3 69
't', 'e',
#define s_7_0 71
'n', 'd', 'a',
#define s_7_1 74
'n', 'd', 'e',
#define s_8_0 77
'd', 'a', 'n',
#define s_8_1 80
't', 'a', 'n',
#define s_8_2 83
'd', 'e', 'n',
#define s_8_3 86
't', 'e', 'n',
#define s_9_0 89
'n', 'd', 'a', 'n',
#define s_9_1 93
'n', 'd', 'e', 'n',
#define s_10_0 97
'l', 'a',
#define s_10_1 99
'l', 'e',
#define s_11_0 101
'c', 'a',
#define s_11_1 103
'c', 'e',
#define s_12_0 105
'i', 'm',
#define s_12_1 107
'u', 'm',
#define s_12_2 109
0xC4, 0xB1, 'm',
#define s_12_3 112
0xC3, 0xBC, 'm',
#define s_13_0 115
's', 'i', 'n',
#define s_13_1 118
's', 'u', 'n',
#define s_13_2 121
's', 0xC4, 0xB1, 'n',
#define s_13_3 125
's', 0xC3, 0xBC, 'n',
#define s_14_0 129
'i', 'z',
#define s_14_1 131
'u', 'z',
#define s_14_2 133
0xC4, 0xB1, 'z',
#define s_14_3 136
0xC3, 0xBC, 'z',
#define s_15_0 139
's', 'i', 'n', 'i', 'z',
#define s_15_1 144
's', 'u', 'n', 'u', 'z',
#define s_15_2 149
's', 0xC4, 0xB1, 'n', 0xC4, 0xB1, 'z',
#define s_15_3 156
's', 0xC3, 0xBC, 'n', 0xC3, 0xBC, 'z',
#define s_16_0 163
'l', 'a', 'r',
#define s_16_1 166
'l', 'e', 'r',
#define s_17_0 169
'n', 'i', 'z',
#define s_17_1 172
'n', 'u', 'z',
#define s_17_2 175
'n', 0xC4, 0xB1, 'z',
#define s_17_3 179
'n', 0xC3, 0xBC, 'z',
#define s_18_0 183
'd', 'i', 'r',
#define s_18_1 186
't', 'i', 'r',
#define s_18_2 189
'd', 'u', 'r',
#define s_18_3 192
't', 'u', 'r',
#define s_18_4 195
'd', 0xC4, 0xB1, 'r',
#define s_18_5 199
't', 0xC4, 0xB1, 'r',
#define s_18_6 203
'd', 0xC3, 0xBC, 'r',
#define s_18_7 207
't', 0xC3, 0xBC, 'r',
#define s_19_0 211
'c', 'a', 's', 0xC4, 0xB1, 'n', 'a',
#define s_19_1 218
'c', 'e', 's', 'i', 'n', 'e',
#define s_20_0 s_20_2
#define s_20_1 s_20_3
#define s_20_2 224
'd', 'i', 'k',
#define s_20_3 227
't', 'i', 'k',
#define s_20_4 230
'd', 'u', 'k',
#define s_20_5 233
't', 'u', 'k',
#define s_20_6 236
'd', 0xC4, 0xB1, 'k',
#define s_20_7 240
't', 0xC4, 0xB1, 'k',
#define s_20_8 244
'd', 0xC3, 0xBC, 'k',
#define s_20_9 248
't', 0xC3, 0xBC, 'k',
#define s_20_10 252
'd', 'i', 'm',
#define s_20_11 255
't', 'i', 'm',
#define s_20_12 258
'd', 'u', 'm',
#define s_20_13 261
't', 'u', 'm',
#define s_20_14 264
'd', 0xC4, 0xB1, 'm',
#define s_20_15 268
't', 0xC4, 0xB1, 'm',
#define s_20_16 272
'd', 0xC3, 0xBC, 'm',
#define s_20_17 276
't', 0xC3, 0xBC, 'm',
#define s_20_18 280
'd', 'i', 'n',
#define s_20_19 283
't', 'i', 'n',
#define s_20_20 286
'd', 'u', 'n',
#define s_20_21 289
't', 'u', 'n',
#define s_20_22 292
'd', 0xC4, 0xB1, 'n',
#define s_20_23 296
't', 0xC4, 0xB1, 'n',
#define s_20_24 300
'd', 0xC3, 0xBC, 'n',
#define s_20_25 304
't', 0xC3, 0xBC, 'n',
#define s_20_26 s_20_4
#define s_20_27 s_20_5
#define s_20_28 s_20_6
#define s_20_29 s_20_7
#define s_20_30 s_20_8
#define s_20_31 s_20_9
#define s_21_0 s_21_2
#define s_21_1 s_21_3
#define s_21_2 308
's', 'a', 'k',
#define s_21_3 311
's', 'e', 'k',
#define s_21_4 314
's', 'a', 'm',
#define s_21_5 317
's', 'e', 'm',
#define s_21_6 320
's', 'a', 'n',
#define s_21_7 323
's', 'e', 'n',
#define s_22_0 326
'm', 'i', 0xC5, 0x9F,
#define s_22_1 330
'm', 'u', 0xC5, 0x9F,
#define s_22_2 334
'm', 0xC4, 0xB1, 0xC5, 0x9F,
#define s_22_3 339
'm', 0xC3, 0xBC, 0xC5, 0x9F,
#define s_23_0 344
'b',
#define s_23_1 345
'c',
#define s_23_2 346
'd',
#define s_23_3 347
0xC4, 0x9F,
};


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


static const struct among a_1[2] =
{
/*  0 */ { 4, s_1_0, -1, -1},
/*  1 */ { 5, s_1_1, -1, -1}
};


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


static const struct among a_3[4] =
{
/*  0 */ { 2, s_3_0, -1, -1},
/*  1 */ { 2, s_3_1, -1, -1},
/*  2 */ { 3, s_3_2, -1, -1},
/*  3 */ { 3, s_3_3, -1, -1}
};


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


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


static const struct among a_6[4] =
{
/*  0 */ { 2, s_6_0, -1, -1},
/*  1 */ { 2, s_6_1, -1, -1},
/*  2 */ { 2, s_6_2, -1, -1},
/*  3 */ { 2, s_6_3, -1, -1}
};


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


static const struct among a_8[4] =
{
/*  0 */ { 3, s_8_0, -1, -1},
/*  1 */ { 3, s_8_1, -1, -1},
/*  2 */ { 3, s_8_2, -1, -1},
/*  3 */ { 3, s_8_3, -1, -1}
};


static const struct among a_9[2] =
{
/*  0 */ { 4, s_9_0, -1, -1},
/*  1 */ { 4, s_9_1, -1, -1}
};


static const struct among a_10[2] =
{
/*  0 */ { 2, s_10_0, -1, -1},
/*  1 */ { 2, s_10_1, -1, -1}
};


static const struct among a_11[2] =
{
/*  0 */ { 2, s_11_0, -1, -1},
/*  1 */ { 2, s_11_1, -1, -1}
};


static const struct among a_12[4] =
{
/*  0 */ { 2, s_12_0, -1, -1},
/*  1 */ { 2, s_12_1, -1, -1},
/*  2 */ { 3, s_12_2, -1, -1},
/*  3 */ { 3, s_12_3, -1, -1}
};


static const struct among a_13[4] =
{
/*  0 */ { 3, s_13_0, -1, -1},
/*  1 */ { 3, s_13_1, -1, -1},
/*  2 */ { 4, s_13_2, -1, -1},
/*  3 */ { 4, s_13_3, -1, -1}
};


static const struct among a_14[4] =
{
/*  0 */ { 2, s_14_0, -1, -1},
/*  1 */ { 2, s_14_1, -1, -1},
/*  2 */ { 3, s_14_2, -1, -1},
/*  3 */ { 3, s_14_3, -1, -1}
};


static const struct among a_15[4] =
{
/*  0 */ { 5, s_15_0, -1, -1},
/*  1 */ { 5, s_15_1, -1, -1},
/*  2 */ { 7, s_15_2, -1, -1},
/*  3 */ { 7, s_15_3, -1, -1}
};


static const struct among a_16[2] =
{
/*  0 */ { 3, s_16_0, -1, -1},
/*  1 */ { 3, s_16_1, -1, -1}
};


static const struct among a_17[4] =
{
/*  0 */ { 3, s_17_0, -1, -1},
/*  1 */ { 3, s_17_1, -1, -1},
/*  2 */ { 4, s_17_2, -1, -1},
/*  3 */ { 4, s_17_3, -1, -1}
};


static const struct among a_18[8] =
{
/*  0 */ { 3, s_18_0, -1, -1},
/*  1 */ { 3, s_18_1, -1, -1},
/*  2 */ { 3, s_18_2, -1, -1},
/*  3 */ { 3, s_18_3, -1, -1},
/*  4 */ { 4, s_18_4, -1, -1},
/*  5 */ { 4, s_18_5, -1, -1},
/*  6 */ { 4, s_18_6, -1, -1},
/*  7 */ { 4, s_18_7, -1, -1}
};


static const struct among a_19[2] =
{
/*  0 */ { 7, s_19_0, -1, -1},
/*  1 */ { 6, s_19_1, -1, -1}
};


static const struct among a_20[32] =
{
/*  0 */ { 2, s_20_0, -1, -1},
/*  1 */ { 2, s_20_1, -1, -1},
/*  2 */ { 3, s_20_2, -1, -1},
/*  3 */ { 3, s_20_3, -1, -1},
/*  4 */ { 3, s_20_4, -1, -1},
/*  5 */ { 3, s_20_5, -1, -1},
/*  6 */ { 4, s_20_6, -1, -1},
/*  7 */ { 4, s_20_7, -1, -1},
/*  8 */ { 4, s_20_8, -1, -1},
/*  9 */ { 4, s_20_9, -1, -1},
/* 10 */ { 3, s_20_10, -1, -1},
/* 11 */ { 3, s_20_11, -1, -1},
/* 12 */ { 3, s_20_12, -1, -1},
/* 13 */ { 3, s_20_13, -1, -1},
/* 14 */ { 4, s_20_14, -1, -1},
/* 15 */ { 4, s_20_15, -1, -1},
/* 16 */ { 4, s_20_16, -1, -1},
/* 17 */ { 4, s_20_17, -1, -1},
/* 18 */ { 3, s_20_18, -1, -1},
/* 19 */ { 3, s_20_19, -1, -1},
/* 20 */ { 3, s_20_20, -1, -1},
/* 21 */ { 3, s_20_21, -1, -1},
/* 22 */ { 4, s_20_22, -1, -1},
/* 23 */ { 4, s_20_23, -1, -1},
/* 24 */ { 4, s_20_24, -1, -1},
/* 25 */ { 4, s_20_25, -1, -1},
/* 26 */ { 2, s_20_26, -1, -1},
/* 27 */ { 2, s_20_27, -1, -1},
/* 28 */ { 3, s_20_28, -1, -1},
/* 29 */ { 3, s_20_29, -1, -1},
/* 30 */ { 3, s_20_30, -1, -1},
/* 31 */ { 3, s_20_31, -1, -1}
};


static const struct among a_21[8] =
{
/*  0 */ { 2, s_21_0, -1, -1},
/*  1 */ { 2, s_21_1, -1, -1},
/*  2 */ { 3, s_21_2, -1, -1},
/*  3 */ { 3, s_21_3, -1, -1},
/*  4 */ { 3, s_21_4, -1, -1},
/*  5 */ { 3, s_21_5, -1, -1},
/*  6 */ { 3, s_21_6, -1, -1},
/*  7 */ { 3, s_21_7, -1, -1}
};


static const struct among a_22[4] =
{
/*  0 */ { 4, s_22_0, -1, -1},
/*  1 */ { 4, s_22_1, -1, -1},
/*  2 */ { 5, s_22_2, -1, -1},
/*  3 */ { 5, s_22_3, -1, -1}
};


static const struct among a_23[4] =
{
/*  0 */ { 1, s_23_0, -1, 1},
/*  1 */ { 1, s_23_1, -1, 2},
/*  2 */ { 1, s_23_2, -1, 3},
/*  3 */ { 2, s_23_3, -1, 4}
};

static const unsigned char g_vowel[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 8, 0, 0, 0, 0, 0, 0, 1 };

static const unsigned char g_U[] = { 1, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1 };

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

static const unsigned char g_vowel2[] = { 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130 };

static const unsigned char g_vowel3[] = { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };

static const unsigned char g_vowel4[] = { 17 };

static const unsigned char g_vowel5[] = { 65 };

static const unsigned char g_vowel6[] = { 65 };

static const symbol s_0[] = { 0xC4, 0xB1 };
static const symbol s_1[] = { 0xC3, 0xB6 };
static const symbol s_2[] = { 0xC3, 0xBC };
static const symbol s_3[] = { 'k', 'i' };
static const symbol s_4[] = { 'k', 'e', 'n' };
static const symbol s_5[] = { 'p' };
static const symbol s_6[] = { 0xC3, 0xA7 };
static const symbol s_7[] = { 't' };
static const symbol s_8[] = { 'k' };
static const symbol s_9[] = { 0xC4, 0xB1 };
static const symbol s_10[] = { 0xC4, 0xB1 };
static const symbol s_11[] = { 'i' };
static const symbol s_12[] = { 'u' };
static const symbol s_13[] = { 0xC3, 0xB6 };
static const symbol s_14[] = { 0xC3, 0xBC };
static const symbol s_15[] = { 0xC3, 0xBC };
static const symbol s_16[] = { 'a', 'd' };
static const symbol s_17[] = { 's', 'o', 'y', 'a', 'd' };

int Xapian::InternalStemTurkish::r_check_vowel_harmony() { /* backwardmode */
    {   int m_test1 = l - c; /* test, line 112 */
        if (out_grouping_b_U(g_vowel, 97, 305, 1) < 0) return 0; /* goto */ /* grouping vowel, line 114 */
        {   int m2 = l - c; (void)m2; /* or, line 116 */
            if (c <= lb || p[c - 1] != 'a') goto lab1;
            c--;
            if (out_grouping_b_U(g_vowel1, 97, 305, 1) < 0) goto lab1; /* goto */ /* grouping vowel1, line 116 */
            goto lab0;
        lab1:
            c = l - m2;
            if (c <= lb || p[c - 1] != 'e') goto lab2;
            c--;
            if (out_grouping_b_U(g_vowel2, 101, 252, 1) < 0) goto lab2; /* goto */ /* grouping vowel2, line 117 */
            goto lab0;
        lab2:
            c = l - m2;
            if (!(eq_s_b(2, s_0))) goto lab3; /* literal, line 118 */
            if (out_grouping_b_U(g_vowel3, 97, 305, 1) < 0) goto lab3; /* goto */ /* grouping vowel3, line 118 */
            goto lab0;
        lab3:
            c = l - m2;
            if (c <= lb || p[c - 1] != 'i') goto lab4;
            c--;
            if (out_grouping_b_U(g_vowel4, 101, 105, 1) < 0) goto lab4; /* goto */ /* grouping vowel4, line 119 */
            goto lab0;
        lab4:
            c = l - m2;
            if (c <= lb || p[c - 1] != 'o') goto lab5;
            c--;
            if (out_grouping_b_U(g_vowel5, 111, 117, 1) < 0) goto lab5; /* goto */ /* grouping vowel5, line 120 */
            goto lab0;
        lab5:
            c = l - m2;
            if (!(eq_s_b(2, s_1))) goto lab6; /* literal, line 121 */
            if (out_grouping_b_U(g_vowel6, 246, 252, 1) < 0) goto lab6; /* goto */ /* grouping vowel6, line 121 */
            goto lab0;
        lab6:
            c = l - m2;
            if (c <= lb || p[c - 1] != 'u') goto lab7;
            c--;
            if (out_grouping_b_U(g_vowel5, 111, 117, 1) < 0) goto lab7; /* goto */ /* grouping vowel5, line 122 */
            goto lab0;
        lab7:
            c = l - m2;
            if (!(eq_s_b(2, s_2))) return 0; /* literal, line 123 */
            if (out_grouping_b_U(g_vowel6, 246, 252, 1) < 0) return 0; /* goto */ /* grouping vowel6, line 123 */
        }
    lab0:
        c = l - m_test1;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_suffix_with_optional_n_consonant() { /* backwardmode */
    {   int m1 = l - c; (void)m1; /* or, line 134 */
        if (c <= lb || p[c - 1] != 'n') goto lab1;
        c--;
        {   int m_test2 = l - c; /* test, line 133 */
            if (in_grouping_b_U(g_vowel, 97, 305, 0)) goto lab1; /* grouping vowel, line 133 */
            c = l - m_test2;
        }
        goto lab0;
    lab1:
        c = l - m1;
        {   int m3 = l - c; (void)m3; /* not, line 135 */
            {   int m_test4 = l - c; /* test, line 135 */
                if (c <= lb || p[c - 1] != 'n') goto lab2;
                c--;
                c = l - m_test4;
            }
            return 0;
        lab2:
            c = l - m3;
        }
        {   int m_test5 = l - c; /* test, line 135 */
            {   int ret = skip_utf8(p, c, lb, 0, -1);
                if (ret < 0) return 0;
                c = ret; /* next, line 135 */
            }
            if (in_grouping_b_U(g_vowel, 97, 305, 0)) return 0; /* grouping vowel, line 135 */
            c = l - m_test5;
        }
    }
lab0:
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_suffix_with_optional_s_consonant() { /* backwardmode */
    {   int m1 = l - c; (void)m1; /* or, line 145 */
        if (c <= lb || p[c - 1] != 's') goto lab1;
        c--;
        {   int m_test2 = l - c; /* test, line 144 */
            if (in_grouping_b_U(g_vowel, 97, 305, 0)) goto lab1; /* grouping vowel, line 144 */
            c = l - m_test2;
        }
        goto lab0;
    lab1:
        c = l - m1;
        {   int m3 = l - c; (void)m3; /* not, line 146 */
            {   int m_test4 = l - c; /* test, line 146 */
                if (c <= lb || p[c - 1] != 's') goto lab2;
                c--;
                c = l - m_test4;
            }
            return 0;
        lab2:
            c = l - m3;
        }
        {   int m_test5 = l - c; /* test, line 146 */
            {   int ret = skip_utf8(p, c, lb, 0, -1);
                if (ret < 0) return 0;
                c = ret; /* next, line 146 */
            }
            if (in_grouping_b_U(g_vowel, 97, 305, 0)) return 0; /* grouping vowel, line 146 */
            c = l - m_test5;
        }
    }
lab0:
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_suffix_with_optional_y_consonant() { /* backwardmode */
    {   int m1 = l - c; (void)m1; /* or, line 155 */
        if (c <= lb || p[c - 1] != 'y') goto lab1;
        c--;
        {   int m_test2 = l - c; /* test, line 154 */
            if (in_grouping_b_U(g_vowel, 97, 305, 0)) goto lab1; /* grouping vowel, line 154 */
            c = l - m_test2;
        }
        goto lab0;
    lab1:
        c = l - m1;
        {   int m3 = l - c; (void)m3; /* not, line 156 */
            {   int m_test4 = l - c; /* test, line 156 */
                if (c <= lb || p[c - 1] != 'y') goto lab2;
                c--;
                c = l - m_test4;
            }
            return 0;
        lab2:
            c = l - m3;
        }
        {   int m_test5 = l - c; /* test, line 156 */
            {   int ret = skip_utf8(p, c, lb, 0, -1);
                if (ret < 0) return 0;
                c = ret; /* next, line 156 */
            }
            if (in_grouping_b_U(g_vowel, 97, 305, 0)) return 0; /* grouping vowel, line 156 */
            c = l - m_test5;
        }
    }
lab0:
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_suffix_with_optional_U_vowel() { /* backwardmode */
    {   int m1 = l - c; (void)m1; /* or, line 161 */
        if (in_grouping_b_U(g_U, 105, 305, 0)) goto lab1; /* grouping U, line 160 */
        {   int m_test2 = l - c; /* test, line 160 */
            if (out_grouping_b_U(g_vowel, 97, 305, 0)) goto lab1; /* non vowel, line 160 */
            c = l - m_test2;
        }
        goto lab0;
    lab1:
        c = l - m1;
        {   int m3 = l - c; (void)m3; /* not, line 162 */
            {   int m_test4 = l - c; /* test, line 162 */
                if (in_grouping_b_U(g_U, 105, 305, 0)) goto lab2; /* grouping U, line 162 */
                c = l - m_test4;
            }
            return 0;
        lab2:
            c = l - m3;
        }
        {   int m_test5 = l - c; /* test, line 162 */
            {   int ret = skip_utf8(p, c, lb, 0, -1);
                if (ret < 0) return 0;
                c = ret; /* next, line 162 */
            }
            if (out_grouping_b_U(g_vowel, 97, 305, 0)) return 0; /* non vowel, line 162 */
            c = l - m_test5;
        }
    }
lab0:
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_possessives() { /* backwardmode */
    if (c <= lb || p[c - 1] >> 5 != 3 || !((67133440 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* among, line 167 */
    if (!(find_among_b(s_pool, a_0, 10, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_U_vowel(); /* call mark_suffix_with_optional_U_vowel, line 169 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_sU() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 173 */
        if (ret <= 0) return ret;
    }
    if (in_grouping_b_U(g_U, 105, 305, 0)) return 0; /* grouping U, line 174 */
    {   int ret = r_mark_suffix_with_optional_s_consonant(); /* call mark_suffix_with_optional_s_consonant, line 175 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_lArI() { /* backwardmode */
    if (c - 3 <= lb || (p[c - 1] != 105 && p[c - 1] != 177)) return 0; /* among, line 179 */
    if (!(find_among_b(s_pool, a_1, 2, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_yU() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 183 */
        if (ret <= 0) return ret;
    }
    if (in_grouping_b_U(g_U, 105, 305, 0)) return 0; /* grouping U, line 184 */
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 185 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_nU() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 189 */
        if (ret <= 0) return ret;
    }
    if (!(find_among_b(s_pool, a_2, 4, 0, 0))) return 0; /* among, line 190 */
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_nUn() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 194 */
        if (ret <= 0) return ret;
    }
    if (c - 1 <= lb || p[c - 1] != 110) return 0; /* among, line 195 */
    if (!(find_among_b(s_pool, a_3, 4, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_n_consonant(); /* call mark_suffix_with_optional_n_consonant, line 196 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_yA() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 200 */
        if (ret <= 0) return ret;
    }
    if (c <= lb || (p[c - 1] != 97 && p[c - 1] != 101)) return 0; /* among, line 201 */
    if (!(find_among_b(s_pool, a_4, 2, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 202 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_nA() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 206 */
        if (ret <= 0) return ret;
    }
    if (c - 1 <= lb || (p[c - 1] != 97 && p[c - 1] != 101)) return 0; /* among, line 207 */
    if (!(find_among_b(s_pool, a_5, 2, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_DA() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 211 */
        if (ret <= 0) return ret;
    }
    if (c - 1 <= lb || (p[c - 1] != 97 && p[c - 1] != 101)) return 0; /* among, line 212 */
    if (!(find_among_b(s_pool, a_6, 4, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_ndA() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 216 */
        if (ret <= 0) return ret;
    }
    if (c - 2 <= lb || (p[c - 1] != 97 && p[c - 1] != 101)) return 0; /* among, line 217 */
    if (!(find_among_b(s_pool, a_7, 2, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_DAn() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 221 */
        if (ret <= 0) return ret;
    }
    if (c - 2 <= lb || p[c - 1] != 110) return 0; /* among, line 222 */
    if (!(find_among_b(s_pool, a_8, 4, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_ndAn() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 226 */
        if (ret <= 0) return ret;
    }
    if (c - 3 <= lb || p[c - 1] != 110) return 0; /* among, line 227 */
    if (!(find_among_b(s_pool, a_9, 2, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_ylA() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 231 */
        if (ret <= 0) return ret;
    }
    if (c - 1 <= lb || (p[c - 1] != 97 && p[c - 1] != 101)) return 0; /* among, line 232 */
    if (!(find_among_b(s_pool, a_10, 2, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 233 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_ki() { /* backwardmode */
    if (!(eq_s_b(2, s_3))) return 0; /* literal, line 237 */
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_ncA() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 241 */
        if (ret <= 0) return ret;
    }
    if (c - 1 <= lb || (p[c - 1] != 97 && p[c - 1] != 101)) return 0; /* among, line 242 */
    if (!(find_among_b(s_pool, a_11, 2, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_n_consonant(); /* call mark_suffix_with_optional_n_consonant, line 243 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_yUm() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 247 */
        if (ret <= 0) return ret;
    }
    if (c - 1 <= lb || p[c - 1] != 109) return 0; /* among, line 248 */
    if (!(find_among_b(s_pool, a_12, 4, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 249 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_sUn() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 253 */
        if (ret <= 0) return ret;
    }
    if (c - 2 <= lb || p[c - 1] != 110) return 0; /* among, line 254 */
    if (!(find_among_b(s_pool, a_13, 4, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_yUz() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 258 */
        if (ret <= 0) return ret;
    }
    if (c - 1 <= lb || p[c - 1] != 122) return 0; /* among, line 259 */
    if (!(find_among_b(s_pool, a_14, 4, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 260 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_sUnUz() { /* backwardmode */
    if (c - 4 <= lb || p[c - 1] != 122) return 0; /* among, line 264 */
    if (!(find_among_b(s_pool, a_15, 4, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_lAr() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 268 */
        if (ret <= 0) return ret;
    }
    if (c - 2 <= lb || p[c - 1] != 114) return 0; /* among, line 269 */
    if (!(find_among_b(s_pool, a_16, 2, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_nUz() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 273 */
        if (ret <= 0) return ret;
    }
    if (c - 2 <= lb || p[c - 1] != 122) return 0; /* among, line 274 */
    if (!(find_among_b(s_pool, a_17, 4, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_DUr() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 278 */
        if (ret <= 0) return ret;
    }
    if (c - 2 <= lb || p[c - 1] != 114) return 0; /* among, line 279 */
    if (!(find_among_b(s_pool, a_18, 8, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_cAsInA() { /* backwardmode */
    if (c - 5 <= lb || (p[c - 1] != 97 && p[c - 1] != 101)) return 0; /* among, line 283 */
    if (!(find_among_b(s_pool, a_19, 2, 0, 0))) return 0;
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_yDU() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 287 */
        if (ret <= 0) return ret;
    }
    if (!(find_among_b(s_pool, a_20, 32, 0, 0))) return 0; /* among, line 288 */
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 292 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_ysA() { /* backwardmode */
    if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((26658 >> (p[c - 1] & 0x1f)) & 1)) return 0; /* among, line 297 */
    if (!(find_among_b(s_pool, a_21, 8, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 298 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_ymUs_() { /* backwardmode */
    {   int ret = r_check_vowel_harmony(); /* call check_vowel_harmony, line 302 */
        if (ret <= 0) return ret;
    }
    if (c - 3 <= lb || p[c - 1] != 159) return 0; /* among, line 303 */
    if (!(find_among_b(s_pool, a_22, 4, 0, 0))) return 0;
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 304 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_mark_yken() { /* backwardmode */
    if (!(eq_s_b(3, s_4))) return 0; /* literal, line 308 */
    {   int ret = r_mark_suffix_with_optional_y_consonant(); /* call mark_suffix_with_optional_y_consonant, line 308 */
        if (ret <= 0) return ret;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_stem_nominal_verb_suffixes() { /* backwardmode */
    ket = c; /* [, line 312 */
    B_continue_stemming_noun_suffixes = 1; /* set continue_stemming_noun_suffixes, line 313 */
    {   int m1 = l - c; (void)m1; /* or, line 315 */
        {   int m2 = l - c; (void)m2; /* or, line 314 */
            {   int ret = r_mark_ymUs_(); /* call mark_ymUs_, line 314 */
                if (ret == 0) goto lab3;
                if (ret < 0) return ret;
            }
            goto lab2;
        lab3:
            c = l - m2;
            {   int ret = r_mark_yDU(); /* call mark_yDU, line 314 */
                if (ret == 0) goto lab4;
                if (ret < 0) return ret;
            }
            goto lab2;
        lab4:
            c = l - m2;
            {   int ret = r_mark_ysA(); /* call mark_ysA, line 314 */
                if (ret == 0) goto lab5;
                if (ret < 0) return ret;
            }
            goto lab2;
        lab5:
            c = l - m2;
            {   int ret = r_mark_yken(); /* call mark_yken, line 314 */
                if (ret == 0) goto lab1;
                if (ret < 0) return ret;
            }
        }
    lab2:
        goto lab0;
    lab1:
        c = l - m1;
        {   int ret = r_mark_cAsInA(); /* call mark_cAsInA, line 316 */
            if (ret == 0) goto lab6;
            if (ret < 0) return ret;
        }
        {   int m3 = l - c; (void)m3; /* or, line 316 */
            {   int ret = r_mark_sUnUz(); /* call mark_sUnUz, line 316 */
                if (ret == 0) goto lab8;
                if (ret < 0) return ret;
            }
            goto lab7;
        lab8:
            c = l - m3;
            {   int ret = r_mark_lAr(); /* call mark_lAr, line 316 */
                if (ret == 0) goto lab9;
                if (ret < 0) return ret;
            }
            goto lab7;
        lab9:
            c = l - m3;
            {   int ret = r_mark_yUm(); /* call mark_yUm, line 316 */
                if (ret == 0) goto lab10;
                if (ret < 0) return ret;
            }
            goto lab7;
        lab10:
            c = l - m3;
            {   int ret = r_mark_sUn(); /* call mark_sUn, line 316 */
                if (ret == 0) goto lab11;
                if (ret < 0) return ret;
            }
            goto lab7;
        lab11:
            c = l - m3;
            {   int ret = r_mark_yUz(); /* call mark_yUz, line 316 */
                if (ret == 0) goto lab12;
                if (ret < 0) return ret;
            }
            goto lab7;
        lab12:
            c = l - m3;
        }
    lab7:
        {   int ret = r_mark_ymUs_(); /* call mark_ymUs_, line 316 */
            if (ret == 0) goto lab6;
            if (ret < 0) return ret;
        }
        goto lab0;
    lab6:
        c = l - m1;
        {   int ret = r_mark_lAr(); /* call mark_lAr, line 319 */
            if (ret == 0) goto lab13;
            if (ret < 0) return ret;
        }
        bra = c; /* ], line 319 */
        if (slice_del() == -1) return -1; /* delete, line 319 */
        {   int m4 = l - c; (void)m4; /* try, line 319 */
            ket = c; /* [, line 319 */
            {   int m5 = l - c; (void)m5; /* or, line 319 */
                {   int ret = r_mark_DUr(); /* call mark_DUr, line 319 */
                    if (ret == 0) goto lab16;
                    if (ret < 0) return ret;
                }
                goto lab15;
            lab16:
                c = l - m5;
                {   int ret = r_mark_yDU(); /* call mark_yDU, line 319 */
                    if (ret == 0) goto lab17;
                    if (ret < 0) return ret;
                }
                goto lab15;
            lab17:
                c = l - m5;
                {   int ret = r_mark_ysA(); /* call mark_ysA, line 319 */
                    if (ret == 0) goto lab18;
                    if (ret < 0) return ret;
                }
                goto lab15;
            lab18:
                c = l - m5;
                {   int ret = r_mark_ymUs_(); /* call mark_ymUs_, line 319 */
                    if (ret == 0) { c = l - m4; goto lab14; }
                    if (ret < 0) return ret;
                }
            }
        lab15:
        lab14:
            ;
        }
        B_continue_stemming_noun_suffixes = 0; /* unset continue_stemming_noun_suffixes, line 320 */
        goto lab0;
    lab13:
        c = l - m1;
        {   int ret = r_mark_nUz(); /* call mark_nUz, line 323 */
            if (ret == 0) goto lab19;
            if (ret < 0) return ret;
        }
        {   int m6 = l - c; (void)m6; /* or, line 323 */
            {   int ret = r_mark_yDU(); /* call mark_yDU, line 323 */
                if (ret == 0) goto lab21;
                if (ret < 0) return ret;
            }
            goto lab20;
        lab21:
            c = l - m6;
            {   int ret = r_mark_ysA(); /* call mark_ysA, line 323 */
                if (ret == 0) goto lab19;
                if (ret < 0) return ret;
            }
        }
    lab20:
        goto lab0;
    lab19:
        c = l - m1;
        {   int m7 = l - c; (void)m7; /* or, line 325 */
            {   int ret = r_mark_sUnUz(); /* call mark_sUnUz, line 325 */
                if (ret == 0) goto lab24;
                if (ret < 0) return ret;
            }
            goto lab23;
        lab24:
            c = l - m7;
            {   int ret = r_mark_yUz(); /* call mark_yUz, line 325 */
                if (ret == 0) goto lab25;
                if (ret < 0) return ret;
            }
            goto lab23;
        lab25:
            c = l - m7;
            {   int ret = r_mark_sUn(); /* call mark_sUn, line 325 */
                if (ret == 0) goto lab26;
                if (ret < 0) return ret;
            }
            goto lab23;
        lab26:
            c = l - m7;
            {   int ret = r_mark_yUm(); /* call mark_yUm, line 325 */
                if (ret == 0) goto lab22;
                if (ret < 0) return ret;
            }
        }
    lab23:
        bra = c; /* ], line 325 */
        if (slice_del() == -1) return -1; /* delete, line 325 */
        {   int m8 = l - c; (void)m8; /* try, line 325 */
            ket = c; /* [, line 325 */
            {   int ret = r_mark_ymUs_(); /* call mark_ymUs_, line 325 */
                if (ret == 0) { c = l - m8; goto lab27; }
                if (ret < 0) return ret;
            }
        lab27:
            ;
        }
        goto lab0;
    lab22:
        c = l - m1;
        {   int ret = r_mark_DUr(); /* call mark_DUr, line 327 */
            if (ret <= 0) return ret;
        }
        bra = c; /* ], line 327 */
        if (slice_del() == -1) return -1; /* delete, line 327 */
        {   int m9 = l - c; (void)m9; /* try, line 327 */
            ket = c; /* [, line 327 */
            {   int m10 = l - c; (void)m10; /* or, line 327 */
                {   int ret = r_mark_sUnUz(); /* call mark_sUnUz, line 327 */
                    if (ret == 0) goto lab30;
                    if (ret < 0) return ret;
                }
                goto lab29;
            lab30:
                c = l - m10;
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 327 */
                    if (ret == 0) goto lab31;
                    if (ret < 0) return ret;
                }
                goto lab29;
            lab31:
                c = l - m10;
                {   int ret = r_mark_yUm(); /* call mark_yUm, line 327 */
                    if (ret == 0) goto lab32;
                    if (ret < 0) return ret;
                }
                goto lab29;
            lab32:
                c = l - m10;
                {   int ret = r_mark_sUn(); /* call mark_sUn, line 327 */
                    if (ret == 0) goto lab33;
                    if (ret < 0) return ret;
                }
                goto lab29;
            lab33:
                c = l - m10;
                {   int ret = r_mark_yUz(); /* call mark_yUz, line 327 */
                    if (ret == 0) goto lab34;
                    if (ret < 0) return ret;
                }
                goto lab29;
            lab34:
                c = l - m10;
            }
        lab29:
            {   int ret = r_mark_ymUs_(); /* call mark_ymUs_, line 327 */
                if (ret == 0) { c = l - m9; goto lab28; }
                if (ret < 0) return ret;
            }
        lab28:
            ;
        }
    }
lab0:
    bra = c; /* ], line 328 */
    if (slice_del() == -1) return -1; /* delete, line 328 */
    return 1;
}

int Xapian::InternalStemTurkish::r_stem_suffix_chain_before_ki() { /* backwardmode */
    ket = c; /* [, line 333 */
    {   int ret = r_mark_ki(); /* call mark_ki, line 334 */
        if (ret <= 0) return ret;
    }
    {   int m1 = l - c; (void)m1; /* or, line 342 */
        {   int ret = r_mark_DA(); /* call mark_DA, line 336 */
            if (ret == 0) goto lab1;
            if (ret < 0) return ret;
        }
        bra = c; /* ], line 336 */
        if (slice_del() == -1) return -1; /* delete, line 336 */
        {   int m2 = l - c; (void)m2; /* try, line 336 */
            ket = c; /* [, line 336 */
            {   int m3 = l - c; (void)m3; /* or, line 338 */
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 337 */
                    if (ret == 0) goto lab4;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 337 */
                if (slice_del() == -1) return -1; /* delete, line 337 */
                {   int m4 = l - c; (void)m4; /* try, line 337 */
                    {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 337 */
                        if (ret == 0) { c = l - m4; goto lab5; }
                        if (ret < 0) return ret;
                    }
                lab5:
                    ;
                }
                goto lab3;
            lab4:
                c = l - m3;
                {   int ret = r_mark_possessives(); /* call mark_possessives, line 339 */
                    if (ret == 0) { c = l - m2; goto lab2; }
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 339 */
                if (slice_del() == -1) return -1; /* delete, line 339 */
                {   int m5 = l - c; (void)m5; /* try, line 339 */
                    ket = c; /* [, line 339 */
                    {   int ret = r_mark_lAr(); /* call mark_lAr, line 339 */
                        if (ret == 0) { c = l - m5; goto lab6; }
                        if (ret < 0) return ret;
                    }
                    bra = c; /* ], line 339 */
                    if (slice_del() == -1) return -1; /* delete, line 339 */
                    {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 339 */
                        if (ret == 0) { c = l - m5; goto lab6; }
                        if (ret < 0) return ret;
                    }
                lab6:
                    ;
                }
            }
        lab3:
        lab2:
            ;
        }
        goto lab0;
    lab1:
        c = l - m1;
        {   int ret = r_mark_nUn(); /* call mark_nUn, line 343 */
            if (ret == 0) goto lab7;
            if (ret < 0) return ret;
        }
        bra = c; /* ], line 343 */
        if (slice_del() == -1) return -1; /* delete, line 343 */
        {   int m6 = l - c; (void)m6; /* try, line 343 */
            ket = c; /* [, line 343 */
            {   int m7 = l - c; (void)m7; /* or, line 345 */
                {   int ret = r_mark_lArI(); /* call mark_lArI, line 344 */
                    if (ret == 0) goto lab10;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 344 */
                if (slice_del() == -1) return -1; /* delete, line 344 */
                goto lab9;
            lab10:
                c = l - m7;
                ket = c; /* [, line 346 */
                {   int m8 = l - c; (void)m8; /* or, line 346 */
                    {   int ret = r_mark_possessives(); /* call mark_possessives, line 346 */
                        if (ret == 0) goto lab13;
                        if (ret < 0) return ret;
                    }
                    goto lab12;
                lab13:
                    c = l - m8;
                    {   int ret = r_mark_sU(); /* call mark_sU, line 346 */
                        if (ret == 0) goto lab11;
                        if (ret < 0) return ret;
                    }
                }
            lab12:
                bra = c; /* ], line 346 */
                if (slice_del() == -1) return -1; /* delete, line 346 */
                {   int m9 = l - c; (void)m9; /* try, line 346 */
                    ket = c; /* [, line 346 */
                    {   int ret = r_mark_lAr(); /* call mark_lAr, line 346 */
                        if (ret == 0) { c = l - m9; goto lab14; }
                        if (ret < 0) return ret;
                    }
                    bra = c; /* ], line 346 */
                    if (slice_del() == -1) return -1; /* delete, line 346 */
                    {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 346 */
                        if (ret == 0) { c = l - m9; goto lab14; }
                        if (ret < 0) return ret;
                    }
                lab14:
                    ;
                }
                goto lab9;
            lab11:
                c = l - m7;
                {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 348 */
                    if (ret == 0) { c = l - m6; goto lab8; }
                    if (ret < 0) return ret;
                }
            }
        lab9:
        lab8:
            ;
        }
        goto lab0;
    lab7:
        c = l - m1;
        {   int ret = r_mark_ndA(); /* call mark_ndA, line 351 */
            if (ret <= 0) return ret;
        }
        {   int m10 = l - c; (void)m10; /* or, line 353 */
            {   int ret = r_mark_lArI(); /* call mark_lArI, line 352 */
                if (ret == 0) goto lab16;
                if (ret < 0) return ret;
            }
            bra = c; /* ], line 352 */
            if (slice_del() == -1) return -1; /* delete, line 352 */
            goto lab15;
        lab16:
            c = l - m10;
            {   int ret = r_mark_sU(); /* call mark_sU, line 354 */
                if (ret == 0) goto lab17;
                if (ret < 0) return ret;
            }
            bra = c; /* ], line 354 */
            if (slice_del() == -1) return -1; /* delete, line 354 */
            {   int m11 = l - c; (void)m11; /* try, line 354 */
                ket = c; /* [, line 354 */
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 354 */
                    if (ret == 0) { c = l - m11; goto lab18; }
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 354 */
                if (slice_del() == -1) return -1; /* delete, line 354 */
                {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 354 */
                    if (ret == 0) { c = l - m11; goto lab18; }
                    if (ret < 0) return ret;
                }
            lab18:
                ;
            }
            goto lab15;
        lab17:
            c = l - m10;
            {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 356 */
                if (ret <= 0) return ret;
            }
        }
    lab15:
        ;
    }
lab0:
    return 1;
}

int Xapian::InternalStemTurkish::r_stem_noun_suffixes() { /* backwardmode */
    {   int m1 = l - c; (void)m1; /* or, line 363 */
        ket = c; /* [, line 362 */
        {   int ret = r_mark_lAr(); /* call mark_lAr, line 362 */
            if (ret == 0) goto lab1;
            if (ret < 0) return ret;
        }
        bra = c; /* ], line 362 */
        if (slice_del() == -1) return -1; /* delete, line 362 */
        {   int m2 = l - c; (void)m2; /* try, line 362 */
            {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 362 */
                if (ret == 0) { c = l - m2; goto lab2; }
                if (ret < 0) return ret;
            }
        lab2:
            ;
        }
        goto lab0;
    lab1:
        c = l - m1;
        ket = c; /* [, line 364 */
        {   int ret = r_mark_ncA(); /* call mark_ncA, line 364 */
            if (ret == 0) goto lab3;
            if (ret < 0) return ret;
        }
        bra = c; /* ], line 364 */
        if (slice_del() == -1) return -1; /* delete, line 364 */
        {   int m3 = l - c; (void)m3; /* try, line 365 */
            {   int m4 = l - c; (void)m4; /* or, line 367 */
                ket = c; /* [, line 366 */
                {   int ret = r_mark_lArI(); /* call mark_lArI, line 366 */
                    if (ret == 0) goto lab6;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 366 */
                if (slice_del() == -1) return -1; /* delete, line 366 */
                goto lab5;
            lab6:
                c = l - m4;
                ket = c; /* [, line 368 */
                {   int m5 = l - c; (void)m5; /* or, line 368 */
                    {   int ret = r_mark_possessives(); /* call mark_possessives, line 368 */
                        if (ret == 0) goto lab9;
                        if (ret < 0) return ret;
                    }
                    goto lab8;
                lab9:
                    c = l - m5;
                    {   int ret = r_mark_sU(); /* call mark_sU, line 368 */
                        if (ret == 0) goto lab7;
                        if (ret < 0) return ret;
                    }
                }
            lab8:
                bra = c; /* ], line 368 */
                if (slice_del() == -1) return -1; /* delete, line 368 */
                {   int m6 = l - c; (void)m6; /* try, line 368 */
                    ket = c; /* [, line 368 */
                    {   int ret = r_mark_lAr(); /* call mark_lAr, line 368 */
                        if (ret == 0) { c = l - m6; goto lab10; }
                        if (ret < 0) return ret;
                    }
                    bra = c; /* ], line 368 */
                    if (slice_del() == -1) return -1; /* delete, line 368 */
                    {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 368 */
                        if (ret == 0) { c = l - m6; goto lab10; }
                        if (ret < 0) return ret;
                    }
                lab10:
                    ;
                }
                goto lab5;
            lab7:
                c = l - m4;
                ket = c; /* [, line 370 */
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 370 */
                    if (ret == 0) { c = l - m3; goto lab4; }
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 370 */
                if (slice_del() == -1) return -1; /* delete, line 370 */
                {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 370 */
                    if (ret == 0) { c = l - m3; goto lab4; }
                    if (ret < 0) return ret;
                }
            }
        lab5:
        lab4:
            ;
        }
        goto lab0;
    lab3:
        c = l - m1;
        ket = c; /* [, line 374 */
        {   int m7 = l - c; (void)m7; /* or, line 374 */
            {   int ret = r_mark_ndA(); /* call mark_ndA, line 374 */
                if (ret == 0) goto lab13;
                if (ret < 0) return ret;
            }
            goto lab12;
        lab13:
            c = l - m7;
            {   int ret = r_mark_nA(); /* call mark_nA, line 374 */
                if (ret == 0) goto lab11;
                if (ret < 0) return ret;
            }
        }
    lab12:
        {   int m8 = l - c; (void)m8; /* or, line 377 */
            {   int ret = r_mark_lArI(); /* call mark_lArI, line 376 */
                if (ret == 0) goto lab15;
                if (ret < 0) return ret;
            }
            bra = c; /* ], line 376 */
            if (slice_del() == -1) return -1; /* delete, line 376 */
            goto lab14;
        lab15:
            c = l - m8;
            {   int ret = r_mark_sU(); /* call mark_sU, line 378 */
                if (ret == 0) goto lab16;
                if (ret < 0) return ret;
            }
            bra = c; /* ], line 378 */
            if (slice_del() == -1) return -1; /* delete, line 378 */
            {   int m9 = l - c; (void)m9; /* try, line 378 */
                ket = c; /* [, line 378 */
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 378 */
                    if (ret == 0) { c = l - m9; goto lab17; }
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 378 */
                if (slice_del() == -1) return -1; /* delete, line 378 */
                {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 378 */
                    if (ret == 0) { c = l - m9; goto lab17; }
                    if (ret < 0) return ret;
                }
            lab17:
                ;
            }
            goto lab14;
        lab16:
            c = l - m8;
            {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 380 */
                if (ret == 0) goto lab11;
                if (ret < 0) return ret;
            }
        }
    lab14:
        goto lab0;
    lab11:
        c = l - m1;
        ket = c; /* [, line 384 */
        {   int m10 = l - c; (void)m10; /* or, line 384 */
            {   int ret = r_mark_ndAn(); /* call mark_ndAn, line 384 */
                if (ret == 0) goto lab20;
                if (ret < 0) return ret;
            }
            goto lab19;
        lab20:
            c = l - m10;
            {   int ret = r_mark_nU(); /* call mark_nU, line 384 */
                if (ret == 0) goto lab18;
                if (ret < 0) return ret;
            }
        }
    lab19:
        {   int m11 = l - c; (void)m11; /* or, line 384 */
            {   int ret = r_mark_sU(); /* call mark_sU, line 384 */
                if (ret == 0) goto lab22;
                if (ret < 0) return ret;
            }
            bra = c; /* ], line 384 */
            if (slice_del() == -1) return -1; /* delete, line 384 */
            {   int m12 = l - c; (void)m12; /* try, line 384 */
                ket = c; /* [, line 384 */
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 384 */
                    if (ret == 0) { c = l - m12; goto lab23; }
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 384 */
                if (slice_del() == -1) return -1; /* delete, line 384 */
                {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 384 */
                    if (ret == 0) { c = l - m12; goto lab23; }
                    if (ret < 0) return ret;
                }
            lab23:
                ;
            }
            goto lab21;
        lab22:
            c = l - m11;
            {   int ret = r_mark_lArI(); /* call mark_lArI, line 384 */
                if (ret == 0) goto lab18;
                if (ret < 0) return ret;
            }
        }
    lab21:
        goto lab0;
    lab18:
        c = l - m1;
        ket = c; /* [, line 386 */
        {   int ret = r_mark_DAn(); /* call mark_DAn, line 386 */
            if (ret == 0) goto lab24;
            if (ret < 0) return ret;
        }
        bra = c; /* ], line 386 */
        if (slice_del() == -1) return -1; /* delete, line 386 */
        {   int m13 = l - c; (void)m13; /* try, line 386 */
            ket = c; /* [, line 386 */
            {   int m14 = l - c; (void)m14; /* or, line 389 */
                {   int ret = r_mark_possessives(); /* call mark_possessives, line 388 */
                    if (ret == 0) goto lab27;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 388 */
                if (slice_del() == -1) return -1; /* delete, line 388 */
                {   int m15 = l - c; (void)m15; /* try, line 388 */
                    ket = c; /* [, line 388 */
                    {   int ret = r_mark_lAr(); /* call mark_lAr, line 388 */
                        if (ret == 0) { c = l - m15; goto lab28; }
                        if (ret < 0) return ret;
                    }
                    bra = c; /* ], line 388 */
                    if (slice_del() == -1) return -1; /* delete, line 388 */
                    {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 388 */
                        if (ret == 0) { c = l - m15; goto lab28; }
                        if (ret < 0) return ret;
                    }
                lab28:
                    ;
                }
                goto lab26;
            lab27:
                c = l - m14;
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 390 */
                    if (ret == 0) goto lab29;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 390 */
                if (slice_del() == -1) return -1; /* delete, line 390 */
                {   int m16 = l - c; (void)m16; /* try, line 390 */
                    {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 390 */
                        if (ret == 0) { c = l - m16; goto lab30; }
                        if (ret < 0) return ret;
                    }
                lab30:
                    ;
                }
                goto lab26;
            lab29:
                c = l - m14;
                {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 392 */
                    if (ret == 0) { c = l - m13; goto lab25; }
                    if (ret < 0) return ret;
                }
            }
        lab26:
        lab25:
            ;
        }
        goto lab0;
    lab24:
        c = l - m1;
        ket = c; /* [, line 396 */
        {   int m17 = l - c; (void)m17; /* or, line 396 */
            {   int ret = r_mark_nUn(); /* call mark_nUn, line 396 */
                if (ret == 0) goto lab33;
                if (ret < 0) return ret;
            }
            goto lab32;
        lab33:
            c = l - m17;
            {   int ret = r_mark_ylA(); /* call mark_ylA, line 396 */
                if (ret == 0) goto lab31;
                if (ret < 0) return ret;
            }
        }
    lab32:
        bra = c; /* ], line 396 */
        if (slice_del() == -1) return -1; /* delete, line 396 */
        {   int m18 = l - c; (void)m18; /* try, line 397 */
            {   int m19 = l - c; (void)m19; /* or, line 399 */
                ket = c; /* [, line 398 */
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 398 */
                    if (ret == 0) goto lab36;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 398 */
                if (slice_del() == -1) return -1; /* delete, line 398 */
                {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 398 */
                    if (ret == 0) goto lab36;
                    if (ret < 0) return ret;
                }
                goto lab35;
            lab36:
                c = l - m19;
                ket = c; /* [, line 400 */
                {   int m20 = l - c; (void)m20; /* or, line 400 */
                    {   int ret = r_mark_possessives(); /* call mark_possessives, line 400 */
                        if (ret == 0) goto lab39;
                        if (ret < 0) return ret;
                    }
                    goto lab38;
                lab39:
                    c = l - m20;
                    {   int ret = r_mark_sU(); /* call mark_sU, line 400 */
                        if (ret == 0) goto lab37;
                        if (ret < 0) return ret;
                    }
                }
            lab38:
                bra = c; /* ], line 400 */
                if (slice_del() == -1) return -1; /* delete, line 400 */
                {   int m21 = l - c; (void)m21; /* try, line 400 */
                    ket = c; /* [, line 400 */
                    {   int ret = r_mark_lAr(); /* call mark_lAr, line 400 */
                        if (ret == 0) { c = l - m21; goto lab40; }
                        if (ret < 0) return ret;
                    }
                    bra = c; /* ], line 400 */
                    if (slice_del() == -1) return -1; /* delete, line 400 */
                    {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 400 */
                        if (ret == 0) { c = l - m21; goto lab40; }
                        if (ret < 0) return ret;
                    }
                lab40:
                    ;
                }
                goto lab35;
            lab37:
                c = l - m19;
                {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 402 */
                    if (ret == 0) { c = l - m18; goto lab34; }
                    if (ret < 0) return ret;
                }
            }
        lab35:
        lab34:
            ;
        }
        goto lab0;
    lab31:
        c = l - m1;
        ket = c; /* [, line 406 */
        {   int ret = r_mark_lArI(); /* call mark_lArI, line 406 */
            if (ret == 0) goto lab41;
            if (ret < 0) return ret;
        }
        bra = c; /* ], line 406 */
        if (slice_del() == -1) return -1; /* delete, line 406 */
        goto lab0;
    lab41:
        c = l - m1;
        {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 408 */
            if (ret == 0) goto lab42;
            if (ret < 0) return ret;
        }
        goto lab0;
    lab42:
        c = l - m1;
        ket = c; /* [, line 410 */
        {   int m22 = l - c; (void)m22; /* or, line 410 */
            {   int ret = r_mark_DA(); /* call mark_DA, line 410 */
                if (ret == 0) goto lab45;
                if (ret < 0) return ret;
            }
            goto lab44;
        lab45:
            c = l - m22;
            {   int ret = r_mark_yU(); /* call mark_yU, line 410 */
                if (ret == 0) goto lab46;
                if (ret < 0) return ret;
            }
            goto lab44;
        lab46:
            c = l - m22;
            {   int ret = r_mark_yA(); /* call mark_yA, line 410 */
                if (ret == 0) goto lab43;
                if (ret < 0) return ret;
            }
        }
    lab44:
        bra = c; /* ], line 410 */
        if (slice_del() == -1) return -1; /* delete, line 410 */
        {   int m23 = l - c; (void)m23; /* try, line 410 */
            ket = c; /* [, line 410 */
            {   int m24 = l - c; (void)m24; /* or, line 410 */
                {   int ret = r_mark_possessives(); /* call mark_possessives, line 410 */
                    if (ret == 0) goto lab49;
                    if (ret < 0) return ret;
                }
                bra = c; /* ], line 410 */
                if (slice_del() == -1) return -1; /* delete, line 410 */
                {   int m25 = l - c; (void)m25; /* try, line 410 */
                    ket = c; /* [, line 410 */
                    {   int ret = r_mark_lAr(); /* call mark_lAr, line 410 */
                        if (ret == 0) { c = l - m25; goto lab50; }
                        if (ret < 0) return ret;
                    }
                lab50:
                    ;
                }
                goto lab48;
            lab49:
                c = l - m24;
                {   int ret = r_mark_lAr(); /* call mark_lAr, line 410 */
                    if (ret == 0) { c = l - m23; goto lab47; }
                    if (ret < 0) return ret;
                }
            }
        lab48:
            bra = c; /* ], line 410 */
            if (slice_del() == -1) return -1; /* delete, line 410 */
            ket = c; /* [, line 410 */
            {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 410 */
                if (ret == 0) { c = l - m23; goto lab47; }
                if (ret < 0) return ret;
            }
        lab47:
            ;
        }
        goto lab0;
    lab43:
        c = l - m1;
        ket = c; /* [, line 412 */
        {   int m26 = l - c; (void)m26; /* or, line 412 */
            {   int ret = r_mark_possessives(); /* call mark_possessives, line 412 */
                if (ret == 0) goto lab52;
                if (ret < 0) return ret;
            }
            goto lab51;
        lab52:
            c = l - m26;
            {   int ret = r_mark_sU(); /* call mark_sU, line 412 */
                if (ret <= 0) return ret;
            }
        }
    lab51:
        bra = c; /* ], line 412 */
        if (slice_del() == -1) return -1; /* delete, line 412 */
        {   int m27 = l - c; (void)m27; /* try, line 412 */
            ket = c; /* [, line 412 */
            {   int ret = r_mark_lAr(); /* call mark_lAr, line 412 */
                if (ret == 0) { c = l - m27; goto lab53; }
                if (ret < 0) return ret;
            }
            bra = c; /* ], line 412 */
            if (slice_del() == -1) return -1; /* delete, line 412 */
            {   int ret = r_stem_suffix_chain_before_ki(); /* call stem_suffix_chain_before_ki, line 412 */
                if (ret == 0) { c = l - m27; goto lab53; }
                if (ret < 0) return ret;
            }
        lab53:
            ;
        }
    }
lab0:
    return 1;
}

int Xapian::InternalStemTurkish::r_post_process_last_consonants() { /* backwardmode */
    int among_var;
    ket = c; /* [, line 416 */
    among_var = find_among_b(s_pool, a_23, 4, 0, 0); /* substring, line 416 */
    if (!(among_var)) return 0;
    bra = c; /* ], line 416 */
    switch(among_var) { /* among, line 416 */
        case 0: return 0;
        case 1:
            {   int ret = slice_from_s(1, s_5); /* <-, line 417 */
                if (ret < 0) return ret;
            }
            break;
        case 2:
            {   int ret = slice_from_s(2, s_6); /* <-, line 418 */
                if (ret < 0) return ret;
            }
            break;
        case 3:
            {   int ret = slice_from_s(1, s_7); /* <-, line 419 */
                if (ret < 0) return ret;
            }
            break;
        case 4:
            {   int ret = slice_from_s(1, s_8); /* <-, line 420 */
                if (ret < 0) return ret;
            }
            break;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_append_U_to_stems_ending_with_d_or_g() { /* backwardmode */
    {   int m_test1 = l - c; /* test, line 431 */
        {   int m2 = l - c; (void)m2; /* or, line 431 */
            if (c <= lb || p[c - 1] != 'd') goto lab1;
            c--;
            goto lab0;
        lab1:
            c = l - m2;
            if (c <= lb || p[c - 1] != 'g') return 0;
            c--;
        }
    lab0:
        c = l - m_test1;
    }
    {   int m3 = l - c; (void)m3; /* or, line 433 */
        {   int m_test4 = l - c; /* test, line 432 */
            if (out_grouping_b_U(g_vowel, 97, 305, 1) < 0) goto lab3; /* goto */ /* grouping vowel, line 432 */
            {   int m5 = l - c; (void)m5; /* or, line 432 */
                if (c <= lb || p[c - 1] != 'a') goto lab5;
                c--;
                goto lab4;
            lab5:
                c = l - m5;
                if (!(eq_s_b(2, s_9))) goto lab3; /* literal, line 432 */
            }
        lab4:
            c = l - m_test4;
        }
        {   int saved_c = c;
            insert_s(c, c, 2, s_10); /* <+, line 432 */
            c = saved_c;
        }
        goto lab2;
    lab3:
        c = l - m3;
        {   int m_test6 = l - c; /* test, line 434 */
            if (out_grouping_b_U(g_vowel, 97, 305, 1) < 0) goto lab6; /* goto */ /* grouping vowel, line 434 */
            {   int m7 = l - c; (void)m7; /* or, line 434 */
                if (c <= lb || p[c - 1] != 'e') goto lab8;
                c--;
                goto lab7;
            lab8:
                c = l - m7;
                if (c <= lb || p[c - 1] != 'i') goto lab6;
                c--;
            }
        lab7:
            c = l - m_test6;
        }
        {   int saved_c = c;
            insert_s(c, c, 1, s_11); /* <+, line 434 */
            c = saved_c;
        }
        goto lab2;
    lab6:
        c = l - m3;
        {   int m_test8 = l - c; /* test, line 436 */
            if (out_grouping_b_U(g_vowel, 97, 305, 1) < 0) goto lab9; /* goto */ /* grouping vowel, line 436 */
            {   int m9 = l - c; (void)m9; /* or, line 436 */
                if (c <= lb || p[c - 1] != 'o') goto lab11;
                c--;
                goto lab10;
            lab11:
                c = l - m9;
                if (c <= lb || p[c - 1] != 'u') goto lab9;
                c--;
            }
        lab10:
            c = l - m_test8;
        }
        {   int saved_c = c;
            insert_s(c, c, 1, s_12); /* <+, line 436 */
            c = saved_c;
        }
        goto lab2;
    lab9:
        c = l - m3;
        {   int m_test10 = l - c; /* test, line 438 */
            if (out_grouping_b_U(g_vowel, 97, 305, 1) < 0) return 0; /* goto */ /* grouping vowel, line 438 */
            {   int m11 = l - c; (void)m11; /* or, line 438 */
                if (!(eq_s_b(2, s_13))) goto lab13; /* literal, line 438 */
                goto lab12;
            lab13:
                c = l - m11;
                if (!(eq_s_b(2, s_14))) return 0; /* literal, line 438 */
            }
        lab12:
            c = l - m_test10;
        }
        {   int saved_c = c;
            insert_s(c, c, 2, s_15); /* <+, line 438 */
            c = saved_c;
        }
    }
lab2:
    return 1;
}

int Xapian::InternalStemTurkish::r_more_than_one_syllable_word() { /* forwardmode */
    {   int c_test1 = c; /* test, line 446 */
        {   int i = 2;
            while(1) { /* atleast, line 446 */
                int c2 = c;
                {   int ret = out_grouping_U(g_vowel, 97, 305, 1); /* gopast */ /* grouping vowel, line 446 */
                    if (ret < 0) goto lab0;
                    c += ret;
                }
                i--;
                continue;
            lab0:
                c = c2;
                break;
            }
            if (i > 0) return 0;
        }
        c = c_test1;
    }
    return 1;
}

int Xapian::InternalStemTurkish::r_is_reserved_word() { /* forwardmode */
    {   int c1 = c; /* or, line 451 */
        {   int c_test2 = c; /* test, line 450 */
            while(1) { /* gopast, line 450 */
                if (!(eq_s(2, s_16))) goto lab2; /* literal, line 450 */
                break;
            lab2:
                {   int ret = skip_utf8(p, c, 0, l, 1);
                    if (ret < 0) goto lab1;
                    c = ret; /* gopast, line 450 */
                }
            }
            I_strlen = 2; /* strlen = <integer expression>, line 450 */
            if (!(I_strlen == l)) goto lab1; /* strlen == <integer expression>, line 450 */
            c = c_test2;
        }
        goto lab0;
    lab1:
        c = c1;
        {   int c_test3 = c; /* test, line 452 */
            while(1) { /* gopast, line 452 */
                if (!(eq_s(5, s_17))) goto lab3; /* literal, line 452 */
                break;
            lab3:
                {   int ret = skip_utf8(p, c, 0, l, 1);
                    if (ret < 0) return 0;
                    c = ret; /* gopast, line 452 */
                }
            }
            I_strlen = 5; /* strlen = <integer expression>, line 452 */
            if (!(I_strlen == l)) return 0; /* strlen == <integer expression>, line 452 */
            c = c_test3;
        }
    }
lab0:
    return 1;
}

int Xapian::InternalStemTurkish::r_postlude() { /* forwardmode */
    {   int c1 = c; /* not, line 456 */
        {   int ret = r_is_reserved_word(); /* call is_reserved_word, line 456 */
            if (ret == 0) goto lab0;
            if (ret < 0) return ret;
        }
        return 0;
    lab0:
        c = c1;
    }
    lb = c; c = l; /* backwards, line 457 */

    {   int m2 = l - c; (void)m2; /* do, line 458 */
        {   int ret = r_append_U_to_stems_ending_with_d_or_g(); /* call append_U_to_stems_ending_with_d_or_g, line 458 */
            if (ret == 0) goto lab1;
            if (ret < 0) return ret;
        }
    lab1:
        c = l - m2;
    }
    {   int m3 = l - c; (void)m3; /* do, line 459 */
        {   int ret = r_post_process_last_consonants(); /* call post_process_last_consonants, line 459 */
            if (ret == 0) goto lab2;
            if (ret < 0) return ret;
        }
    lab2:
        c = l - m3;
    }
    c = lb;
    return 1;
}

int Xapian::InternalStemTurkish::stem() { /* forwardmode */
    {   int ret = r_more_than_one_syllable_word(); /* call more_than_one_syllable_word, line 465 */
        if (ret <= 0) return ret;
    }
    lb = c; c = l; /* backwards, line 467 */

    {   int m1 = l - c; (void)m1; /* do, line 468 */
        {   int ret = r_stem_nominal_verb_suffixes(); /* call stem_nominal_verb_suffixes, line 468 */
            if (ret == 0) goto lab0;
            if (ret < 0) return ret;
        }
    lab0:
        c = l - m1;
    }
    if (!(B_continue_stemming_noun_suffixes)) return 0; /* Boolean test continue_stemming_noun_suffixes, line 469 */
    {   int m2 = l - c; (void)m2; /* do, line 470 */
        {   int ret = r_stem_noun_suffixes(); /* call stem_noun_suffixes, line 470 */
            if (ret == 0) goto lab1;
            if (ret < 0) return ret;
        }
    lab1:
        c = l - m2;
    }
    c = lb;
    {   int ret = r_postlude(); /* call postlude, line 473 */
        if (ret <= 0) return ret;
    }
    return 1;
}

Xapian::InternalStemTurkish::InternalStemTurkish()
    : B_continue_stemming_noun_suffixes(0), I_strlen(0)
{
}

Xapian::InternalStemTurkish::~InternalStemTurkish()
{
}

std::string
Xapian::InternalStemTurkish::get_description() const
{
    return "turkish";
}
