Header And Logo

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

stem_KOI8_R_russian.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 russian_KOI8_R_stem(struct SN_env * z);
00010 #ifdef __cplusplus
00011 }
00012 #endif
00013 static int r_tidy_up(struct SN_env * z);
00014 static int r_derivational(struct SN_env * z);
00015 static int r_noun(struct SN_env * z);
00016 static int r_verb(struct SN_env * z);
00017 static int r_reflexive(struct SN_env * z);
00018 static int r_adjectival(struct SN_env * z);
00019 static int r_adjective(struct SN_env * z);
00020 static int r_perfective_gerund(struct SN_env * z);
00021 static int r_R2(struct SN_env * z);
00022 static int r_mark_regions(struct SN_env * z);
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 
00028 extern struct SN_env * russian_KOI8_R_create_env(void);
00029 extern void russian_KOI8_R_close_env(struct SN_env * z);
00030 
00031 
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035 static const symbol s_0_0[3] = { 0xD7, 0xDB, 0xC9 };
00036 static const symbol s_0_1[4] = { 0xC9, 0xD7, 0xDB, 0xC9 };
00037 static const symbol s_0_2[4] = { 0xD9, 0xD7, 0xDB, 0xC9 };
00038 static const symbol s_0_3[1] = { 0xD7 };
00039 static const symbol s_0_4[2] = { 0xC9, 0xD7 };
00040 static const symbol s_0_5[2] = { 0xD9, 0xD7 };
00041 static const symbol s_0_6[5] = { 0xD7, 0xDB, 0xC9, 0xD3, 0xD8 };
00042 static const symbol s_0_7[6] = { 0xC9, 0xD7, 0xDB, 0xC9, 0xD3, 0xD8 };
00043 static const symbol s_0_8[6] = { 0xD9, 0xD7, 0xDB, 0xC9, 0xD3, 0xD8 };
00044 
00045 static const struct among a_0[9] =
00046 {
00047 /*  0 */ { 3, s_0_0, -1, 1, 0},
00048 /*  1 */ { 4, s_0_1, 0, 2, 0},
00049 /*  2 */ { 4, s_0_2, 0, 2, 0},
00050 /*  3 */ { 1, s_0_3, -1, 1, 0},
00051 /*  4 */ { 2, s_0_4, 3, 2, 0},
00052 /*  5 */ { 2, s_0_5, 3, 2, 0},
00053 /*  6 */ { 5, s_0_6, -1, 1, 0},
00054 /*  7 */ { 6, s_0_7, 6, 2, 0},
00055 /*  8 */ { 6, s_0_8, 6, 2, 0}
00056 };
00057 
00058 static const symbol s_1_0[2] = { 0xC0, 0xC0 };
00059 static const symbol s_1_1[2] = { 0xC5, 0xC0 };
00060 static const symbol s_1_2[2] = { 0xCF, 0xC0 };
00061 static const symbol s_1_3[2] = { 0xD5, 0xC0 };
00062 static const symbol s_1_4[2] = { 0xC5, 0xC5 };
00063 static const symbol s_1_5[2] = { 0xC9, 0xC5 };
00064 static const symbol s_1_6[2] = { 0xCF, 0xC5 };
00065 static const symbol s_1_7[2] = { 0xD9, 0xC5 };
00066 static const symbol s_1_8[2] = { 0xC9, 0xC8 };
00067 static const symbol s_1_9[2] = { 0xD9, 0xC8 };
00068 static const symbol s_1_10[3] = { 0xC9, 0xCD, 0xC9 };
00069 static const symbol s_1_11[3] = { 0xD9, 0xCD, 0xC9 };
00070 static const symbol s_1_12[2] = { 0xC5, 0xCA };
00071 static const symbol s_1_13[2] = { 0xC9, 0xCA };
00072 static const symbol s_1_14[2] = { 0xCF, 0xCA };
00073 static const symbol s_1_15[2] = { 0xD9, 0xCA };
00074 static const symbol s_1_16[2] = { 0xC5, 0xCD };
00075 static const symbol s_1_17[2] = { 0xC9, 0xCD };
00076 static const symbol s_1_18[2] = { 0xCF, 0xCD };
00077 static const symbol s_1_19[2] = { 0xD9, 0xCD };
00078 static const symbol s_1_20[3] = { 0xC5, 0xC7, 0xCF };
00079 static const symbol s_1_21[3] = { 0xCF, 0xC7, 0xCF };
00080 static const symbol s_1_22[2] = { 0xC1, 0xD1 };
00081 static const symbol s_1_23[2] = { 0xD1, 0xD1 };
00082 static const symbol s_1_24[3] = { 0xC5, 0xCD, 0xD5 };
00083 static const symbol s_1_25[3] = { 0xCF, 0xCD, 0xD5 };
00084 
00085 static const struct among a_1[26] =
00086 {
00087 /*  0 */ { 2, s_1_0, -1, 1, 0},
00088 /*  1 */ { 2, s_1_1, -1, 1, 0},
00089 /*  2 */ { 2, s_1_2, -1, 1, 0},
00090 /*  3 */ { 2, s_1_3, -1, 1, 0},
00091 /*  4 */ { 2, s_1_4, -1, 1, 0},
00092 /*  5 */ { 2, s_1_5, -1, 1, 0},
00093 /*  6 */ { 2, s_1_6, -1, 1, 0},
00094 /*  7 */ { 2, s_1_7, -1, 1, 0},
00095 /*  8 */ { 2, s_1_8, -1, 1, 0},
00096 /*  9 */ { 2, s_1_9, -1, 1, 0},
00097 /* 10 */ { 3, s_1_10, -1, 1, 0},
00098 /* 11 */ { 3, s_1_11, -1, 1, 0},
00099 /* 12 */ { 2, s_1_12, -1, 1, 0},
00100 /* 13 */ { 2, s_1_13, -1, 1, 0},
00101 /* 14 */ { 2, s_1_14, -1, 1, 0},
00102 /* 15 */ { 2, s_1_15, -1, 1, 0},
00103 /* 16 */ { 2, s_1_16, -1, 1, 0},
00104 /* 17 */ { 2, s_1_17, -1, 1, 0},
00105 /* 18 */ { 2, s_1_18, -1, 1, 0},
00106 /* 19 */ { 2, s_1_19, -1, 1, 0},
00107 /* 20 */ { 3, s_1_20, -1, 1, 0},
00108 /* 21 */ { 3, s_1_21, -1, 1, 0},
00109 /* 22 */ { 2, s_1_22, -1, 1, 0},
00110 /* 23 */ { 2, s_1_23, -1, 1, 0},
00111 /* 24 */ { 3, s_1_24, -1, 1, 0},
00112 /* 25 */ { 3, s_1_25, -1, 1, 0}
00113 };
00114 
00115 static const symbol s_2_0[2] = { 0xC5, 0xCD };
00116 static const symbol s_2_1[2] = { 0xCE, 0xCE };
00117 static const symbol s_2_2[2] = { 0xD7, 0xDB };
00118 static const symbol s_2_3[3] = { 0xC9, 0xD7, 0xDB };
00119 static const symbol s_2_4[3] = { 0xD9, 0xD7, 0xDB };
00120 static const symbol s_2_5[1] = { 0xDD };
00121 static const symbol s_2_6[2] = { 0xC0, 0xDD };
00122 static const symbol s_2_7[3] = { 0xD5, 0xC0, 0xDD };
00123 
00124 static const struct among a_2[8] =
00125 {
00126 /*  0 */ { 2, s_2_0, -1, 1, 0},
00127 /*  1 */ { 2, s_2_1, -1, 1, 0},
00128 /*  2 */ { 2, s_2_2, -1, 1, 0},
00129 /*  3 */ { 3, s_2_3, 2, 2, 0},
00130 /*  4 */ { 3, s_2_4, 2, 2, 0},
00131 /*  5 */ { 1, s_2_5, -1, 1, 0},
00132 /*  6 */ { 2, s_2_6, 5, 1, 0},
00133 /*  7 */ { 3, s_2_7, 6, 2, 0}
00134 };
00135 
00136 static const symbol s_3_0[2] = { 0xD3, 0xD1 };
00137 static const symbol s_3_1[2] = { 0xD3, 0xD8 };
00138 
00139 static const struct among a_3[2] =
00140 {
00141 /*  0 */ { 2, s_3_0, -1, 1, 0},
00142 /*  1 */ { 2, s_3_1, -1, 1, 0}
00143 };
00144 
00145 static const symbol s_4_0[1] = { 0xC0 };
00146 static const symbol s_4_1[2] = { 0xD5, 0xC0 };
00147 static const symbol s_4_2[2] = { 0xCC, 0xC1 };
00148 static const symbol s_4_3[3] = { 0xC9, 0xCC, 0xC1 };
00149 static const symbol s_4_4[3] = { 0xD9, 0xCC, 0xC1 };
00150 static const symbol s_4_5[2] = { 0xCE, 0xC1 };
00151 static const symbol s_4_6[3] = { 0xC5, 0xCE, 0xC1 };
00152 static const symbol s_4_7[3] = { 0xC5, 0xD4, 0xC5 };
00153 static const symbol s_4_8[3] = { 0xC9, 0xD4, 0xC5 };
00154 static const symbol s_4_9[3] = { 0xCA, 0xD4, 0xC5 };
00155 static const symbol s_4_10[4] = { 0xC5, 0xCA, 0xD4, 0xC5 };
00156 static const symbol s_4_11[4] = { 0xD5, 0xCA, 0xD4, 0xC5 };
00157 static const symbol s_4_12[2] = { 0xCC, 0xC9 };
00158 static const symbol s_4_13[3] = { 0xC9, 0xCC, 0xC9 };
00159 static const symbol s_4_14[3] = { 0xD9, 0xCC, 0xC9 };
00160 static const symbol s_4_15[1] = { 0xCA };
00161 static const symbol s_4_16[2] = { 0xC5, 0xCA };
00162 static const symbol s_4_17[2] = { 0xD5, 0xCA };
00163 static const symbol s_4_18[1] = { 0xCC };
00164 static const symbol s_4_19[2] = { 0xC9, 0xCC };
00165 static const symbol s_4_20[2] = { 0xD9, 0xCC };
00166 static const symbol s_4_21[2] = { 0xC5, 0xCD };
00167 static const symbol s_4_22[2] = { 0xC9, 0xCD };
00168 static const symbol s_4_23[2] = { 0xD9, 0xCD };
00169 static const symbol s_4_24[1] = { 0xCE };
00170 static const symbol s_4_25[2] = { 0xC5, 0xCE };
00171 static const symbol s_4_26[2] = { 0xCC, 0xCF };
00172 static const symbol s_4_27[3] = { 0xC9, 0xCC, 0xCF };
00173 static const symbol s_4_28[3] = { 0xD9, 0xCC, 0xCF };
00174 static const symbol s_4_29[2] = { 0xCE, 0xCF };
00175 static const symbol s_4_30[3] = { 0xC5, 0xCE, 0xCF };
00176 static const symbol s_4_31[3] = { 0xCE, 0xCE, 0xCF };
00177 static const symbol s_4_32[2] = { 0xC0, 0xD4 };
00178 static const symbol s_4_33[3] = { 0xD5, 0xC0, 0xD4 };
00179 static const symbol s_4_34[2] = { 0xC5, 0xD4 };
00180 static const symbol s_4_35[3] = { 0xD5, 0xC5, 0xD4 };
00181 static const symbol s_4_36[2] = { 0xC9, 0xD4 };
00182 static const symbol s_4_37[2] = { 0xD1, 0xD4 };
00183 static const symbol s_4_38[2] = { 0xD9, 0xD4 };
00184 static const symbol s_4_39[2] = { 0xD4, 0xD8 };
00185 static const symbol s_4_40[3] = { 0xC9, 0xD4, 0xD8 };
00186 static const symbol s_4_41[3] = { 0xD9, 0xD4, 0xD8 };
00187 static const symbol s_4_42[3] = { 0xC5, 0xDB, 0xD8 };
00188 static const symbol s_4_43[3] = { 0xC9, 0xDB, 0xD8 };
00189 static const symbol s_4_44[2] = { 0xCE, 0xD9 };
00190 static const symbol s_4_45[3] = { 0xC5, 0xCE, 0xD9 };
00191 
00192 static const struct among a_4[46] =
00193 {
00194 /*  0 */ { 1, s_4_0, -1, 2, 0},
00195 /*  1 */ { 2, s_4_1, 0, 2, 0},
00196 /*  2 */ { 2, s_4_2, -1, 1, 0},
00197 /*  3 */ { 3, s_4_3, 2, 2, 0},
00198 /*  4 */ { 3, s_4_4, 2, 2, 0},
00199 /*  5 */ { 2, s_4_5, -1, 1, 0},
00200 /*  6 */ { 3, s_4_6, 5, 2, 0},
00201 /*  7 */ { 3, s_4_7, -1, 1, 0},
00202 /*  8 */ { 3, s_4_8, -1, 2, 0},
00203 /*  9 */ { 3, s_4_9, -1, 1, 0},
00204 /* 10 */ { 4, s_4_10, 9, 2, 0},
00205 /* 11 */ { 4, s_4_11, 9, 2, 0},
00206 /* 12 */ { 2, s_4_12, -1, 1, 0},
00207 /* 13 */ { 3, s_4_13, 12, 2, 0},
00208 /* 14 */ { 3, s_4_14, 12, 2, 0},
00209 /* 15 */ { 1, s_4_15, -1, 1, 0},
00210 /* 16 */ { 2, s_4_16, 15, 2, 0},
00211 /* 17 */ { 2, s_4_17, 15, 2, 0},
00212 /* 18 */ { 1, s_4_18, -1, 1, 0},
00213 /* 19 */ { 2, s_4_19, 18, 2, 0},
00214 /* 20 */ { 2, s_4_20, 18, 2, 0},
00215 /* 21 */ { 2, s_4_21, -1, 1, 0},
00216 /* 22 */ { 2, s_4_22, -1, 2, 0},
00217 /* 23 */ { 2, s_4_23, -1, 2, 0},
00218 /* 24 */ { 1, s_4_24, -1, 1, 0},
00219 /* 25 */ { 2, s_4_25, 24, 2, 0},
00220 /* 26 */ { 2, s_4_26, -1, 1, 0},
00221 /* 27 */ { 3, s_4_27, 26, 2, 0},
00222 /* 28 */ { 3, s_4_28, 26, 2, 0},
00223 /* 29 */ { 2, s_4_29, -1, 1, 0},
00224 /* 30 */ { 3, s_4_30, 29, 2, 0},
00225 /* 31 */ { 3, s_4_31, 29, 1, 0},
00226 /* 32 */ { 2, s_4_32, -1, 1, 0},
00227 /* 33 */ { 3, s_4_33, 32, 2, 0},
00228 /* 34 */ { 2, s_4_34, -1, 1, 0},
00229 /* 35 */ { 3, s_4_35, 34, 2, 0},
00230 /* 36 */ { 2, s_4_36, -1, 2, 0},
00231 /* 37 */ { 2, s_4_37, -1, 2, 0},
00232 /* 38 */ { 2, s_4_38, -1, 2, 0},
00233 /* 39 */ { 2, s_4_39, -1, 1, 0},
00234 /* 40 */ { 3, s_4_40, 39, 2, 0},
00235 /* 41 */ { 3, s_4_41, 39, 2, 0},
00236 /* 42 */ { 3, s_4_42, -1, 1, 0},
00237 /* 43 */ { 3, s_4_43, -1, 2, 0},
00238 /* 44 */ { 2, s_4_44, -1, 1, 0},
00239 /* 45 */ { 3, s_4_45, 44, 2, 0}
00240 };
00241 
00242 static const symbol s_5_0[1] = { 0xC0 };
00243 static const symbol s_5_1[2] = { 0xC9, 0xC0 };
00244 static const symbol s_5_2[2] = { 0xD8, 0xC0 };
00245 static const symbol s_5_3[1] = { 0xC1 };
00246 static const symbol s_5_4[1] = { 0xC5 };
00247 static const symbol s_5_5[2] = { 0xC9, 0xC5 };
00248 static const symbol s_5_6[2] = { 0xD8, 0xC5 };
00249 static const symbol s_5_7[2] = { 0xC1, 0xC8 };
00250 static const symbol s_5_8[2] = { 0xD1, 0xC8 };
00251 static const symbol s_5_9[3] = { 0xC9, 0xD1, 0xC8 };
00252 static const symbol s_5_10[1] = { 0xC9 };
00253 static const symbol s_5_11[2] = { 0xC5, 0xC9 };
00254 static const symbol s_5_12[2] = { 0xC9, 0xC9 };
00255 static const symbol s_5_13[3] = { 0xC1, 0xCD, 0xC9 };
00256 static const symbol s_5_14[3] = { 0xD1, 0xCD, 0xC9 };
00257 static const symbol s_5_15[4] = { 0xC9, 0xD1, 0xCD, 0xC9 };
00258 static const symbol s_5_16[1] = { 0xCA };
00259 static const symbol s_5_17[2] = { 0xC5, 0xCA };
00260 static const symbol s_5_18[3] = { 0xC9, 0xC5, 0xCA };
00261 static const symbol s_5_19[2] = { 0xC9, 0xCA };
00262 static const symbol s_5_20[2] = { 0xCF, 0xCA };
00263 static const symbol s_5_21[2] = { 0xC1, 0xCD };
00264 static const symbol s_5_22[2] = { 0xC5, 0xCD };
00265 static const symbol s_5_23[3] = { 0xC9, 0xC5, 0xCD };
00266 static const symbol s_5_24[2] = { 0xCF, 0xCD };
00267 static const symbol s_5_25[2] = { 0xD1, 0xCD };
00268 static const symbol s_5_26[3] = { 0xC9, 0xD1, 0xCD };
00269 static const symbol s_5_27[1] = { 0xCF };
00270 static const symbol s_5_28[1] = { 0xD1 };
00271 static const symbol s_5_29[2] = { 0xC9, 0xD1 };
00272 static const symbol s_5_30[2] = { 0xD8, 0xD1 };
00273 static const symbol s_5_31[1] = { 0xD5 };
00274 static const symbol s_5_32[2] = { 0xC5, 0xD7 };
00275 static const symbol s_5_33[2] = { 0xCF, 0xD7 };
00276 static const symbol s_5_34[1] = { 0xD8 };
00277 static const symbol s_5_35[1] = { 0xD9 };
00278 
00279 static const struct among a_5[36] =
00280 {
00281 /*  0 */ { 1, s_5_0, -1, 1, 0},
00282 /*  1 */ { 2, s_5_1, 0, 1, 0},
00283 /*  2 */ { 2, s_5_2, 0, 1, 0},
00284 /*  3 */ { 1, s_5_3, -1, 1, 0},
00285 /*  4 */ { 1, s_5_4, -1, 1, 0},
00286 /*  5 */ { 2, s_5_5, 4, 1, 0},
00287 /*  6 */ { 2, s_5_6, 4, 1, 0},
00288 /*  7 */ { 2, s_5_7, -1, 1, 0},
00289 /*  8 */ { 2, s_5_8, -1, 1, 0},
00290 /*  9 */ { 3, s_5_9, 8, 1, 0},
00291 /* 10 */ { 1, s_5_10, -1, 1, 0},
00292 /* 11 */ { 2, s_5_11, 10, 1, 0},
00293 /* 12 */ { 2, s_5_12, 10, 1, 0},
00294 /* 13 */ { 3, s_5_13, 10, 1, 0},
00295 /* 14 */ { 3, s_5_14, 10, 1, 0},
00296 /* 15 */ { 4, s_5_15, 14, 1, 0},
00297 /* 16 */ { 1, s_5_16, -1, 1, 0},
00298 /* 17 */ { 2, s_5_17, 16, 1, 0},
00299 /* 18 */ { 3, s_5_18, 17, 1, 0},
00300 /* 19 */ { 2, s_5_19, 16, 1, 0},
00301 /* 20 */ { 2, s_5_20, 16, 1, 0},
00302 /* 21 */ { 2, s_5_21, -1, 1, 0},
00303 /* 22 */ { 2, s_5_22, -1, 1, 0},
00304 /* 23 */ { 3, s_5_23, 22, 1, 0},
00305 /* 24 */ { 2, s_5_24, -1, 1, 0},
00306 /* 25 */ { 2, s_5_25, -1, 1, 0},
00307 /* 26 */ { 3, s_5_26, 25, 1, 0},
00308 /* 27 */ { 1, s_5_27, -1, 1, 0},
00309 /* 28 */ { 1, s_5_28, -1, 1, 0},
00310 /* 29 */ { 2, s_5_29, 28, 1, 0},
00311 /* 30 */ { 2, s_5_30, 28, 1, 0},
00312 /* 31 */ { 1, s_5_31, -1, 1, 0},
00313 /* 32 */ { 2, s_5_32, -1, 1, 0},
00314 /* 33 */ { 2, s_5_33, -1, 1, 0},
00315 /* 34 */ { 1, s_5_34, -1, 1, 0},
00316 /* 35 */ { 1, s_5_35, -1, 1, 0}
00317 };
00318 
00319 static const symbol s_6_0[3] = { 0xCF, 0xD3, 0xD4 };
00320 static const symbol s_6_1[4] = { 0xCF, 0xD3, 0xD4, 0xD8 };
00321 
00322 static const struct among a_6[2] =
00323 {
00324 /*  0 */ { 3, s_6_0, -1, 1, 0},
00325 /*  1 */ { 4, s_6_1, -1, 1, 0}
00326 };
00327 
00328 static const symbol s_7_0[4] = { 0xC5, 0xCA, 0xDB, 0xC5 };
00329 static const symbol s_7_1[1] = { 0xCE };
00330 static const symbol s_7_2[1] = { 0xD8 };
00331 static const symbol s_7_3[3] = { 0xC5, 0xCA, 0xDB };
00332 
00333 static const struct among a_7[4] =
00334 {
00335 /*  0 */ { 4, s_7_0, -1, 1, 0},
00336 /*  1 */ { 1, s_7_1, -1, 2, 0},
00337 /*  2 */ { 1, s_7_2, -1, 3, 0},
00338 /*  3 */ { 3, s_7_3, -1, 1, 0}
00339 };
00340 
00341 static const unsigned char g_v[] = { 35, 130, 34, 18 };
00342 
00343 static const symbol s_0[] = { 0xC1 };
00344 static const symbol s_1[] = { 0xD1 };
00345 static const symbol s_2[] = { 0xC1 };
00346 static const symbol s_3[] = { 0xD1 };
00347 static const symbol s_4[] = { 0xC1 };
00348 static const symbol s_5[] = { 0xD1 };
00349 static const symbol s_6[] = { 0xCE };
00350 static const symbol s_7[] = { 0xCE };
00351 static const symbol s_8[] = { 0xCE };
00352 static const symbol s_9[] = { 0xC9 };
00353 
00354 static int r_mark_regions(struct SN_env * z) {
00355     z->I[0] = z->l;
00356     z->I[1] = z->l;
00357     {   int c1 = z->c; /* do, line 63 */
00358         {    /* gopast */ /* grouping v, line 64 */
00359             int ret = out_grouping(z, g_v, 192, 220, 1);
00360             if (ret < 0) goto lab0;
00361             z->c += ret;
00362         }
00363         z->I[0] = z->c; /* setmark pV, line 64 */
00364         {    /* gopast */ /* non v, line 64 */
00365             int ret = in_grouping(z, g_v, 192, 220, 1);
00366             if (ret < 0) goto lab0;
00367             z->c += ret;
00368         }
00369         {    /* gopast */ /* grouping v, line 65 */
00370             int ret = out_grouping(z, g_v, 192, 220, 1);
00371             if (ret < 0) goto lab0;
00372             z->c += ret;
00373         }
00374         {    /* gopast */ /* non v, line 65 */
00375             int ret = in_grouping(z, g_v, 192, 220, 1);
00376             if (ret < 0) goto lab0;
00377             z->c += ret;
00378         }
00379         z->I[1] = z->c; /* setmark p2, line 65 */
00380     lab0:
00381         z->c = c1;
00382     }
00383     return 1;
00384 }
00385 
00386 static int r_R2(struct SN_env * z) {
00387     if (!(z->I[1] <= z->c)) return 0;
00388     return 1;
00389 }
00390 
00391 static int r_perfective_gerund(struct SN_env * z) {
00392     int among_var;
00393     z->ket = z->c; /* [, line 74 */
00394     if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 6 || !((25166336 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
00395     among_var = find_among_b(z, a_0, 9); /* substring, line 74 */
00396     if (!(among_var)) return 0;
00397     z->bra = z->c; /* ], line 74 */
00398     switch(among_var) {
00399         case 0: return 0;
00400         case 1:
00401             {   int m1 = z->l - z->c; (void)m1; /* or, line 78 */
00402                 if (!(eq_s_b(z, 1, s_0))) goto lab1;
00403                 goto lab0;
00404             lab1:
00405                 z->c = z->l - m1;
00406                 if (!(eq_s_b(z, 1, s_1))) return 0;
00407             }
00408         lab0:
00409             {   int ret = slice_del(z); /* delete, line 78 */
00410                 if (ret < 0) return ret;
00411             }
00412             break;
00413         case 2:
00414             {   int ret = slice_del(z); /* delete, line 85 */
00415                 if (ret < 0) return ret;
00416             }
00417             break;
00418     }
00419     return 1;
00420 }
00421 
00422 static int r_adjective(struct SN_env * z) {
00423     int among_var;
00424     z->ket = z->c; /* [, line 90 */
00425     if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 6 || !((2271009 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
00426     among_var = find_among_b(z, a_1, 26); /* substring, line 90 */
00427     if (!(among_var)) return 0;
00428     z->bra = z->c; /* ], line 90 */
00429     switch(among_var) {
00430         case 0: return 0;
00431         case 1:
00432             {   int ret = slice_del(z); /* delete, line 99 */
00433                 if (ret < 0) return ret;
00434             }
00435             break;
00436     }
00437     return 1;
00438 }
00439 
00440 static int r_adjectival(struct SN_env * z) {
00441     int among_var;
00442     {   int ret = r_adjective(z);
00443         if (ret == 0) return 0; /* call adjective, line 104 */
00444         if (ret < 0) return ret;
00445     }
00446     {   int m_keep = z->l - z->c;/* (void) m_keep;*/ /* try, line 111 */
00447         z->ket = z->c; /* [, line 112 */
00448         if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 6 || !((671113216 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->c = z->l - m_keep; goto lab0; }
00449         among_var = find_among_b(z, a_2, 8); /* substring, line 112 */
00450         if (!(among_var)) { z->c = z->l - m_keep; goto lab0; }
00451         z->bra = z->c; /* ], line 112 */
00452         switch(among_var) {
00453             case 0: { z->c = z->l - m_keep; goto lab0; }
00454             case 1:
00455                 {   int m1 = z->l - z->c; (void)m1; /* or, line 117 */
00456                     if (!(eq_s_b(z, 1, s_2))) goto lab2;
00457                     goto lab1;
00458                 lab2:
00459                     z->c = z->l - m1;
00460                     if (!(eq_s_b(z, 1, s_3))) { z->c = z->l - m_keep; goto lab0; }
00461                 }
00462             lab1:
00463                 {   int ret = slice_del(z); /* delete, line 117 */
00464                     if (ret < 0) return ret;
00465                 }
00466                 break;
00467             case 2:
00468                 {   int ret = slice_del(z); /* delete, line 124 */
00469                     if (ret < 0) return ret;
00470                 }
00471                 break;
00472         }
00473     lab0:
00474         ;
00475     }
00476     return 1;
00477 }
00478 
00479 static int r_reflexive(struct SN_env * z) {
00480     int among_var;
00481     z->ket = z->c; /* [, line 131 */
00482     if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 209 && z->p[z->c - 1] != 216)) return 0;
00483     among_var = find_among_b(z, a_3, 2); /* substring, line 131 */
00484     if (!(among_var)) return 0;
00485     z->bra = z->c; /* ], line 131 */
00486     switch(among_var) {
00487         case 0: return 0;
00488         case 1:
00489             {   int ret = slice_del(z); /* delete, line 134 */
00490                 if (ret < 0) return ret;
00491             }
00492             break;
00493     }
00494     return 1;
00495 }
00496 
00497 static int r_verb(struct SN_env * z) {
00498     int among_var;
00499     z->ket = z->c; /* [, line 139 */
00500     if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 6 || !((51443235 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
00501     among_var = find_among_b(z, a_4, 46); /* substring, line 139 */
00502     if (!(among_var)) return 0;
00503     z->bra = z->c; /* ], line 139 */
00504     switch(among_var) {
00505         case 0: return 0;
00506         case 1:
00507             {   int m1 = z->l - z->c; (void)m1; /* or, line 145 */
00508                 if (!(eq_s_b(z, 1, s_4))) goto lab1;
00509                 goto lab0;
00510             lab1:
00511                 z->c = z->l - m1;
00512                 if (!(eq_s_b(z, 1, s_5))) return 0;
00513             }
00514         lab0:
00515             {   int ret = slice_del(z); /* delete, line 145 */
00516                 if (ret < 0) return ret;
00517             }
00518             break;
00519         case 2:
00520             {   int ret = slice_del(z); /* delete, line 153 */
00521                 if (ret < 0) return ret;
00522             }
00523             break;
00524     }
00525     return 1;
00526 }
00527 
00528 static int r_noun(struct SN_env * z) {
00529     int among_var;
00530     z->ket = z->c; /* [, line 162 */
00531     if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 6 || !((60991267 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
00532     among_var = find_among_b(z, a_5, 36); /* substring, line 162 */
00533     if (!(among_var)) return 0;
00534     z->bra = z->c; /* ], line 162 */
00535     switch(among_var) {
00536         case 0: return 0;
00537         case 1:
00538             {   int ret = slice_del(z); /* delete, line 169 */
00539                 if (ret < 0) return ret;
00540             }
00541             break;
00542     }
00543     return 1;
00544 }
00545 
00546 static int r_derivational(struct SN_env * z) {
00547     int among_var;
00548     z->ket = z->c; /* [, line 178 */
00549     if (z->c - 2 <= z->lb || (z->p[z->c - 1] != 212 && z->p[z->c - 1] != 216)) return 0;
00550     among_var = find_among_b(z, a_6, 2); /* substring, line 178 */
00551     if (!(among_var)) return 0;
00552     z->bra = z->c; /* ], line 178 */
00553     {   int ret = r_R2(z);
00554         if (ret == 0) return 0; /* call R2, line 178 */
00555         if (ret < 0) return ret;
00556     }
00557     switch(among_var) {
00558         case 0: return 0;
00559         case 1:
00560             {   int ret = slice_del(z); /* delete, line 181 */
00561                 if (ret < 0) return ret;
00562             }
00563             break;
00564     }
00565     return 1;
00566 }
00567 
00568 static int r_tidy_up(struct SN_env * z) {
00569     int among_var;
00570     z->ket = z->c; /* [, line 186 */
00571     if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 6 || !((151011360 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
00572     among_var = find_among_b(z, a_7, 4); /* substring, line 186 */
00573     if (!(among_var)) return 0;
00574     z->bra = z->c; /* ], line 186 */
00575     switch(among_var) {
00576         case 0: return 0;
00577         case 1:
00578             {   int ret = slice_del(z); /* delete, line 190 */
00579                 if (ret < 0) return ret;
00580             }
00581             z->ket = z->c; /* [, line 191 */
00582             if (!(eq_s_b(z, 1, s_6))) return 0;
00583             z->bra = z->c; /* ], line 191 */
00584             if (!(eq_s_b(z, 1, s_7))) return 0;
00585             {   int ret = slice_del(z); /* delete, line 191 */
00586                 if (ret < 0) return ret;
00587             }
00588             break;
00589         case 2:
00590             if (!(eq_s_b(z, 1, s_8))) return 0;
00591             {   int ret = slice_del(z); /* delete, line 194 */
00592                 if (ret < 0) return ret;
00593             }
00594             break;
00595         case 3:
00596             {   int ret = slice_del(z); /* delete, line 196 */
00597                 if (ret < 0) return ret;
00598             }
00599             break;
00600     }
00601     return 1;
00602 }
00603 
00604 extern int russian_KOI8_R_stem(struct SN_env * z) {
00605     {   int c1 = z->c; /* do, line 203 */
00606         {   int ret = r_mark_regions(z);
00607             if (ret == 0) goto lab0; /* call mark_regions, line 203 */
00608             if (ret < 0) return ret;
00609         }
00610     lab0:
00611         z->c = c1;
00612     }
00613     z->lb = z->c; z->c = z->l; /* backwards, line 204 */
00614 
00615     {   int mlimit; /* setlimit, line 204 */
00616         int m2 = z->l - z->c; (void)m2;
00617         if (z->c < z->I[0]) return 0;
00618         z->c = z->I[0]; /* tomark, line 204 */
00619         mlimit = z->lb; z->lb = z->c;
00620         z->c = z->l - m2;
00621         {   int m3 = z->l - z->c; (void)m3; /* do, line 205 */
00622             {   int m4 = z->l - z->c; (void)m4; /* or, line 206 */
00623                 {   int ret = r_perfective_gerund(z);
00624                     if (ret == 0) goto lab3; /* call perfective_gerund, line 206 */
00625                     if (ret < 0) return ret;
00626                 }
00627                 goto lab2;
00628             lab3:
00629                 z->c = z->l - m4;
00630                 {   int m_keep = z->l - z->c;/* (void) m_keep;*/ /* try, line 207 */
00631                     {   int ret = r_reflexive(z);
00632                         if (ret == 0) { z->c = z->l - m_keep; goto lab4; } /* call reflexive, line 207 */
00633                         if (ret < 0) return ret;
00634                     }
00635                 lab4:
00636                     ;
00637                 }
00638                 {   int m5 = z->l - z->c; (void)m5; /* or, line 208 */
00639                     {   int ret = r_adjectival(z);
00640                         if (ret == 0) goto lab6; /* call adjectival, line 208 */
00641                         if (ret < 0) return ret;
00642                     }
00643                     goto lab5;
00644                 lab6:
00645                     z->c = z->l - m5;
00646                     {   int ret = r_verb(z);
00647                         if (ret == 0) goto lab7; /* call verb, line 208 */
00648                         if (ret < 0) return ret;
00649                     }
00650                     goto lab5;
00651                 lab7:
00652                     z->c = z->l - m5;
00653                     {   int ret = r_noun(z);
00654                         if (ret == 0) goto lab1; /* call noun, line 208 */
00655                         if (ret < 0) return ret;
00656                     }
00657                 }
00658             lab5:
00659                 ;
00660             }
00661         lab2:
00662         lab1:
00663             z->c = z->l - m3;
00664         }
00665         {   int m_keep = z->l - z->c;/* (void) m_keep;*/ /* try, line 211 */
00666             z->ket = z->c; /* [, line 211 */
00667             if (!(eq_s_b(z, 1, s_9))) { z->c = z->l - m_keep; goto lab8; }
00668             z->bra = z->c; /* ], line 211 */
00669             {   int ret = slice_del(z); /* delete, line 211 */
00670                 if (ret < 0) return ret;
00671             }
00672         lab8:
00673             ;
00674         }
00675         {   int m6 = z->l - z->c; (void)m6; /* do, line 214 */
00676             {   int ret = r_derivational(z);
00677                 if (ret == 0) goto lab9; /* call derivational, line 214 */
00678                 if (ret < 0) return ret;
00679             }
00680         lab9:
00681             z->c = z->l - m6;
00682         }
00683         {   int m7 = z->l - z->c; (void)m7; /* do, line 215 */
00684             {   int ret = r_tidy_up(z);
00685                 if (ret == 0) goto lab10; /* call tidy_up, line 215 */
00686                 if (ret < 0) return ret;
00687             }
00688         lab10:
00689             z->c = z->l - m7;
00690         }
00691         z->lb = mlimit;
00692     }
00693     z->c = z->lb;
00694     return 1;
00695 }
00696 
00697 extern struct SN_env * russian_KOI8_R_create_env(void) { return SN_create_env(0, 2, 0); }
00698 
00699 extern void russian_KOI8_R_close_env(struct SN_env * z) { SN_close_env(z, 0); }
00700