Header And Logo

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

stem_ISO_8859_1_porter.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 porter_ISO_8859_1_stem(struct SN_env * z);
00010 #ifdef __cplusplus
00011 }
00012 #endif
00013 static int r_Step_5b(struct SN_env * z);
00014 static int r_Step_5a(struct SN_env * z);
00015 static int r_Step_4(struct SN_env * z);
00016 static int r_Step_3(struct SN_env * z);
00017 static int r_Step_2(struct SN_env * z);
00018 static int r_Step_1c(struct SN_env * z);
00019 static int r_Step_1b(struct SN_env * z);
00020 static int r_Step_1a(struct SN_env * z);
00021 static int r_R2(struct SN_env * z);
00022 static int r_R1(struct SN_env * z);
00023 static int r_shortv(struct SN_env * z);
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 
00029 extern struct SN_env * porter_ISO_8859_1_create_env(void);
00030 extern void porter_ISO_8859_1_close_env(struct SN_env * z);
00031 
00032 
00033 #ifdef __cplusplus
00034 }
00035 #endif
00036 static const symbol s_0_0[1] = { 's' };
00037 static const symbol s_0_1[3] = { 'i', 'e', 's' };
00038 static const symbol s_0_2[4] = { 's', 's', 'e', 's' };
00039 static const symbol s_0_3[2] = { 's', 's' };
00040 
00041 static const struct among a_0[4] =
00042 {
00043 /*  0 */ { 1, s_0_0, -1, 3, 0},
00044 /*  1 */ { 3, s_0_1, 0, 2, 0},
00045 /*  2 */ { 4, s_0_2, 0, 1, 0},
00046 /*  3 */ { 2, s_0_3, 0, -1, 0}
00047 };
00048 
00049 static const symbol s_1_1[2] = { 'b', 'b' };
00050 static const symbol s_1_2[2] = { 'd', 'd' };
00051 static const symbol s_1_3[2] = { 'f', 'f' };
00052 static const symbol s_1_4[2] = { 'g', 'g' };
00053 static const symbol s_1_5[2] = { 'b', 'l' };
00054 static const symbol s_1_6[2] = { 'm', 'm' };
00055 static const symbol s_1_7[2] = { 'n', 'n' };
00056 static const symbol s_1_8[2] = { 'p', 'p' };
00057 static const symbol s_1_9[2] = { 'r', 'r' };
00058 static const symbol s_1_10[2] = { 'a', 't' };
00059 static const symbol s_1_11[2] = { 't', 't' };
00060 static const symbol s_1_12[2] = { 'i', 'z' };
00061 
00062 static const struct among a_1[13] =
00063 {
00064 /*  0 */ { 0, 0, -1, 3, 0},
00065 /*  1 */ { 2, s_1_1, 0, 2, 0},
00066 /*  2 */ { 2, s_1_2, 0, 2, 0},
00067 /*  3 */ { 2, s_1_3, 0, 2, 0},
00068 /*  4 */ { 2, s_1_4, 0, 2, 0},
00069 /*  5 */ { 2, s_1_5, 0, 1, 0},
00070 /*  6 */ { 2, s_1_6, 0, 2, 0},
00071 /*  7 */ { 2, s_1_7, 0, 2, 0},
00072 /*  8 */ { 2, s_1_8, 0, 2, 0},
00073 /*  9 */ { 2, s_1_9, 0, 2, 0},
00074 /* 10 */ { 2, s_1_10, 0, 1, 0},
00075 /* 11 */ { 2, s_1_11, 0, 2, 0},
00076 /* 12 */ { 2, s_1_12, 0, 1, 0}
00077 };
00078 
00079 static const symbol s_2_0[2] = { 'e', 'd' };
00080 static const symbol s_2_1[3] = { 'e', 'e', 'd' };
00081 static const symbol s_2_2[3] = { 'i', 'n', 'g' };
00082 
00083 static const struct among a_2[3] =
00084 {
00085 /*  0 */ { 2, s_2_0, -1, 2, 0},
00086 /*  1 */ { 3, s_2_1, 0, 1, 0},
00087 /*  2 */ { 3, s_2_2, -1, 2, 0}
00088 };
00089 
00090 static const symbol s_3_0[4] = { 'a', 'n', 'c', 'i' };
00091 static const symbol s_3_1[4] = { 'e', 'n', 'c', 'i' };
00092 static const symbol s_3_2[4] = { 'a', 'b', 'l', 'i' };
00093 static const symbol s_3_3[3] = { 'e', 'l', 'i' };
00094 static const symbol s_3_4[4] = { 'a', 'l', 'l', 'i' };
00095 static const symbol s_3_5[5] = { 'o', 'u', 's', 'l', 'i' };
00096 static const symbol s_3_6[5] = { 'e', 'n', 't', 'l', 'i' };
00097 static const symbol s_3_7[5] = { 'a', 'l', 'i', 't', 'i' };
00098 static const symbol s_3_8[6] = { 'b', 'i', 'l', 'i', 't', 'i' };
00099 static const symbol s_3_9[5] = { 'i', 'v', 'i', 't', 'i' };
00100 static const symbol s_3_10[6] = { 't', 'i', 'o', 'n', 'a', 'l' };
00101 static const symbol s_3_11[7] = { 'a', 't', 'i', 'o', 'n', 'a', 'l' };
00102 static const symbol s_3_12[5] = { 'a', 'l', 'i', 's', 'm' };
00103 static const symbol s_3_13[5] = { 'a', 't', 'i', 'o', 'n' };
00104 static const symbol s_3_14[7] = { 'i', 'z', 'a', 't', 'i', 'o', 'n' };
00105 static const symbol s_3_15[4] = { 'i', 'z', 'e', 'r' };
00106 static const symbol s_3_16[4] = { 'a', 't', 'o', 'r' };
00107 static const symbol s_3_17[7] = { 'i', 'v', 'e', 'n', 'e', 's', 's' };
00108 static const symbol s_3_18[7] = { 'f', 'u', 'l', 'n', 'e', 's', 's' };
00109 static const symbol s_3_19[7] = { 'o', 'u', 's', 'n', 'e', 's', 's' };
00110 
00111 static const struct among a_3[20] =
00112 {
00113 /*  0 */ { 4, s_3_0, -1, 3, 0},
00114 /*  1 */ { 4, s_3_1, -1, 2, 0},
00115 /*  2 */ { 4, s_3_2, -1, 4, 0},
00116 /*  3 */ { 3, s_3_3, -1, 6, 0},
00117 /*  4 */ { 4, s_3_4, -1, 9, 0},
00118 /*  5 */ { 5, s_3_5, -1, 12, 0},
00119 /*  6 */ { 5, s_3_6, -1, 5, 0},
00120 /*  7 */ { 5, s_3_7, -1, 10, 0},
00121 /*  8 */ { 6, s_3_8, -1, 14, 0},
00122 /*  9 */ { 5, s_3_9, -1, 13, 0},
00123 /* 10 */ { 6, s_3_10, -1, 1, 0},
00124 /* 11 */ { 7, s_3_11, 10, 8, 0},
00125 /* 12 */ { 5, s_3_12, -1, 10, 0},
00126 /* 13 */ { 5, s_3_13, -1, 8, 0},
00127 /* 14 */ { 7, s_3_14, 13, 7, 0},
00128 /* 15 */ { 4, s_3_15, -1, 7, 0},
00129 /* 16 */ { 4, s_3_16, -1, 8, 0},
00130 /* 17 */ { 7, s_3_17, -1, 13, 0},
00131 /* 18 */ { 7, s_3_18, -1, 11, 0},
00132 /* 19 */ { 7, s_3_19, -1, 12, 0}
00133 };
00134 
00135 static const symbol s_4_0[5] = { 'i', 'c', 'a', 't', 'e' };
00136 static const symbol s_4_1[5] = { 'a', 't', 'i', 'v', 'e' };
00137 static const symbol s_4_2[5] = { 'a', 'l', 'i', 'z', 'e' };
00138 static const symbol s_4_3[5] = { 'i', 'c', 'i', 't', 'i' };
00139 static const symbol s_4_4[4] = { 'i', 'c', 'a', 'l' };
00140 static const symbol s_4_5[3] = { 'f', 'u', 'l' };
00141 static const symbol s_4_6[4] = { 'n', 'e', 's', 's' };
00142 
00143 static const struct among a_4[7] =
00144 {
00145 /*  0 */ { 5, s_4_0, -1, 2, 0},
00146 /*  1 */ { 5, s_4_1, -1, 3, 0},
00147 /*  2 */ { 5, s_4_2, -1, 1, 0},
00148 /*  3 */ { 5, s_4_3, -1, 2, 0},
00149 /*  4 */ { 4, s_4_4, -1, 2, 0},
00150 /*  5 */ { 3, s_4_5, -1, 3, 0},
00151 /*  6 */ { 4, s_4_6, -1, 3, 0}
00152 };
00153 
00154 static const symbol s_5_0[2] = { 'i', 'c' };
00155 static const symbol s_5_1[4] = { 'a', 'n', 'c', 'e' };
00156 static const symbol s_5_2[4] = { 'e', 'n', 'c', 'e' };
00157 static const symbol s_5_3[4] = { 'a', 'b', 'l', 'e' };
00158 static const symbol s_5_4[4] = { 'i', 'b', 'l', 'e' };
00159 static const symbol s_5_5[3] = { 'a', 't', 'e' };
00160 static const symbol s_5_6[3] = { 'i', 'v', 'e' };
00161 static const symbol s_5_7[3] = { 'i', 'z', 'e' };
00162 static const symbol s_5_8[3] = { 'i', 't', 'i' };
00163 static const symbol s_5_9[2] = { 'a', 'l' };
00164 static const symbol s_5_10[3] = { 'i', 's', 'm' };
00165 static const symbol s_5_11[3] = { 'i', 'o', 'n' };
00166 static const symbol s_5_12[2] = { 'e', 'r' };
00167 static const symbol s_5_13[3] = { 'o', 'u', 's' };
00168 static const symbol s_5_14[3] = { 'a', 'n', 't' };
00169 static const symbol s_5_15[3] = { 'e', 'n', 't' };
00170 static const symbol s_5_16[4] = { 'm', 'e', 'n', 't' };
00171 static const symbol s_5_17[5] = { 'e', 'm', 'e', 'n', 't' };
00172 static const symbol s_5_18[2] = { 'o', 'u' };
00173 
00174 static const struct among a_5[19] =
00175 {
00176 /*  0 */ { 2, s_5_0, -1, 1, 0},
00177 /*  1 */ { 4, s_5_1, -1, 1, 0},
00178 /*  2 */ { 4, s_5_2, -1, 1, 0},
00179 /*  3 */ { 4, s_5_3, -1, 1, 0},
00180 /*  4 */ { 4, s_5_4, -1, 1, 0},
00181 /*  5 */ { 3, s_5_5, -1, 1, 0},
00182 /*  6 */ { 3, s_5_6, -1, 1, 0},
00183 /*  7 */ { 3, s_5_7, -1, 1, 0},
00184 /*  8 */ { 3, s_5_8, -1, 1, 0},
00185 /*  9 */ { 2, s_5_9, -1, 1, 0},
00186 /* 10 */ { 3, s_5_10, -1, 1, 0},
00187 /* 11 */ { 3, s_5_11, -1, 2, 0},
00188 /* 12 */ { 2, s_5_12, -1, 1, 0},
00189 /* 13 */ { 3, s_5_13, -1, 1, 0},
00190 /* 14 */ { 3, s_5_14, -1, 1, 0},
00191 /* 15 */ { 3, s_5_15, -1, 1, 0},
00192 /* 16 */ { 4, s_5_16, 15, 1, 0},
00193 /* 17 */ { 5, s_5_17, 16, 1, 0},
00194 /* 18 */ { 2, s_5_18, -1, 1, 0}
00195 };
00196 
00197 static const unsigned char g_v[] = { 17, 65, 16, 1 };
00198 
00199 static const unsigned char g_v_WXY[] = { 1, 17, 65, 208, 1 };
00200 
00201 static const symbol s_0[] = { 's', 's' };
00202 static const symbol s_1[] = { 'i' };
00203 static const symbol s_2[] = { 'e', 'e' };
00204 static const symbol s_3[] = { 'e' };
00205 static const symbol s_4[] = { 'e' };
00206 static const symbol s_5[] = { 'y' };
00207 static const symbol s_6[] = { 'Y' };
00208 static const symbol s_7[] = { 'i' };
00209 static const symbol s_8[] = { 't', 'i', 'o', 'n' };
00210 static const symbol s_9[] = { 'e', 'n', 'c', 'e' };
00211 static const symbol s_10[] = { 'a', 'n', 'c', 'e' };
00212 static const symbol s_11[] = { 'a', 'b', 'l', 'e' };
00213 static const symbol s_12[] = { 'e', 'n', 't' };
00214 static const symbol s_13[] = { 'e' };
00215 static const symbol s_14[] = { 'i', 'z', 'e' };
00216 static const symbol s_15[] = { 'a', 't', 'e' };
00217 static const symbol s_16[] = { 'a', 'l' };
00218 static const symbol s_17[] = { 'a', 'l' };
00219 static const symbol s_18[] = { 'f', 'u', 'l' };
00220 static const symbol s_19[] = { 'o', 'u', 's' };
00221 static const symbol s_20[] = { 'i', 'v', 'e' };
00222 static const symbol s_21[] = { 'b', 'l', 'e' };
00223 static const symbol s_22[] = { 'a', 'l' };
00224 static const symbol s_23[] = { 'i', 'c' };
00225 static const symbol s_24[] = { 's' };
00226 static const symbol s_25[] = { 't' };
00227 static const symbol s_26[] = { 'e' };
00228 static const symbol s_27[] = { 'l' };
00229 static const symbol s_28[] = { 'l' };
00230 static const symbol s_29[] = { 'y' };
00231 static const symbol s_30[] = { 'Y' };
00232 static const symbol s_31[] = { 'y' };
00233 static const symbol s_32[] = { 'Y' };
00234 static const symbol s_33[] = { 'Y' };
00235 static const symbol s_34[] = { 'y' };
00236 
00237 static int r_shortv(struct SN_env * z) {
00238     if (out_grouping_b(z, g_v_WXY, 89, 121, 0)) return 0;
00239     if (in_grouping_b(z, g_v, 97, 121, 0)) return 0;
00240     if (out_grouping_b(z, g_v, 97, 121, 0)) return 0;
00241     return 1;
00242 }
00243 
00244 static int r_R1(struct SN_env * z) {
00245     if (!(z->I[0] <= z->c)) return 0;
00246     return 1;
00247 }
00248 
00249 static int r_R2(struct SN_env * z) {
00250     if (!(z->I[1] <= z->c)) return 0;
00251     return 1;
00252 }
00253 
00254 static int r_Step_1a(struct SN_env * z) {
00255     int among_var;
00256     z->ket = z->c; /* [, line 25 */
00257     if (z->c <= z->lb || z->p[z->c - 1] != 115) return 0;
00258     among_var = find_among_b(z, a_0, 4); /* substring, line 25 */
00259     if (!(among_var)) return 0;
00260     z->bra = z->c; /* ], line 25 */
00261     switch(among_var) {
00262         case 0: return 0;
00263         case 1:
00264             {   int ret = slice_from_s(z, 2, s_0); /* <-, line 26 */
00265                 if (ret < 0) return ret;
00266             }
00267             break;
00268         case 2:
00269             {   int ret = slice_from_s(z, 1, s_1); /* <-, line 27 */
00270                 if (ret < 0) return ret;
00271             }
00272             break;
00273         case 3:
00274             {   int ret = slice_del(z); /* delete, line 29 */
00275                 if (ret < 0) return ret;
00276             }
00277             break;
00278     }
00279     return 1;
00280 }
00281 
00282 static int r_Step_1b(struct SN_env * z) {
00283     int among_var;
00284     z->ket = z->c; /* [, line 34 */
00285     if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 100 && z->p[z->c - 1] != 103)) return 0;
00286     among_var = find_among_b(z, a_2, 3); /* substring, line 34 */
00287     if (!(among_var)) return 0;
00288     z->bra = z->c; /* ], line 34 */
00289     switch(among_var) {
00290         case 0: return 0;
00291         case 1:
00292             {   int ret = r_R1(z);
00293                 if (ret == 0) return 0; /* call R1, line 35 */
00294                 if (ret < 0) return ret;
00295             }
00296             {   int ret = slice_from_s(z, 2, s_2); /* <-, line 35 */
00297                 if (ret < 0) return ret;
00298             }
00299             break;
00300         case 2:
00301             {   int m_test = z->l - z->c; /* test, line 38 */
00302                 {    /* gopast */ /* grouping v, line 38 */
00303                     int ret = out_grouping_b(z, g_v, 97, 121, 1);
00304                     if (ret < 0) return 0;
00305                     z->c -= ret;
00306                 }
00307                 z->c = z->l - m_test;
00308             }
00309             {   int ret = slice_del(z); /* delete, line 38 */
00310                 if (ret < 0) return ret;
00311             }
00312             {   int m_test = z->l - z->c; /* test, line 39 */
00313                 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((68514004 >> (z->p[z->c - 1] & 0x1f)) & 1)) among_var = 3; else
00314                 among_var = find_among_b(z, a_1, 13); /* substring, line 39 */
00315                 if (!(among_var)) return 0;
00316                 z->c = z->l - m_test;
00317             }
00318             switch(among_var) {
00319                 case 0: return 0;
00320                 case 1:
00321                     {   int c_keep = z->c;
00322                         int ret = insert_s(z, z->c, z->c, 1, s_3); /* <+, line 41 */
00323                         z->c = c_keep;
00324                         if (ret < 0) return ret;
00325                     }
00326                     break;
00327                 case 2:
00328                     z->ket = z->c; /* [, line 44 */
00329                     if (z->c <= z->lb) return 0;
00330                     z->c--; /* next, line 44 */
00331                     z->bra = z->c; /* ], line 44 */
00332                     {   int ret = slice_del(z); /* delete, line 44 */
00333                         if (ret < 0) return ret;
00334                     }
00335                     break;
00336                 case 3:
00337                     if (z->c != z->I[0]) return 0; /* atmark, line 45 */
00338                     {   int m_test = z->l - z->c; /* test, line 45 */
00339                         {   int ret = r_shortv(z);
00340                             if (ret == 0) return 0; /* call shortv, line 45 */
00341                             if (ret < 0) return ret;
00342                         }
00343                         z->c = z->l - m_test;
00344                     }
00345                     {   int c_keep = z->c;
00346                         int ret = insert_s(z, z->c, z->c, 1, s_4); /* <+, line 45 */
00347                         z->c = c_keep;
00348                         if (ret < 0) return ret;
00349                     }
00350                     break;
00351             }
00352             break;
00353     }
00354     return 1;
00355 }
00356 
00357 static int r_Step_1c(struct SN_env * z) {
00358     z->ket = z->c; /* [, line 52 */
00359     {   int m1 = z->l - z->c; (void)m1; /* or, line 52 */
00360         if (!(eq_s_b(z, 1, s_5))) goto lab1;
00361         goto lab0;
00362     lab1:
00363         z->c = z->l - m1;
00364         if (!(eq_s_b(z, 1, s_6))) return 0;
00365     }
00366 lab0:
00367     z->bra = z->c; /* ], line 52 */
00368     {    /* gopast */ /* grouping v, line 53 */
00369         int ret = out_grouping_b(z, g_v, 97, 121, 1);
00370         if (ret < 0) return 0;
00371         z->c -= ret;
00372     }
00373     {   int ret = slice_from_s(z, 1, s_7); /* <-, line 54 */
00374         if (ret < 0) return ret;
00375     }
00376     return 1;
00377 }
00378 
00379 static int r_Step_2(struct SN_env * z) {
00380     int among_var;
00381     z->ket = z->c; /* [, line 58 */
00382     if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((815616 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
00383     among_var = find_among_b(z, a_3, 20); /* substring, line 58 */
00384     if (!(among_var)) return 0;
00385     z->bra = z->c; /* ], line 58 */
00386     {   int ret = r_R1(z);
00387         if (ret == 0) return 0; /* call R1, line 58 */
00388         if (ret < 0) return ret;
00389     }
00390     switch(among_var) {
00391         case 0: return 0;
00392         case 1:
00393             {   int ret = slice_from_s(z, 4, s_8); /* <-, line 59 */
00394                 if (ret < 0) return ret;
00395             }
00396             break;
00397         case 2:
00398             {   int ret = slice_from_s(z, 4, s_9); /* <-, line 60 */
00399                 if (ret < 0) return ret;
00400             }
00401             break;
00402         case 3:
00403             {   int ret = slice_from_s(z, 4, s_10); /* <-, line 61 */
00404                 if (ret < 0) return ret;
00405             }
00406             break;
00407         case 4:
00408             {   int ret = slice_from_s(z, 4, s_11); /* <-, line 62 */
00409                 if (ret < 0) return ret;
00410             }
00411             break;
00412         case 5:
00413             {   int ret = slice_from_s(z, 3, s_12); /* <-, line 63 */
00414                 if (ret < 0) return ret;
00415             }
00416             break;
00417         case 6:
00418             {   int ret = slice_from_s(z, 1, s_13); /* <-, line 64 */
00419                 if (ret < 0) return ret;
00420             }
00421             break;
00422         case 7:
00423             {   int ret = slice_from_s(z, 3, s_14); /* <-, line 66 */
00424                 if (ret < 0) return ret;
00425             }
00426             break;
00427         case 8:
00428             {   int ret = slice_from_s(z, 3, s_15); /* <-, line 68 */
00429                 if (ret < 0) return ret;
00430             }
00431             break;
00432         case 9:
00433             {   int ret = slice_from_s(z, 2, s_16); /* <-, line 69 */
00434                 if (ret < 0) return ret;
00435             }
00436             break;
00437         case 10:
00438             {   int ret = slice_from_s(z, 2, s_17); /* <-, line 71 */
00439                 if (ret < 0) return ret;
00440             }
00441             break;
00442         case 11:
00443             {   int ret = slice_from_s(z, 3, s_18); /* <-, line 72 */
00444                 if (ret < 0) return ret;
00445             }
00446             break;
00447         case 12:
00448             {   int ret = slice_from_s(z, 3, s_19); /* <-, line 74 */
00449                 if (ret < 0) return ret;
00450             }
00451             break;
00452         case 13:
00453             {   int ret = slice_from_s(z, 3, s_20); /* <-, line 76 */
00454                 if (ret < 0) return ret;
00455             }
00456             break;
00457         case 14:
00458             {   int ret = slice_from_s(z, 3, s_21); /* <-, line 77 */
00459                 if (ret < 0) return ret;
00460             }
00461             break;
00462     }
00463     return 1;
00464 }
00465 
00466 static int r_Step_3(struct SN_env * z) {
00467     int among_var;
00468     z->ket = z->c; /* [, line 82 */
00469     if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((528928 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
00470     among_var = find_among_b(z, a_4, 7); /* substring, line 82 */
00471     if (!(among_var)) return 0;
00472     z->bra = z->c; /* ], line 82 */
00473     {   int ret = r_R1(z);
00474         if (ret == 0) return 0; /* call R1, line 82 */
00475         if (ret < 0) return ret;
00476     }
00477     switch(among_var) {
00478         case 0: return 0;
00479         case 1:
00480             {   int ret = slice_from_s(z, 2, s_22); /* <-, line 83 */
00481                 if (ret < 0) return ret;
00482             }
00483             break;
00484         case 2:
00485             {   int ret = slice_from_s(z, 2, s_23); /* <-, line 85 */
00486                 if (ret < 0) return ret;
00487             }
00488             break;
00489         case 3:
00490             {   int ret = slice_del(z); /* delete, line 87 */
00491                 if (ret < 0) return ret;
00492             }
00493             break;
00494     }
00495     return 1;
00496 }
00497 
00498 static int r_Step_4(struct SN_env * z) {
00499     int among_var;
00500     z->ket = z->c; /* [, line 92 */
00501     if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((3961384 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
00502     among_var = find_among_b(z, a_5, 19); /* substring, line 92 */
00503     if (!(among_var)) return 0;
00504     z->bra = z->c; /* ], line 92 */
00505     {   int ret = r_R2(z);
00506         if (ret == 0) return 0; /* call R2, line 92 */
00507         if (ret < 0) return ret;
00508     }
00509     switch(among_var) {
00510         case 0: return 0;
00511         case 1:
00512             {   int ret = slice_del(z); /* delete, line 95 */
00513                 if (ret < 0) return ret;
00514             }
00515             break;
00516         case 2:
00517             {   int m1 = z->l - z->c; (void)m1; /* or, line 96 */
00518                 if (!(eq_s_b(z, 1, s_24))) goto lab1;
00519                 goto lab0;
00520             lab1:
00521                 z->c = z->l - m1;
00522                 if (!(eq_s_b(z, 1, s_25))) return 0;
00523             }
00524         lab0:
00525             {   int ret = slice_del(z); /* delete, line 96 */
00526                 if (ret < 0) return ret;
00527             }
00528             break;
00529     }
00530     return 1;
00531 }
00532 
00533 static int r_Step_5a(struct SN_env * z) {
00534     z->ket = z->c; /* [, line 101 */
00535     if (!(eq_s_b(z, 1, s_26))) return 0;
00536     z->bra = z->c; /* ], line 101 */
00537     {   int m1 = z->l - z->c; (void)m1; /* or, line 102 */
00538         {   int ret = r_R2(z);
00539             if (ret == 0) goto lab1; /* call R2, line 102 */
00540             if (ret < 0) return ret;
00541         }
00542         goto lab0;
00543     lab1:
00544         z->c = z->l - m1;
00545         {   int ret = r_R1(z);
00546             if (ret == 0) return 0; /* call R1, line 102 */
00547             if (ret < 0) return ret;
00548         }
00549         {   int m2 = z->l - z->c; (void)m2; /* not, line 102 */
00550             {   int ret = r_shortv(z);
00551                 if (ret == 0) goto lab2; /* call shortv, line 102 */
00552                 if (ret < 0) return ret;
00553             }
00554             return 0;
00555         lab2:
00556             z->c = z->l - m2;
00557         }
00558     }
00559 lab0:
00560     {   int ret = slice_del(z); /* delete, line 103 */
00561         if (ret < 0) return ret;
00562     }
00563     return 1;
00564 }
00565 
00566 static int r_Step_5b(struct SN_env * z) {
00567     z->ket = z->c; /* [, line 107 */
00568     if (!(eq_s_b(z, 1, s_27))) return 0;
00569     z->bra = z->c; /* ], line 107 */
00570     {   int ret = r_R2(z);
00571         if (ret == 0) return 0; /* call R2, line 108 */
00572         if (ret < 0) return ret;
00573     }
00574     if (!(eq_s_b(z, 1, s_28))) return 0;
00575     {   int ret = slice_del(z); /* delete, line 109 */
00576         if (ret < 0) return ret;
00577     }
00578     return 1;
00579 }
00580 
00581 extern int porter_ISO_8859_1_stem(struct SN_env * z) {
00582     z->B[0] = 0; /* unset Y_found, line 115 */
00583     {   int c1 = z->c; /* do, line 116 */
00584         z->bra = z->c; /* [, line 116 */
00585         if (!(eq_s(z, 1, s_29))) goto lab0;
00586         z->ket = z->c; /* ], line 116 */
00587         {   int ret = slice_from_s(z, 1, s_30); /* <-, line 116 */
00588             if (ret < 0) return ret;
00589         }
00590         z->B[0] = 1; /* set Y_found, line 116 */
00591     lab0:
00592         z->c = c1;
00593     }
00594     {   int c2 = z->c; /* do, line 117 */
00595         while(1) { /* repeat, line 117 */
00596             int c3 = z->c;
00597             while(1) { /* goto, line 117 */
00598                 int c4 = z->c;
00599                 if (in_grouping(z, g_v, 97, 121, 0)) goto lab3;
00600                 z->bra = z->c; /* [, line 117 */
00601                 if (!(eq_s(z, 1, s_31))) goto lab3;
00602                 z->ket = z->c; /* ], line 117 */
00603                 z->c = c4;
00604                 break;
00605             lab3:
00606                 z->c = c4;
00607                 if (z->c >= z->l) goto lab2;
00608                 z->c++; /* goto, line 117 */
00609             }
00610             {   int ret = slice_from_s(z, 1, s_32); /* <-, line 117 */
00611                 if (ret < 0) return ret;
00612             }
00613             z->B[0] = 1; /* set Y_found, line 117 */
00614             continue;
00615         lab2:
00616             z->c = c3;
00617             break;
00618         }
00619         z->c = c2;
00620     }
00621     z->I[0] = z->l;
00622     z->I[1] = z->l;
00623     {   int c5 = z->c; /* do, line 121 */
00624         {    /* gopast */ /* grouping v, line 122 */
00625             int ret = out_grouping(z, g_v, 97, 121, 1);
00626             if (ret < 0) goto lab4;
00627             z->c += ret;
00628         }
00629         {    /* gopast */ /* non v, line 122 */
00630             int ret = in_grouping(z, g_v, 97, 121, 1);
00631             if (ret < 0) goto lab4;
00632             z->c += ret;
00633         }
00634         z->I[0] = z->c; /* setmark p1, line 122 */
00635         {    /* gopast */ /* grouping v, line 123 */
00636             int ret = out_grouping(z, g_v, 97, 121, 1);
00637             if (ret < 0) goto lab4;
00638             z->c += ret;
00639         }
00640         {    /* gopast */ /* non v, line 123 */
00641             int ret = in_grouping(z, g_v, 97, 121, 1);
00642             if (ret < 0) goto lab4;
00643             z->c += ret;
00644         }
00645         z->I[1] = z->c; /* setmark p2, line 123 */
00646     lab4:
00647         z->c = c5;
00648     }
00649     z->lb = z->c; z->c = z->l; /* backwards, line 126 */
00650 
00651     {   int m6 = z->l - z->c; (void)m6; /* do, line 127 */
00652         {   int ret = r_Step_1a(z);
00653             if (ret == 0) goto lab5; /* call Step_1a, line 127 */
00654             if (ret < 0) return ret;
00655         }
00656     lab5:
00657         z->c = z->l - m6;
00658     }
00659     {   int m7 = z->l - z->c; (void)m7; /* do, line 128 */
00660         {   int ret = r_Step_1b(z);
00661             if (ret == 0) goto lab6; /* call Step_1b, line 128 */
00662             if (ret < 0) return ret;
00663         }
00664     lab6:
00665         z->c = z->l - m7;
00666     }
00667     {   int m8 = z->l - z->c; (void)m8; /* do, line 129 */
00668         {   int ret = r_Step_1c(z);
00669             if (ret == 0) goto lab7; /* call Step_1c, line 129 */
00670             if (ret < 0) return ret;
00671         }
00672     lab7:
00673         z->c = z->l - m8;
00674     }
00675     {   int m9 = z->l - z->c; (void)m9; /* do, line 130 */
00676         {   int ret = r_Step_2(z);
00677             if (ret == 0) goto lab8; /* call Step_2, line 130 */
00678             if (ret < 0) return ret;
00679         }
00680     lab8:
00681         z->c = z->l - m9;
00682     }
00683     {   int m10 = z->l - z->c; (void)m10; /* do, line 131 */
00684         {   int ret = r_Step_3(z);
00685             if (ret == 0) goto lab9; /* call Step_3, line 131 */
00686             if (ret < 0) return ret;
00687         }
00688     lab9:
00689         z->c = z->l - m10;
00690     }
00691     {   int m11 = z->l - z->c; (void)m11; /* do, line 132 */
00692         {   int ret = r_Step_4(z);
00693             if (ret == 0) goto lab10; /* call Step_4, line 132 */
00694             if (ret < 0) return ret;
00695         }
00696     lab10:
00697         z->c = z->l - m11;
00698     }
00699     {   int m12 = z->l - z->c; (void)m12; /* do, line 133 */
00700         {   int ret = r_Step_5a(z);
00701             if (ret == 0) goto lab11; /* call Step_5a, line 133 */
00702             if (ret < 0) return ret;
00703         }
00704     lab11:
00705         z->c = z->l - m12;
00706     }
00707     {   int m13 = z->l - z->c; (void)m13; /* do, line 134 */
00708         {   int ret = r_Step_5b(z);
00709             if (ret == 0) goto lab12; /* call Step_5b, line 134 */
00710             if (ret < 0) return ret;
00711         }
00712     lab12:
00713         z->c = z->l - m13;
00714     }
00715     z->c = z->lb;
00716     {   int c14 = z->c; /* do, line 137 */
00717         if (!(z->B[0])) goto lab13; /* Boolean test Y_found, line 137 */
00718         while(1) { /* repeat, line 137 */
00719             int c15 = z->c;
00720             while(1) { /* goto, line 137 */
00721                 int c16 = z->c;
00722                 z->bra = z->c; /* [, line 137 */
00723                 if (!(eq_s(z, 1, s_33))) goto lab15;
00724                 z->ket = z->c; /* ], line 137 */
00725                 z->c = c16;
00726                 break;
00727             lab15:
00728                 z->c = c16;
00729                 if (z->c >= z->l) goto lab14;
00730                 z->c++; /* goto, line 137 */
00731             }
00732             {   int ret = slice_from_s(z, 1, s_34); /* <-, line 137 */
00733                 if (ret < 0) return ret;
00734             }
00735             continue;
00736         lab14:
00737             z->c = c15;
00738             break;
00739         }
00740     lab13:
00741         z->c = c14;
00742     }
00743     return 1;
00744 }
00745 
00746 extern struct SN_env * porter_ISO_8859_1_create_env(void) { return SN_create_env(0, 2, 1); }
00747 
00748 extern void porter_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 0); }
00749