Branch data Line data Source code
1 : : /* Generated from german.sbl by Snowball 3.0.0 - https://snowballstem.org/ */
2 : :
3 : : #include "stem_UTF_8_german.h"
4 : :
5 : : #include <stddef.h>
6 : :
7 : : #include "snowball_runtime.h"
8 : :
9 : : struct SN_local {
10 : : struct SN_env z;
11 : : int i_p2;
12 : : int i_p1;
13 : : };
14 : :
15 : : typedef struct SN_local SN_local;
16 : :
17 : : #ifdef __cplusplus
18 : : extern "C" {
19 : : #endif
20 : : extern int german_UTF_8_stem(struct SN_env * z);
21 : : #ifdef __cplusplus
22 : : }
23 : : #endif
24 : :
25 : : static int r_standard_suffix(struct SN_env * z);
26 : : static int r_R2(struct SN_env * z);
27 : : static int r_R1(struct SN_env * z);
28 : : static int r_mark_regions(struct SN_env * z);
29 : : static int r_postlude(struct SN_env * z);
30 : : static int r_prelude(struct SN_env * z);
31 : :
32 : : static const symbol s_0[] = { 'U' };
33 : : static const symbol s_1[] = { 'Y' };
34 : : static const symbol s_2[] = { 's', 's' };
35 : : static const symbol s_3[] = { 0xC3, 0xA4 };
36 : : static const symbol s_4[] = { 0xC3, 0xB6 };
37 : : static const symbol s_5[] = { 0xC3, 0xBC };
38 : : static const symbol s_6[] = { 'y' };
39 : : static const symbol s_7[] = { 'u' };
40 : : static const symbol s_8[] = { 'a' };
41 : : static const symbol s_9[] = { 'o' };
42 : : static const symbol s_10[] = { 's', 'y', 's', 't' };
43 : : static const symbol s_11[] = { 'n', 'i', 's' };
44 : : static const symbol s_12[] = { 'l' };
45 : : static const symbol s_13[] = { 'i', 'g' };
46 : : static const symbol s_14[] = { 'e', 'r' };
47 : : static const symbol s_15[] = { 'e', 'n' };
48 : :
49 : : static const symbol s_0_1[2] = { 'a', 'e' };
50 : : static const symbol s_0_2[2] = { 'o', 'e' };
51 : : static const symbol s_0_3[2] = { 'q', 'u' };
52 : : static const symbol s_0_4[2] = { 'u', 'e' };
53 : : static const symbol s_0_5[2] = { 0xC3, 0x9F };
54 : : static const struct among a_0[6] = {
55 : : { 0, 0, 0, 5, 0},
56 : : { 2, s_0_1, -1, 2, 0},
57 : : { 2, s_0_2, -2, 3, 0},
58 : : { 2, s_0_3, -3, -1, 0},
59 : : { 2, s_0_4, -4, 4, 0},
60 : : { 2, s_0_5, -5, 1, 0}
61 : : };
62 : :
63 : : static const symbol s_1_1[1] = { 'U' };
64 : : static const symbol s_1_2[1] = { 'Y' };
65 : : static const symbol s_1_3[2] = { 0xC3, 0xA4 };
66 : : static const symbol s_1_4[2] = { 0xC3, 0xB6 };
67 : : static const symbol s_1_5[2] = { 0xC3, 0xBC };
68 : : static const struct among a_1[6] = {
69 : : { 0, 0, 0, 5, 0},
70 : : { 1, s_1_1, -1, 2, 0},
71 : : { 1, s_1_2, -2, 1, 0},
72 : : { 2, s_1_3, -3, 3, 0},
73 : : { 2, s_1_4, -4, 4, 0},
74 : : { 2, s_1_5, -5, 2, 0}
75 : : };
76 : :
77 : : static const symbol s_2_0[1] = { 'e' };
78 : : static const symbol s_2_1[2] = { 'e', 'm' };
79 : : static const symbol s_2_2[2] = { 'e', 'n' };
80 : : static const symbol s_2_3[7] = { 'e', 'r', 'i', 'n', 'n', 'e', 'n' };
81 : : static const symbol s_2_4[4] = { 'e', 'r', 'i', 'n' };
82 : : static const symbol s_2_5[2] = { 'l', 'n' };
83 : : static const symbol s_2_6[3] = { 'e', 'r', 'n' };
84 : : static const symbol s_2_7[2] = { 'e', 'r' };
85 : : static const symbol s_2_8[1] = { 's' };
86 : : static const symbol s_2_9[2] = { 'e', 's' };
87 : : static const symbol s_2_10[3] = { 'l', 'n', 's' };
88 : : static const struct among a_2[11] = {
89 : : { 1, s_2_0, 0, 3, 0},
90 : : { 2, s_2_1, 0, 1, 0},
91 : : { 2, s_2_2, 0, 3, 0},
92 : : { 7, s_2_3, -1, 2, 0},
93 : : { 4, s_2_4, 0, 2, 0},
94 : : { 2, s_2_5, 0, 5, 0},
95 : : { 3, s_2_6, 0, 2, 0},
96 : : { 2, s_2_7, 0, 2, 0},
97 : : { 1, s_2_8, 0, 4, 0},
98 : : { 2, s_2_9, -1, 3, 0},
99 : : { 3, s_2_10, -2, 5, 0}
100 : : };
101 : :
102 : : static const symbol s_3_0[4] = { 't', 'i', 'c', 'k' };
103 : : static const symbol s_3_1[4] = { 'p', 'l', 'a', 'n' };
104 : : static const symbol s_3_2[6] = { 'g', 'e', 'o', 'r', 'd', 'n' };
105 : : static const symbol s_3_3[6] = { 'i', 'n', 't', 'e', 'r', 'n' };
106 : : static const symbol s_3_4[2] = { 't', 'r' };
107 : : static const struct among a_3[5] = {
108 : : { 4, s_3_0, 0, -1, 0},
109 : : { 4, s_3_1, 0, -1, 0},
110 : : { 6, s_3_2, 0, -1, 0},
111 : : { 6, s_3_3, 0, -1, 0},
112 : : { 2, s_3_4, 0, -1, 0}
113 : : };
114 : :
115 : : static const symbol s_4_0[2] = { 'e', 'n' };
116 : : static const symbol s_4_1[2] = { 'e', 'r' };
117 : : static const symbol s_4_2[2] = { 'e', 't' };
118 : : static const symbol s_4_3[2] = { 's', 't' };
119 : : static const symbol s_4_4[3] = { 'e', 's', 't' };
120 : : static const struct among a_4[5] = {
121 : : { 2, s_4_0, 0, 1, 0},
122 : : { 2, s_4_1, 0, 1, 0},
123 : : { 2, s_4_2, 0, 3, 0},
124 : : { 2, s_4_3, 0, 2, 0},
125 : : { 3, s_4_4, -1, 1, 0}
126 : : };
127 : :
128 : : static const symbol s_5_0[2] = { 'i', 'g' };
129 : : static const symbol s_5_1[4] = { 'l', 'i', 'c', 'h' };
130 : : static const struct among a_5[2] = {
131 : : { 2, s_5_0, 0, 1, 0},
132 : : { 4, s_5_1, 0, 1, 0}
133 : : };
134 : :
135 : : static const symbol s_6_0[3] = { 'e', 'n', 'd' };
136 : : static const symbol s_6_1[2] = { 'i', 'g' };
137 : : static const symbol s_6_2[3] = { 'u', 'n', 'g' };
138 : : static const symbol s_6_3[4] = { 'l', 'i', 'c', 'h' };
139 : : static const symbol s_6_4[4] = { 'i', 's', 'c', 'h' };
140 : : static const symbol s_6_5[2] = { 'i', 'k' };
141 : : static const symbol s_6_6[4] = { 'h', 'e', 'i', 't' };
142 : : static const symbol s_6_7[4] = { 'k', 'e', 'i', 't' };
143 : : static const struct among a_6[8] = {
144 : : { 3, s_6_0, 0, 1, 0},
145 : : { 2, s_6_1, 0, 2, 0},
146 : : { 3, s_6_2, 0, 1, 0},
147 : : { 4, s_6_3, 0, 3, 0},
148 : : { 4, s_6_4, 0, 2, 0},
149 : : { 2, s_6_5, 0, 2, 0},
150 : : { 4, s_6_6, 0, 3, 0},
151 : : { 4, s_6_7, 0, 4, 0}
152 : : };
153 : :
154 : : static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32, 8 };
155 : :
156 : : static const unsigned char g_et_ending[] = { 1, 128, 198, 227, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
157 : :
158 : : static const unsigned char g_s_ending[] = { 117, 30, 5 };
159 : :
160 : : static const unsigned char g_st_ending[] = { 117, 30, 4 };
161 : :
162 : 0 : static int r_prelude(struct SN_env * z) {
163 : 0 : int among_var;
164 : : {
165 : 0 : int v_1 = z->c;
166 : 0 : while (1) {
167 : 0 : int v_2 = z->c;
168 : 0 : while (1) {
169 : 0 : int v_3 = z->c;
170 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 252, 0)) goto lab1;
171 : 0 : z->bra = z->c;
172 : 0 : do {
173 : 0 : int v_4 = z->c;
174 [ # # # # ]: 0 : if (z->c == z->l || z->p[z->c] != 'u') goto lab2;
175 : 0 : z->c++;
176 : 0 : z->ket = z->c;
177 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 252, 0)) goto lab2;
178 : : {
179 : 0 : int ret = slice_from_s(z, 1, s_0);
180 [ # # ]: 0 : if (ret < 0) return ret;
181 [ # # ]: 0 : }
182 : 0 : break;
183 : : lab2:
184 : 0 : z->c = v_4;
185 [ # # # # ]: 0 : if (z->c == z->l || z->p[z->c] != 'y') goto lab1;
186 : 0 : z->c++;
187 : 0 : z->ket = z->c;
188 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 252, 0)) goto lab1;
189 : : {
190 : 0 : int ret = slice_from_s(z, 1, s_1);
191 [ # # ]: 0 : if (ret < 0) return ret;
192 [ # # ]: 0 : }
193 [ # # # # ]: 0 : } while (0);
194 : 0 : z->c = v_3;
195 : 0 : break;
196 : : lab1:
197 : 0 : z->c = v_3;
198 : : {
199 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
200 [ # # ]: 0 : if (ret < 0) goto lab0;
201 : 0 : z->c = ret;
202 [ # # ]: 0 : }
203 [ # # # # ]: 0 : }
204 : 0 : continue;
205 : : lab0:
206 : 0 : z->c = v_2;
207 : 0 : break;
208 [ # # # ]: 0 : }
209 : 0 : z->c = v_1;
210 [ # # ]: 0 : }
211 : 0 : while (1) {
212 : 0 : int v_5 = z->c;
213 : 0 : z->bra = z->c;
214 : 0 : among_var = find_among(z, a_0, 6, 0);
215 : 0 : z->ket = z->c;
216 [ # # # # : 0 : switch (among_var) {
# # ]
217 : : case 1:
218 : : {
219 : 0 : int ret = slice_from_s(z, 2, s_2);
220 [ # # ]: 0 : if (ret < 0) return ret;
221 [ # # ]: 0 : }
222 : 0 : break;
223 : : case 2:
224 : : {
225 : 0 : int ret = slice_from_s(z, 2, s_3);
226 [ # # ]: 0 : if (ret < 0) return ret;
227 [ # # ]: 0 : }
228 : 0 : break;
229 : : case 3:
230 : : {
231 : 0 : int ret = slice_from_s(z, 2, s_4);
232 [ # # ]: 0 : if (ret < 0) return ret;
233 [ # # ]: 0 : }
234 : 0 : break;
235 : : case 4:
236 : : {
237 : 0 : int ret = slice_from_s(z, 2, s_5);
238 [ # # ]: 0 : if (ret < 0) return ret;
239 [ # # ]: 0 : }
240 : 0 : break;
241 : : case 5:
242 : : {
243 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
244 [ # # ]: 0 : if (ret < 0) goto lab3;
245 : 0 : z->c = ret;
246 [ # # # ]: 0 : }
247 : 0 : break;
248 : : }
249 : 0 : continue;
250 : : lab3:
251 : 0 : z->c = v_5;
252 : 0 : break;
253 [ # # # ]: 0 : }
254 : 0 : return 1;
255 : 0 : }
256 : :
257 : 0 : static int r_mark_regions(struct SN_env * z) {
258 : 0 : int i_x;
259 : 0 : ((SN_local *)z)->i_p1 = z->l;
260 : 0 : ((SN_local *)z)->i_p2 = z->l;
261 : : {
262 : 0 : int v_1 = z->c;
263 : : {
264 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 3);
265 [ # # ]: 0 : if (ret < 0) return 0;
266 : 0 : z->c = ret;
267 [ # # ]: 0 : }
268 : 0 : i_x = z->c;
269 : 0 : z->c = v_1;
270 [ # # ]: 0 : }
271 : : {
272 : 0 : int ret = out_grouping_U(z, g_v, 97, 252, 1);
273 [ # # ]: 0 : if (ret < 0) return 0;
274 : 0 : z->c += ret;
275 [ # # ]: 0 : }
276 : : {
277 : 0 : int ret = in_grouping_U(z, g_v, 97, 252, 1);
278 [ # # ]: 0 : if (ret < 0) return 0;
279 : 0 : z->c += ret;
280 [ # # ]: 0 : }
281 : 0 : ((SN_local *)z)->i_p1 = z->c;
282 [ # # ]: 0 : if (((SN_local *)z)->i_p1 >= i_x) goto lab0;
283 : 0 : ((SN_local *)z)->i_p1 = i_x;
284 : : lab0:
285 : : {
286 : 0 : int ret = out_grouping_U(z, g_v, 97, 252, 1);
287 [ # # ]: 0 : if (ret < 0) return 0;
288 : 0 : z->c += ret;
289 [ # # ]: 0 : }
290 : : {
291 : 0 : int ret = in_grouping_U(z, g_v, 97, 252, 1);
292 [ # # ]: 0 : if (ret < 0) return 0;
293 : 0 : z->c += ret;
294 [ # # ]: 0 : }
295 : 0 : ((SN_local *)z)->i_p2 = z->c;
296 : 0 : return 1;
297 : 0 : }
298 : :
299 : 0 : static int r_postlude(struct SN_env * z) {
300 : 0 : int among_var;
301 : 0 : while (1) {
302 : 0 : int v_1 = z->c;
303 : 0 : z->bra = z->c;
304 : 0 : among_var = find_among(z, a_1, 6, 0);
305 : 0 : z->ket = z->c;
306 [ # # # # : 0 : switch (among_var) {
# # ]
307 : : case 1:
308 : : {
309 : 0 : int ret = slice_from_s(z, 1, s_6);
310 [ # # ]: 0 : if (ret < 0) return ret;
311 [ # # ]: 0 : }
312 : 0 : break;
313 : : case 2:
314 : : {
315 : 0 : int ret = slice_from_s(z, 1, s_7);
316 [ # # ]: 0 : if (ret < 0) return ret;
317 [ # # ]: 0 : }
318 : 0 : break;
319 : : case 3:
320 : : {
321 : 0 : int ret = slice_from_s(z, 1, s_8);
322 [ # # ]: 0 : if (ret < 0) return ret;
323 [ # # ]: 0 : }
324 : 0 : break;
325 : : case 4:
326 : : {
327 : 0 : int ret = slice_from_s(z, 1, s_9);
328 [ # # ]: 0 : if (ret < 0) return ret;
329 [ # # ]: 0 : }
330 : 0 : break;
331 : : case 5:
332 : : {
333 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
334 [ # # ]: 0 : if (ret < 0) goto lab0;
335 : 0 : z->c = ret;
336 [ # # # ]: 0 : }
337 : 0 : break;
338 : : }
339 : 0 : continue;
340 : : lab0:
341 : 0 : z->c = v_1;
342 : 0 : break;
343 [ # # # ]: 0 : }
344 : 0 : return 1;
345 : 0 : }
346 : :
347 : 0 : static int r_R1(struct SN_env * z) {
348 : 0 : return ((SN_local *)z)->i_p1 <= z->c;
349 : : }
350 : :
351 : 0 : static int r_R2(struct SN_env * z) {
352 : 0 : return ((SN_local *)z)->i_p2 <= z->c;
353 : : }
354 : :
355 : 0 : static int r_standard_suffix(struct SN_env * z) {
356 : 0 : int among_var;
357 : : {
358 : 0 : int v_1 = z->l - z->c;
359 : 0 : z->ket = z->c;
360 [ # # # # : 0 : if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((811040 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab0;
# # ]
361 : 0 : among_var = find_among_b(z, a_2, 11, 0);
362 [ # # ]: 0 : if (!among_var) goto lab0;
363 : 0 : z->bra = z->c;
364 : : {
365 : 0 : int ret = r_R1(z);
366 [ # # ]: 0 : if (ret == 0) goto lab0;
367 [ # # ]: 0 : if (ret < 0) return ret;
368 [ # # # ]: 0 : }
369 [ # # # # : 0 : switch (among_var) {
# # ]
370 : : case 1:
371 : : {
372 : 0 : int v_2 = z->l - z->c;
373 [ # # ]: 0 : if (!(eq_s_b(z, 4, s_10))) goto lab1;
374 : 0 : goto lab0;
375 : : lab1:
376 : 0 : z->c = z->l - v_2;
377 [ # # ]: 0 : }
378 : : {
379 : 0 : int ret = slice_del(z);
380 [ # # ]: 0 : if (ret < 0) return ret;
381 [ # # ]: 0 : }
382 : 0 : break;
383 : : case 2:
384 : : {
385 : 0 : int ret = slice_del(z);
386 [ # # ]: 0 : if (ret < 0) return ret;
387 [ # # ]: 0 : }
388 : 0 : break;
389 : : case 3:
390 : : {
391 : 0 : int ret = slice_del(z);
392 [ # # ]: 0 : if (ret < 0) return ret;
393 [ # # ]: 0 : }
394 : : {
395 : 0 : int v_3 = z->l - z->c;
396 : 0 : z->ket = z->c;
397 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 's') { z->c = z->l - v_3; goto lab2; }
398 : 0 : z->c--;
399 : 0 : z->bra = z->c;
400 [ # # ]: 0 : if (!(eq_s_b(z, 3, s_11))) { z->c = z->l - v_3; goto lab2; }
401 : : {
402 : 0 : int ret = slice_del(z);
403 [ # # ]: 0 : if (ret < 0) return ret;
404 [ # # ]: 0 : }
405 : : lab2:
406 : : ;
407 [ # # ]: 0 : }
408 : 0 : break;
409 : : case 4:
410 [ # # ]: 0 : if (in_grouping_b_U(z, g_s_ending, 98, 116, 0)) goto lab0;
411 : : {
412 : 0 : int ret = slice_del(z);
413 [ # # ]: 0 : if (ret < 0) return ret;
414 [ # # ]: 0 : }
415 : 0 : break;
416 : : case 5:
417 : : {
418 : 0 : int ret = slice_from_s(z, 1, s_12);
419 [ # # ]: 0 : if (ret < 0) return ret;
420 [ # # ]: 0 : }
421 : 0 : break;
422 : 0 : }
423 : : lab0:
424 : 0 : z->c = z->l - v_1;
425 [ # # ]: 0 : }
426 : : {
427 : 0 : int v_4 = z->l - z->c;
428 : 0 : z->ket = z->c;
429 [ # # # # : 0 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1327104 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab3;
# # ]
430 : 0 : among_var = find_among_b(z, a_4, 5, 0);
431 [ # # ]: 0 : if (!among_var) goto lab3;
432 : 0 : z->bra = z->c;
433 : : {
434 : 0 : int ret = r_R1(z);
435 [ # # ]: 0 : if (ret == 0) goto lab3;
436 [ # # ]: 0 : if (ret < 0) return ret;
437 [ # # # ]: 0 : }
438 [ # # # # ]: 0 : switch (among_var) {
439 : : case 1:
440 : : {
441 : 0 : int ret = slice_del(z);
442 [ # # ]: 0 : if (ret < 0) return ret;
443 [ # # ]: 0 : }
444 : 0 : break;
445 : : case 2:
446 [ # # ]: 0 : if (in_grouping_b_U(z, g_st_ending, 98, 116, 0)) goto lab3;
447 : : {
448 : 0 : int ret = skip_b_utf8(z->p, z->c, z->lb, 3);
449 [ # # ]: 0 : if (ret < 0) goto lab3;
450 : 0 : z->c = ret;
451 [ # # ]: 0 : }
452 : : {
453 : 0 : int ret = slice_del(z);
454 [ # # ]: 0 : if (ret < 0) return ret;
455 [ # # ]: 0 : }
456 : 0 : break;
457 : : case 3:
458 : : {
459 : 0 : int v_5 = z->l - z->c;
460 [ # # ]: 0 : if (in_grouping_b_U(z, g_et_ending, 85, 228, 0)) goto lab3;
461 : 0 : z->c = z->l - v_5;
462 [ # # ]: 0 : }
463 : : {
464 : 0 : int v_6 = z->l - z->c;
465 [ # # # # : 0 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((280576 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab4;
# # ]
466 [ # # ]: 0 : if (!find_among_b(z, a_3, 5, 0)) goto lab4;
467 : 0 : goto lab3;
468 : : lab4:
469 : 0 : z->c = z->l - v_6;
470 [ # # ]: 0 : }
471 : : {
472 : 0 : int ret = slice_del(z);
473 [ # # ]: 0 : if (ret < 0) return ret;
474 [ # # ]: 0 : }
475 : 0 : break;
476 : 0 : }
477 : : lab3:
478 : 0 : z->c = z->l - v_4;
479 [ # # ]: 0 : }
480 : : {
481 : 0 : int v_7 = z->l - z->c;
482 : 0 : z->ket = z->c;
483 [ # # # # : 0 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1051024 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab5;
# # ]
484 : 0 : among_var = find_among_b(z, a_6, 8, 0);
485 [ # # ]: 0 : if (!among_var) goto lab5;
486 : 0 : z->bra = z->c;
487 : : {
488 : 0 : int ret = r_R2(z);
489 [ # # ]: 0 : if (ret == 0) goto lab5;
490 [ # # ]: 0 : if (ret < 0) return ret;
491 [ # # # ]: 0 : }
492 [ # # # # : 0 : switch (among_var) {
# ]
493 : : case 1:
494 : : {
495 : 0 : int ret = slice_del(z);
496 [ # # ]: 0 : if (ret < 0) return ret;
497 [ # # ]: 0 : }
498 : : {
499 : 0 : int v_8 = z->l - z->c;
500 : 0 : z->ket = z->c;
501 [ # # ]: 0 : if (!(eq_s_b(z, 2, s_13))) { z->c = z->l - v_8; goto lab6; }
502 : 0 : z->bra = z->c;
503 : : {
504 : 0 : int v_9 = z->l - z->c;
505 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'e') goto lab7;
506 : 0 : z->c--;
507 : 0 : { z->c = z->l - v_8; goto lab6; }
508 : : lab7:
509 : 0 : z->c = z->l - v_9;
510 [ # # # ]: 0 : }
511 : : {
512 : 0 : int ret = r_R2(z);
513 [ # # ]: 0 : if (ret == 0) { z->c = z->l - v_8; goto lab6; }
514 [ # # ]: 0 : if (ret < 0) return ret;
515 [ # # ]: 0 : }
516 : : {
517 : 0 : int ret = slice_del(z);
518 [ # # ]: 0 : if (ret < 0) return ret;
519 [ # # ]: 0 : }
520 : : lab6:
521 : : ;
522 [ # # ]: 0 : }
523 : 0 : break;
524 : : case 2:
525 : : {
526 : 0 : int v_10 = z->l - z->c;
527 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'e') goto lab8;
528 : 0 : z->c--;
529 : 0 : goto lab5;
530 : : lab8:
531 : 0 : z->c = z->l - v_10;
532 [ # # ]: 0 : }
533 : : {
534 : 0 : int ret = slice_del(z);
535 [ # # ]: 0 : if (ret < 0) return ret;
536 [ # # ]: 0 : }
537 : 0 : break;
538 : : case 3:
539 : : {
540 : 0 : int ret = slice_del(z);
541 [ # # ]: 0 : if (ret < 0) return ret;
542 [ # # ]: 0 : }
543 : : {
544 : 0 : int v_11 = z->l - z->c;
545 : 0 : z->ket = z->c;
546 : 0 : do {
547 : 0 : int v_12 = z->l - z->c;
548 [ # # ]: 0 : if (!(eq_s_b(z, 2, s_14))) goto lab10;
549 : 0 : break;
550 : : lab10:
551 : 0 : z->c = z->l - v_12;
552 [ # # ]: 0 : if (!(eq_s_b(z, 2, s_15))) { z->c = z->l - v_11; goto lab9; }
553 [ # # # # ]: 0 : } while (0);
554 : 0 : z->bra = z->c;
555 : : {
556 : 0 : int ret = r_R1(z);
557 [ # # ]: 0 : if (ret == 0) { z->c = z->l - v_11; goto lab9; }
558 [ # # ]: 0 : if (ret < 0) return ret;
559 [ # # ]: 0 : }
560 : : {
561 : 0 : int ret = slice_del(z);
562 [ # # ]: 0 : if (ret < 0) return ret;
563 [ # # ]: 0 : }
564 : : lab9:
565 : : ;
566 [ # # ]: 0 : }
567 : 0 : break;
568 : : case 4:
569 : : {
570 : 0 : int ret = slice_del(z);
571 [ # # ]: 0 : if (ret < 0) return ret;
572 [ # # ]: 0 : }
573 : : {
574 : 0 : int v_13 = z->l - z->c;
575 : 0 : z->ket = z->c;
576 [ # # # # : 0 : if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 103 && z->p[z->c - 1] != 104)) { z->c = z->l - v_13; goto lab11; }
# # ]
577 [ # # ]: 0 : if (!find_among_b(z, a_5, 2, 0)) { z->c = z->l - v_13; goto lab11; }
578 : 0 : z->bra = z->c;
579 : : {
580 : 0 : int ret = r_R2(z);
581 [ # # ]: 0 : if (ret == 0) { z->c = z->l - v_13; goto lab11; }
582 [ # # ]: 0 : if (ret < 0) return ret;
583 [ # # # ]: 0 : }
584 : : {
585 : 0 : int ret = slice_del(z);
586 [ # # ]: 0 : if (ret < 0) return ret;
587 [ # # ]: 0 : }
588 : : lab11:
589 : : ;
590 [ # # ]: 0 : }
591 : 0 : break;
592 : 0 : }
593 : : lab5:
594 : 0 : z->c = z->l - v_7;
595 [ # # ]: 0 : }
596 : 0 : return 1;
597 : 0 : }
598 : :
599 : 0 : extern int german_UTF_8_stem(struct SN_env * z) {
600 : : {
601 : 0 : int v_1 = z->c;
602 : : {
603 : 0 : int ret = r_prelude(z);
604 [ # # ]: 0 : if (ret < 0) return ret;
605 [ # # ]: 0 : }
606 : 0 : z->c = v_1;
607 [ # # ]: 0 : }
608 : : {
609 : 0 : int v_2 = z->c;
610 : : {
611 : 0 : int ret = r_mark_regions(z);
612 [ # # ]: 0 : if (ret < 0) return ret;
613 [ # # ]: 0 : }
614 : 0 : z->c = v_2;
615 [ # # ]: 0 : }
616 : 0 : z->lb = z->c; z->c = z->l;
617 : : {
618 : 0 : int ret = r_standard_suffix(z);
619 [ # # ]: 0 : if (ret < 0) return ret;
620 [ # # ]: 0 : }
621 : 0 : z->c = z->lb;
622 : : {
623 : 0 : int v_3 = z->c;
624 : : {
625 : 0 : int ret = r_postlude(z);
626 [ # # ]: 0 : if (ret < 0) return ret;
627 [ # # ]: 0 : }
628 : 0 : z->c = v_3;
629 [ # # ]: 0 : }
630 : 0 : return 1;
631 : 0 : }
632 : :
633 : 0 : extern struct SN_env * german_UTF_8_create_env(void) {
634 : 0 : struct SN_env * z = SN_new_env(sizeof(SN_local));
635 [ # # ]: 0 : if (z) {
636 : 0 : ((SN_local *)z)->i_p2 = 0;
637 : 0 : ((SN_local *)z)->i_p1 = 0;
638 : 0 : }
639 : 0 : return z;
640 : 0 : }
641 : :
642 : 0 : extern void german_UTF_8_close_env(struct SN_env * z) {
643 : 0 : SN_delete_env(z);
644 : 0 : }
645 : :
|