Header And Logo

PostgreSQL
| The world's most advanced open source database.

stem_UTF_8_finnish.c

Go to the documentation of this file.
00001 
00002 /* This file was generated automatically by the Snowball to ANSI C compiler */
00003 
00004 #include "header.h"
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 extern int finnish_UTF_8_stem(struct SN_env * z);
00010 #ifdef __cplusplus
00011 }
00012 #endif
00013 static int r_tidy(struct SN_env * z);
00014 static int r_other_endings(struct SN_env * z);
00015 static int r_t_plural(struct SN_env * z);
00016 static int r_i_plural(struct SN_env * z);
00017 static int r_case_ending(struct SN_env * z);
00018 static int r_VI(struct SN_env * z);
00019 static int r_LONG(struct SN_env * z);
00020 static int r_possessive(struct SN_env * z);
00021 static int r_particle_etc(struct SN_env * z);
00022 static int r_R2(struct SN_env * z);
00023 static int r_mark_regions(struct SN_env * z);
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 
00029 extern struct SN_env * finnish_UTF_8_create_env(void);
00030 extern void finnish_UTF_8_close_env(struct SN_env * z);
00031 
00032 
00033 #ifdef __cplusplus
00034 }
00035 #endif
00036 static const symbol s_0_0[2] = { 'p', 'a' };
00037 static const symbol s_0_1[3] = { 's', 't', 'i' };
00038 static const symbol s_0_2[4] = { 'k', 'a', 'a', 'n' };
00039 static const symbol s_0_3[3] = { 'h', 'a', 'n' };
00040 static const symbol s_0_4[3] = { 'k', 'i', 'n' };
00041 static const symbol s_0_5[4] = { 'h', 0xC3, 0xA4, 'n' };
00042 static const symbol s_0_6[6] = { 'k', 0xC3, 0xA4, 0xC3, 0xA4, 'n' };
00043 static const symbol s_0_7[2] = { 'k', 'o' };
00044 static const symbol s_0_8[3] = { 'p', 0xC3, 0xA4 };
00045 static const symbol s_0_9[3] = { 'k', 0xC3, 0xB6 };
00046 
00047 static const struct among a_0[10] =
00048 {
00049 /*  0 */ { 2, s_0_0, -1, 1, 0},
00050 /*  1 */ { 3, s_0_1, -1, 2, 0},
00051 /*  2 */ { 4, s_0_2, -1, 1, 0},
00052 /*  3 */ { 3, s_0_3, -1, 1, 0},
00053 /*  4 */ { 3, s_0_4, -1, 1, 0},
00054 /*  5 */ { 4, s_0_5, -1, 1, 0},
00055 /*  6 */ { 6, s_0_6, -1, 1, 0},
00056 /*  7 */ { 2, s_0_7, -1, 1, 0},
00057 /*  8 */ { 3, s_0_8, -1, 1, 0},
00058 /*  9 */ { 3, s_0_9, -1, 1, 0}
00059 };
00060 
00061 static const symbol s_1_0[3] = { 'l', 'l', 'a' };
00062 static const symbol s_1_1[2] = { 'n', 'a' };
00063 static const symbol s_1_2[3] = { 's', 's', 'a' };
00064 static const symbol s_1_3[2] = { 't', 'a' };
00065 static const symbol s_1_4[3] = { 'l', 't', 'a' };
00066 static const symbol s_1_5[3] = { 's', 't', 'a' };
00067 
00068 static const struct among a_1[6] =
00069 {
00070 /*  0 */ { 3, s_1_0, -1, -1, 0},
00071 /*  1 */ { 2, s_1_1, -1, -1, 0},
00072 /*  2 */ { 3, s_1_2, -1, -1, 0},
00073 /*  3 */ { 2, s_1_3, -1, -1, 0},
00074 /*  4 */ { 3, s_1_4, 3, -1, 0},
00075 /*  5 */ { 3, s_1_5, 3, -1, 0}
00076 };
00077 
00078 static const symbol s_2_0[4] = { 'l', 'l', 0xC3, 0xA4 };
00079 static const symbol s_2_1[3] = { 'n', 0xC3, 0xA4 };
00080 static const symbol s_2_2[4] = { 's', 's', 0xC3, 0xA4 };
00081 static const symbol s_2_3[3] = { 't', 0xC3, 0xA4 };
00082 static const symbol s_2_4[4] = { 'l', 't', 0xC3, 0xA4 };
00083 static const symbol s_2_5[4] = { 's', 't', 0xC3, 0xA4 };
00084 
00085 static const struct among a_2[6] =
00086 {
00087 /*  0 */ { 4, s_2_0, -1, -1, 0},
00088 /*  1 */ { 3, s_2_1, -1, -1, 0},
00089 /*  2 */ { 4, s_2_2, -1, -1, 0},
00090 /*  3 */ { 3, s_2_3, -1, -1, 0},
00091 /*  4 */ { 4, s_2_4, 3, -1, 0},
00092 /*  5 */ { 4, s_2_5, 3, -1, 0}
00093 };
00094 
00095 static const symbol s_3_0[3] = { 'l', 'l', 'e' };
00096 static const symbol s_3_1[3] = { 'i', 'n', 'e' };
00097 
00098 static const struct among a_3[2] =
00099 {
00100 /*  0 */ { 3, s_3_0, -1, -1, 0},
00101 /*  1 */ { 3, s_3_1, -1, -1, 0}
00102 };
00103 
00104 static const symbol s_4_0[3] = { 'n', 's', 'a' };
00105 static const symbol s_4_1[3] = { 'm', 'm', 'e' };
00106 static const symbol s_4_2[3] = { 'n', 'n', 'e' };
00107 static const symbol s_4_3[2] = { 'n', 'i' };
00108 static const symbol s_4_4[2] = { 's', 'i' };
00109 static const symbol s_4_5[2] = { 'a', 'n' };
00110 static const symbol s_4_6[2] = { 'e', 'n' };
00111 static const symbol s_4_7[3] = { 0xC3, 0xA4, 'n' };
00112 static const symbol s_4_8[4] = { 'n', 's', 0xC3, 0xA4 };
00113 
00114 static const struct among a_4[9] =
00115 {
00116 /*  0 */ { 3, s_4_0, -1, 3, 0},
00117 /*  1 */ { 3, s_4_1, -1, 3, 0},
00118 /*  2 */ { 3, s_4_2, -1, 3, 0},
00119 /*  3 */ { 2, s_4_3, -1, 2, 0},
00120 /*  4 */ { 2, s_4_4, -1, 1, 0},
00121 /*  5 */ { 2, s_4_5, -1, 4, 0},
00122 /*  6 */ { 2, s_4_6, -1, 6, 0},
00123 /*  7 */ { 3, s_4_7, -1, 5, 0},
00124 /*  8 */ { 4, s_4_8, -1, 3, 0}
00125 };
00126 
00127 static const symbol s_5_0[2] = { 'a', 'a' };
00128 static const symbol s_5_1[2] = { 'e', 'e' };
00129 static const symbol s_5_2[2] = { 'i', 'i' };
00130 static const symbol s_5_3[2] = { 'o', 'o' };
00131 static const symbol s_5_4[2] = { 'u', 'u' };
00132 static const symbol s_5_5[4] = { 0xC3, 0xA4, 0xC3, 0xA4 };
00133 static const symbol s_5_6[4] = { 0xC3, 0xB6, 0xC3, 0xB6 };
00134 
00135 static const struct among a_5[7] =
00136 {
00137 /*  0 */ { 2, s_5_0, -1, -1, 0},
00138 /*  1 */ { 2, s_5_1, -1, -1, 0},
00139 /*  2 */ { 2, s_5_2, -1, -1, 0},
00140 /*  3 */ { 2, s_5_3, -1, -1, 0},
00141 /*  4 */ { 2, s_5_4, -1, -1, 0},
00142 /*  5 */ { 4, s_5_5, -1, -1, 0},
00143 /*  6 */ { 4, s_5_6, -1, -1, 0}
00144 };
00145 
00146 static const symbol s_6_0[1] = { 'a' };
00147 static const symbol s_6_1[3] = { 'l', 'l', 'a' };
00148 static const symbol s_6_2[2] = { 'n', 'a' };
00149 static const symbol s_6_3[3] = { 's', 's', 'a' };
00150 static const symbol s_6_4[2] = { 't', 'a' };
00151 static const symbol s_6_5[3] = { 'l', 't', 'a' };
00152 static const symbol s_6_6[3] = { 's', 't', 'a' };
00153 static const symbol s_6_7[3] = { 't', 't', 'a' };
00154 static const symbol s_6_8[3] = { 'l', 'l', 'e' };
00155 static const symbol s_6_9[3] = { 'i', 'n', 'e' };
00156 static const symbol s_6_10[3] = { 'k', 's', 'i' };
00157 static const symbol s_6_11[1] = { 'n' };
00158 static const symbol s_6_12[3] = { 'h', 'a', 'n' };
00159 static const symbol s_6_13[3] = { 'd', 'e', 'n' };
00160 static const symbol s_6_14[4] = { 's', 'e', 'e', 'n' };
00161 static const symbol s_6_15[3] = { 'h', 'e', 'n' };
00162 static const symbol s_6_16[4] = { 't', 't', 'e', 'n' };
00163 static const symbol s_6_17[3] = { 'h', 'i', 'n' };
00164 static const symbol s_6_18[4] = { 's', 'i', 'i', 'n' };
00165 static const symbol s_6_19[3] = { 'h', 'o', 'n' };
00166 static const symbol s_6_20[4] = { 'h', 0xC3, 0xA4, 'n' };
00167 static const symbol s_6_21[4] = { 'h', 0xC3, 0xB6, 'n' };
00168 static const symbol s_6_22[2] = { 0xC3, 0xA4 };
00169 static const symbol s_6_23[4] = { 'l', 'l', 0xC3, 0xA4 };
00170 static const symbol s_6_24[3] = { 'n', 0xC3, 0xA4 };
00171 static const symbol s_6_25[4] = { 's', 's', 0xC3, 0xA4 };
00172 static const symbol s_6_26[3] = { 't', 0xC3, 0xA4 };
00173 static const symbol s_6_27[4] = { 'l', 't', 0xC3, 0xA4 };
00174 static const symbol s_6_28[4] = { 's', 't', 0xC3, 0xA4 };
00175 static const symbol s_6_29[4] = { 't', 't', 0xC3, 0xA4 };
00176 
00177 static const struct among a_6[30] =
00178 {
00179 /*  0 */ { 1, s_6_0, -1, 8, 0},
00180 /*  1 */ { 3, s_6_1, 0, -1, 0},
00181 /*  2 */ { 2, s_6_2, 0, -1, 0},
00182 /*  3 */ { 3, s_6_3, 0, -1, 0},
00183 /*  4 */ { 2, s_6_4, 0, -1, 0},
00184 /*  5 */ { 3, s_6_5, 4, -1, 0},
00185 /*  6 */ { 3, s_6_6, 4, -1, 0},
00186 /*  7 */ { 3, s_6_7, 4, 9, 0},
00187 /*  8 */ { 3, s_6_8, -1, -1, 0},
00188 /*  9 */ { 3, s_6_9, -1, -1, 0},
00189 /* 10 */ { 3, s_6_10, -1, -1, 0},
00190 /* 11 */ { 1, s_6_11, -1, 7, 0},
00191 /* 12 */ { 3, s_6_12, 11, 1, 0},
00192 /* 13 */ { 3, s_6_13, 11, -1, r_VI},
00193 /* 14 */ { 4, s_6_14, 11, -1, r_LONG},
00194 /* 15 */ { 3, s_6_15, 11, 2, 0},
00195 /* 16 */ { 4, s_6_16, 11, -1, r_VI},
00196 /* 17 */ { 3, s_6_17, 11, 3, 0},
00197 /* 18 */ { 4, s_6_18, 11, -1, r_VI},
00198 /* 19 */ { 3, s_6_19, 11, 4, 0},
00199 /* 20 */ { 4, s_6_20, 11, 5, 0},
00200 /* 21 */ { 4, s_6_21, 11, 6, 0},
00201 /* 22 */ { 2, s_6_22, -1, 8, 0},
00202 /* 23 */ { 4, s_6_23, 22, -1, 0},
00203 /* 24 */ { 3, s_6_24, 22, -1, 0},
00204 /* 25 */ { 4, s_6_25, 22, -1, 0},
00205 /* 26 */ { 3, s_6_26, 22, -1, 0},
00206 /* 27 */ { 4, s_6_27, 26, -1, 0},
00207 /* 28 */ { 4, s_6_28, 26, -1, 0},
00208 /* 29 */ { 4, s_6_29, 26, 9, 0}
00209 };
00210 
00211 static const symbol s_7_0[3] = { 'e', 'j', 'a' };
00212 static const symbol s_7_1[3] = { 'm', 'm', 'a' };
00213 static const symbol s_7_2[4] = { 'i', 'm', 'm', 'a' };
00214 static const symbol s_7_3[3] = { 'm', 'p', 'a' };
00215 static const symbol s_7_4[4] = { 'i', 'm', 'p', 'a' };
00216 static const symbol s_7_5[3] = { 'm', 'm', 'i' };
00217 static const symbol s_7_6[4] = { 'i', 'm', 'm', 'i' };
00218 static const symbol s_7_7[3] = { 'm', 'p', 'i' };
00219 static const symbol s_7_8[4] = { 'i', 'm', 'p', 'i' };
00220 static const symbol s_7_9[4] = { 'e', 'j', 0xC3, 0xA4 };
00221 static const symbol s_7_10[4] = { 'm', 'm', 0xC3, 0xA4 };
00222 static const symbol s_7_11[5] = { 'i', 'm', 'm', 0xC3, 0xA4 };
00223 static const symbol s_7_12[4] = { 'm', 'p', 0xC3, 0xA4 };
00224 static const symbol s_7_13[5] = { 'i', 'm', 'p', 0xC3, 0xA4 };
00225 
00226 static const struct among a_7[14] =
00227 {
00228 /*  0 */ { 3, s_7_0, -1, -1, 0},
00229 /*  1 */ { 3, s_7_1, -1, 1, 0},
00230 /*  2 */ { 4, s_7_2, 1, -1, 0},
00231 /*  3 */ { 3, s_7_3, -1, 1, 0},
00232 /*  4 */ { 4, s_7_4, 3, -1, 0},
00233 /*  5 */ { 3, s_7_5, -1, 1, 0},
00234 /*  6 */ { 4, s_7_6, 5, -1, 0},
00235 /*  7 */ { 3, s_7_7, -1, 1, 0},
00236 /*  8 */ { 4, s_7_8, 7, -1, 0},
00237 /*  9 */ { 4, s_7_9, -1, -1, 0},
00238 /* 10 */ { 4, s_7_10, -1, 1, 0},
00239 /* 11 */ { 5, s_7_11, 10, -1, 0},
00240 /* 12 */ { 4, s_7_12, -1, 1, 0},
00241 /* 13 */ { 5, s_7_13, 12, -1, 0}
00242 };
00243 
00244 static const symbol s_8_0[1] = { 'i' };
00245 static const symbol s_8_1[1] = { 'j' };
00246 
00247 static const struct among a_8[2] =
00248 {
00249 /*  0 */ { 1, s_8_0, -1, -1, 0},
00250 /*  1 */ { 1, s_8_1, -1, -1, 0}
00251 };
00252 
00253 static const symbol s_9_0[3] = { 'm', 'm', 'a' };
00254 static const symbol s_9_1[4] = { 'i', 'm', 'm', 'a' };
00255 
00256 static const struct among a_9[2] =
00257 {
00258 /*  0 */ { 3, s_9_0, -1, 1, 0},
00259 /*  1 */ { 4, s_9_1, 0, -1, 0}
00260 };
00261 
00262 static const unsigned char g_AEI[] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 };
00263 
00264 static const unsigned char g_V1[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
00265 
00266 static const unsigned char g_V2[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
00267 
00268 static const unsigned char g_particle_end[] = { 17, 97, 24, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
00269 
00270 static const symbol s_0[] = { 'k' };
00271 static const symbol s_1[] = { 'k', 's', 'e' };
00272 static const symbol s_2[] = { 'k', 's', 'i' };
00273 static const symbol s_3[] = { 'i' };
00274 static const symbol s_4[] = { 'a' };
00275 static const symbol s_5[] = { 'e' };
00276 static const symbol s_6[] = { 'i' };
00277 static const symbol s_7[] = { 'o' };
00278 static const symbol s_8[] = { 0xC3, 0xA4 };
00279 static const symbol s_9[] = { 0xC3, 0xB6 };
00280 static const symbol s_10[] = { 'i', 'e' };
00281 static const symbol s_11[] = { 'e' };
00282 static const symbol s_12[] = { 'p', 'o' };
00283 static const symbol s_13[] = { 't' };
00284 static const symbol s_14[] = { 'p', 'o' };
00285 static const symbol s_15[] = { 'j' };
00286 static const symbol s_16[] = { 'o' };
00287 static const symbol s_17[] = { 'u' };
00288 static const symbol s_18[] = { 'o' };
00289 static const symbol s_19[] = { 'j' };
00290 
00291 static int r_mark_regions(struct SN_env * z) {
00292     z->I[0] = z->l;
00293     z->I[1] = z->l;
00294     if (out_grouping_U(z, g_V1, 97, 246, 1) < 0) return 0; /* goto */ /* grouping V1, line 46 */
00295     {    /* gopast */ /* non V1, line 46 */
00296         int ret = in_grouping_U(z, g_V1, 97, 246, 1);
00297         if (ret < 0) return 0;
00298         z->c += ret;
00299     }
00300     z->I[0] = z->c; /* setmark p1, line 46 */
00301     if (out_grouping_U(z, g_V1, 97, 246, 1) < 0) return 0; /* goto */ /* grouping V1, line 47 */
00302     {    /* gopast */ /* non V1, line 47 */
00303         int ret = in_grouping_U(z, g_V1, 97, 246, 1);
00304         if (ret < 0) return 0;
00305         z->c += ret;
00306     }
00307     z->I[1] = z->c; /* setmark p2, line 47 */
00308     return 1;
00309 }
00310 
00311 static int r_R2(struct SN_env * z) {
00312     if (!(z->I[1] <= z->c)) return 0;
00313     return 1;
00314 }
00315 
00316 static int r_particle_etc(struct SN_env * z) {
00317     int among_var;
00318     {   int mlimit; /* setlimit, line 55 */
00319         int m1 = z->l - z->c; (void)m1;
00320         if (z->c < z->I[0]) return 0;
00321         z->c = z->I[0]; /* tomark, line 55 */
00322         mlimit = z->lb; z->lb = z->c;
00323         z->c = z->l - m1;
00324         z->ket = z->c; /* [, line 55 */
00325         among_var = find_among_b(z, a_0, 10); /* substring, line 55 */
00326         if (!(among_var)) { z->lb = mlimit; return 0; }
00327         z->bra = z->c; /* ], line 55 */
00328         z->lb = mlimit;
00329     }
00330     switch(among_var) {
00331         case 0: return 0;
00332         case 1:
00333             if (in_grouping_b_U(z, g_particle_end, 97, 246, 0)) return 0;
00334             break;
00335         case 2:
00336             {   int ret = r_R2(z);
00337                 if (ret == 0) return 0; /* call R2, line 64 */
00338                 if (ret < 0) return ret;
00339             }
00340             break;
00341     }
00342     {   int ret = slice_del(z); /* delete, line 66 */
00343         if (ret < 0) return ret;
00344     }
00345     return 1;
00346 }
00347 
00348 static int r_possessive(struct SN_env * z) {
00349     int among_var;
00350     {   int mlimit; /* setlimit, line 69 */
00351         int m1 = z->l - z->c; (void)m1;
00352         if (z->c < z->I[0]) return 0;
00353         z->c = z->I[0]; /* tomark, line 69 */
00354         mlimit = z->lb; z->lb = z->c;
00355         z->c = z->l - m1;
00356         z->ket = z->c; /* [, line 69 */
00357         among_var = find_among_b(z, a_4, 9); /* substring, line 69 */
00358         if (!(among_var)) { z->lb = mlimit; return 0; }
00359         z->bra = z->c; /* ], line 69 */
00360         z->lb = mlimit;
00361     }
00362     switch(among_var) {
00363         case 0: return 0;
00364         case 1:
00365             {   int m2 = z->l - z->c; (void)m2; /* not, line 72 */
00366                 if (!(eq_s_b(z, 1, s_0))) goto lab0;
00367                 return 0;
00368             lab0:
00369                 z->c = z->l - m2;
00370             }
00371             {   int ret = slice_del(z); /* delete, line 72 */
00372                 if (ret < 0) return ret;
00373             }
00374             break;
00375         case 2:
00376             {   int ret = slice_del(z); /* delete, line 74 */
00377                 if (ret < 0) return ret;
00378             }
00379             z->ket = z->c; /* [, line 74 */
00380             if (!(eq_s_b(z, 3, s_1))) return 0;
00381             z->bra = z->c; /* ], line 74 */
00382             {   int ret = slice_from_s(z, 3, s_2); /* <-, line 74 */
00383                 if (ret < 0) return ret;
00384             }
00385             break;
00386         case 3:
00387             {   int ret = slice_del(z); /* delete, line 78 */
00388                 if (ret < 0) return ret;
00389             }
00390             break;
00391         case 4:
00392             if (z->c - 1 <= z->lb || z->p[z->c - 1] != 97) return 0;
00393             if (!(find_among_b(z, a_1, 6))) return 0; /* among, line 81 */
00394             {   int ret = slice_del(z); /* delete, line 81 */
00395                 if (ret < 0) return ret;
00396             }
00397             break;
00398         case 5:
00399             if (z->c - 2 <= z->lb || z->p[z->c - 1] != 164) return 0;
00400             if (!(find_among_b(z, a_2, 6))) return 0; /* among, line 83 */
00401             {   int ret = slice_del(z); /* delete, line 84 */
00402                 if (ret < 0) return ret;
00403             }
00404             break;
00405         case 6:
00406             if (z->c - 2 <= z->lb || z->p[z->c - 1] != 101) return 0;
00407             if (!(find_among_b(z, a_3, 2))) return 0; /* among, line 86 */
00408             {   int ret = slice_del(z); /* delete, line 86 */
00409                 if (ret < 0) return ret;
00410             }
00411             break;
00412     }
00413     return 1;
00414 }
00415 
00416 static int r_LONG(struct SN_env * z) {
00417     if (!(find_among_b(z, a_5, 7))) return 0; /* among, line 91 */
00418     return 1;
00419 }
00420 
00421 static int r_VI(struct SN_env * z) {
00422     if (!(eq_s_b(z, 1, s_3))) return 0;
00423     if (in_grouping_b_U(z, g_V2, 97, 246, 0)) return 0;
00424     return 1;
00425 }
00426 
00427 static int r_case_ending(struct SN_env * z) {
00428     int among_var;
00429     {   int mlimit; /* setlimit, line 96 */
00430         int m1 = z->l - z->c; (void)m1;
00431         if (z->c < z->I[0]) return 0;
00432         z->c = z->I[0]; /* tomark, line 96 */
00433         mlimit = z->lb; z->lb = z->c;
00434         z->c = z->l - m1;
00435         z->ket = z->c; /* [, line 96 */
00436         among_var = find_among_b(z, a_6, 30); /* substring, line 96 */
00437         if (!(among_var)) { z->lb = mlimit; return 0; }
00438         z->bra = z->c; /* ], line 96 */
00439         z->lb = mlimit;
00440     }
00441     switch(among_var) {
00442         case 0: return 0;
00443         case 1:
00444             if (!(eq_s_b(z, 1, s_4))) return 0;
00445             break;
00446         case 2:
00447             if (!(eq_s_b(z, 1, s_5))) return 0;
00448             break;
00449         case 3:
00450             if (!(eq_s_b(z, 1, s_6))) return 0;
00451             break;
00452         case 4:
00453             if (!(eq_s_b(z, 1, s_7))) return 0;
00454             break;
00455         case 5:
00456             if (!(eq_s_b(z, 2, s_8))) return 0;
00457             break;
00458         case 6:
00459             if (!(eq_s_b(z, 2, s_9))) return 0;
00460             break;
00461         case 7:
00462             {   int m_keep = z->l - z->c;/* (void) m_keep;*/ /* try, line 111 */
00463                 {   int m2 = z->l - z->c; (void)m2; /* and, line 113 */
00464                     {   int m3 = z->l - z->c; (void)m3; /* or, line 112 */
00465                         {   int ret = r_LONG(z);
00466                             if (ret == 0) goto lab2; /* call LONG, line 111 */
00467                             if (ret < 0) return ret;
00468                         }
00469                         goto lab1;
00470                     lab2:
00471                         z->c = z->l - m3;
00472                         if (!(eq_s_b(z, 2, s_10))) { z->c = z->l - m_keep; goto lab0; }
00473                     }
00474                 lab1:
00475                     z->c = z->l - m2;
00476                     {   int ret = skip_utf8(z->p, z->c, z->lb, 0, -1);
00477                         if (ret < 0) { z->c = z->l - m_keep; goto lab0; }
00478                         z->c = ret; /* next, line 113 */
00479                     }
00480                 }
00481                 z->bra = z->c; /* ], line 113 */
00482             lab0:
00483                 ;
00484             }
00485             break;
00486         case 8:
00487             if (in_grouping_b_U(z, g_V1, 97, 246, 0)) return 0;
00488             if (out_grouping_b_U(z, g_V1, 97, 246, 0)) return 0;
00489             break;
00490         case 9:
00491             if (!(eq_s_b(z, 1, s_11))) return 0;
00492             break;
00493     }
00494     {   int ret = slice_del(z); /* delete, line 138 */
00495         if (ret < 0) return ret;
00496     }
00497     z->B[0] = 1; /* set ending_removed, line 139 */
00498     return 1;
00499 }
00500 
00501 static int r_other_endings(struct SN_env * z) {
00502     int among_var;
00503     {   int mlimit; /* setlimit, line 142 */
00504         int m1 = z->l - z->c; (void)m1;
00505         if (z->c < z->I[1]) return 0;
00506         z->c = z->I[1]; /* tomark, line 142 */
00507         mlimit = z->lb; z->lb = z->c;
00508         z->c = z->l - m1;
00509         z->ket = z->c; /* [, line 142 */
00510         among_var = find_among_b(z, a_7, 14); /* substring, line 142 */
00511         if (!(among_var)) { z->lb = mlimit; return 0; }
00512         z->bra = z->c; /* ], line 142 */
00513         z->lb = mlimit;
00514     }
00515     switch(among_var) {
00516         case 0: return 0;
00517         case 1:
00518             {   int m2 = z->l - z->c; (void)m2; /* not, line 146 */
00519                 if (!(eq_s_b(z, 2, s_12))) goto lab0;
00520                 return 0;
00521             lab0:
00522                 z->c = z->l - m2;
00523             }
00524             break;
00525     }
00526     {   int ret = slice_del(z); /* delete, line 151 */
00527         if (ret < 0) return ret;
00528     }
00529     return 1;
00530 }
00531 
00532 static int r_i_plural(struct SN_env * z) {
00533     {   int mlimit; /* setlimit, line 154 */
00534         int m1 = z->l - z->c; (void)m1;
00535         if (z->c < z->I[0]) return 0;
00536         z->c = z->I[0]; /* tomark, line 154 */
00537         mlimit = z->lb; z->lb = z->c;
00538         z->c = z->l - m1;
00539         z->ket = z->c; /* [, line 154 */
00540         if (z->c <= z->lb || (z->p[z->c - 1] != 105 && z->p[z->c - 1] != 106)) { z->lb = mlimit; return 0; }
00541         if (!(find_among_b(z, a_8, 2))) { z->lb = mlimit; return 0; } /* substring, line 154 */
00542         z->bra = z->c; /* ], line 154 */
00543         z->lb = mlimit;
00544     }
00545     {   int ret = slice_del(z); /* delete, line 158 */
00546         if (ret < 0) return ret;
00547     }
00548     return 1;
00549 }
00550 
00551 static int r_t_plural(struct SN_env * z) {
00552     int among_var;
00553     {   int mlimit; /* setlimit, line 161 */
00554         int m1 = z->l - z->c; (void)m1;
00555         if (z->c < z->I[0]) return 0;
00556         z->c = z->I[0]; /* tomark, line 161 */
00557         mlimit = z->lb; z->lb = z->c;
00558         z->c = z->l - m1;
00559         z->ket = z->c; /* [, line 162 */
00560         if (!(eq_s_b(z, 1, s_13))) { z->lb = mlimit; return 0; }
00561         z->bra = z->c; /* ], line 162 */
00562         {   int m_test = z->l - z->c; /* test, line 162 */
00563             if (in_grouping_b_U(z, g_V1, 97, 246, 0)) { z->lb = mlimit; return 0; }
00564             z->c = z->l - m_test;
00565         }
00566         {   int ret = slice_del(z); /* delete, line 163 */
00567             if (ret < 0) return ret;
00568         }
00569         z->lb = mlimit;
00570     }
00571     {   int mlimit; /* setlimit, line 165 */
00572         int m2 = z->l - z->c; (void)m2;
00573         if (z->c < z->I[1]) return 0;
00574         z->c = z->I[1]; /* tomark, line 165 */
00575         mlimit = z->lb; z->lb = z->c;
00576         z->c = z->l - m2;
00577         z->ket = z->c; /* [, line 165 */
00578         if (z->c - 2 <= z->lb || z->p[z->c - 1] != 97) { z->lb = mlimit; return 0; }
00579         among_var = find_among_b(z, a_9, 2); /* substring, line 165 */
00580         if (!(among_var)) { z->lb = mlimit; return 0; }
00581         z->bra = z->c; /* ], line 165 */
00582         z->lb = mlimit;
00583     }
00584     switch(among_var) {
00585         case 0: return 0;
00586         case 1:
00587             {   int m3 = z->l - z->c; (void)m3; /* not, line 167 */
00588                 if (!(eq_s_b(z, 2, s_14))) goto lab0;
00589                 return 0;
00590             lab0:
00591                 z->c = z->l - m3;
00592             }
00593             break;
00594     }
00595     {   int ret = slice_del(z); /* delete, line 170 */
00596         if (ret < 0) return ret;
00597     }
00598     return 1;
00599 }
00600 
00601 static int r_tidy(struct SN_env * z) {
00602     {   int mlimit; /* setlimit, line 173 */
00603         int m1 = z->l - z->c; (void)m1;
00604         if (z->c < z->I[0]) return 0;
00605         z->c = z->I[0]; /* tomark, line 173 */
00606         mlimit = z->lb; z->lb = z->c;
00607         z->c = z->l - m1;
00608         {   int m2 = z->l - z->c; (void)m2; /* do, line 174 */
00609             {   int m3 = z->l - z->c; (void)m3; /* and, line 174 */
00610                 {   int ret = r_LONG(z);
00611                     if (ret == 0) goto lab0; /* call LONG, line 174 */
00612                     if (ret < 0) return ret;
00613                 }
00614                 z->c = z->l - m3;
00615                 z->ket = z->c; /* [, line 174 */
00616                 {   int ret = skip_utf8(z->p, z->c, z->lb, 0, -1);
00617                     if (ret < 0) goto lab0;
00618                     z->c = ret; /* next, line 174 */
00619                 }
00620                 z->bra = z->c; /* ], line 174 */
00621                 {   int ret = slice_del(z); /* delete, line 174 */
00622                     if (ret < 0) return ret;
00623                 }
00624             }
00625         lab0:
00626             z->c = z->l - m2;
00627         }
00628         {   int m4 = z->l - z->c; (void)m4; /* do, line 175 */
00629             z->ket = z->c; /* [, line 175 */
00630             if (in_grouping_b_U(z, g_AEI, 97, 228, 0)) goto lab1;
00631             z->bra = z->c; /* ], line 175 */
00632             if (out_grouping_b_U(z, g_V1, 97, 246, 0)) goto lab1;
00633             {   int ret = slice_del(z); /* delete, line 175 */
00634                 if (ret < 0) return ret;
00635             }
00636         lab1:
00637             z->c = z->l - m4;
00638         }
00639         {   int m5 = z->l - z->c; (void)m5; /* do, line 176 */
00640             z->ket = z->c; /* [, line 176 */
00641             if (!(eq_s_b(z, 1, s_15))) goto lab2;
00642             z->bra = z->c; /* ], line 176 */
00643             {   int m6 = z->l - z->c; (void)m6; /* or, line 176 */
00644                 if (!(eq_s_b(z, 1, s_16))) goto lab4;
00645                 goto lab3;
00646             lab4:
00647                 z->c = z->l - m6;
00648                 if (!(eq_s_b(z, 1, s_17))) goto lab2;
00649             }
00650         lab3:
00651             {   int ret = slice_del(z); /* delete, line 176 */
00652                 if (ret < 0) return ret;
00653             }
00654         lab2:
00655             z->c = z->l - m5;
00656         }
00657         {   int m7 = z->l - z->c; (void)m7; /* do, line 177 */
00658             z->ket = z->c; /* [, line 177 */
00659             if (!(eq_s_b(z, 1, s_18))) goto lab5;
00660             z->bra = z->c; /* ], line 177 */
00661             if (!(eq_s_b(z, 1, s_19))) goto lab5;
00662             {   int ret = slice_del(z); /* delete, line 177 */
00663                 if (ret < 0) return ret;
00664             }
00665         lab5:
00666             z->c = z->l - m7;
00667         }
00668         z->lb = mlimit;
00669     }
00670     if (in_grouping_b_U(z, g_V1, 97, 246, 1) < 0) return 0; /* goto */ /* non V1, line 179 */
00671     z->ket = z->c; /* [, line 179 */
00672     {   int ret = skip_utf8(z->p, z->c, z->lb, 0, -1);
00673         if (ret < 0) return 0;
00674         z->c = ret; /* next, line 179 */
00675     }
00676     z->bra = z->c; /* ], line 179 */
00677     z->S[0] = slice_to(z, z->S[0]); /* -> x, line 179 */
00678     if (z->S[0] == 0) return -1; /* -> x, line 179 */
00679     if (!(eq_v_b(z, z->S[0]))) return 0; /* name x, line 179 */
00680     {   int ret = slice_del(z); /* delete, line 179 */
00681         if (ret < 0) return ret;
00682     }
00683     return 1;
00684 }
00685 
00686 extern int finnish_UTF_8_stem(struct SN_env * z) {
00687     {   int c1 = z->c; /* do, line 185 */
00688         {   int ret = r_mark_regions(z);
00689             if (ret == 0) goto lab0; /* call mark_regions, line 185 */
00690             if (ret < 0) return ret;
00691         }
00692     lab0:
00693         z->c = c1;
00694     }
00695     z->B[0] = 0; /* unset ending_removed, line 186 */
00696     z->lb = z->c; z->c = z->l; /* backwards, line 187 */
00697 
00698     {   int m2 = z->l - z->c; (void)m2; /* do, line 188 */
00699         {   int ret = r_particle_etc(z);
00700             if (ret == 0) goto lab1; /* call particle_etc, line 188 */
00701             if (ret < 0) return ret;
00702         }
00703     lab1:
00704         z->c = z->l - m2;
00705     }
00706     {   int m3 = z->l - z->c; (void)m3; /* do, line 189 */
00707         {   int ret = r_possessive(z);
00708             if (ret == 0) goto lab2; /* call possessive, line 189 */
00709             if (ret < 0) return ret;
00710         }
00711     lab2:
00712         z->c = z->l - m3;
00713     }
00714     {   int m4 = z->l - z->c; (void)m4; /* do, line 190 */
00715         {   int ret = r_case_ending(z);
00716             if (ret == 0) goto lab3; /* call case_ending, line 190 */
00717             if (ret < 0) return ret;
00718         }
00719     lab3:
00720         z->c = z->l - m4;
00721     }
00722     {   int m5 = z->l - z->c; (void)m5; /* do, line 191 */
00723         {   int ret = r_other_endings(z);
00724             if (ret == 0) goto lab4; /* call other_endings, line 191 */
00725             if (ret < 0) return ret;
00726         }
00727     lab4:
00728         z->c = z->l - m5;
00729     }
00730     {   int m6 = z->l - z->c; (void)m6; /* or, line 192 */
00731         if (!(z->B[0])) goto lab6; /* Boolean test ending_removed, line 192 */
00732         {   int m7 = z->l - z->c; (void)m7; /* do, line 192 */
00733             {   int ret = r_i_plural(z);
00734                 if (ret == 0) goto lab7; /* call i_plural, line 192 */
00735                 if (ret < 0) return ret;
00736             }
00737         lab7:
00738             z->c = z->l - m7;
00739         }
00740         goto lab5;
00741     lab6:
00742         z->c = z->l - m6;
00743         {   int m8 = z->l - z->c; (void)m8; /* do, line 192 */
00744             {   int ret = r_t_plural(z);
00745                 if (ret == 0) goto lab8; /* call t_plural, line 192 */
00746                 if (ret < 0) return ret;
00747             }
00748         lab8:
00749             z->c = z->l - m8;
00750         }
00751     }
00752 lab5:
00753     {   int m9 = z->l - z->c; (void)m9; /* do, line 193 */
00754         {   int ret = r_tidy(z);
00755             if (ret == 0) goto lab9; /* call tidy, line 193 */
00756             if (ret < 0) return ret;
00757         }
00758     lab9:
00759         z->c = z->l - m9;
00760     }
00761     z->c = z->lb;
00762     return 1;
00763 }
00764 
00765 extern struct SN_env * finnish_UTF_8_create_env(void) { return SN_create_env(1, 2, 1); }
00766 
00767 extern void finnish_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 1); }
00768