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