Age Owner Branch data TLA Line data Source code
1 : : /* Generated from romanian.sbl by Snowball 3.0.0 - https://snowballstem.org/ */
2 : :
3 : : #include "stem_UTF_8_romanian.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 : : int i_pV;
14 : : unsigned char b_standard_suffix_removed;
15 : : };
16 : :
17 : : typedef struct SN_local SN_local;
18 : :
19 : : #ifdef __cplusplus
20 : : extern "C" {
21 : : #endif
22 : : extern int romanian_UTF_8_stem(struct SN_env * z);
23 : : #ifdef __cplusplus
24 : : }
25 : : #endif
26 : :
27 : : static int r_vowel_suffix(struct SN_env * z);
28 : : static int r_verb_suffix(struct SN_env * z);
29 : : static int r_combo_suffix(struct SN_env * z);
30 : : static int r_standard_suffix(struct SN_env * z);
31 : : static int r_step_0(struct SN_env * z);
32 : : static int r_R2(struct SN_env * z);
33 : : static int r_R1(struct SN_env * z);
34 : : static int r_RV(struct SN_env * z);
35 : : static int r_mark_regions(struct SN_env * z);
36 : : static int r_postlude(struct SN_env * z);
37 : : static int r_prelude(struct SN_env * z);
38 : : static int r_norm(struct SN_env * z);
39 : :
40 : : static const symbol s_0[] = { 0xC8, 0x99 };
41 : : static const symbol s_1[] = { 0xC8, 0x9B };
42 : : static const symbol s_2[] = { 'U' };
43 : : static const symbol s_3[] = { 'I' };
44 : : static const symbol s_4[] = { 'i' };
45 : : static const symbol s_5[] = { 'u' };
46 : : static const symbol s_6[] = { 'a' };
47 : : static const symbol s_7[] = { 'e' };
48 : : static const symbol s_8[] = { 'i' };
49 : : static const symbol s_9[] = { 'a', 'b' };
50 : : static const symbol s_10[] = { 'i' };
51 : : static const symbol s_11[] = { 'a', 't' };
52 : : static const symbol s_12[] = { 'a', 0xC8, 0x9B, 'i' };
53 : : static const symbol s_13[] = { 'a', 'b', 'i', 'l' };
54 : : static const symbol s_14[] = { 'i', 'b', 'i', 'l' };
55 : : static const symbol s_15[] = { 'i', 'v' };
56 : : static const symbol s_16[] = { 'i', 'c' };
57 : : static const symbol s_17[] = { 'a', 't' };
58 : : static const symbol s_18[] = { 'i', 't' };
59 : : static const symbol s_19[] = { 0xC8, 0x9B };
60 : : static const symbol s_20[] = { 't' };
61 : : static const symbol s_21[] = { 'i', 's', 't' };
62 : :
63 : : static const symbol s_0_0[2] = { 0xC5, 0x9F };
64 : : static const symbol s_0_1[2] = { 0xC5, 0xA3 };
65 : : static const struct among a_0[2] = {
66 : : { 2, s_0_0, 0, 1, 0},
67 : : { 2, s_0_1, 0, 2, 0}
68 : : };
69 : :
70 : : static const symbol s_1_1[1] = { 'I' };
71 : : static const symbol s_1_2[1] = { 'U' };
72 : : static const struct among a_1[3] = {
73 : : { 0, 0, 0, 3, 0},
74 : : { 1, s_1_1, -1, 1, 0},
75 : : { 1, s_1_2, -2, 2, 0}
76 : : };
77 : :
78 : : static const symbol s_2_0[2] = { 'e', 'a' };
79 : : static const symbol s_2_1[5] = { 'a', 0xC8, 0x9B, 'i', 'a' };
80 : : static const symbol s_2_2[3] = { 'a', 'u', 'a' };
81 : : static const symbol s_2_3[3] = { 'i', 'u', 'a' };
82 : : static const symbol s_2_4[5] = { 'a', 0xC8, 0x9B, 'i', 'e' };
83 : : static const symbol s_2_5[3] = { 'e', 'l', 'e' };
84 : : static const symbol s_2_6[3] = { 'i', 'l', 'e' };
85 : : static const symbol s_2_7[4] = { 'i', 'i', 'l', 'e' };
86 : : static const symbol s_2_8[3] = { 'i', 'e', 'i' };
87 : : static const symbol s_2_9[4] = { 'a', 't', 'e', 'i' };
88 : : static const symbol s_2_10[2] = { 'i', 'i' };
89 : : static const symbol s_2_11[4] = { 'u', 'l', 'u', 'i' };
90 : : static const symbol s_2_12[2] = { 'u', 'l' };
91 : : static const symbol s_2_13[4] = { 'e', 'l', 'o', 'r' };
92 : : static const symbol s_2_14[4] = { 'i', 'l', 'o', 'r' };
93 : : static const symbol s_2_15[5] = { 'i', 'i', 'l', 'o', 'r' };
94 : : static const struct among a_2[16] = {
95 : : { 2, s_2_0, 0, 3, 0},
96 : : { 5, s_2_1, 0, 7, 0},
97 : : { 3, s_2_2, 0, 2, 0},
98 : : { 3, s_2_3, 0, 4, 0},
99 : : { 5, s_2_4, 0, 7, 0},
100 : : { 3, s_2_5, 0, 3, 0},
101 : : { 3, s_2_6, 0, 5, 0},
102 : : { 4, s_2_7, -1, 4, 0},
103 : : { 3, s_2_8, 0, 4, 0},
104 : : { 4, s_2_9, 0, 6, 0},
105 : : { 2, s_2_10, 0, 4, 0},
106 : : { 4, s_2_11, 0, 1, 0},
107 : : { 2, s_2_12, 0, 1, 0},
108 : : { 4, s_2_13, 0, 3, 0},
109 : : { 4, s_2_14, 0, 4, 0},
110 : : { 5, s_2_15, -1, 4, 0}
111 : : };
112 : :
113 : : static const symbol s_3_0[5] = { 'i', 'c', 'a', 'l', 'a' };
114 : : static const symbol s_3_1[5] = { 'i', 'c', 'i', 'v', 'a' };
115 : : static const symbol s_3_2[5] = { 'a', 't', 'i', 'v', 'a' };
116 : : static const symbol s_3_3[5] = { 'i', 't', 'i', 'v', 'a' };
117 : : static const symbol s_3_4[5] = { 'i', 'c', 'a', 'l', 'e' };
118 : : static const symbol s_3_5[7] = { 'a', 0xC8, 0x9B, 'i', 'u', 'n', 'e' };
119 : : static const symbol s_3_6[7] = { 'i', 0xC8, 0x9B, 'i', 'u', 'n', 'e' };
120 : : static const symbol s_3_7[6] = { 'a', 't', 'o', 'a', 'r', 'e' };
121 : : static const symbol s_3_8[6] = { 'i', 't', 'o', 'a', 'r', 'e' };
122 : : static const symbol s_3_9[7] = { 0xC4, 0x83, 't', 'o', 'a', 'r', 'e' };
123 : : static const symbol s_3_10[7] = { 'i', 'c', 'i', 't', 'a', 't', 'e' };
124 : : static const symbol s_3_11[9] = { 'a', 'b', 'i', 'l', 'i', 't', 'a', 't', 'e' };
125 : : static const symbol s_3_12[9] = { 'i', 'b', 'i', 'l', 'i', 't', 'a', 't', 'e' };
126 : : static const symbol s_3_13[7] = { 'i', 'v', 'i', 't', 'a', 't', 'e' };
127 : : static const symbol s_3_14[5] = { 'i', 'c', 'i', 'v', 'e' };
128 : : static const symbol s_3_15[5] = { 'a', 't', 'i', 'v', 'e' };
129 : : static const symbol s_3_16[5] = { 'i', 't', 'i', 'v', 'e' };
130 : : static const symbol s_3_17[5] = { 'i', 'c', 'a', 'l', 'i' };
131 : : static const symbol s_3_18[5] = { 'a', 't', 'o', 'r', 'i' };
132 : : static const symbol s_3_19[7] = { 'i', 'c', 'a', 't', 'o', 'r', 'i' };
133 : : static const symbol s_3_20[5] = { 'i', 't', 'o', 'r', 'i' };
134 : : static const symbol s_3_21[6] = { 0xC4, 0x83, 't', 'o', 'r', 'i' };
135 : : static const symbol s_3_22[7] = { 'i', 'c', 'i', 't', 'a', 't', 'i' };
136 : : static const symbol s_3_23[9] = { 'a', 'b', 'i', 'l', 'i', 't', 'a', 't', 'i' };
137 : : static const symbol s_3_24[7] = { 'i', 'v', 'i', 't', 'a', 't', 'i' };
138 : : static const symbol s_3_25[5] = { 'i', 'c', 'i', 'v', 'i' };
139 : : static const symbol s_3_26[5] = { 'a', 't', 'i', 'v', 'i' };
140 : : static const symbol s_3_27[5] = { 'i', 't', 'i', 'v', 'i' };
141 : : static const symbol s_3_28[7] = { 'i', 'c', 'i', 't', 0xC4, 0x83, 'i' };
142 : : static const symbol s_3_29[9] = { 'a', 'b', 'i', 'l', 'i', 't', 0xC4, 0x83, 'i' };
143 : : static const symbol s_3_30[7] = { 'i', 'v', 'i', 't', 0xC4, 0x83, 'i' };
144 : : static const symbol s_3_31[9] = { 'i', 'c', 'i', 't', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
145 : : static const symbol s_3_32[11] = { 'a', 'b', 'i', 'l', 'i', 't', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
146 : : static const symbol s_3_33[9] = { 'i', 'v', 'i', 't', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
147 : : static const symbol s_3_34[4] = { 'i', 'c', 'a', 'l' };
148 : : static const symbol s_3_35[4] = { 'a', 't', 'o', 'r' };
149 : : static const symbol s_3_36[6] = { 'i', 'c', 'a', 't', 'o', 'r' };
150 : : static const symbol s_3_37[4] = { 'i', 't', 'o', 'r' };
151 : : static const symbol s_3_38[5] = { 0xC4, 0x83, 't', 'o', 'r' };
152 : : static const symbol s_3_39[4] = { 'i', 'c', 'i', 'v' };
153 : : static const symbol s_3_40[4] = { 'a', 't', 'i', 'v' };
154 : : static const symbol s_3_41[4] = { 'i', 't', 'i', 'v' };
155 : : static const symbol s_3_42[6] = { 'i', 'c', 'a', 'l', 0xC4, 0x83 };
156 : : static const symbol s_3_43[6] = { 'i', 'c', 'i', 'v', 0xC4, 0x83 };
157 : : static const symbol s_3_44[6] = { 'a', 't', 'i', 'v', 0xC4, 0x83 };
158 : : static const symbol s_3_45[6] = { 'i', 't', 'i', 'v', 0xC4, 0x83 };
159 : : static const struct among a_3[46] = {
160 : : { 5, s_3_0, 0, 4, 0},
161 : : { 5, s_3_1, 0, 4, 0},
162 : : { 5, s_3_2, 0, 5, 0},
163 : : { 5, s_3_3, 0, 6, 0},
164 : : { 5, s_3_4, 0, 4, 0},
165 : : { 7, s_3_5, 0, 5, 0},
166 : : { 7, s_3_6, 0, 6, 0},
167 : : { 6, s_3_7, 0, 5, 0},
168 : : { 6, s_3_8, 0, 6, 0},
169 : : { 7, s_3_9, 0, 5, 0},
170 : : { 7, s_3_10, 0, 4, 0},
171 : : { 9, s_3_11, 0, 1, 0},
172 : : { 9, s_3_12, 0, 2, 0},
173 : : { 7, s_3_13, 0, 3, 0},
174 : : { 5, s_3_14, 0, 4, 0},
175 : : { 5, s_3_15, 0, 5, 0},
176 : : { 5, s_3_16, 0, 6, 0},
177 : : { 5, s_3_17, 0, 4, 0},
178 : : { 5, s_3_18, 0, 5, 0},
179 : : { 7, s_3_19, -1, 4, 0},
180 : : { 5, s_3_20, 0, 6, 0},
181 : : { 6, s_3_21, 0, 5, 0},
182 : : { 7, s_3_22, 0, 4, 0},
183 : : { 9, s_3_23, 0, 1, 0},
184 : : { 7, s_3_24, 0, 3, 0},
185 : : { 5, s_3_25, 0, 4, 0},
186 : : { 5, s_3_26, 0, 5, 0},
187 : : { 5, s_3_27, 0, 6, 0},
188 : : { 7, s_3_28, 0, 4, 0},
189 : : { 9, s_3_29, 0, 1, 0},
190 : : { 7, s_3_30, 0, 3, 0},
191 : : { 9, s_3_31, 0, 4, 0},
192 : : { 11, s_3_32, 0, 1, 0},
193 : : { 9, s_3_33, 0, 3, 0},
194 : : { 4, s_3_34, 0, 4, 0},
195 : : { 4, s_3_35, 0, 5, 0},
196 : : { 6, s_3_36, -1, 4, 0},
197 : : { 4, s_3_37, 0, 6, 0},
198 : : { 5, s_3_38, 0, 5, 0},
199 : : { 4, s_3_39, 0, 4, 0},
200 : : { 4, s_3_40, 0, 5, 0},
201 : : { 4, s_3_41, 0, 6, 0},
202 : : { 6, s_3_42, 0, 4, 0},
203 : : { 6, s_3_43, 0, 4, 0},
204 : : { 6, s_3_44, 0, 5, 0},
205 : : { 6, s_3_45, 0, 6, 0}
206 : : };
207 : :
208 : : static const symbol s_4_0[3] = { 'i', 'c', 'a' };
209 : : static const symbol s_4_1[5] = { 'a', 'b', 'i', 'l', 'a' };
210 : : static const symbol s_4_2[5] = { 'i', 'b', 'i', 'l', 'a' };
211 : : static const symbol s_4_3[4] = { 'o', 'a', 's', 'a' };
212 : : static const symbol s_4_4[3] = { 'a', 't', 'a' };
213 : : static const symbol s_4_5[3] = { 'i', 't', 'a' };
214 : : static const symbol s_4_6[4] = { 'a', 'n', 't', 'a' };
215 : : static const symbol s_4_7[4] = { 'i', 's', 't', 'a' };
216 : : static const symbol s_4_8[3] = { 'u', 't', 'a' };
217 : : static const symbol s_4_9[3] = { 'i', 'v', 'a' };
218 : : static const symbol s_4_10[2] = { 'i', 'c' };
219 : : static const symbol s_4_11[3] = { 'i', 'c', 'e' };
220 : : static const symbol s_4_12[5] = { 'a', 'b', 'i', 'l', 'e' };
221 : : static const symbol s_4_13[5] = { 'i', 'b', 'i', 'l', 'e' };
222 : : static const symbol s_4_14[4] = { 'i', 's', 'm', 'e' };
223 : : static const symbol s_4_15[4] = { 'i', 'u', 'n', 'e' };
224 : : static const symbol s_4_16[4] = { 'o', 'a', 's', 'e' };
225 : : static const symbol s_4_17[3] = { 'a', 't', 'e' };
226 : : static const symbol s_4_18[5] = { 'i', 't', 'a', 't', 'e' };
227 : : static const symbol s_4_19[3] = { 'i', 't', 'e' };
228 : : static const symbol s_4_20[4] = { 'a', 'n', 't', 'e' };
229 : : static const symbol s_4_21[4] = { 'i', 's', 't', 'e' };
230 : : static const symbol s_4_22[3] = { 'u', 't', 'e' };
231 : : static const symbol s_4_23[3] = { 'i', 'v', 'e' };
232 : : static const symbol s_4_24[3] = { 'i', 'c', 'i' };
233 : : static const symbol s_4_25[5] = { 'a', 'b', 'i', 'l', 'i' };
234 : : static const symbol s_4_26[5] = { 'i', 'b', 'i', 'l', 'i' };
235 : : static const symbol s_4_27[4] = { 'i', 'u', 'n', 'i' };
236 : : static const symbol s_4_28[5] = { 'a', 't', 'o', 'r', 'i' };
237 : : static const symbol s_4_29[3] = { 'o', 's', 'i' };
238 : : static const symbol s_4_30[3] = { 'a', 't', 'i' };
239 : : static const symbol s_4_31[5] = { 'i', 't', 'a', 't', 'i' };
240 : : static const symbol s_4_32[3] = { 'i', 't', 'i' };
241 : : static const symbol s_4_33[4] = { 'a', 'n', 't', 'i' };
242 : : static const symbol s_4_34[4] = { 'i', 's', 't', 'i' };
243 : : static const symbol s_4_35[3] = { 'u', 't', 'i' };
244 : : static const symbol s_4_36[5] = { 'i', 0xC8, 0x99, 't', 'i' };
245 : : static const symbol s_4_37[3] = { 'i', 'v', 'i' };
246 : : static const symbol s_4_38[5] = { 'i', 't', 0xC4, 0x83, 'i' };
247 : : static const symbol s_4_39[4] = { 'o', 0xC8, 0x99, 'i' };
248 : : static const symbol s_4_40[7] = { 'i', 't', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
249 : : static const symbol s_4_41[4] = { 'a', 'b', 'i', 'l' };
250 : : static const symbol s_4_42[4] = { 'i', 'b', 'i', 'l' };
251 : : static const symbol s_4_43[3] = { 'i', 's', 'm' };
252 : : static const symbol s_4_44[4] = { 'a', 't', 'o', 'r' };
253 : : static const symbol s_4_45[2] = { 'o', 's' };
254 : : static const symbol s_4_46[2] = { 'a', 't' };
255 : : static const symbol s_4_47[2] = { 'i', 't' };
256 : : static const symbol s_4_48[3] = { 'a', 'n', 't' };
257 : : static const symbol s_4_49[3] = { 'i', 's', 't' };
258 : : static const symbol s_4_50[2] = { 'u', 't' };
259 : : static const symbol s_4_51[2] = { 'i', 'v' };
260 : : static const symbol s_4_52[4] = { 'i', 'c', 0xC4, 0x83 };
261 : : static const symbol s_4_53[6] = { 'a', 'b', 'i', 'l', 0xC4, 0x83 };
262 : : static const symbol s_4_54[6] = { 'i', 'b', 'i', 'l', 0xC4, 0x83 };
263 : : static const symbol s_4_55[5] = { 'o', 'a', 's', 0xC4, 0x83 };
264 : : static const symbol s_4_56[4] = { 'a', 't', 0xC4, 0x83 };
265 : : static const symbol s_4_57[4] = { 'i', 't', 0xC4, 0x83 };
266 : : static const symbol s_4_58[5] = { 'a', 'n', 't', 0xC4, 0x83 };
267 : : static const symbol s_4_59[5] = { 'i', 's', 't', 0xC4, 0x83 };
268 : : static const symbol s_4_60[4] = { 'u', 't', 0xC4, 0x83 };
269 : : static const symbol s_4_61[4] = { 'i', 'v', 0xC4, 0x83 };
270 : : static const struct among a_4[62] = {
271 : : { 3, s_4_0, 0, 1, 0},
272 : : { 5, s_4_1, 0, 1, 0},
273 : : { 5, s_4_2, 0, 1, 0},
274 : : { 4, s_4_3, 0, 1, 0},
275 : : { 3, s_4_4, 0, 1, 0},
276 : : { 3, s_4_5, 0, 1, 0},
277 : : { 4, s_4_6, 0, 1, 0},
278 : : { 4, s_4_7, 0, 3, 0},
279 : : { 3, s_4_8, 0, 1, 0},
280 : : { 3, s_4_9, 0, 1, 0},
281 : : { 2, s_4_10, 0, 1, 0},
282 : : { 3, s_4_11, 0, 1, 0},
283 : : { 5, s_4_12, 0, 1, 0},
284 : : { 5, s_4_13, 0, 1, 0},
285 : : { 4, s_4_14, 0, 3, 0},
286 : : { 4, s_4_15, 0, 2, 0},
287 : : { 4, s_4_16, 0, 1, 0},
288 : : { 3, s_4_17, 0, 1, 0},
289 : : { 5, s_4_18, -1, 1, 0},
290 : : { 3, s_4_19, 0, 1, 0},
291 : : { 4, s_4_20, 0, 1, 0},
292 : : { 4, s_4_21, 0, 3, 0},
293 : : { 3, s_4_22, 0, 1, 0},
294 : : { 3, s_4_23, 0, 1, 0},
295 : : { 3, s_4_24, 0, 1, 0},
296 : : { 5, s_4_25, 0, 1, 0},
297 : : { 5, s_4_26, 0, 1, 0},
298 : : { 4, s_4_27, 0, 2, 0},
299 : : { 5, s_4_28, 0, 1, 0},
300 : : { 3, s_4_29, 0, 1, 0},
301 : : { 3, s_4_30, 0, 1, 0},
302 : : { 5, s_4_31, -1, 1, 0},
303 : : { 3, s_4_32, 0, 1, 0},
304 : : { 4, s_4_33, 0, 1, 0},
305 : : { 4, s_4_34, 0, 3, 0},
306 : : { 3, s_4_35, 0, 1, 0},
307 : : { 5, s_4_36, 0, 3, 0},
308 : : { 3, s_4_37, 0, 1, 0},
309 : : { 5, s_4_38, 0, 1, 0},
310 : : { 4, s_4_39, 0, 1, 0},
311 : : { 7, s_4_40, 0, 1, 0},
312 : : { 4, s_4_41, 0, 1, 0},
313 : : { 4, s_4_42, 0, 1, 0},
314 : : { 3, s_4_43, 0, 3, 0},
315 : : { 4, s_4_44, 0, 1, 0},
316 : : { 2, s_4_45, 0, 1, 0},
317 : : { 2, s_4_46, 0, 1, 0},
318 : : { 2, s_4_47, 0, 1, 0},
319 : : { 3, s_4_48, 0, 1, 0},
320 : : { 3, s_4_49, 0, 3, 0},
321 : : { 2, s_4_50, 0, 1, 0},
322 : : { 2, s_4_51, 0, 1, 0},
323 : : { 4, s_4_52, 0, 1, 0},
324 : : { 6, s_4_53, 0, 1, 0},
325 : : { 6, s_4_54, 0, 1, 0},
326 : : { 5, s_4_55, 0, 1, 0},
327 : : { 4, s_4_56, 0, 1, 0},
328 : : { 4, s_4_57, 0, 1, 0},
329 : : { 5, s_4_58, 0, 1, 0},
330 : : { 5, s_4_59, 0, 3, 0},
331 : : { 4, s_4_60, 0, 1, 0},
332 : : { 4, s_4_61, 0, 1, 0}
333 : : };
334 : :
335 : : static const symbol s_5_0[2] = { 'e', 'a' };
336 : : static const symbol s_5_1[2] = { 'i', 'a' };
337 : : static const symbol s_5_2[3] = { 'e', 's', 'c' };
338 : : static const symbol s_5_3[4] = { 0xC4, 0x83, 's', 'c' };
339 : : static const symbol s_5_4[3] = { 'i', 'n', 'd' };
340 : : static const symbol s_5_5[4] = { 0xC3, 0xA2, 'n', 'd' };
341 : : static const symbol s_5_6[3] = { 'a', 'r', 'e' };
342 : : static const symbol s_5_7[3] = { 'e', 'r', 'e' };
343 : : static const symbol s_5_8[3] = { 'i', 'r', 'e' };
344 : : static const symbol s_5_9[4] = { 0xC3, 0xA2, 'r', 'e' };
345 : : static const symbol s_5_10[2] = { 's', 'e' };
346 : : static const symbol s_5_11[3] = { 'a', 's', 'e' };
347 : : static const symbol s_5_12[4] = { 's', 'e', 's', 'e' };
348 : : static const symbol s_5_13[3] = { 'i', 's', 'e' };
349 : : static const symbol s_5_14[3] = { 'u', 's', 'e' };
350 : : static const symbol s_5_15[4] = { 0xC3, 0xA2, 's', 'e' };
351 : : static const symbol s_5_16[5] = { 'e', 0xC8, 0x99, 't', 'e' };
352 : : static const symbol s_5_17[6] = { 0xC4, 0x83, 0xC8, 0x99, 't', 'e' };
353 : : static const symbol s_5_18[3] = { 'e', 'z', 'e' };
354 : : static const symbol s_5_19[2] = { 'a', 'i' };
355 : : static const symbol s_5_20[3] = { 'e', 'a', 'i' };
356 : : static const symbol s_5_21[3] = { 'i', 'a', 'i' };
357 : : static const symbol s_5_22[3] = { 's', 'e', 'i' };
358 : : static const symbol s_5_23[5] = { 'e', 0xC8, 0x99, 't', 'i' };
359 : : static const symbol s_5_24[6] = { 0xC4, 0x83, 0xC8, 0x99, 't', 'i' };
360 : : static const symbol s_5_25[2] = { 'u', 'i' };
361 : : static const symbol s_5_26[3] = { 'e', 'z', 'i' };
362 : : static const symbol s_5_27[4] = { 'a', 0xC8, 0x99, 'i' };
363 : : static const symbol s_5_28[5] = { 's', 'e', 0xC8, 0x99, 'i' };
364 : : static const symbol s_5_29[6] = { 'a', 's', 'e', 0xC8, 0x99, 'i' };
365 : : static const symbol s_5_30[7] = { 's', 'e', 's', 'e', 0xC8, 0x99, 'i' };
366 : : static const symbol s_5_31[6] = { 'i', 's', 'e', 0xC8, 0x99, 'i' };
367 : : static const symbol s_5_32[6] = { 'u', 's', 'e', 0xC8, 0x99, 'i' };
368 : : static const symbol s_5_33[7] = { 0xC3, 0xA2, 's', 'e', 0xC8, 0x99, 'i' };
369 : : static const symbol s_5_34[4] = { 'i', 0xC8, 0x99, 'i' };
370 : : static const symbol s_5_35[4] = { 'u', 0xC8, 0x99, 'i' };
371 : : static const symbol s_5_36[5] = { 0xC3, 0xA2, 0xC8, 0x99, 'i' };
372 : : static const symbol s_5_37[4] = { 'a', 0xC8, 0x9B, 'i' };
373 : : static const symbol s_5_38[5] = { 'e', 'a', 0xC8, 0x9B, 'i' };
374 : : static const symbol s_5_39[5] = { 'i', 'a', 0xC8, 0x9B, 'i' };
375 : : static const symbol s_5_40[4] = { 'e', 0xC8, 0x9B, 'i' };
376 : : static const symbol s_5_41[4] = { 'i', 0xC8, 0x9B, 'i' };
377 : : static const symbol s_5_42[7] = { 'a', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
378 : : static const symbol s_5_43[8] = { 's', 'e', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
379 : : static const symbol s_5_44[9] = { 'a', 's', 'e', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
380 : : static const symbol s_5_45[10] = { 's', 'e', 's', 'e', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
381 : : static const symbol s_5_46[9] = { 'i', 's', 'e', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
382 : : static const symbol s_5_47[9] = { 'u', 's', 'e', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
383 : : static const symbol s_5_48[10] = { 0xC3, 0xA2, 's', 'e', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
384 : : static const symbol s_5_49[7] = { 'i', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
385 : : static const symbol s_5_50[7] = { 'u', 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
386 : : static const symbol s_5_51[8] = { 0xC3, 0xA2, 'r', 0xC4, 0x83, 0xC8, 0x9B, 'i' };
387 : : static const symbol s_5_52[5] = { 0xC3, 0xA2, 0xC8, 0x9B, 'i' };
388 : : static const symbol s_5_53[3] = { 0xC3, 0xA2, 'i' };
389 : : static const symbol s_5_54[2] = { 'a', 'm' };
390 : : static const symbol s_5_55[3] = { 'e', 'a', 'm' };
391 : : static const symbol s_5_56[3] = { 'i', 'a', 'm' };
392 : : static const symbol s_5_57[2] = { 'e', 'm' };
393 : : static const symbol s_5_58[4] = { 'a', 's', 'e', 'm' };
394 : : static const symbol s_5_59[5] = { 's', 'e', 's', 'e', 'm' };
395 : : static const symbol s_5_60[4] = { 'i', 's', 'e', 'm' };
396 : : static const symbol s_5_61[4] = { 'u', 's', 'e', 'm' };
397 : : static const symbol s_5_62[5] = { 0xC3, 0xA2, 's', 'e', 'm' };
398 : : static const symbol s_5_63[2] = { 'i', 'm' };
399 : : static const symbol s_5_64[3] = { 0xC4, 0x83, 'm' };
400 : : static const symbol s_5_65[5] = { 'a', 'r', 0xC4, 0x83, 'm' };
401 : : static const symbol s_5_66[6] = { 's', 'e', 'r', 0xC4, 0x83, 'm' };
402 : : static const symbol s_5_67[7] = { 'a', 's', 'e', 'r', 0xC4, 0x83, 'm' };
403 : : static const symbol s_5_68[8] = { 's', 'e', 's', 'e', 'r', 0xC4, 0x83, 'm' };
404 : : static const symbol s_5_69[7] = { 'i', 's', 'e', 'r', 0xC4, 0x83, 'm' };
405 : : static const symbol s_5_70[7] = { 'u', 's', 'e', 'r', 0xC4, 0x83, 'm' };
406 : : static const symbol s_5_71[8] = { 0xC3, 0xA2, 's', 'e', 'r', 0xC4, 0x83, 'm' };
407 : : static const symbol s_5_72[5] = { 'i', 'r', 0xC4, 0x83, 'm' };
408 : : static const symbol s_5_73[5] = { 'u', 'r', 0xC4, 0x83, 'm' };
409 : : static const symbol s_5_74[6] = { 0xC3, 0xA2, 'r', 0xC4, 0x83, 'm' };
410 : : static const symbol s_5_75[3] = { 0xC3, 0xA2, 'm' };
411 : : static const symbol s_5_76[2] = { 'a', 'u' };
412 : : static const symbol s_5_77[3] = { 'e', 'a', 'u' };
413 : : static const symbol s_5_78[3] = { 'i', 'a', 'u' };
414 : : static const symbol s_5_79[4] = { 'i', 'n', 'd', 'u' };
415 : : static const symbol s_5_80[5] = { 0xC3, 0xA2, 'n', 'd', 'u' };
416 : : static const symbol s_5_81[2] = { 'e', 'z' };
417 : : static const symbol s_5_82[6] = { 'e', 'a', 's', 'c', 0xC4, 0x83 };
418 : : static const symbol s_5_83[4] = { 'a', 'r', 0xC4, 0x83 };
419 : : static const symbol s_5_84[5] = { 's', 'e', 'r', 0xC4, 0x83 };
420 : : static const symbol s_5_85[6] = { 'a', 's', 'e', 'r', 0xC4, 0x83 };
421 : : static const symbol s_5_86[7] = { 's', 'e', 's', 'e', 'r', 0xC4, 0x83 };
422 : : static const symbol s_5_87[6] = { 'i', 's', 'e', 'r', 0xC4, 0x83 };
423 : : static const symbol s_5_88[6] = { 'u', 's', 'e', 'r', 0xC4, 0x83 };
424 : : static const symbol s_5_89[7] = { 0xC3, 0xA2, 's', 'e', 'r', 0xC4, 0x83 };
425 : : static const symbol s_5_90[4] = { 'i', 'r', 0xC4, 0x83 };
426 : : static const symbol s_5_91[4] = { 'u', 'r', 0xC4, 0x83 };
427 : : static const symbol s_5_92[5] = { 0xC3, 0xA2, 'r', 0xC4, 0x83 };
428 : : static const symbol s_5_93[5] = { 'e', 'a', 'z', 0xC4, 0x83 };
429 : : static const struct among a_5[94] = {
430 : : { 2, s_5_0, 0, 1, 0},
431 : : { 2, s_5_1, 0, 1, 0},
432 : : { 3, s_5_2, 0, 1, 0},
433 : : { 4, s_5_3, 0, 1, 0},
434 : : { 3, s_5_4, 0, 1, 0},
435 : : { 4, s_5_5, 0, 1, 0},
436 : : { 3, s_5_6, 0, 1, 0},
437 : : { 3, s_5_7, 0, 1, 0},
438 : : { 3, s_5_8, 0, 1, 0},
439 : : { 4, s_5_9, 0, 1, 0},
440 : : { 2, s_5_10, 0, 2, 0},
441 : : { 3, s_5_11, -1, 1, 0},
442 : : { 4, s_5_12, -2, 2, 0},
443 : : { 3, s_5_13, -3, 1, 0},
444 : : { 3, s_5_14, -4, 1, 0},
445 : : { 4, s_5_15, -5, 1, 0},
446 : : { 5, s_5_16, 0, 1, 0},
447 : : { 6, s_5_17, 0, 1, 0},
448 : : { 3, s_5_18, 0, 1, 0},
449 : : { 2, s_5_19, 0, 1, 0},
450 : : { 3, s_5_20, -1, 1, 0},
451 : : { 3, s_5_21, -2, 1, 0},
452 : : { 3, s_5_22, 0, 2, 0},
453 : : { 5, s_5_23, 0, 1, 0},
454 : : { 6, s_5_24, 0, 1, 0},
455 : : { 2, s_5_25, 0, 1, 0},
456 : : { 3, s_5_26, 0, 1, 0},
457 : : { 4, s_5_27, 0, 1, 0},
458 : : { 5, s_5_28, 0, 2, 0},
459 : : { 6, s_5_29, -1, 1, 0},
460 : : { 7, s_5_30, -2, 2, 0},
461 : : { 6, s_5_31, -3, 1, 0},
462 : : { 6, s_5_32, -4, 1, 0},
463 : : { 7, s_5_33, -5, 1, 0},
464 : : { 4, s_5_34, 0, 1, 0},
465 : : { 4, s_5_35, 0, 1, 0},
466 : : { 5, s_5_36, 0, 1, 0},
467 : : { 4, s_5_37, 0, 2, 0},
468 : : { 5, s_5_38, -1, 1, 0},
469 : : { 5, s_5_39, -2, 1, 0},
470 : : { 4, s_5_40, 0, 2, 0},
471 : : { 4, s_5_41, 0, 2, 0},
472 : : { 7, s_5_42, 0, 1, 0},
473 : : { 8, s_5_43, 0, 2, 0},
474 : : { 9, s_5_44, -1, 1, 0},
475 : : { 10, s_5_45, -2, 2, 0},
476 : : { 9, s_5_46, -3, 1, 0},
477 : : { 9, s_5_47, -4, 1, 0},
478 : : { 10, s_5_48, -5, 1, 0},
479 : : { 7, s_5_49, 0, 1, 0},
480 : : { 7, s_5_50, 0, 1, 0},
481 : : { 8, s_5_51, 0, 1, 0},
482 : : { 5, s_5_52, 0, 2, 0},
483 : : { 3, s_5_53, 0, 1, 0},
484 : : { 2, s_5_54, 0, 1, 0},
485 : : { 3, s_5_55, -1, 1, 0},
486 : : { 3, s_5_56, -2, 1, 0},
487 : : { 2, s_5_57, 0, 2, 0},
488 : : { 4, s_5_58, -1, 1, 0},
489 : : { 5, s_5_59, -2, 2, 0},
490 : : { 4, s_5_60, -3, 1, 0},
491 : : { 4, s_5_61, -4, 1, 0},
492 : : { 5, s_5_62, -5, 1, 0},
493 : : { 2, s_5_63, 0, 2, 0},
494 : : { 3, s_5_64, 0, 2, 0},
495 : : { 5, s_5_65, -1, 1, 0},
496 : : { 6, s_5_66, -2, 2, 0},
497 : : { 7, s_5_67, -1, 1, 0},
498 : : { 8, s_5_68, -2, 2, 0},
499 : : { 7, s_5_69, -3, 1, 0},
500 : : { 7, s_5_70, -4, 1, 0},
501 : : { 8, s_5_71, -5, 1, 0},
502 : : { 5, s_5_72, -8, 1, 0},
503 : : { 5, s_5_73, -9, 1, 0},
504 : : { 6, s_5_74, -10, 1, 0},
505 : : { 3, s_5_75, 0, 2, 0},
506 : : { 2, s_5_76, 0, 1, 0},
507 : : { 3, s_5_77, -1, 1, 0},
508 : : { 3, s_5_78, -2, 1, 0},
509 : : { 4, s_5_79, 0, 1, 0},
510 : : { 5, s_5_80, 0, 1, 0},
511 : : { 2, s_5_81, 0, 1, 0},
512 : : { 6, s_5_82, 0, 1, 0},
513 : : { 4, s_5_83, 0, 1, 0},
514 : : { 5, s_5_84, 0, 2, 0},
515 : : { 6, s_5_85, -1, 1, 0},
516 : : { 7, s_5_86, -2, 2, 0},
517 : : { 6, s_5_87, -3, 1, 0},
518 : : { 6, s_5_88, -4, 1, 0},
519 : : { 7, s_5_89, -5, 1, 0},
520 : : { 4, s_5_90, 0, 1, 0},
521 : : { 4, s_5_91, 0, 1, 0},
522 : : { 5, s_5_92, 0, 1, 0},
523 : : { 5, s_5_93, 0, 1, 0}
524 : : };
525 : :
526 : : static const symbol s_6_0[1] = { 'a' };
527 : : static const symbol s_6_1[1] = { 'e' };
528 : : static const symbol s_6_2[2] = { 'i', 'e' };
529 : : static const symbol s_6_3[1] = { 'i' };
530 : : static const symbol s_6_4[2] = { 0xC4, 0x83 };
531 : : static const struct among a_6[5] = {
532 : : { 1, s_6_0, 0, 1, 0},
533 : : { 1, s_6_1, 0, 1, 0},
534 : : { 2, s_6_2, -1, 1, 0},
535 : : { 1, s_6_3, 0, 1, 0},
536 : : { 2, s_6_4, 0, 1, 0}
537 : : };
538 : :
539 : : static const unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 32, 0, 0, 4 };
540 : :
390 tgl@sss.pgh.pa.us 541 :UBC 0 : static int r_norm(struct SN_env * z) {
542 : : int among_var;
543 : : {
69 tgl@sss.pgh.pa.us 544 :UNC 0 : int v_1 = z->c;
545 : 0 : while (1) {
546 : 0 : int v_2 = z->c;
547 : 0 : while (1) {
548 : 0 : int v_3 = z->c;
390 tgl@sss.pgh.pa.us 549 :UBC 0 : z->bra = z->c;
550 [ # # # # : 0 : if (z->c + 1 >= z->l || (z->p[z->c + 1] != 159 && z->p[z->c + 1] != 163)) goto lab2;
# # ]
69 tgl@sss.pgh.pa.us 551 :UNC 0 : among_var = find_among(z, a_0, 2, 0);
390 tgl@sss.pgh.pa.us 552 [ # # ]:UBC 0 : if (!among_var) goto lab2;
553 : 0 : z->ket = z->c;
554 [ # # # ]: 0 : switch (among_var) {
555 : 0 : case 1:
556 : : {
69 tgl@sss.pgh.pa.us 557 :UNC 0 : int ret = slice_from_s(z, 2, s_0);
390 tgl@sss.pgh.pa.us 558 [ # # ]:UBC 0 : if (ret < 0) return ret;
559 : : }
560 : 0 : break;
561 : 0 : case 2:
562 : : {
69 tgl@sss.pgh.pa.us 563 :UNC 0 : int ret = slice_from_s(z, 2, s_1);
390 tgl@sss.pgh.pa.us 564 [ # # ]:UBC 0 : if (ret < 0) return ret;
565 : : }
566 : 0 : break;
567 : : }
69 tgl@sss.pgh.pa.us 568 :UNC 0 : z->c = v_3;
390 tgl@sss.pgh.pa.us 569 :UBC 0 : break;
570 : 0 : lab2:
69 tgl@sss.pgh.pa.us 571 :UNC 0 : z->c = v_3;
572 : : {
573 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
390 tgl@sss.pgh.pa.us 574 [ # # ]:UBC 0 : if (ret < 0) goto lab1;
575 : 0 : z->c = ret;
576 : : }
577 : : }
578 : 0 : continue;
579 : 0 : lab1:
69 tgl@sss.pgh.pa.us 580 :UNC 0 : z->c = v_2;
390 tgl@sss.pgh.pa.us 581 :UBC 0 : break;
582 : : }
69 tgl@sss.pgh.pa.us 583 :UNC 0 : z->c = v_1;
584 : : }
390 tgl@sss.pgh.pa.us 585 :UBC 0 : return 1;
586 : : }
587 : :
1850 peter@eisentraut.org 588 : 0 : static int r_prelude(struct SN_env * z) {
69 tgl@sss.pgh.pa.us 589 :UNC 0 : while (1) {
590 : 0 : int v_1 = z->c;
591 : 0 : while (1) {
592 : 0 : int v_2 = z->c;
1850 peter@eisentraut.org 593 [ # # ]:UBC 0 : if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab1;
594 : 0 : z->bra = z->c;
595 : : do {
69 tgl@sss.pgh.pa.us 596 :UNC 0 : int v_3 = z->c;
597 [ # # # # ]: 0 : if (z->c == z->l || z->p[z->c] != 'u') goto lab2;
2729 tgl@sss.pgh.pa.us 598 :UBC 0 : z->c++;
1850 peter@eisentraut.org 599 : 0 : z->ket = z->c;
69 tgl@sss.pgh.pa.us 600 [ # # ]:UNC 0 : if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab2;
601 : : {
602 : 0 : int ret = slice_from_s(z, 1, s_2);
6781 tgl@sss.pgh.pa.us 603 [ # # ]:UBC 0 : if (ret < 0) return ret;
604 : : }
69 tgl@sss.pgh.pa.us 605 :UNC 0 : break;
606 : 0 : lab2:
607 : 0 : z->c = v_3;
1850 peter@eisentraut.org 608 [ # # # # ]:UBC 0 : if (z->c == z->l || z->p[z->c] != 'i') goto lab1;
2729 tgl@sss.pgh.pa.us 609 : 0 : z->c++;
1850 peter@eisentraut.org 610 : 0 : z->ket = z->c;
611 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab1;
612 : : {
69 tgl@sss.pgh.pa.us 613 :UNC 0 : int ret = slice_from_s(z, 1, s_3);
6781 tgl@sss.pgh.pa.us 614 [ # # ]:UBC 0 : if (ret < 0) return ret;
615 : : }
616 : : } while (0);
69 tgl@sss.pgh.pa.us 617 :UNC 0 : z->c = v_2;
6781 tgl@sss.pgh.pa.us 618 :UBC 0 : break;
619 : 0 : lab1:
69 tgl@sss.pgh.pa.us 620 :UNC 0 : z->c = v_2;
621 : : {
622 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
6781 tgl@sss.pgh.pa.us 623 [ # # ]:UBC 0 : if (ret < 0) goto lab0;
1850 peter@eisentraut.org 624 : 0 : z->c = ret;
625 : : }
626 : : }
6781 tgl@sss.pgh.pa.us 627 : 0 : continue;
628 : 0 : lab0:
69 tgl@sss.pgh.pa.us 629 :UNC 0 : z->c = v_1;
6781 tgl@sss.pgh.pa.us 630 :UBC 0 : break;
631 : : }
632 : 0 : return 1;
633 : : }
634 : :
1850 peter@eisentraut.org 635 : 0 : static int r_mark_regions(struct SN_env * z) {
69 tgl@sss.pgh.pa.us 636 :UNC 0 : ((SN_local *)z)->i_pV = z->l;
637 : 0 : ((SN_local *)z)->i_p1 = z->l;
638 : 0 : ((SN_local *)z)->i_p2 = z->l;
639 : : {
640 : 0 : int v_1 = z->c;
641 : : do {
642 : 0 : int v_2 = z->c;
643 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab1;
644 : : do {
645 : 0 : int v_3 = z->c;
646 [ # # ]: 0 : if (out_grouping_U(z, g_v, 97, 259, 0)) goto lab2;
647 : : {
6781 tgl@sss.pgh.pa.us 648 :UBC 0 : int ret = out_grouping_U(z, g_v, 97, 259, 1);
69 tgl@sss.pgh.pa.us 649 [ # # ]:UNC 0 : if (ret < 0) goto lab2;
6781 tgl@sss.pgh.pa.us 650 :UBC 0 : z->c += ret;
651 : : }
69 tgl@sss.pgh.pa.us 652 :UNC 0 : break;
653 : 0 : lab2:
654 : 0 : z->c = v_3;
655 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab1;
656 : : {
6781 tgl@sss.pgh.pa.us 657 :UBC 0 : int ret = in_grouping_U(z, g_v, 97, 259, 1);
69 tgl@sss.pgh.pa.us 658 [ # # ]:UNC 0 : if (ret < 0) goto lab1;
6781 tgl@sss.pgh.pa.us 659 :UBC 0 : z->c += ret;
660 : : }
661 : : } while (0);
69 tgl@sss.pgh.pa.us 662 :UNC 0 : break;
663 : 0 : lab1:
664 : 0 : z->c = v_2;
1850 peter@eisentraut.org 665 [ # # ]:UBC 0 : if (out_grouping_U(z, g_v, 97, 259, 0)) goto lab0;
666 : : do {
69 tgl@sss.pgh.pa.us 667 :UNC 0 : int v_4 = z->c;
668 [ # # ]: 0 : if (out_grouping_U(z, g_v, 97, 259, 0)) goto lab3;
669 : : {
6781 tgl@sss.pgh.pa.us 670 :UBC 0 : int ret = out_grouping_U(z, g_v, 97, 259, 1);
69 tgl@sss.pgh.pa.us 671 [ # # ]:UNC 0 : if (ret < 0) goto lab3;
6781 tgl@sss.pgh.pa.us 672 :UBC 0 : z->c += ret;
673 : : }
69 tgl@sss.pgh.pa.us 674 :UNC 0 : break;
675 : 0 : lab3:
676 : 0 : z->c = v_4;
1850 peter@eisentraut.org 677 [ # # ]:UBC 0 : if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab0;
678 : : {
69 tgl@sss.pgh.pa.us 679 :UNC 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
6781 tgl@sss.pgh.pa.us 680 [ # # ]:UBC 0 : if (ret < 0) goto lab0;
1850 peter@eisentraut.org 681 : 0 : z->c = ret;
682 : : }
683 : : } while (0);
684 : : } while (0);
69 tgl@sss.pgh.pa.us 685 :UNC 0 : ((SN_local *)z)->i_pV = z->c;
6781 tgl@sss.pgh.pa.us 686 :UBC 0 : lab0:
69 tgl@sss.pgh.pa.us 687 :UNC 0 : z->c = v_1;
688 : : }
689 : : {
690 : 0 : int v_5 = z->c;
691 : : {
6781 tgl@sss.pgh.pa.us 692 :UBC 0 : int ret = out_grouping_U(z, g_v, 97, 259, 1);
69 tgl@sss.pgh.pa.us 693 [ # # ]:UNC 0 : if (ret < 0) goto lab4;
6781 tgl@sss.pgh.pa.us 694 :UBC 0 : z->c += ret;
695 : : }
696 : : {
697 : 0 : int ret = in_grouping_U(z, g_v, 97, 259, 1);
69 tgl@sss.pgh.pa.us 698 [ # # ]:UNC 0 : if (ret < 0) goto lab4;
6781 tgl@sss.pgh.pa.us 699 :UBC 0 : z->c += ret;
700 : : }
69 tgl@sss.pgh.pa.us 701 :UNC 0 : ((SN_local *)z)->i_p1 = z->c;
702 : : {
6781 tgl@sss.pgh.pa.us 703 :UBC 0 : int ret = out_grouping_U(z, g_v, 97, 259, 1);
69 tgl@sss.pgh.pa.us 704 [ # # ]:UNC 0 : if (ret < 0) goto lab4;
6781 tgl@sss.pgh.pa.us 705 :UBC 0 : z->c += ret;
706 : : }
707 : : {
708 : 0 : int ret = in_grouping_U(z, g_v, 97, 259, 1);
69 tgl@sss.pgh.pa.us 709 [ # # ]:UNC 0 : if (ret < 0) goto lab4;
6781 tgl@sss.pgh.pa.us 710 :UBC 0 : z->c += ret;
711 : : }
69 tgl@sss.pgh.pa.us 712 :UNC 0 : ((SN_local *)z)->i_p2 = z->c;
713 : 0 : lab4:
714 : 0 : z->c = v_5;
715 : : }
6781 tgl@sss.pgh.pa.us 716 :UBC 0 : return 1;
717 : : }
718 : :
1850 peter@eisentraut.org 719 : 0 : static int r_postlude(struct SN_env * z) {
720 : : int among_var;
69 tgl@sss.pgh.pa.us 721 :UNC 0 : while (1) {
722 : 0 : int v_1 = z->c;
1850 peter@eisentraut.org 723 :UBC 0 : z->bra = z->c;
724 [ # # # # : 0 : if (z->c >= z->l || (z->p[z->c + 0] != 73 && z->p[z->c + 0] != 85)) among_var = 3; else
# # ]
69 tgl@sss.pgh.pa.us 725 :UNC 0 : among_var = find_among(z, a_1, 3, 0);
1850 peter@eisentraut.org 726 :UBC 0 : z->ket = z->c;
727 [ # # # # ]: 0 : switch (among_var) {
6781 tgl@sss.pgh.pa.us 728 : 0 : case 1:
729 : : {
69 tgl@sss.pgh.pa.us 730 :UNC 0 : int ret = slice_from_s(z, 1, s_4);
6781 tgl@sss.pgh.pa.us 731 [ # # ]:UBC 0 : if (ret < 0) return ret;
732 : : }
733 : 0 : break;
734 : 0 : case 2:
735 : : {
69 tgl@sss.pgh.pa.us 736 :UNC 0 : int ret = slice_from_s(z, 1, s_5);
6781 tgl@sss.pgh.pa.us 737 [ # # ]:UBC 0 : if (ret < 0) return ret;
738 : : }
739 : 0 : break;
740 : 0 : case 3:
741 : : {
69 tgl@sss.pgh.pa.us 742 :UNC 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
6781 tgl@sss.pgh.pa.us 743 [ # # ]:UBC 0 : if (ret < 0) goto lab0;
1850 peter@eisentraut.org 744 : 0 : z->c = ret;
745 : : }
6781 tgl@sss.pgh.pa.us 746 : 0 : break;
747 : : }
748 : 0 : continue;
749 : 0 : lab0:
69 tgl@sss.pgh.pa.us 750 :UNC 0 : z->c = v_1;
6781 tgl@sss.pgh.pa.us 751 :UBC 0 : break;
752 : : }
753 : 0 : return 1;
754 : : }
755 : :
1850 peter@eisentraut.org 756 : 0 : static int r_RV(struct SN_env * z) {
69 tgl@sss.pgh.pa.us 757 :UNC 0 : return ((SN_local *)z)->i_pV <= z->c;
758 : : }
759 : :
1850 peter@eisentraut.org 760 :UBC 0 : static int r_R1(struct SN_env * z) {
69 tgl@sss.pgh.pa.us 761 :UNC 0 : return ((SN_local *)z)->i_p1 <= z->c;
762 : : }
763 : :
1850 peter@eisentraut.org 764 :UBC 0 : static int r_R2(struct SN_env * z) {
69 tgl@sss.pgh.pa.us 765 :UNC 0 : return ((SN_local *)z)->i_p2 <= z->c;
766 : : }
767 : :
1850 peter@eisentraut.org 768 :UBC 0 : static int r_step_0(struct SN_env * z) {
769 : : int among_var;
770 : 0 : z->ket = z->c;
771 [ # # # # : 0 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((266786 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
# # ]
69 tgl@sss.pgh.pa.us 772 :UNC 0 : among_var = find_among_b(z, a_2, 16, 0);
390 tgl@sss.pgh.pa.us 773 [ # # ]:UBC 0 : if (!among_var) return 0;
1850 peter@eisentraut.org 774 : 0 : z->bra = z->c;
775 : : {
69 tgl@sss.pgh.pa.us 776 :UNC 0 : int ret = r_R1(z);
2729 tgl@sss.pgh.pa.us 777 [ # # ]:UBC 0 : if (ret <= 0) return ret;
778 : : }
1850 peter@eisentraut.org 779 [ # # # # : 0 : switch (among_var) {
# # # # ]
6781 tgl@sss.pgh.pa.us 780 : 0 : case 1:
781 : : {
69 tgl@sss.pgh.pa.us 782 :UNC 0 : int ret = slice_del(z);
6781 tgl@sss.pgh.pa.us 783 [ # # ]:UBC 0 : if (ret < 0) return ret;
784 : : }
785 : 0 : break;
786 : 0 : case 2:
787 : : {
69 tgl@sss.pgh.pa.us 788 :UNC 0 : int ret = slice_from_s(z, 1, s_6);
6781 tgl@sss.pgh.pa.us 789 [ # # ]:UBC 0 : if (ret < 0) return ret;
790 : : }
791 : 0 : break;
792 : 0 : case 3:
793 : : {
69 tgl@sss.pgh.pa.us 794 :UNC 0 : int ret = slice_from_s(z, 1, s_7);
6781 tgl@sss.pgh.pa.us 795 [ # # ]:UBC 0 : if (ret < 0) return ret;
796 : : }
797 : 0 : break;
798 : 0 : case 4:
799 : : {
69 tgl@sss.pgh.pa.us 800 :UNC 0 : int ret = slice_from_s(z, 1, s_8);
6781 tgl@sss.pgh.pa.us 801 [ # # ]:UBC 0 : if (ret < 0) return ret;
802 : : }
803 : 0 : break;
804 : 0 : case 5:
805 : : {
69 tgl@sss.pgh.pa.us 806 :UNC 0 : int v_1 = z->l - z->c;
390 tgl@sss.pgh.pa.us 807 [ # # ]:UBC 0 : if (!(eq_s_b(z, 2, s_9))) goto lab0;
6781 808 : 0 : return 0;
809 : 0 : lab0:
69 tgl@sss.pgh.pa.us 810 :UNC 0 : z->c = z->l - v_1;
811 : : }
812 : : {
813 : 0 : int ret = slice_from_s(z, 1, s_10);
6781 tgl@sss.pgh.pa.us 814 [ # # ]:UBC 0 : if (ret < 0) return ret;
815 : : }
816 : 0 : break;
817 : 0 : case 6:
818 : : {
69 tgl@sss.pgh.pa.us 819 :UNC 0 : int ret = slice_from_s(z, 2, s_11);
6781 tgl@sss.pgh.pa.us 820 [ # # ]:UBC 0 : if (ret < 0) return ret;
821 : : }
822 : 0 : break;
823 : 0 : case 7:
824 : : {
69 tgl@sss.pgh.pa.us 825 :UNC 0 : int ret = slice_from_s(z, 4, s_12);
6781 tgl@sss.pgh.pa.us 826 [ # # ]:UBC 0 : if (ret < 0) return ret;
827 : : }
828 : 0 : break;
829 : : }
830 : 0 : return 1;
831 : : }
832 : :
1850 peter@eisentraut.org 833 : 0 : static int r_combo_suffix(struct SN_env * z) {
834 : : int among_var;
835 : : {
69 tgl@sss.pgh.pa.us 836 :UNC 0 : int v_1 = z->l - z->c;
1850 peter@eisentraut.org 837 :UBC 0 : z->ket = z->c;
69 tgl@sss.pgh.pa.us 838 :UNC 0 : among_var = find_among_b(z, a_3, 46, 0);
390 tgl@sss.pgh.pa.us 839 [ # # ]:UBC 0 : if (!among_var) return 0;
1850 peter@eisentraut.org 840 : 0 : z->bra = z->c;
841 : : {
69 tgl@sss.pgh.pa.us 842 :UNC 0 : int ret = r_R1(z);
2729 tgl@sss.pgh.pa.us 843 [ # # ]:UBC 0 : if (ret <= 0) return ret;
844 : : }
1850 peter@eisentraut.org 845 [ # # # # : 0 : switch (among_var) {
# # # ]
6781 tgl@sss.pgh.pa.us 846 : 0 : case 1:
847 : : {
69 tgl@sss.pgh.pa.us 848 :UNC 0 : int ret = slice_from_s(z, 4, s_13);
6781 tgl@sss.pgh.pa.us 849 [ # # ]:UBC 0 : if (ret < 0) return ret;
850 : : }
851 : 0 : break;
852 : 0 : case 2:
853 : : {
69 tgl@sss.pgh.pa.us 854 :UNC 0 : int ret = slice_from_s(z, 4, s_14);
6781 tgl@sss.pgh.pa.us 855 [ # # ]:UBC 0 : if (ret < 0) return ret;
856 : : }
857 : 0 : break;
858 : 0 : case 3:
859 : : {
69 tgl@sss.pgh.pa.us 860 :UNC 0 : int ret = slice_from_s(z, 2, s_15);
6781 tgl@sss.pgh.pa.us 861 [ # # ]:UBC 0 : if (ret < 0) return ret;
862 : : }
863 : 0 : break;
864 : 0 : case 4:
865 : : {
69 tgl@sss.pgh.pa.us 866 :UNC 0 : int ret = slice_from_s(z, 2, s_16);
6781 tgl@sss.pgh.pa.us 867 [ # # ]:UBC 0 : if (ret < 0) return ret;
868 : : }
869 : 0 : break;
870 : 0 : case 5:
871 : : {
69 tgl@sss.pgh.pa.us 872 :UNC 0 : int ret = slice_from_s(z, 2, s_17);
6781 tgl@sss.pgh.pa.us 873 [ # # ]:UBC 0 : if (ret < 0) return ret;
874 : : }
875 : 0 : break;
876 : 0 : case 6:
877 : : {
69 tgl@sss.pgh.pa.us 878 :UNC 0 : int ret = slice_from_s(z, 2, s_18);
6781 tgl@sss.pgh.pa.us 879 [ # # ]:UBC 0 : if (ret < 0) return ret;
880 : : }
881 : 0 : break;
882 : : }
69 tgl@sss.pgh.pa.us 883 :UNC 0 : ((SN_local *)z)->b_standard_suffix_removed = 1;
884 : 0 : z->c = z->l - v_1;
885 : : }
6781 tgl@sss.pgh.pa.us 886 :UBC 0 : return 1;
887 : : }
888 : :
1850 peter@eisentraut.org 889 : 0 : static int r_standard_suffix(struct SN_env * z) {
890 : : int among_var;
69 tgl@sss.pgh.pa.us 891 :UNC 0 : ((SN_local *)z)->b_standard_suffix_removed = 0;
892 : 0 : while (1) {
893 : 0 : int v_1 = z->l - z->c;
894 : : {
895 : 0 : int ret = r_combo_suffix(z);
2729 tgl@sss.pgh.pa.us 896 [ # # ]:UBC 0 : if (ret == 0) goto lab0;
6781 897 [ # # ]: 0 : if (ret < 0) return ret;
898 : : }
899 : 0 : continue;
900 : 0 : lab0:
69 tgl@sss.pgh.pa.us 901 :UNC 0 : z->c = z->l - v_1;
6781 tgl@sss.pgh.pa.us 902 :UBC 0 : break;
903 : : }
1850 peter@eisentraut.org 904 : 0 : z->ket = z->c;
69 tgl@sss.pgh.pa.us 905 :UNC 0 : among_var = find_among_b(z, a_4, 62, 0);
390 tgl@sss.pgh.pa.us 906 [ # # ]:UBC 0 : if (!among_var) return 0;
1850 peter@eisentraut.org 907 : 0 : z->bra = z->c;
908 : : {
69 tgl@sss.pgh.pa.us 909 :UNC 0 : int ret = r_R2(z);
2729 tgl@sss.pgh.pa.us 910 [ # # ]:UBC 0 : if (ret <= 0) return ret;
911 : : }
1850 peter@eisentraut.org 912 [ # # # # ]: 0 : switch (among_var) {
6781 tgl@sss.pgh.pa.us 913 : 0 : case 1:
914 : : {
69 tgl@sss.pgh.pa.us 915 :UNC 0 : int ret = slice_del(z);
6781 tgl@sss.pgh.pa.us 916 [ # # ]:UBC 0 : if (ret < 0) return ret;
917 : : }
918 : 0 : break;
919 : 0 : case 2:
390 920 [ # # ]: 0 : if (!(eq_s_b(z, 2, s_19))) return 0;
1850 peter@eisentraut.org 921 : 0 : z->bra = z->c;
922 : : {
69 tgl@sss.pgh.pa.us 923 :UNC 0 : int ret = slice_from_s(z, 1, s_20);
6781 tgl@sss.pgh.pa.us 924 [ # # ]:UBC 0 : if (ret < 0) return ret;
925 : : }
926 : 0 : break;
927 : 0 : case 3:
928 : : {
69 tgl@sss.pgh.pa.us 929 :UNC 0 : int ret = slice_from_s(z, 3, s_21);
6781 tgl@sss.pgh.pa.us 930 [ # # ]:UBC 0 : if (ret < 0) return ret;
931 : : }
932 : 0 : break;
933 : : }
69 tgl@sss.pgh.pa.us 934 :UNC 0 : ((SN_local *)z)->b_standard_suffix_removed = 1;
6781 tgl@sss.pgh.pa.us 935 :UBC 0 : return 1;
936 : : }
937 : :
1850 peter@eisentraut.org 938 : 0 : static int r_verb_suffix(struct SN_env * z) {
939 : : int among_var;
940 : : {
941 : : int v_1;
69 tgl@sss.pgh.pa.us 942 [ # # ]:UNC 0 : if (z->c < ((SN_local *)z)->i_pV) return 0;
943 : 0 : v_1 = z->lb; z->lb = ((SN_local *)z)->i_pV;
1850 peter@eisentraut.org 944 :UBC 0 : z->ket = z->c;
69 tgl@sss.pgh.pa.us 945 :UNC 0 : among_var = find_among_b(z, a_5, 94, 0);
946 [ # # ]: 0 : if (!among_var) { z->lb = v_1; return 0; }
1850 peter@eisentraut.org 947 :UBC 0 : z->bra = z->c;
948 [ # # # ]: 0 : switch (among_var) {
6781 tgl@sss.pgh.pa.us 949 : 0 : case 1:
950 : : do {
69 tgl@sss.pgh.pa.us 951 :UNC 0 : int v_2 = z->l - z->c;
952 [ # # ]: 0 : if (out_grouping_b_U(z, g_v, 97, 259, 0)) goto lab0;
953 : 0 : break;
954 : 0 : lab0:
955 : 0 : z->c = z->l - v_2;
956 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'u') { z->lb = v_1; return 0; }
2729 tgl@sss.pgh.pa.us 957 :UBC 0 : z->c--;
958 : : } while (0);
959 : : {
69 tgl@sss.pgh.pa.us 960 :UNC 0 : int ret = slice_del(z);
6781 tgl@sss.pgh.pa.us 961 [ # # ]:UBC 0 : if (ret < 0) return ret;
962 : : }
963 : 0 : break;
964 : 0 : case 2:
965 : : {
69 tgl@sss.pgh.pa.us 966 :UNC 0 : int ret = slice_del(z);
6781 tgl@sss.pgh.pa.us 967 [ # # ]:UBC 0 : if (ret < 0) return ret;
968 : : }
969 : 0 : break;
970 : : }
69 tgl@sss.pgh.pa.us 971 :UNC 0 : z->lb = v_1;
972 : : }
6781 tgl@sss.pgh.pa.us 973 :UBC 0 : return 1;
974 : : }
975 : :
1850 peter@eisentraut.org 976 : 0 : static int r_vowel_suffix(struct SN_env * z) {
977 : 0 : z->ket = z->c;
69 tgl@sss.pgh.pa.us 978 [ # # ]:UNC 0 : if (!find_among_b(z, a_6, 5, 0)) return 0;
1850 peter@eisentraut.org 979 :UBC 0 : z->bra = z->c;
980 : : {
69 tgl@sss.pgh.pa.us 981 :UNC 0 : int ret = r_RV(z);
2729 tgl@sss.pgh.pa.us 982 [ # # ]:UBC 0 : if (ret <= 0) return ret;
983 : : }
984 : : {
69 tgl@sss.pgh.pa.us 985 :UNC 0 : int ret = slice_del(z);
2729 tgl@sss.pgh.pa.us 986 [ # # ]:UBC 0 : if (ret < 0) return ret;
987 : : }
6781 988 : 0 : return 1;
989 : : }
990 : :
1850 peter@eisentraut.org 991 : 0 : extern int romanian_UTF_8_stem(struct SN_env * z) {
992 : : {
69 tgl@sss.pgh.pa.us 993 :UNC 0 : int ret = r_norm(z);
390 tgl@sss.pgh.pa.us 994 [ # # ]:UBC 0 : if (ret < 0) return ret;
995 : : }
996 : : {
69 tgl@sss.pgh.pa.us 997 :UNC 0 : int v_1 = z->c;
998 : : {
999 : 0 : int ret = r_prelude(z);
6781 tgl@sss.pgh.pa.us 1000 [ # # ]:UBC 0 : if (ret < 0) return ret;
1001 : : }
69 tgl@sss.pgh.pa.us 1002 :UNC 0 : z->c = v_1;
1003 : : }
1004 : : {
1005 : 0 : int ret = r_mark_regions(z);
2729 tgl@sss.pgh.pa.us 1006 [ # # ]:UBC 0 : if (ret < 0) return ret;
1007 : : }
1850 peter@eisentraut.org 1008 : 0 : z->lb = z->c; z->c = z->l;
1009 : : {
69 tgl@sss.pgh.pa.us 1010 :UNC 0 : int v_2 = z->l - z->c;
1011 : : {
1012 : 0 : int ret = r_step_0(z);
6781 tgl@sss.pgh.pa.us 1013 [ # # ]:UBC 0 : if (ret < 0) return ret;
1014 : : }
69 tgl@sss.pgh.pa.us 1015 :UNC 0 : z->c = z->l - v_2;
1016 : : }
1017 : : {
1018 : 0 : int v_3 = z->l - z->c;
1019 : : {
1020 : 0 : int ret = r_standard_suffix(z);
6781 tgl@sss.pgh.pa.us 1021 [ # # ]:UBC 0 : if (ret < 0) return ret;
1022 : : }
69 tgl@sss.pgh.pa.us 1023 :UNC 0 : z->c = z->l - v_3;
1024 : : }
1025 : : {
1026 : 0 : int v_4 = z->l - z->c;
1027 : : do {
1028 : 0 : int v_5 = z->l - z->c;
1029 [ # # ]: 0 : if (!((SN_local *)z)->b_standard_suffix_removed) goto lab1;
1030 : 0 : break;
1031 : 0 : lab1:
1032 : 0 : z->c = z->l - v_5;
1033 : : {
1034 : 0 : int ret = r_verb_suffix(z);
2106 peter@eisentraut.org 1035 [ # # ]:UBC 0 : if (ret == 0) goto lab0;
6781 tgl@sss.pgh.pa.us 1036 [ # # ]: 0 : if (ret < 0) return ret;
1037 : : }
1038 : : } while (0);
2106 peter@eisentraut.org 1039 : 0 : lab0:
69 tgl@sss.pgh.pa.us 1040 :UNC 0 : z->c = z->l - v_4;
1041 : : }
1042 : : {
1043 : 0 : int v_6 = z->l - z->c;
1044 : : {
1045 : 0 : int ret = r_vowel_suffix(z);
6781 tgl@sss.pgh.pa.us 1046 [ # # ]:UBC 0 : if (ret < 0) return ret;
1047 : : }
69 tgl@sss.pgh.pa.us 1048 :UNC 0 : z->c = z->l - v_6;
1049 : : }
6781 tgl@sss.pgh.pa.us 1050 :UBC 0 : z->c = z->lb;
1051 : : {
69 tgl@sss.pgh.pa.us 1052 :UNC 0 : int v_7 = z->c;
1053 : : {
1054 : 0 : int ret = r_postlude(z);
6781 tgl@sss.pgh.pa.us 1055 [ # # ]:UBC 0 : if (ret < 0) return ret;
1056 : : }
69 tgl@sss.pgh.pa.us 1057 :UNC 0 : z->c = v_7;
1058 : : }
6781 tgl@sss.pgh.pa.us 1059 :UBC 0 : return 1;
1060 : : }
1061 : :
69 tgl@sss.pgh.pa.us 1062 :UNC 0 : extern struct SN_env * romanian_UTF_8_create_env(void) {
1063 : 0 : struct SN_env * z = SN_new_env(sizeof(SN_local));
1064 [ # # ]: 0 : if (z) {
1065 : 0 : ((SN_local *)z)->b_standard_suffix_removed = 0;
1066 : 0 : ((SN_local *)z)->i_p2 = 0;
1067 : 0 : ((SN_local *)z)->i_p1 = 0;
1068 : 0 : ((SN_local *)z)->i_pV = 0;
1069 : : }
1070 : 0 : return z;
1071 : : }
1072 : :
1073 : 0 : extern void romanian_UTF_8_close_env(struct SN_env * z) {
1074 : 0 : SN_delete_env(z);
1075 : 0 : }
1076 : :
|