Line data Source code
1 : /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
2 :
3 : #include "header.h"
4 :
5 : #ifdef __cplusplus
6 : extern "C" {
7 : #endif
8 : extern int english_UTF_8_stem(struct SN_env * z);
9 : #ifdef __cplusplus
10 : }
11 : #endif
12 : static int r_exception2(struct SN_env * z);
13 : static int r_exception1(struct SN_env * z);
14 : static int r_Step_5(struct SN_env * z);
15 : static int r_Step_4(struct SN_env * z);
16 : static int r_Step_3(struct SN_env * z);
17 : static int r_Step_2(struct SN_env * z);
18 : static int r_Step_1c(struct SN_env * z);
19 : static int r_Step_1b(struct SN_env * z);
20 : static int r_Step_1a(struct SN_env * z);
21 : static int r_R2(struct SN_env * z);
22 : static int r_R1(struct SN_env * z);
23 : static int r_shortv(struct SN_env * z);
24 : static int r_mark_regions(struct SN_env * z);
25 : static int r_postlude(struct SN_env * z);
26 : static int r_prelude(struct SN_env * z);
27 : #ifdef __cplusplus
28 : extern "C" {
29 : #endif
30 :
31 :
32 : extern struct SN_env * english_UTF_8_create_env(void);
33 : extern void english_UTF_8_close_env(struct SN_env * z);
34 :
35 :
36 : #ifdef __cplusplus
37 : }
38 : #endif
39 : static const symbol s_0_0[5] = { 'a', 'r', 's', 'e', 'n' };
40 : static const symbol s_0_1[6] = { 'c', 'o', 'm', 'm', 'u', 'n' };
41 : static const symbol s_0_2[5] = { 'g', 'e', 'n', 'e', 'r' };
42 :
43 : static const struct among a_0[3] =
44 : {
45 : { 5, s_0_0, -1, -1, 0},
46 : { 6, s_0_1, -1, -1, 0},
47 : { 5, s_0_2, -1, -1, 0}
48 : };
49 :
50 : static const symbol s_1_0[1] = { '\'' };
51 : static const symbol s_1_1[3] = { '\'', 's', '\'' };
52 : static const symbol s_1_2[2] = { '\'', 's' };
53 :
54 : static const struct among a_1[3] =
55 : {
56 : { 1, s_1_0, -1, 1, 0},
57 : { 3, s_1_1, 0, 1, 0},
58 : { 2, s_1_2, -1, 1, 0}
59 : };
60 :
61 : static const symbol s_2_0[3] = { 'i', 'e', 'd' };
62 : static const symbol s_2_1[1] = { 's' };
63 : static const symbol s_2_2[3] = { 'i', 'e', 's' };
64 : static const symbol s_2_3[4] = { 's', 's', 'e', 's' };
65 : static const symbol s_2_4[2] = { 's', 's' };
66 : static const symbol s_2_5[2] = { 'u', 's' };
67 :
68 : static const struct among a_2[6] =
69 : {
70 : { 3, s_2_0, -1, 2, 0},
71 : { 1, s_2_1, -1, 3, 0},
72 : { 3, s_2_2, 1, 2, 0},
73 : { 4, s_2_3, 1, 1, 0},
74 : { 2, s_2_4, 1, -1, 0},
75 : { 2, s_2_5, 1, -1, 0}
76 : };
77 :
78 : static const symbol s_3_1[2] = { 'b', 'b' };
79 : static const symbol s_3_2[2] = { 'd', 'd' };
80 : static const symbol s_3_3[2] = { 'f', 'f' };
81 : static const symbol s_3_4[2] = { 'g', 'g' };
82 : static const symbol s_3_5[2] = { 'b', 'l' };
83 : static const symbol s_3_6[2] = { 'm', 'm' };
84 : static const symbol s_3_7[2] = { 'n', 'n' };
85 : static const symbol s_3_8[2] = { 'p', 'p' };
86 : static const symbol s_3_9[2] = { 'r', 'r' };
87 : static const symbol s_3_10[2] = { 'a', 't' };
88 : static const symbol s_3_11[2] = { 't', 't' };
89 : static const symbol s_3_12[2] = { 'i', 'z' };
90 :
91 : static const struct among a_3[13] =
92 : {
93 : { 0, 0, -1, 3, 0},
94 : { 2, s_3_1, 0, 2, 0},
95 : { 2, s_3_2, 0, 2, 0},
96 : { 2, s_3_3, 0, 2, 0},
97 : { 2, s_3_4, 0, 2, 0},
98 : { 2, s_3_5, 0, 1, 0},
99 : { 2, s_3_6, 0, 2, 0},
100 : { 2, s_3_7, 0, 2, 0},
101 : { 2, s_3_8, 0, 2, 0},
102 : { 2, s_3_9, 0, 2, 0},
103 : { 2, s_3_10, 0, 1, 0},
104 : { 2, s_3_11, 0, 2, 0},
105 : { 2, s_3_12, 0, 1, 0}
106 : };
107 :
108 : static const symbol s_4_0[2] = { 'e', 'd' };
109 : static const symbol s_4_1[3] = { 'e', 'e', 'd' };
110 : static const symbol s_4_2[3] = { 'i', 'n', 'g' };
111 : static const symbol s_4_3[4] = { 'e', 'd', 'l', 'y' };
112 : static const symbol s_4_4[5] = { 'e', 'e', 'd', 'l', 'y' };
113 : static const symbol s_4_5[5] = { 'i', 'n', 'g', 'l', 'y' };
114 :
115 : static const struct among a_4[6] =
116 : {
117 : { 2, s_4_0, -1, 2, 0},
118 : { 3, s_4_1, 0, 1, 0},
119 : { 3, s_4_2, -1, 2, 0},
120 : { 4, s_4_3, -1, 2, 0},
121 : { 5, s_4_4, 3, 1, 0},
122 : { 5, s_4_5, -1, 2, 0}
123 : };
124 :
125 : static const symbol s_5_0[4] = { 'a', 'n', 'c', 'i' };
126 : static const symbol s_5_1[4] = { 'e', 'n', 'c', 'i' };
127 : static const symbol s_5_2[3] = { 'o', 'g', 'i' };
128 : static const symbol s_5_3[2] = { 'l', 'i' };
129 : static const symbol s_5_4[3] = { 'b', 'l', 'i' };
130 : static const symbol s_5_5[4] = { 'a', 'b', 'l', 'i' };
131 : static const symbol s_5_6[4] = { 'a', 'l', 'l', 'i' };
132 : static const symbol s_5_7[5] = { 'f', 'u', 'l', 'l', 'i' };
133 : static const symbol s_5_8[6] = { 'l', 'e', 's', 's', 'l', 'i' };
134 : static const symbol s_5_9[5] = { 'o', 'u', 's', 'l', 'i' };
135 : static const symbol s_5_10[5] = { 'e', 'n', 't', 'l', 'i' };
136 : static const symbol s_5_11[5] = { 'a', 'l', 'i', 't', 'i' };
137 : static const symbol s_5_12[6] = { 'b', 'i', 'l', 'i', 't', 'i' };
138 : static const symbol s_5_13[5] = { 'i', 'v', 'i', 't', 'i' };
139 : static const symbol s_5_14[6] = { 't', 'i', 'o', 'n', 'a', 'l' };
140 : static const symbol s_5_15[7] = { 'a', 't', 'i', 'o', 'n', 'a', 'l' };
141 : static const symbol s_5_16[5] = { 'a', 'l', 'i', 's', 'm' };
142 : static const symbol s_5_17[5] = { 'a', 't', 'i', 'o', 'n' };
143 : static const symbol s_5_18[7] = { 'i', 'z', 'a', 't', 'i', 'o', 'n' };
144 : static const symbol s_5_19[4] = { 'i', 'z', 'e', 'r' };
145 : static const symbol s_5_20[4] = { 'a', 't', 'o', 'r' };
146 : static const symbol s_5_21[7] = { 'i', 'v', 'e', 'n', 'e', 's', 's' };
147 : static const symbol s_5_22[7] = { 'f', 'u', 'l', 'n', 'e', 's', 's' };
148 : static const symbol s_5_23[7] = { 'o', 'u', 's', 'n', 'e', 's', 's' };
149 :
150 : static const struct among a_5[24] =
151 : {
152 : { 4, s_5_0, -1, 3, 0},
153 : { 4, s_5_1, -1, 2, 0},
154 : { 3, s_5_2, -1, 13, 0},
155 : { 2, s_5_3, -1, 15, 0},
156 : { 3, s_5_4, 3, 12, 0},
157 : { 4, s_5_5, 4, 4, 0},
158 : { 4, s_5_6, 3, 8, 0},
159 : { 5, s_5_7, 3, 9, 0},
160 : { 6, s_5_8, 3, 14, 0},
161 : { 5, s_5_9, 3, 10, 0},
162 : { 5, s_5_10, 3, 5, 0},
163 : { 5, s_5_11, -1, 8, 0},
164 : { 6, s_5_12, -1, 12, 0},
165 : { 5, s_5_13, -1, 11, 0},
166 : { 6, s_5_14, -1, 1, 0},
167 : { 7, s_5_15, 14, 7, 0},
168 : { 5, s_5_16, -1, 8, 0},
169 : { 5, s_5_17, -1, 7, 0},
170 : { 7, s_5_18, 17, 6, 0},
171 : { 4, s_5_19, -1, 6, 0},
172 : { 4, s_5_20, -1, 7, 0},
173 : { 7, s_5_21, -1, 11, 0},
174 : { 7, s_5_22, -1, 9, 0},
175 : { 7, s_5_23, -1, 10, 0}
176 : };
177 :
178 : static const symbol s_6_0[5] = { 'i', 'c', 'a', 't', 'e' };
179 : static const symbol s_6_1[5] = { 'a', 't', 'i', 'v', 'e' };
180 : static const symbol s_6_2[5] = { 'a', 'l', 'i', 'z', 'e' };
181 : static const symbol s_6_3[5] = { 'i', 'c', 'i', 't', 'i' };
182 : static const symbol s_6_4[4] = { 'i', 'c', 'a', 'l' };
183 : static const symbol s_6_5[6] = { 't', 'i', 'o', 'n', 'a', 'l' };
184 : static const symbol s_6_6[7] = { 'a', 't', 'i', 'o', 'n', 'a', 'l' };
185 : static const symbol s_6_7[3] = { 'f', 'u', 'l' };
186 : static const symbol s_6_8[4] = { 'n', 'e', 's', 's' };
187 :
188 : static const struct among a_6[9] =
189 : {
190 : { 5, s_6_0, -1, 4, 0},
191 : { 5, s_6_1, -1, 6, 0},
192 : { 5, s_6_2, -1, 3, 0},
193 : { 5, s_6_3, -1, 4, 0},
194 : { 4, s_6_4, -1, 4, 0},
195 : { 6, s_6_5, -1, 1, 0},
196 : { 7, s_6_6, 5, 2, 0},
197 : { 3, s_6_7, -1, 5, 0},
198 : { 4, s_6_8, -1, 5, 0}
199 : };
200 :
201 : static const symbol s_7_0[2] = { 'i', 'c' };
202 : static const symbol s_7_1[4] = { 'a', 'n', 'c', 'e' };
203 : static const symbol s_7_2[4] = { 'e', 'n', 'c', 'e' };
204 : static const symbol s_7_3[4] = { 'a', 'b', 'l', 'e' };
205 : static const symbol s_7_4[4] = { 'i', 'b', 'l', 'e' };
206 : static const symbol s_7_5[3] = { 'a', 't', 'e' };
207 : static const symbol s_7_6[3] = { 'i', 'v', 'e' };
208 : static const symbol s_7_7[3] = { 'i', 'z', 'e' };
209 : static const symbol s_7_8[3] = { 'i', 't', 'i' };
210 : static const symbol s_7_9[2] = { 'a', 'l' };
211 : static const symbol s_7_10[3] = { 'i', 's', 'm' };
212 : static const symbol s_7_11[3] = { 'i', 'o', 'n' };
213 : static const symbol s_7_12[2] = { 'e', 'r' };
214 : static const symbol s_7_13[3] = { 'o', 'u', 's' };
215 : static const symbol s_7_14[3] = { 'a', 'n', 't' };
216 : static const symbol s_7_15[3] = { 'e', 'n', 't' };
217 : static const symbol s_7_16[4] = { 'm', 'e', 'n', 't' };
218 : static const symbol s_7_17[5] = { 'e', 'm', 'e', 'n', 't' };
219 :
220 : static const struct among a_7[18] =
221 : {
222 : { 2, s_7_0, -1, 1, 0},
223 : { 4, s_7_1, -1, 1, 0},
224 : { 4, s_7_2, -1, 1, 0},
225 : { 4, s_7_3, -1, 1, 0},
226 : { 4, s_7_4, -1, 1, 0},
227 : { 3, s_7_5, -1, 1, 0},
228 : { 3, s_7_6, -1, 1, 0},
229 : { 3, s_7_7, -1, 1, 0},
230 : { 3, s_7_8, -1, 1, 0},
231 : { 2, s_7_9, -1, 1, 0},
232 : { 3, s_7_10, -1, 1, 0},
233 : { 3, s_7_11, -1, 2, 0},
234 : { 2, s_7_12, -1, 1, 0},
235 : { 3, s_7_13, -1, 1, 0},
236 : { 3, s_7_14, -1, 1, 0},
237 : { 3, s_7_15, -1, 1, 0},
238 : { 4, s_7_16, 15, 1, 0},
239 : { 5, s_7_17, 16, 1, 0}
240 : };
241 :
242 : static const symbol s_8_0[1] = { 'e' };
243 : static const symbol s_8_1[1] = { 'l' };
244 :
245 : static const struct among a_8[2] =
246 : {
247 : { 1, s_8_0, -1, 1, 0},
248 : { 1, s_8_1, -1, 2, 0}
249 : };
250 :
251 : static const symbol s_9_0[7] = { 's', 'u', 'c', 'c', 'e', 'e', 'd' };
252 : static const symbol s_9_1[7] = { 'p', 'r', 'o', 'c', 'e', 'e', 'd' };
253 : static const symbol s_9_2[6] = { 'e', 'x', 'c', 'e', 'e', 'd' };
254 : static const symbol s_9_3[7] = { 'c', 'a', 'n', 'n', 'i', 'n', 'g' };
255 : static const symbol s_9_4[6] = { 'i', 'n', 'n', 'i', 'n', 'g' };
256 : static const symbol s_9_5[7] = { 'e', 'a', 'r', 'r', 'i', 'n', 'g' };
257 : static const symbol s_9_6[7] = { 'h', 'e', 'r', 'r', 'i', 'n', 'g' };
258 : static const symbol s_9_7[6] = { 'o', 'u', 't', 'i', 'n', 'g' };
259 :
260 : static const struct among a_9[8] =
261 : {
262 : { 7, s_9_0, -1, -1, 0},
263 : { 7, s_9_1, -1, -1, 0},
264 : { 6, s_9_2, -1, -1, 0},
265 : { 7, s_9_3, -1, -1, 0},
266 : { 6, s_9_4, -1, -1, 0},
267 : { 7, s_9_5, -1, -1, 0},
268 : { 7, s_9_6, -1, -1, 0},
269 : { 6, s_9_7, -1, -1, 0}
270 : };
271 :
272 : static const symbol s_10_0[5] = { 'a', 'n', 'd', 'e', 's' };
273 : static const symbol s_10_1[5] = { 'a', 't', 'l', 'a', 's' };
274 : static const symbol s_10_2[4] = { 'b', 'i', 'a', 's' };
275 : static const symbol s_10_3[6] = { 'c', 'o', 's', 'm', 'o', 's' };
276 : static const symbol s_10_4[5] = { 'd', 'y', 'i', 'n', 'g' };
277 : static const symbol s_10_5[5] = { 'e', 'a', 'r', 'l', 'y' };
278 : static const symbol s_10_6[6] = { 'g', 'e', 'n', 't', 'l', 'y' };
279 : static const symbol s_10_7[4] = { 'h', 'o', 'w', 'e' };
280 : static const symbol s_10_8[4] = { 'i', 'd', 'l', 'y' };
281 : static const symbol s_10_9[5] = { 'l', 'y', 'i', 'n', 'g' };
282 : static const symbol s_10_10[4] = { 'n', 'e', 'w', 's' };
283 : static const symbol s_10_11[4] = { 'o', 'n', 'l', 'y' };
284 : static const symbol s_10_12[6] = { 's', 'i', 'n', 'g', 'l', 'y' };
285 : static const symbol s_10_13[5] = { 's', 'k', 'i', 'e', 's' };
286 : static const symbol s_10_14[4] = { 's', 'k', 'i', 's' };
287 : static const symbol s_10_15[3] = { 's', 'k', 'y' };
288 : static const symbol s_10_16[5] = { 't', 'y', 'i', 'n', 'g' };
289 : static const symbol s_10_17[4] = { 'u', 'g', 'l', 'y' };
290 :
291 : static const struct among a_10[18] =
292 : {
293 : { 5, s_10_0, -1, -1, 0},
294 : { 5, s_10_1, -1, -1, 0},
295 : { 4, s_10_2, -1, -1, 0},
296 : { 6, s_10_3, -1, -1, 0},
297 : { 5, s_10_4, -1, 3, 0},
298 : { 5, s_10_5, -1, 9, 0},
299 : { 6, s_10_6, -1, 7, 0},
300 : { 4, s_10_7, -1, -1, 0},
301 : { 4, s_10_8, -1, 6, 0},
302 : { 5, s_10_9, -1, 4, 0},
303 : { 4, s_10_10, -1, -1, 0},
304 : { 4, s_10_11, -1, 10, 0},
305 : { 6, s_10_12, -1, 11, 0},
306 : { 5, s_10_13, -1, 2, 0},
307 : { 4, s_10_14, -1, 1, 0},
308 : { 3, s_10_15, -1, -1, 0},
309 : { 5, s_10_16, -1, 5, 0},
310 : { 4, s_10_17, -1, 8, 0}
311 : };
312 :
313 : static const unsigned char g_aeo[] = { 17, 64 };
314 :
315 : static const unsigned char g_v[] = { 17, 65, 16, 1 };
316 :
317 : static const unsigned char g_v_WXY[] = { 1, 17, 65, 208, 1 };
318 :
319 : static const unsigned char g_valid_LI[] = { 55, 141, 2 };
320 :
321 : static const symbol s_0[] = { 'Y' };
322 : static const symbol s_1[] = { 'Y' };
323 : static const symbol s_2[] = { 's', 's' };
324 : static const symbol s_3[] = { 'i' };
325 : static const symbol s_4[] = { 'i', 'e' };
326 : static const symbol s_5[] = { 'e', 'e' };
327 : static const symbol s_6[] = { 'e' };
328 : static const symbol s_7[] = { 'e' };
329 : static const symbol s_8[] = { 'i' };
330 : static const symbol s_9[] = { 't', 'i', 'o', 'n' };
331 : static const symbol s_10[] = { 'e', 'n', 'c', 'e' };
332 : static const symbol s_11[] = { 'a', 'n', 'c', 'e' };
333 : static const symbol s_12[] = { 'a', 'b', 'l', 'e' };
334 : static const symbol s_13[] = { 'e', 'n', 't' };
335 : static const symbol s_14[] = { 'i', 'z', 'e' };
336 : static const symbol s_15[] = { 'a', 't', 'e' };
337 : static const symbol s_16[] = { 'a', 'l' };
338 : static const symbol s_17[] = { 'f', 'u', 'l' };
339 : static const symbol s_18[] = { 'o', 'u', 's' };
340 : static const symbol s_19[] = { 'i', 'v', 'e' };
341 : static const symbol s_20[] = { 'b', 'l', 'e' };
342 : static const symbol s_21[] = { 'o', 'g' };
343 : static const symbol s_22[] = { 'l', 'e', 's', 's' };
344 : static const symbol s_23[] = { 't', 'i', 'o', 'n' };
345 : static const symbol s_24[] = { 'a', 't', 'e' };
346 : static const symbol s_25[] = { 'a', 'l' };
347 : static const symbol s_26[] = { 'i', 'c' };
348 : static const symbol s_27[] = { 's', 'k', 'i' };
349 : static const symbol s_28[] = { 's', 'k', 'y' };
350 : static const symbol s_29[] = { 'd', 'i', 'e' };
351 : static const symbol s_30[] = { 'l', 'i', 'e' };
352 : static const symbol s_31[] = { 't', 'i', 'e' };
353 : static const symbol s_32[] = { 'i', 'd', 'l' };
354 : static const symbol s_33[] = { 'g', 'e', 'n', 't', 'l' };
355 : static const symbol s_34[] = { 'u', 'g', 'l', 'i' };
356 : static const symbol s_35[] = { 'e', 'a', 'r', 'l', 'i' };
357 : static const symbol s_36[] = { 'o', 'n', 'l', 'i' };
358 : static const symbol s_37[] = { 's', 'i', 'n', 'g', 'l' };
359 : static const symbol s_38[] = { 'y' };
360 :
361 6262 : static int r_prelude(struct SN_env * z) {
362 6262 : z->I[2] = 0;
363 6262 : { int c1 = z->c;
364 6262 : z->bra = z->c;
365 6262 : if (z->c == z->l || z->p[z->c] != '\'') goto lab0;
366 0 : z->c++;
367 0 : z->ket = z->c;
368 0 : { int ret = slice_del(z);
369 0 : if (ret < 0) return ret;
370 : }
371 0 : lab0:
372 6262 : z->c = c1;
373 : }
374 6262 : { int c2 = z->c;
375 6262 : z->bra = z->c;
376 6262 : if (z->c == z->l || z->p[z->c] != 'y') goto lab1;
377 42 : z->c++;
378 42 : z->ket = z->c;
379 42 : { int ret = slice_from_s(z, 1, s_0);
380 42 : if (ret < 0) return ret;
381 : }
382 42 : z->I[2] = 1;
383 6262 : lab1:
384 6262 : z->c = c2;
385 : }
386 6262 : { int c3 = z->c;
387 486 : while(1) {
388 6748 : int c4 = z->c;
389 29164 : while(1) {
390 35912 : int c5 = z->c;
391 35912 : if (in_grouping_U(z, g_v, 97, 121, 0)) goto lab4;
392 11448 : z->bra = z->c;
393 11448 : if (z->c == z->l || z->p[z->c] != 'y') goto lab4;
394 486 : z->c++;
395 486 : z->ket = z->c;
396 486 : z->c = c5;
397 486 : break;
398 35426 : lab4:
399 35426 : z->c = c5;
400 35426 : { int ret = skip_utf8(z->p, z->c, z->l, 1);
401 35426 : if (ret < 0) goto lab3;
402 29164 : z->c = ret;
403 : }
404 : }
405 486 : { int ret = slice_from_s(z, 1, s_1);
406 486 : if (ret < 0) return ret;
407 : }
408 486 : z->I[2] = 1;
409 486 : continue;
410 6262 : lab3:
411 6262 : z->c = c4;
412 6262 : break;
413 : }
414 6262 : z->c = c3;
415 : }
416 6262 : return 1;
417 : }
418 :
419 6262 : static int r_mark_regions(struct SN_env * z) {
420 6262 : z->I[1] = z->l;
421 6262 : z->I[0] = z->l;
422 6262 : { int c1 = z->c;
423 6262 : { int c2 = z->c;
424 6262 : if (z->c + 4 >= z->l || z->p[z->c + 4] >> 5 != 3 || !((2375680 >> (z->p[z->c + 4] & 0x1f)) & 1)) goto lab2;
425 1034 : if (!find_among(z, a_0, 3)) goto lab2;
426 0 : goto lab1;
427 6262 : lab2:
428 6262 : z->c = c2;
429 :
430 : {
431 6262 : int ret = out_grouping_U(z, g_v, 97, 121, 1);
432 6262 : if (ret < 0) goto lab0;
433 5590 : z->c += ret;
434 : }
435 :
436 : {
437 5590 : int ret = in_grouping_U(z, g_v, 97, 121, 1);
438 5590 : if (ret < 0) goto lab0;
439 5006 : z->c += ret;
440 : }
441 : }
442 5006 : lab1:
443 5006 : z->I[1] = z->c;
444 :
445 : {
446 5006 : int ret = out_grouping_U(z, g_v, 97, 121, 1);
447 5006 : if (ret < 0) goto lab0;
448 2738 : z->c += ret;
449 : }
450 :
451 : {
452 2738 : int ret = in_grouping_U(z, g_v, 97, 121, 1);
453 2738 : if (ret < 0) goto lab0;
454 2204 : z->c += ret;
455 : }
456 2204 : z->I[0] = z->c;
457 6262 : lab0:
458 6262 : z->c = c1;
459 : }
460 6262 : return 1;
461 : }
462 :
463 436 : static int r_shortv(struct SN_env * z) {
464 436 : { int m1 = z->l - z->c; (void)m1;
465 436 : if (out_grouping_b_U(z, g_v_WXY, 89, 121, 0)) goto lab1;
466 436 : if (in_grouping_b_U(z, g_v, 97, 121, 0)) goto lab1;
467 232 : if (out_grouping_b_U(z, g_v, 97, 121, 0)) goto lab1;
468 66 : goto lab0;
469 370 : lab1:
470 370 : z->c = z->l - m1;
471 370 : if (out_grouping_b_U(z, g_v, 97, 121, 0)) return 0;
472 370 : if (in_grouping_b_U(z, g_v, 97, 121, 0)) return 0;
473 166 : if (z->c > z->lb) return 0;
474 : }
475 108 : lab0:
476 174 : return 1;
477 : }
478 :
479 606 : static int r_R1(struct SN_env * z) {
480 606 : return z->I[1] <= z->c;
481 : }
482 :
483 1730 : static int r_R2(struct SN_env * z) {
484 1730 : return z->I[0] <= z->c;
485 : }
486 :
487 6262 : static int r_Step_1a(struct SN_env * z) {
488 : int among_var;
489 6262 : { int m1 = z->l - z->c; (void)m1;
490 6262 : z->ket = z->c;
491 6262 : if (z->c <= z->lb || (z->p[z->c - 1] != 39 && z->p[z->c - 1] != 115)) { z->c = z->l - m1; goto lab0; }
492 298 : if (!find_among_b(z, a_1, 3)) { z->c = z->l - m1; goto lab0; }
493 0 : z->bra = z->c;
494 0 : { int ret = slice_del(z);
495 0 : if (ret < 0) return ret;
496 : }
497 0 : lab0:
498 : ;
499 : }
500 6262 : z->ket = z->c;
501 6262 : if (z->c <= z->lb || (z->p[z->c - 1] != 100 && z->p[z->c - 1] != 115)) return 0;
502 790 : among_var = find_among_b(z, a_2, 6);
503 790 : if (!among_var) return 0;
504 298 : z->bra = z->c;
505 298 : switch (among_var) {
506 0 : case 1:
507 0 : { int ret = slice_from_s(z, 2, s_2);
508 0 : if (ret < 0) return ret;
509 : }
510 0 : break;
511 0 : case 2:
512 0 : { int m2 = z->l - z->c; (void)m2;
513 0 : { int ret = skip_b_utf8(z->p, z->c, z->lb, 2);
514 0 : if (ret < 0) goto lab2;
515 0 : z->c = ret;
516 : }
517 0 : { int ret = slice_from_s(z, 1, s_3);
518 0 : if (ret < 0) return ret;
519 : }
520 0 : goto lab1;
521 0 : lab2:
522 0 : z->c = z->l - m2;
523 0 : { int ret = slice_from_s(z, 2, s_4);
524 0 : if (ret < 0) return ret;
525 : }
526 : }
527 0 : lab1:
528 0 : break;
529 244 : case 3:
530 244 : { int ret = skip_b_utf8(z->p, z->c, z->lb, 1);
531 244 : if (ret < 0) return 0;
532 244 : z->c = ret;
533 : }
534 :
535 : {
536 244 : int ret = out_grouping_b_U(z, g_v, 97, 121, 1);
537 244 : if (ret < 0) return 0;
538 238 : z->c -= ret;
539 : }
540 238 : { int ret = slice_del(z);
541 238 : if (ret < 0) return ret;
542 : }
543 238 : break;
544 : }
545 292 : return 1;
546 : }
547 :
548 6262 : static int r_Step_1b(struct SN_env * z) {
549 : int among_var;
550 6262 : z->ket = z->c;
551 6262 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((33554576 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
552 1142 : among_var = find_among_b(z, a_4, 6);
553 1142 : if (!among_var) return 0;
554 388 : z->bra = z->c;
555 388 : switch (among_var) {
556 0 : case 1:
557 0 : { int ret = r_R1(z);
558 0 : if (ret <= 0) return ret;
559 : }
560 0 : { int ret = slice_from_s(z, 2, s_5);
561 0 : if (ret < 0) return ret;
562 : }
563 0 : break;
564 388 : case 2:
565 388 : { int m_test1 = z->l - z->c;
566 :
567 : {
568 388 : int ret = out_grouping_b_U(z, g_v, 97, 121, 1);
569 388 : if (ret < 0) return 0;
570 388 : z->c -= ret;
571 : }
572 388 : z->c = z->l - m_test1;
573 : }
574 388 : { int ret = slice_del(z);
575 388 : if (ret < 0) return ret;
576 : }
577 388 : z->ket = z->c;
578 388 : z->bra = z->c;
579 388 : { int m_test2 = z->l - z->c;
580 388 : 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
581 324 : among_var = find_among_b(z, a_3, 13);
582 : switch (among_var) {
583 0 : case 1:
584 0 : { int ret = slice_from_s(z, 1, s_6);
585 0 : if (ret < 0) return ret;
586 : }
587 0 : return 0;
588 : break;
589 36 : case 2:
590 36 : { int m3 = z->l - z->c; (void)m3;
591 36 : if (in_grouping_b_U(z, g_aeo, 97, 111, 0)) goto lab0;
592 0 : if (z->c > z->lb) goto lab0;
593 0 : return 0;
594 36 : lab0:
595 36 : z->c = z->l - m3;
596 : }
597 36 : break;
598 352 : case 3:
599 352 : if (z->c != z->I[1]) return 0;
600 58 : { int m_test4 = z->l - z->c;
601 58 : { int ret = r_shortv(z);
602 58 : if (ret <= 0) return ret;
603 : }
604 6 : z->c = z->l - m_test4;
605 : }
606 6 : { int ret = slice_from_s(z, 1, s_7);
607 6 : if (ret < 0) return ret;
608 : }
609 6 : return 0;
610 : break;
611 : }
612 36 : z->c = z->l - m_test2;
613 : }
614 36 : z->ket = z->c;
615 36 : { int ret = skip_b_utf8(z->p, z->c, z->lb, 1);
616 36 : if (ret < 0) return 0;
617 36 : z->c = ret;
618 : }
619 36 : z->bra = z->c;
620 36 : { int ret = slice_del(z);
621 36 : if (ret < 0) return ret;
622 : }
623 36 : break;
624 : }
625 36 : return 1;
626 : }
627 :
628 6262 : static int r_Step_1c(struct SN_env * z) {
629 6262 : z->ket = z->c;
630 6262 : { int m1 = z->l - z->c; (void)m1;
631 6262 : if (z->c <= z->lb || z->p[z->c - 1] != 'y') goto lab1;
632 354 : z->c--;
633 354 : goto lab0;
634 5908 : lab1:
635 5908 : z->c = z->l - m1;
636 5908 : if (z->c <= z->lb || z->p[z->c - 1] != 'Y') return 0;
637 486 : z->c--;
638 : }
639 840 : lab0:
640 840 : z->bra = z->c;
641 840 : if (out_grouping_b_U(z, g_v, 97, 121, 0)) return 0;
642 :
643 354 : if (z->c > z->lb) goto lab2;
644 0 : return 0;
645 354 : lab2:
646 354 : { int ret = slice_from_s(z, 1, s_8);
647 354 : if (ret < 0) return ret;
648 : }
649 354 : return 1;
650 : }
651 :
652 6262 : static int r_Step_2(struct SN_env * z) {
653 : int among_var;
654 6262 : z->ket = z->c;
655 6262 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((815616 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
656 1930 : among_var = find_among_b(z, a_5, 24);
657 1930 : if (!among_var) return 0;
658 58 : z->bra = z->c;
659 58 : { int ret = r_R1(z);
660 58 : if (ret <= 0) return ret;
661 : }
662 58 : switch (among_var) {
663 0 : case 1:
664 0 : { int ret = slice_from_s(z, 4, s_9);
665 0 : if (ret < 0) return ret;
666 : }
667 0 : break;
668 0 : case 2:
669 0 : { int ret = slice_from_s(z, 4, s_10);
670 0 : if (ret < 0) return ret;
671 : }
672 0 : break;
673 0 : case 3:
674 0 : { int ret = slice_from_s(z, 4, s_11);
675 0 : if (ret < 0) return ret;
676 : }
677 0 : break;
678 0 : case 4:
679 0 : { int ret = slice_from_s(z, 4, s_12);
680 0 : if (ret < 0) return ret;
681 : }
682 0 : break;
683 0 : case 5:
684 0 : { int ret = slice_from_s(z, 3, s_13);
685 0 : if (ret < 0) return ret;
686 : }
687 0 : break;
688 0 : case 6:
689 0 : { int ret = slice_from_s(z, 3, s_14);
690 0 : if (ret < 0) return ret;
691 : }
692 0 : break;
693 46 : case 7:
694 46 : { int ret = slice_from_s(z, 3, s_15);
695 46 : if (ret < 0) return ret;
696 : }
697 46 : break;
698 12 : case 8:
699 12 : { int ret = slice_from_s(z, 2, s_16);
700 12 : if (ret < 0) return ret;
701 : }
702 12 : break;
703 0 : case 9:
704 0 : { int ret = slice_from_s(z, 3, s_17);
705 0 : if (ret < 0) return ret;
706 : }
707 0 : break;
708 0 : case 10:
709 0 : { int ret = slice_from_s(z, 3, s_18);
710 0 : if (ret < 0) return ret;
711 : }
712 0 : break;
713 0 : case 11:
714 0 : { int ret = slice_from_s(z, 3, s_19);
715 0 : if (ret < 0) return ret;
716 : }
717 0 : break;
718 0 : case 12:
719 0 : { int ret = slice_from_s(z, 3, s_20);
720 0 : if (ret < 0) return ret;
721 : }
722 0 : break;
723 0 : case 13:
724 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'l') return 0;
725 0 : z->c--;
726 0 : { int ret = slice_from_s(z, 2, s_21);
727 0 : if (ret < 0) return ret;
728 : }
729 0 : break;
730 0 : case 14:
731 0 : { int ret = slice_from_s(z, 4, s_22);
732 0 : if (ret < 0) return ret;
733 : }
734 0 : break;
735 0 : case 15:
736 0 : if (in_grouping_b_U(z, g_valid_LI, 99, 116, 0)) return 0;
737 0 : { int ret = slice_del(z);
738 0 : if (ret < 0) return ret;
739 : }
740 0 : break;
741 : }
742 58 : return 1;
743 : }
744 :
745 6262 : static int r_Step_3(struct SN_env * z) {
746 : int among_var;
747 6262 : z->ket = z->c;
748 6262 : if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((528928 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
749 1420 : among_var = find_among_b(z, a_6, 9);
750 1420 : if (!among_var) return 0;
751 0 : z->bra = z->c;
752 0 : { int ret = r_R1(z);
753 0 : if (ret <= 0) return ret;
754 : }
755 0 : switch (among_var) {
756 0 : case 1:
757 0 : { int ret = slice_from_s(z, 4, s_23);
758 0 : if (ret < 0) return ret;
759 : }
760 0 : break;
761 0 : case 2:
762 0 : { int ret = slice_from_s(z, 3, s_24);
763 0 : if (ret < 0) return ret;
764 : }
765 0 : break;
766 0 : case 3:
767 0 : { int ret = slice_from_s(z, 2, s_25);
768 0 : if (ret < 0) return ret;
769 : }
770 0 : break;
771 0 : case 4:
772 0 : { int ret = slice_from_s(z, 2, s_26);
773 0 : if (ret < 0) return ret;
774 : }
775 0 : break;
776 0 : case 5:
777 0 : { int ret = slice_del(z);
778 0 : if (ret < 0) return ret;
779 : }
780 0 : break;
781 0 : case 6:
782 0 : { int ret = r_R2(z);
783 0 : if (ret <= 0) return ret;
784 : }
785 0 : { int ret = slice_del(z);
786 0 : if (ret < 0) return ret;
787 : }
788 0 : break;
789 : }
790 0 : return 1;
791 : }
792 :
793 6262 : static int r_Step_4(struct SN_env * z) {
794 : int among_var;
795 6262 : z->ket = z->c;
796 6262 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1864232 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
797 3422 : among_var = find_among_b(z, a_7, 18);
798 3422 : if (!among_var) return 0;
799 848 : z->bra = z->c;
800 848 : { int ret = r_R2(z);
801 848 : if (ret <= 0) return ret;
802 : }
803 88 : switch (among_var) {
804 88 : case 1:
805 88 : { int ret = slice_del(z);
806 88 : if (ret < 0) return ret;
807 : }
808 88 : break;
809 0 : case 2:
810 0 : { int m1 = z->l - z->c; (void)m1;
811 0 : if (z->c <= z->lb || z->p[z->c - 1] != 's') goto lab1;
812 0 : z->c--;
813 0 : goto lab0;
814 0 : lab1:
815 0 : z->c = z->l - m1;
816 0 : if (z->c <= z->lb || z->p[z->c - 1] != 't') return 0;
817 0 : z->c--;
818 : }
819 0 : lab0:
820 0 : { int ret = slice_del(z);
821 0 : if (ret < 0) return ret;
822 : }
823 0 : break;
824 : }
825 88 : return 1;
826 : }
827 :
828 6262 : static int r_Step_5(struct SN_env * z) {
829 : int among_var;
830 6262 : z->ket = z->c;
831 6262 : if (z->c <= z->lb || (z->p[z->c - 1] != 101 && z->p[z->c - 1] != 108)) return 0;
832 882 : among_var = find_among_b(z, a_8, 2);
833 882 : if (!among_var) return 0;
834 882 : z->bra = z->c;
835 882 : switch (among_var) {
836 786 : case 1:
837 :
838 786 : { int ret = r_R2(z);
839 786 : if (ret == 0) goto lab1;
840 238 : if (ret < 0) return ret;
841 : }
842 238 : goto lab0;
843 548 : lab1:
844 548 : { int ret = r_R1(z);
845 548 : if (ret <= 0) return ret;
846 : }
847 378 : { int m1 = z->l - z->c; (void)m1;
848 378 : { int ret = r_shortv(z);
849 378 : if (ret == 0) goto lab2;
850 168 : if (ret < 0) return ret;
851 : }
852 168 : return 0;
853 210 : lab2:
854 210 : z->c = z->l - m1;
855 : }
856 448 : lab0:
857 448 : { int ret = slice_del(z);
858 448 : if (ret < 0) return ret;
859 : }
860 448 : break;
861 96 : case 2:
862 96 : { int ret = r_R2(z);
863 96 : if (ret <= 0) return ret;
864 : }
865 6 : if (z->c <= z->lb || z->p[z->c - 1] != 'l') return 0;
866 0 : z->c--;
867 0 : { int ret = slice_del(z);
868 0 : if (ret < 0) return ret;
869 : }
870 0 : break;
871 : }
872 448 : return 1;
873 : }
874 :
875 6262 : static int r_exception2(struct SN_env * z) {
876 6262 : z->ket = z->c;
877 6262 : if (z->c - 5 <= z->lb || (z->p[z->c - 1] != 100 && z->p[z->c - 1] != 103)) return 0;
878 412 : if (!find_among_b(z, a_9, 8)) return 0;
879 0 : z->bra = z->c;
880 0 : if (z->c > z->lb) return 0;
881 0 : return 1;
882 : }
883 :
884 6802 : static int r_exception1(struct SN_env * z) {
885 : int among_var;
886 6802 : z->bra = z->c;
887 6802 : if (z->c + 2 >= z->l || z->p[z->c + 2] >> 5 != 3 || !((42750482 >> (z->p[z->c + 2] & 0x1f)) & 1)) return 0;
888 2982 : among_var = find_among(z, a_10, 18);
889 2982 : if (!among_var) return 0;
890 36 : z->ket = z->c;
891 36 : if (z->c < z->l) return 0;
892 36 : switch (among_var) {
893 0 : case 1:
894 0 : { int ret = slice_from_s(z, 3, s_27);
895 0 : if (ret < 0) return ret;
896 : }
897 0 : break;
898 36 : case 2:
899 36 : { int ret = slice_from_s(z, 3, s_28);
900 36 : if (ret < 0) return ret;
901 : }
902 36 : break;
903 0 : case 3:
904 0 : { int ret = slice_from_s(z, 3, s_29);
905 0 : if (ret < 0) return ret;
906 : }
907 0 : break;
908 0 : case 4:
909 0 : { int ret = slice_from_s(z, 3, s_30);
910 0 : if (ret < 0) return ret;
911 : }
912 0 : break;
913 0 : case 5:
914 0 : { int ret = slice_from_s(z, 3, s_31);
915 0 : if (ret < 0) return ret;
916 : }
917 0 : break;
918 0 : case 6:
919 0 : { int ret = slice_from_s(z, 3, s_32);
920 0 : if (ret < 0) return ret;
921 : }
922 0 : break;
923 0 : case 7:
924 0 : { int ret = slice_from_s(z, 5, s_33);
925 0 : if (ret < 0) return ret;
926 : }
927 0 : break;
928 0 : case 8:
929 0 : { int ret = slice_from_s(z, 4, s_34);
930 0 : if (ret < 0) return ret;
931 : }
932 0 : break;
933 0 : case 9:
934 0 : { int ret = slice_from_s(z, 5, s_35);
935 0 : if (ret < 0) return ret;
936 : }
937 0 : break;
938 0 : case 10:
939 0 : { int ret = slice_from_s(z, 4, s_36);
940 0 : if (ret < 0) return ret;
941 : }
942 0 : break;
943 0 : case 11:
944 0 : { int ret = slice_from_s(z, 5, s_37);
945 0 : if (ret < 0) return ret;
946 : }
947 0 : break;
948 : }
949 36 : return 1;
950 : }
951 :
952 6262 : static int r_postlude(struct SN_env * z) {
953 6262 : if (!(z->I[2])) return 0;
954 528 : while(1) {
955 1056 : int c1 = z->c;
956 1626 : while(1) {
957 2682 : int c2 = z->c;
958 2682 : z->bra = z->c;
959 2682 : if (z->c == z->l || z->p[z->c] != 'Y') goto lab1;
960 528 : z->c++;
961 528 : z->ket = z->c;
962 528 : z->c = c2;
963 528 : break;
964 2154 : lab1:
965 2154 : z->c = c2;
966 2154 : { int ret = skip_utf8(z->p, z->c, z->l, 1);
967 2154 : if (ret < 0) goto lab0;
968 1626 : z->c = ret;
969 : }
970 : }
971 528 : { int ret = slice_from_s(z, 1, s_38);
972 528 : if (ret < 0) return ret;
973 : }
974 528 : continue;
975 528 : lab0:
976 528 : z->c = c1;
977 528 : break;
978 : }
979 528 : return 1;
980 : }
981 :
982 6802 : extern int english_UTF_8_stem(struct SN_env * z) {
983 6802 : { int c1 = z->c;
984 6802 : { int ret = r_exception1(z);
985 6802 : if (ret == 0) goto lab1;
986 36 : if (ret < 0) return ret;
987 : }
988 36 : goto lab0;
989 6766 : lab1:
990 6766 : z->c = c1;
991 6766 : { int c2 = z->c;
992 6766 : { int ret = skip_utf8(z->p, z->c, z->l, 3);
993 6766 : if (ret < 0) goto lab3;
994 6262 : z->c = ret;
995 : }
996 6262 : goto lab2;
997 504 : lab3:
998 504 : z->c = c2;
999 : }
1000 504 : goto lab0;
1001 6262 : lab2:
1002 6262 : z->c = c1;
1003 :
1004 6262 : { int ret = r_prelude(z);
1005 6262 : if (ret < 0) return ret;
1006 : }
1007 :
1008 6262 : { int ret = r_mark_regions(z);
1009 6262 : if (ret < 0) return ret;
1010 : }
1011 6262 : z->lb = z->c; z->c = z->l;
1012 :
1013 6262 : { int m3 = z->l - z->c; (void)m3;
1014 6262 : { int ret = r_Step_1a(z);
1015 6262 : if (ret < 0) return ret;
1016 : }
1017 6262 : z->c = z->l - m3;
1018 : }
1019 6262 : { int m4 = z->l - z->c; (void)m4;
1020 6262 : { int ret = r_exception2(z);
1021 6262 : if (ret == 0) goto lab5;
1022 0 : if (ret < 0) return ret;
1023 : }
1024 0 : goto lab4;
1025 6262 : lab5:
1026 6262 : z->c = z->l - m4;
1027 6262 : { int m5 = z->l - z->c; (void)m5;
1028 6262 : { int ret = r_Step_1b(z);
1029 6262 : if (ret < 0) return ret;
1030 : }
1031 6262 : z->c = z->l - m5;
1032 : }
1033 6262 : { int m6 = z->l - z->c; (void)m6;
1034 6262 : { int ret = r_Step_1c(z);
1035 6262 : if (ret < 0) return ret;
1036 : }
1037 6262 : z->c = z->l - m6;
1038 : }
1039 6262 : { int m7 = z->l - z->c; (void)m7;
1040 6262 : { int ret = r_Step_2(z);
1041 6262 : if (ret < 0) return ret;
1042 : }
1043 6262 : z->c = z->l - m7;
1044 : }
1045 6262 : { int m8 = z->l - z->c; (void)m8;
1046 6262 : { int ret = r_Step_3(z);
1047 6262 : if (ret < 0) return ret;
1048 : }
1049 6262 : z->c = z->l - m8;
1050 : }
1051 6262 : { int m9 = z->l - z->c; (void)m9;
1052 6262 : { int ret = r_Step_4(z);
1053 6262 : if (ret < 0) return ret;
1054 : }
1055 6262 : z->c = z->l - m9;
1056 : }
1057 6262 : { int m10 = z->l - z->c; (void)m10;
1058 6262 : { int ret = r_Step_5(z);
1059 6262 : if (ret < 0) return ret;
1060 : }
1061 6262 : z->c = z->l - m10;
1062 : }
1063 : }
1064 6262 : lab4:
1065 6262 : z->c = z->lb;
1066 6262 : { int c11 = z->c;
1067 6262 : { int ret = r_postlude(z);
1068 6262 : if (ret < 0) return ret;
1069 : }
1070 6262 : z->c = c11;
1071 : }
1072 : }
1073 6802 : lab0:
1074 6802 : return 1;
1075 : }
1076 :
1077 38 : extern struct SN_env * english_UTF_8_create_env(void) { return SN_create_env(0, 3); }
1078 :
1079 0 : extern void english_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
1080 :
|