1 /* Generated by Snowball 2.0.0 - https://snowballstem.org/ */
2 
3 #include "../runtime/header.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 extern int romanian_UTF_8_stem(struct SN_env * z);
9 #ifdef __cplusplus
10 }
11 #endif
12 static int r_vowel_suffix(struct SN_env * z);
13 static int r_verb_suffix(struct SN_env * z);
14 static int r_combo_suffix(struct SN_env * z);
15 static int r_standard_suffix(struct SN_env * z);
16 static int r_step_0(struct SN_env * z);
17 static int r_R2(struct SN_env * z);
18 static int r_R1(struct SN_env * z);
19 static int r_RV(struct SN_env * z);
20 static int r_mark_regions(struct SN_env * z);
21 static int r_postlude(struct SN_env * z);
22 static int r_prelude(struct SN_env * z);
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
28 extern struct SN_env * romanian_UTF_8_create_env(void);
29 extern void romanian_UTF_8_close_env(struct SN_env * z);
30 
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 static const symbol s_0_1[1] = { 'I' };
36 static const symbol s_0_2[1] = { 'U' };
37 
38 static const struct among a_0[3] =
39 {
40 /*  0 */ { 0, 0, -1, 3, 0},
41 /*  1 */ { 1, s_0_1, 0, 1, 0},
42 /*  2 */ { 1, s_0_2, 0, 2, 0}
43 };
44 
45 static const symbol s_1_0[2] = { 'e', 'a' };
46 static const symbol s_1_1[5] = { 'a', 0xC5, 0xA3, 'i', 'a' };
47 static const symbol s_1_2[3] = { 'a', 'u', 'a' };
48 static const symbol s_1_3[3] = { 'i', 'u', 'a' };
49 static const symbol s_1_4[5] = { 'a', 0xC5, 0xA3, 'i', 'e' };
50 static const symbol s_1_5[3] = { 'e', 'l', 'e' };
51 static const symbol s_1_6[3] = { 'i', 'l', 'e' };
52 static const symbol s_1_7[4] = { 'i', 'i', 'l', 'e' };
53 static const symbol s_1_8[3] = { 'i', 'e', 'i' };
54 static const symbol s_1_9[4] = { 'a', 't', 'e', 'i' };
55 static const symbol s_1_10[2] = { 'i', 'i' };
56 static const symbol s_1_11[4] = { 'u', 'l', 'u', 'i' };
57 static const symbol s_1_12[2] = { 'u', 'l' };
58 static const symbol s_1_13[4] = { 'e', 'l', 'o', 'r' };
59 static const symbol s_1_14[4] = { 'i', 'l', 'o', 'r' };
60 static const symbol s_1_15[5] = { 'i', 'i', 'l', 'o', 'r' };
61 
62 static const struct among a_1[16] =
63 {
64 /*  0 */ { 2, s_1_0, -1, 3, 0},
65 /*  1 */ { 5, s_1_1, -1, 7, 0},
66 /*  2 */ { 3, s_1_2, -1, 2, 0},
67 /*  3 */ { 3, s_1_3, -1, 4, 0},
68 /*  4 */ { 5, s_1_4, -1, 7, 0},
69 /*  5 */ { 3, s_1_5, -1, 3, 0},
70 /*  6 */ { 3, s_1_6, -1, 5, 0},
71 /*  7 */ { 4, s_1_7, 6, 4, 0},
72 /*  8 */ { 3, s_1_8, -1, 4, 0},
73 /*  9 */ { 4, s_1_9, -1, 6, 0},
74 /* 10 */ { 2, s_1_10, -1, 4, 0},
75 /* 11 */ { 4, s_1_11, -1, 1, 0},
76 /* 12 */ { 2, s_1_12, -1, 1, 0},
77 /* 13 */ { 4, s_1_13, -1, 3, 0},
78 /* 14 */ { 4, s_1_14, -1, 4, 0},
79 /* 15 */ { 5, s_1_15, 14, 4, 0}
80 };
81 
82 static const symbol s_2_0[5] = { 'i', 'c', 'a', 'l', 'a' };
83 static const symbol s_2_1[5] = { 'i', 'c', 'i', 'v', 'a' };
84 static const symbol s_2_2[5] = { 'a', 't', 'i', 'v', 'a' };
85 static const symbol s_2_3[5] = { 'i', 't', 'i', 'v', 'a' };
86 static const symbol s_2_4[5] = { 'i', 'c', 'a', 'l', 'e' };
87 static const symbol s_2_5[7] = { 'a', 0xC5, 0xA3, 'i', 'u', 'n', 'e' };
88 static const symbol s_2_6[7] = { 'i', 0xC5, 0xA3, 'i', 'u', 'n', 'e' };
89 static const symbol s_2_7[6] = { 'a', 't', 'o', 'a', 'r', 'e' };
90 static const symbol s_2_8[6] = { 'i', 't', 'o', 'a', 'r', 'e' };
91 static const symbol s_2_9[7] = { 0xC4, 0x83, 't', 'o', 'a', 'r', 'e' };
92 static const symbol s_2_10[7] = { 'i', 'c', 'i', 't', 'a', 't', 'e' };
93 static const symbol s_2_11[9] = { 'a', 'b', 'i', 'l', 'i', 't', 'a', 't', 'e' };
94 static const symbol s_2_12[9] = { 'i', 'b', 'i', 'l', 'i', 't', 'a', 't', 'e' };
95 static const symbol s_2_13[7] = { 'i', 'v', 'i', 't', 'a', 't', 'e' };
96 static const symbol s_2_14[5] = { 'i', 'c', 'i', 'v', 'e' };
97 static const symbol s_2_15[5] = { 'a', 't', 'i', 'v', 'e' };
98 static const symbol s_2_16[5] = { 'i', 't', 'i', 'v', 'e' };
99 static const symbol s_2_17[5] = { 'i', 'c', 'a', 'l', 'i' };
100 static const symbol s_2_18[5] = { 'a', 't', 'o', 'r', 'i' };
101 static const symbol s_2_19[7] = { 'i', 'c', 'a', 't', 'o', 'r', 'i' };
102 static const symbol s_2_20[5] = { 'i', 't', 'o', 'r', 'i' };
103 static const symbol s_2_21[6] = { 0xC4, 0x83, 't', 'o', 'r', 'i' };
104 static const symbol s_2_22[7] = { 'i', 'c', 'i', 't', 'a', 't', 'i' };
105 static const symbol s_2_23[9] = { 'a', 'b', 'i', 'l', 'i', 't', 'a', 't', 'i' };
106 static const symbol s_2_24[7] = { 'i', 'v', 'i', 't', 'a', 't', 'i' };
107 static const symbol s_2_25[5] = { 'i', 'c', 'i', 'v', 'i' };
108 static const symbol s_2_26[5] = { 'a', 't', 'i', 'v', 'i' };
109 static const symbol s_2_27[5] = { 'i', 't', 'i', 'v', 'i' };
110 static const symbol s_2_28[7] = { 'i', 'c', 'i', 't', 0xC4, 0x83, 'i' };
111 static const symbol s_2_29[9] = { 'a', 'b', 'i', 'l', 'i', 't', 0xC4, 0x83, 'i' };
112 static const symbol s_2_30[7] = { 'i', 'v', 'i', 't', 0xC4, 0x83, 'i' };
113 static const symbol s_2_31[9] = { 'i', 'c', 'i', 't', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
114 static const symbol s_2_32[11] = { 'a', 'b', 'i', 'l', 'i', 't', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
115 static const symbol s_2_33[9] = { 'i', 'v', 'i', 't', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
116 static const symbol s_2_34[4] = { 'i', 'c', 'a', 'l' };
117 static const symbol s_2_35[4] = { 'a', 't', 'o', 'r' };
118 static const symbol s_2_36[6] = { 'i', 'c', 'a', 't', 'o', 'r' };
119 static const symbol s_2_37[4] = { 'i', 't', 'o', 'r' };
120 static const symbol s_2_38[5] = { 0xC4, 0x83, 't', 'o', 'r' };
121 static const symbol s_2_39[4] = { 'i', 'c', 'i', 'v' };
122 static const symbol s_2_40[4] = { 'a', 't', 'i', 'v' };
123 static const symbol s_2_41[4] = { 'i', 't', 'i', 'v' };
124 static const symbol s_2_42[6] = { 'i', 'c', 'a', 'l', 0xC4, 0x83 };
125 static const symbol s_2_43[6] = { 'i', 'c', 'i', 'v', 0xC4, 0x83 };
126 static const symbol s_2_44[6] = { 'a', 't', 'i', 'v', 0xC4, 0x83 };
127 static const symbol s_2_45[6] = { 'i', 't', 'i', 'v', 0xC4, 0x83 };
128 
129 static const struct among a_2[46] =
130 {
131 /*  0 */ { 5, s_2_0, -1, 4, 0},
132 /*  1 */ { 5, s_2_1, -1, 4, 0},
133 /*  2 */ { 5, s_2_2, -1, 5, 0},
134 /*  3 */ { 5, s_2_3, -1, 6, 0},
135 /*  4 */ { 5, s_2_4, -1, 4, 0},
136 /*  5 */ { 7, s_2_5, -1, 5, 0},
137 /*  6 */ { 7, s_2_6, -1, 6, 0},
138 /*  7 */ { 6, s_2_7, -1, 5, 0},
139 /*  8 */ { 6, s_2_8, -1, 6, 0},
140 /*  9 */ { 7, s_2_9, -1, 5, 0},
141 /* 10 */ { 7, s_2_10, -1, 4, 0},
142 /* 11 */ { 9, s_2_11, -1, 1, 0},
143 /* 12 */ { 9, s_2_12, -1, 2, 0},
144 /* 13 */ { 7, s_2_13, -1, 3, 0},
145 /* 14 */ { 5, s_2_14, -1, 4, 0},
146 /* 15 */ { 5, s_2_15, -1, 5, 0},
147 /* 16 */ { 5, s_2_16, -1, 6, 0},
148 /* 17 */ { 5, s_2_17, -1, 4, 0},
149 /* 18 */ { 5, s_2_18, -1, 5, 0},
150 /* 19 */ { 7, s_2_19, 18, 4, 0},
151 /* 20 */ { 5, s_2_20, -1, 6, 0},
152 /* 21 */ { 6, s_2_21, -1, 5, 0},
153 /* 22 */ { 7, s_2_22, -1, 4, 0},
154 /* 23 */ { 9, s_2_23, -1, 1, 0},
155 /* 24 */ { 7, s_2_24, -1, 3, 0},
156 /* 25 */ { 5, s_2_25, -1, 4, 0},
157 /* 26 */ { 5, s_2_26, -1, 5, 0},
158 /* 27 */ { 5, s_2_27, -1, 6, 0},
159 /* 28 */ { 7, s_2_28, -1, 4, 0},
160 /* 29 */ { 9, s_2_29, -1, 1, 0},
161 /* 30 */ { 7, s_2_30, -1, 3, 0},
162 /* 31 */ { 9, s_2_31, -1, 4, 0},
163 /* 32 */ { 11, s_2_32, -1, 1, 0},
164 /* 33 */ { 9, s_2_33, -1, 3, 0},
165 /* 34 */ { 4, s_2_34, -1, 4, 0},
166 /* 35 */ { 4, s_2_35, -1, 5, 0},
167 /* 36 */ { 6, s_2_36, 35, 4, 0},
168 /* 37 */ { 4, s_2_37, -1, 6, 0},
169 /* 38 */ { 5, s_2_38, -1, 5, 0},
170 /* 39 */ { 4, s_2_39, -1, 4, 0},
171 /* 40 */ { 4, s_2_40, -1, 5, 0},
172 /* 41 */ { 4, s_2_41, -1, 6, 0},
173 /* 42 */ { 6, s_2_42, -1, 4, 0},
174 /* 43 */ { 6, s_2_43, -1, 4, 0},
175 /* 44 */ { 6, s_2_44, -1, 5, 0},
176 /* 45 */ { 6, s_2_45, -1, 6, 0}
177 };
178 
179 static const symbol s_3_0[3] = { 'i', 'c', 'a' };
180 static const symbol s_3_1[5] = { 'a', 'b', 'i', 'l', 'a' };
181 static const symbol s_3_2[5] = { 'i', 'b', 'i', 'l', 'a' };
182 static const symbol s_3_3[4] = { 'o', 'a', 's', 'a' };
183 static const symbol s_3_4[3] = { 'a', 't', 'a' };
184 static const symbol s_3_5[3] = { 'i', 't', 'a' };
185 static const symbol s_3_6[4] = { 'a', 'n', 't', 'a' };
186 static const symbol s_3_7[4] = { 'i', 's', 't', 'a' };
187 static const symbol s_3_8[3] = { 'u', 't', 'a' };
188 static const symbol s_3_9[3] = { 'i', 'v', 'a' };
189 static const symbol s_3_10[2] = { 'i', 'c' };
190 static const symbol s_3_11[3] = { 'i', 'c', 'e' };
191 static const symbol s_3_12[5] = { 'a', 'b', 'i', 'l', 'e' };
192 static const symbol s_3_13[5] = { 'i', 'b', 'i', 'l', 'e' };
193 static const symbol s_3_14[4] = { 'i', 's', 'm', 'e' };
194 static const symbol s_3_15[4] = { 'i', 'u', 'n', 'e' };
195 static const symbol s_3_16[4] = { 'o', 'a', 's', 'e' };
196 static const symbol s_3_17[3] = { 'a', 't', 'e' };
197 static const symbol s_3_18[5] = { 'i', 't', 'a', 't', 'e' };
198 static const symbol s_3_19[3] = { 'i', 't', 'e' };
199 static const symbol s_3_20[4] = { 'a', 'n', 't', 'e' };
200 static const symbol s_3_21[4] = { 'i', 's', 't', 'e' };
201 static const symbol s_3_22[3] = { 'u', 't', 'e' };
202 static const symbol s_3_23[3] = { 'i', 'v', 'e' };
203 static const symbol s_3_24[3] = { 'i', 'c', 'i' };
204 static const symbol s_3_25[5] = { 'a', 'b', 'i', 'l', 'i' };
205 static const symbol s_3_26[5] = { 'i', 'b', 'i', 'l', 'i' };
206 static const symbol s_3_27[4] = { 'i', 'u', 'n', 'i' };
207 static const symbol s_3_28[5] = { 'a', 't', 'o', 'r', 'i' };
208 static const symbol s_3_29[3] = { 'o', 's', 'i' };
209 static const symbol s_3_30[3] = { 'a', 't', 'i' };
210 static const symbol s_3_31[5] = { 'i', 't', 'a', 't', 'i' };
211 static const symbol s_3_32[3] = { 'i', 't', 'i' };
212 static const symbol s_3_33[4] = { 'a', 'n', 't', 'i' };
213 static const symbol s_3_34[4] = { 'i', 's', 't', 'i' };
214 static const symbol s_3_35[3] = { 'u', 't', 'i' };
215 static const symbol s_3_36[5] = { 'i', 0xC5, 0x9F, 't', 'i' };
216 static const symbol s_3_37[3] = { 'i', 'v', 'i' };
217 static const symbol s_3_38[5] = { 'i', 't', 0xC4, 0x83, 'i' };
218 static const symbol s_3_39[4] = { 'o', 0xC5, 0x9F, 'i' };
219 static const symbol s_3_40[7] = { 'i', 't', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
220 static const symbol s_3_41[4] = { 'a', 'b', 'i', 'l' };
221 static const symbol s_3_42[4] = { 'i', 'b', 'i', 'l' };
222 static const symbol s_3_43[3] = { 'i', 's', 'm' };
223 static const symbol s_3_44[4] = { 'a', 't', 'o', 'r' };
224 static const symbol s_3_45[2] = { 'o', 's' };
225 static const symbol s_3_46[2] = { 'a', 't' };
226 static const symbol s_3_47[2] = { 'i', 't' };
227 static const symbol s_3_48[3] = { 'a', 'n', 't' };
228 static const symbol s_3_49[3] = { 'i', 's', 't' };
229 static const symbol s_3_50[2] = { 'u', 't' };
230 static const symbol s_3_51[2] = { 'i', 'v' };
231 static const symbol s_3_52[4] = { 'i', 'c', 0xC4, 0x83 };
232 static const symbol s_3_53[6] = { 'a', 'b', 'i', 'l', 0xC4, 0x83 };
233 static const symbol s_3_54[6] = { 'i', 'b', 'i', 'l', 0xC4, 0x83 };
234 static const symbol s_3_55[5] = { 'o', 'a', 's', 0xC4, 0x83 };
235 static const symbol s_3_56[4] = { 'a', 't', 0xC4, 0x83 };
236 static const symbol s_3_57[4] = { 'i', 't', 0xC4, 0x83 };
237 static const symbol s_3_58[5] = { 'a', 'n', 't', 0xC4, 0x83 };
238 static const symbol s_3_59[5] = { 'i', 's', 't', 0xC4, 0x83 };
239 static const symbol s_3_60[4] = { 'u', 't', 0xC4, 0x83 };
240 static const symbol s_3_61[4] = { 'i', 'v', 0xC4, 0x83 };
241 
242 static const struct among a_3[62] =
243 {
244 /*  0 */ { 3, s_3_0, -1, 1, 0},
245 /*  1 */ { 5, s_3_1, -1, 1, 0},
246 /*  2 */ { 5, s_3_2, -1, 1, 0},
247 /*  3 */ { 4, s_3_3, -1, 1, 0},
248 /*  4 */ { 3, s_3_4, -1, 1, 0},
249 /*  5 */ { 3, s_3_5, -1, 1, 0},
250 /*  6 */ { 4, s_3_6, -1, 1, 0},
251 /*  7 */ { 4, s_3_7, -1, 3, 0},
252 /*  8 */ { 3, s_3_8, -1, 1, 0},
253 /*  9 */ { 3, s_3_9, -1, 1, 0},
254 /* 10 */ { 2, s_3_10, -1, 1, 0},
255 /* 11 */ { 3, s_3_11, -1, 1, 0},
256 /* 12 */ { 5, s_3_12, -1, 1, 0},
257 /* 13 */ { 5, s_3_13, -1, 1, 0},
258 /* 14 */ { 4, s_3_14, -1, 3, 0},
259 /* 15 */ { 4, s_3_15, -1, 2, 0},
260 /* 16 */ { 4, s_3_16, -1, 1, 0},
261 /* 17 */ { 3, s_3_17, -1, 1, 0},
262 /* 18 */ { 5, s_3_18, 17, 1, 0},
263 /* 19 */ { 3, s_3_19, -1, 1, 0},
264 /* 20 */ { 4, s_3_20, -1, 1, 0},
265 /* 21 */ { 4, s_3_21, -1, 3, 0},
266 /* 22 */ { 3, s_3_22, -1, 1, 0},
267 /* 23 */ { 3, s_3_23, -1, 1, 0},
268 /* 24 */ { 3, s_3_24, -1, 1, 0},
269 /* 25 */ { 5, s_3_25, -1, 1, 0},
270 /* 26 */ { 5, s_3_26, -1, 1, 0},
271 /* 27 */ { 4, s_3_27, -1, 2, 0},
272 /* 28 */ { 5, s_3_28, -1, 1, 0},
273 /* 29 */ { 3, s_3_29, -1, 1, 0},
274 /* 30 */ { 3, s_3_30, -1, 1, 0},
275 /* 31 */ { 5, s_3_31, 30, 1, 0},
276 /* 32 */ { 3, s_3_32, -1, 1, 0},
277 /* 33 */ { 4, s_3_33, -1, 1, 0},
278 /* 34 */ { 4, s_3_34, -1, 3, 0},
279 /* 35 */ { 3, s_3_35, -1, 1, 0},
280 /* 36 */ { 5, s_3_36, -1, 3, 0},
281 /* 37 */ { 3, s_3_37, -1, 1, 0},
282 /* 38 */ { 5, s_3_38, -1, 1, 0},
283 /* 39 */ { 4, s_3_39, -1, 1, 0},
284 /* 40 */ { 7, s_3_40, -1, 1, 0},
285 /* 41 */ { 4, s_3_41, -1, 1, 0},
286 /* 42 */ { 4, s_3_42, -1, 1, 0},
287 /* 43 */ { 3, s_3_43, -1, 3, 0},
288 /* 44 */ { 4, s_3_44, -1, 1, 0},
289 /* 45 */ { 2, s_3_45, -1, 1, 0},
290 /* 46 */ { 2, s_3_46, -1, 1, 0},
291 /* 47 */ { 2, s_3_47, -1, 1, 0},
292 /* 48 */ { 3, s_3_48, -1, 1, 0},
293 /* 49 */ { 3, s_3_49, -1, 3, 0},
294 /* 50 */ { 2, s_3_50, -1, 1, 0},
295 /* 51 */ { 2, s_3_51, -1, 1, 0},
296 /* 52 */ { 4, s_3_52, -1, 1, 0},
297 /* 53 */ { 6, s_3_53, -1, 1, 0},
298 /* 54 */ { 6, s_3_54, -1, 1, 0},
299 /* 55 */ { 5, s_3_55, -1, 1, 0},
300 /* 56 */ { 4, s_3_56, -1, 1, 0},
301 /* 57 */ { 4, s_3_57, -1, 1, 0},
302 /* 58 */ { 5, s_3_58, -1, 1, 0},
303 /* 59 */ { 5, s_3_59, -1, 3, 0},
304 /* 60 */ { 4, s_3_60, -1, 1, 0},
305 /* 61 */ { 4, s_3_61, -1, 1, 0}
306 };
307 
308 static const symbol s_4_0[2] = { 'e', 'a' };
309 static const symbol s_4_1[2] = { 'i', 'a' };
310 static const symbol s_4_2[3] = { 'e', 's', 'c' };
311 static const symbol s_4_3[4] = { 0xC4, 0x83, 's', 'c' };
312 static const symbol s_4_4[3] = { 'i', 'n', 'd' };
313 static const symbol s_4_5[4] = { 0xC3, 0xA2, 'n', 'd' };
314 static const symbol s_4_6[3] = { 'a', 'r', 'e' };
315 static const symbol s_4_7[3] = { 'e', 'r', 'e' };
316 static const symbol s_4_8[3] = { 'i', 'r', 'e' };
317 static const symbol s_4_9[4] = { 0xC3, 0xA2, 'r', 'e' };
318 static const symbol s_4_10[2] = { 's', 'e' };
319 static const symbol s_4_11[3] = { 'a', 's', 'e' };
320 static const symbol s_4_12[4] = { 's', 'e', 's', 'e' };
321 static const symbol s_4_13[3] = { 'i', 's', 'e' };
322 static const symbol s_4_14[3] = { 'u', 's', 'e' };
323 static const symbol s_4_15[4] = { 0xC3, 0xA2, 's', 'e' };
324 static const symbol s_4_16[5] = { 'e', 0xC5, 0x9F, 't', 'e' };
325 static const symbol s_4_17[6] = { 0xC4, 0x83, 0xC5, 0x9F, 't', 'e' };
326 static const symbol s_4_18[3] = { 'e', 'z', 'e' };
327 static const symbol s_4_19[2] = { 'a', 'i' };
328 static const symbol s_4_20[3] = { 'e', 'a', 'i' };
329 static const symbol s_4_21[3] = { 'i', 'a', 'i' };
330 static const symbol s_4_22[3] = { 's', 'e', 'i' };
331 static const symbol s_4_23[5] = { 'e', 0xC5, 0x9F, 't', 'i' };
332 static const symbol s_4_24[6] = { 0xC4, 0x83, 0xC5, 0x9F, 't', 'i' };
333 static const symbol s_4_25[2] = { 'u', 'i' };
334 static const symbol s_4_26[3] = { 'e', 'z', 'i' };
335 static const symbol s_4_27[4] = { 'a', 0xC5, 0x9F, 'i' };
336 static const symbol s_4_28[5] = { 's', 'e', 0xC5, 0x9F, 'i' };
337 static const symbol s_4_29[6] = { 'a', 's', 'e', 0xC5, 0x9F, 'i' };
338 static const symbol s_4_30[7] = { 's', 'e', 's', 'e', 0xC5, 0x9F, 'i' };
339 static const symbol s_4_31[6] = { 'i', 's', 'e', 0xC5, 0x9F, 'i' };
340 static const symbol s_4_32[6] = { 'u', 's', 'e', 0xC5, 0x9F, 'i' };
341 static const symbol s_4_33[7] = { 0xC3, 0xA2, 's', 'e', 0xC5, 0x9F, 'i' };
342 static const symbol s_4_34[4] = { 'i', 0xC5, 0x9F, 'i' };
343 static const symbol s_4_35[4] = { 'u', 0xC5, 0x9F, 'i' };
344 static const symbol s_4_36[5] = { 0xC3, 0xA2, 0xC5, 0x9F, 'i' };
345 static const symbol s_4_37[3] = { 0xC3, 0xA2, 'i' };
346 static const symbol s_4_38[4] = { 'a', 0xC5, 0xA3, 'i' };
347 static const symbol s_4_39[5] = { 'e', 'a', 0xC5, 0xA3, 'i' };
348 static const symbol s_4_40[5] = { 'i', 'a', 0xC5, 0xA3, 'i' };
349 static const symbol s_4_41[4] = { 'e', 0xC5, 0xA3, 'i' };
350 static const symbol s_4_42[4] = { 'i', 0xC5, 0xA3, 'i' };
351 static const symbol s_4_43[7] = { 'a', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
352 static const symbol s_4_44[8] = { 's', 'e', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
353 static const symbol s_4_45[9] = { 'a', 's', 'e', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
354 static const symbol s_4_46[10] = { 's', 'e', 's', 'e', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
355 static const symbol s_4_47[9] = { 'i', 's', 'e', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
356 static const symbol s_4_48[9] = { 'u', 's', 'e', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
357 static const symbol s_4_49[10] = { 0xC3, 0xA2, 's', 'e', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
358 static const symbol s_4_50[7] = { 'i', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
359 static const symbol s_4_51[7] = { 'u', 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
360 static const symbol s_4_52[8] = { 0xC3, 0xA2, 'r', 0xC4, 0x83, 0xC5, 0xA3, 'i' };
361 static const symbol s_4_53[5] = { 0xC3, 0xA2, 0xC5, 0xA3, 'i' };
362 static const symbol s_4_54[2] = { 'a', 'm' };
363 static const symbol s_4_55[3] = { 'e', 'a', 'm' };
364 static const symbol s_4_56[3] = { 'i', 'a', 'm' };
365 static const symbol s_4_57[2] = { 'e', 'm' };
366 static const symbol s_4_58[4] = { 'a', 's', 'e', 'm' };
367 static const symbol s_4_59[5] = { 's', 'e', 's', 'e', 'm' };
368 static const symbol s_4_60[4] = { 'i', 's', 'e', 'm' };
369 static const symbol s_4_61[4] = { 'u', 's', 'e', 'm' };
370 static const symbol s_4_62[5] = { 0xC3, 0xA2, 's', 'e', 'm' };
371 static const symbol s_4_63[2] = { 'i', 'm' };
372 static const symbol s_4_64[3] = { 0xC4, 0x83, 'm' };
373 static const symbol s_4_65[5] = { 'a', 'r', 0xC4, 0x83, 'm' };
374 static const symbol s_4_66[6] = { 's', 'e', 'r', 0xC4, 0x83, 'm' };
375 static const symbol s_4_67[7] = { 'a', 's', 'e', 'r', 0xC4, 0x83, 'm' };
376 static const symbol s_4_68[8] = { 's', 'e', 's', 'e', 'r', 0xC4, 0x83, 'm' };
377 static const symbol s_4_69[7] = { 'i', 's', 'e', 'r', 0xC4, 0x83, 'm' };
378 static const symbol s_4_70[7] = { 'u', 's', 'e', 'r', 0xC4, 0x83, 'm' };
379 static const symbol s_4_71[8] = { 0xC3, 0xA2, 's', 'e', 'r', 0xC4, 0x83, 'm' };
380 static const symbol s_4_72[5] = { 'i', 'r', 0xC4, 0x83, 'm' };
381 static const symbol s_4_73[5] = { 'u', 'r', 0xC4, 0x83, 'm' };
382 static const symbol s_4_74[6] = { 0xC3, 0xA2, 'r', 0xC4, 0x83, 'm' };
383 static const symbol s_4_75[3] = { 0xC3, 0xA2, 'm' };
384 static const symbol s_4_76[2] = { 'a', 'u' };
385 static const symbol s_4_77[3] = { 'e', 'a', 'u' };
386 static const symbol s_4_78[3] = { 'i', 'a', 'u' };
387 static const symbol s_4_79[4] = { 'i', 'n', 'd', 'u' };
388 static const symbol s_4_80[5] = { 0xC3, 0xA2, 'n', 'd', 'u' };
389 static const symbol s_4_81[2] = { 'e', 'z' };
390 static const symbol s_4_82[6] = { 'e', 'a', 's', 'c', 0xC4, 0x83 };
391 static const symbol s_4_83[4] = { 'a', 'r', 0xC4, 0x83 };
392 static const symbol s_4_84[5] = { 's', 'e', 'r', 0xC4, 0x83 };
393 static const symbol s_4_85[6] = { 'a', 's', 'e', 'r', 0xC4, 0x83 };
394 static const symbol s_4_86[7] = { 's', 'e', 's', 'e', 'r', 0xC4, 0x83 };
395 static const symbol s_4_87[6] = { 'i', 's', 'e', 'r', 0xC4, 0x83 };
396 static const symbol s_4_88[6] = { 'u', 's', 'e', 'r', 0xC4, 0x83 };
397 static const symbol s_4_89[7] = { 0xC3, 0xA2, 's', 'e', 'r', 0xC4, 0x83 };
398 static const symbol s_4_90[4] = { 'i', 'r', 0xC4, 0x83 };
399 static const symbol s_4_91[4] = { 'u', 'r', 0xC4, 0x83 };
400 static const symbol s_4_92[5] = { 0xC3, 0xA2, 'r', 0xC4, 0x83 };
401 static const symbol s_4_93[5] = { 'e', 'a', 'z', 0xC4, 0x83 };
402 
403 static const struct among a_4[94] =
404 {
405 /*  0 */ { 2, s_4_0, -1, 1, 0},
406 /*  1 */ { 2, s_4_1, -1, 1, 0},
407 /*  2 */ { 3, s_4_2, -1, 1, 0},
408 /*  3 */ { 4, s_4_3, -1, 1, 0},
409 /*  4 */ { 3, s_4_4, -1, 1, 0},
410 /*  5 */ { 4, s_4_5, -1, 1, 0},
411 /*  6 */ { 3, s_4_6, -1, 1, 0},
412 /*  7 */ { 3, s_4_7, -1, 1, 0},
413 /*  8 */ { 3, s_4_8, -1, 1, 0},
414 /*  9 */ { 4, s_4_9, -1, 1, 0},
415 /* 10 */ { 2, s_4_10, -1, 2, 0},
416 /* 11 */ { 3, s_4_11, 10, 1, 0},
417 /* 12 */ { 4, s_4_12, 10, 2, 0},
418 /* 13 */ { 3, s_4_13, 10, 1, 0},
419 /* 14 */ { 3, s_4_14, 10, 1, 0},
420 /* 15 */ { 4, s_4_15, 10, 1, 0},
421 /* 16 */ { 5, s_4_16, -1, 1, 0},
422 /* 17 */ { 6, s_4_17, -1, 1, 0},
423 /* 18 */ { 3, s_4_18, -1, 1, 0},
424 /* 19 */ { 2, s_4_19, -1, 1, 0},
425 /* 20 */ { 3, s_4_20, 19, 1, 0},
426 /* 21 */ { 3, s_4_21, 19, 1, 0},
427 /* 22 */ { 3, s_4_22, -1, 2, 0},
428 /* 23 */ { 5, s_4_23, -1, 1, 0},
429 /* 24 */ { 6, s_4_24, -1, 1, 0},
430 /* 25 */ { 2, s_4_25, -1, 1, 0},
431 /* 26 */ { 3, s_4_26, -1, 1, 0},
432 /* 27 */ { 4, s_4_27, -1, 1, 0},
433 /* 28 */ { 5, s_4_28, -1, 2, 0},
434 /* 29 */ { 6, s_4_29, 28, 1, 0},
435 /* 30 */ { 7, s_4_30, 28, 2, 0},
436 /* 31 */ { 6, s_4_31, 28, 1, 0},
437 /* 32 */ { 6, s_4_32, 28, 1, 0},
438 /* 33 */ { 7, s_4_33, 28, 1, 0},
439 /* 34 */ { 4, s_4_34, -1, 1, 0},
440 /* 35 */ { 4, s_4_35, -1, 1, 0},
441 /* 36 */ { 5, s_4_36, -1, 1, 0},
442 /* 37 */ { 3, s_4_37, -1, 1, 0},
443 /* 38 */ { 4, s_4_38, -1, 2, 0},
444 /* 39 */ { 5, s_4_39, 38, 1, 0},
445 /* 40 */ { 5, s_4_40, 38, 1, 0},
446 /* 41 */ { 4, s_4_41, -1, 2, 0},
447 /* 42 */ { 4, s_4_42, -1, 2, 0},
448 /* 43 */ { 7, s_4_43, -1, 1, 0},
449 /* 44 */ { 8, s_4_44, -1, 2, 0},
450 /* 45 */ { 9, s_4_45, 44, 1, 0},
451 /* 46 */ { 10, s_4_46, 44, 2, 0},
452 /* 47 */ { 9, s_4_47, 44, 1, 0},
453 /* 48 */ { 9, s_4_48, 44, 1, 0},
454 /* 49 */ { 10, s_4_49, 44, 1, 0},
455 /* 50 */ { 7, s_4_50, -1, 1, 0},
456 /* 51 */ { 7, s_4_51, -1, 1, 0},
457 /* 52 */ { 8, s_4_52, -1, 1, 0},
458 /* 53 */ { 5, s_4_53, -1, 2, 0},
459 /* 54 */ { 2, s_4_54, -1, 1, 0},
460 /* 55 */ { 3, s_4_55, 54, 1, 0},
461 /* 56 */ { 3, s_4_56, 54, 1, 0},
462 /* 57 */ { 2, s_4_57, -1, 2, 0},
463 /* 58 */ { 4, s_4_58, 57, 1, 0},
464 /* 59 */ { 5, s_4_59, 57, 2, 0},
465 /* 60 */ { 4, s_4_60, 57, 1, 0},
466 /* 61 */ { 4, s_4_61, 57, 1, 0},
467 /* 62 */ { 5, s_4_62, 57, 1, 0},
468 /* 63 */ { 2, s_4_63, -1, 2, 0},
469 /* 64 */ { 3, s_4_64, -1, 2, 0},
470 /* 65 */ { 5, s_4_65, 64, 1, 0},
471 /* 66 */ { 6, s_4_66, 64, 2, 0},
472 /* 67 */ { 7, s_4_67, 66, 1, 0},
473 /* 68 */ { 8, s_4_68, 66, 2, 0},
474 /* 69 */ { 7, s_4_69, 66, 1, 0},
475 /* 70 */ { 7, s_4_70, 66, 1, 0},
476 /* 71 */ { 8, s_4_71, 66, 1, 0},
477 /* 72 */ { 5, s_4_72, 64, 1, 0},
478 /* 73 */ { 5, s_4_73, 64, 1, 0},
479 /* 74 */ { 6, s_4_74, 64, 1, 0},
480 /* 75 */ { 3, s_4_75, -1, 2, 0},
481 /* 76 */ { 2, s_4_76, -1, 1, 0},
482 /* 77 */ { 3, s_4_77, 76, 1, 0},
483 /* 78 */ { 3, s_4_78, 76, 1, 0},
484 /* 79 */ { 4, s_4_79, -1, 1, 0},
485 /* 80 */ { 5, s_4_80, -1, 1, 0},
486 /* 81 */ { 2, s_4_81, -1, 1, 0},
487 /* 82 */ { 6, s_4_82, -1, 1, 0},
488 /* 83 */ { 4, s_4_83, -1, 1, 0},
489 /* 84 */ { 5, s_4_84, -1, 2, 0},
490 /* 85 */ { 6, s_4_85, 84, 1, 0},
491 /* 86 */ { 7, s_4_86, 84, 2, 0},
492 /* 87 */ { 6, s_4_87, 84, 1, 0},
493 /* 88 */ { 6, s_4_88, 84, 1, 0},
494 /* 89 */ { 7, s_4_89, 84, 1, 0},
495 /* 90 */ { 4, s_4_90, -1, 1, 0},
496 /* 91 */ { 4, s_4_91, -1, 1, 0},
497 /* 92 */ { 5, s_4_92, -1, 1, 0},
498 /* 93 */ { 5, s_4_93, -1, 1, 0}
499 };
500 
501 static const symbol s_5_0[1] = { 'a' };
502 static const symbol s_5_1[1] = { 'e' };
503 static const symbol s_5_2[2] = { 'i', 'e' };
504 static const symbol s_5_3[1] = { 'i' };
505 static const symbol s_5_4[2] = { 0xC4, 0x83 };
506 
507 static const struct among a_5[5] =
508 {
509 /*  0 */ { 1, s_5_0, -1, 1, 0},
510 /*  1 */ { 1, s_5_1, -1, 1, 0},
511 /*  2 */ { 2, s_5_2, 1, 1, 0},
512 /*  3 */ { 1, s_5_3, -1, 1, 0},
513 /*  4 */ { 2, s_5_4, -1, 1, 0}
514 };
515 
516 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 };
517 
518 static const symbol s_0[] = { 'U' };
519 static const symbol s_1[] = { 'I' };
520 static const symbol s_2[] = { 'i' };
521 static const symbol s_3[] = { 'u' };
522 static const symbol s_4[] = { 'a' };
523 static const symbol s_5[] = { 'e' };
524 static const symbol s_6[] = { 'i' };
525 static const symbol s_7[] = { 'a', 'b' };
526 static const symbol s_8[] = { 'i' };
527 static const symbol s_9[] = { 'a', 't' };
528 static const symbol s_10[] = { 'a', 0xC5, 0xA3, 'i' };
529 static const symbol s_11[] = { 'a', 'b', 'i', 'l' };
530 static const symbol s_12[] = { 'i', 'b', 'i', 'l' };
531 static const symbol s_13[] = { 'i', 'v' };
532 static const symbol s_14[] = { 'i', 'c' };
533 static const symbol s_15[] = { 'a', 't' };
534 static const symbol s_16[] = { 'i', 't' };
535 static const symbol s_17[] = { 0xC5, 0xA3 };
536 static const symbol s_18[] = { 't' };
537 static const symbol s_19[] = { 'i', 's', 't' };
538 
r_prelude(struct SN_env * z)539 static int r_prelude(struct SN_env * z) { /* forwardmode */
540 /* repeat, line 32 */
541 
542     while(1) {        int c1 = z->c;
543         while(1) { /* goto, line 32 */
544             int c2 = z->c;
545             if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab1; /* grouping v, line 33 */
546             z->bra = z->c; /* [, line 33 */
547             {   int c3 = z->c; /* or, line 33 */
548                 if (z->c == z->l || z->p[z->c] != 'u') goto lab3; /* literal, line 33 */
549                 z->c++;
550                 z->ket = z->c; /* ], line 33 */
551                 if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab3; /* grouping v, line 33 */
552                 {   int ret = slice_from_s(z, 1, s_0); /* <-, line 33 */
553                     if (ret < 0) return ret;
554                 }
555                 goto lab2;
556             lab3:
557                 z->c = c3;
558                 if (z->c == z->l || z->p[z->c] != 'i') goto lab1; /* literal, line 34 */
559                 z->c++;
560                 z->ket = z->c; /* ], line 34 */
561                 if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab1; /* grouping v, line 34 */
562                 {   int ret = slice_from_s(z, 1, s_1); /* <-, line 34 */
563                     if (ret < 0) return ret;
564                 }
565             }
566         lab2:
567             z->c = c2;
568             break;
569         lab1:
570             z->c = c2;
571             {   int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
572                 if (ret < 0) goto lab0;
573                 z->c = ret; /* goto, line 32 */
574             }
575         }
576         continue;
577     lab0:
578         z->c = c1;
579         break;
580     }
581     return 1;
582 }
583 
r_mark_regions(struct SN_env * z)584 static int r_mark_regions(struct SN_env * z) { /* forwardmode */
585     z->I[0] = z->l; /* $pV = <integer expression>, line 40 */
586     z->I[1] = z->l; /* $p1 = <integer expression>, line 41 */
587     z->I[2] = z->l; /* $p2 = <integer expression>, line 42 */
588     {   int c1 = z->c; /* do, line 44 */
589         {   int c2 = z->c; /* or, line 46 */
590             if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab2; /* grouping v, line 45 */
591             {   int c3 = z->c; /* or, line 45 */
592                 if (out_grouping_U(z, g_v, 97, 259, 0)) goto lab4; /* non v, line 45 */
593                 {    /* gopast */ /* grouping v, line 45 */
594                     int ret = out_grouping_U(z, g_v, 97, 259, 1);
595                     if (ret < 0) goto lab4;
596                     z->c += ret;
597                 }
598                 goto lab3;
599             lab4:
600                 z->c = c3;
601                 if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab2; /* grouping v, line 45 */
602                 {    /* gopast */ /* non v, line 45 */
603                     int ret = in_grouping_U(z, g_v, 97, 259, 1);
604                     if (ret < 0) goto lab2;
605                     z->c += ret;
606                 }
607             }
608         lab3:
609             goto lab1;
610         lab2:
611             z->c = c2;
612             if (out_grouping_U(z, g_v, 97, 259, 0)) goto lab0; /* non v, line 47 */
613             {   int c4 = z->c; /* or, line 47 */
614                 if (out_grouping_U(z, g_v, 97, 259, 0)) goto lab6; /* non v, line 47 */
615                 {    /* gopast */ /* grouping v, line 47 */
616                     int ret = out_grouping_U(z, g_v, 97, 259, 1);
617                     if (ret < 0) goto lab6;
618                     z->c += ret;
619                 }
620                 goto lab5;
621             lab6:
622                 z->c = c4;
623                 if (in_grouping_U(z, g_v, 97, 259, 0)) goto lab0; /* grouping v, line 47 */
624                 {   int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
625                     if (ret < 0) goto lab0;
626                     z->c = ret; /* next, line 47 */
627                 }
628             }
629         lab5:
630             ;
631         }
632     lab1:
633         z->I[0] = z->c; /* setmark pV, line 48 */
634     lab0:
635         z->c = c1;
636     }
637     {   int c5 = z->c; /* do, line 50 */
638         {    /* gopast */ /* grouping v, line 51 */
639             int ret = out_grouping_U(z, g_v, 97, 259, 1);
640             if (ret < 0) goto lab7;
641             z->c += ret;
642         }
643         {    /* gopast */ /* non v, line 51 */
644             int ret = in_grouping_U(z, g_v, 97, 259, 1);
645             if (ret < 0) goto lab7;
646             z->c += ret;
647         }
648         z->I[1] = z->c; /* setmark p1, line 51 */
649         {    /* gopast */ /* grouping v, line 52 */
650             int ret = out_grouping_U(z, g_v, 97, 259, 1);
651             if (ret < 0) goto lab7;
652             z->c += ret;
653         }
654         {    /* gopast */ /* non v, line 52 */
655             int ret = in_grouping_U(z, g_v, 97, 259, 1);
656             if (ret < 0) goto lab7;
657             z->c += ret;
658         }
659         z->I[2] = z->c; /* setmark p2, line 52 */
660     lab7:
661         z->c = c5;
662     }
663     return 1;
664 }
665 
r_postlude(struct SN_env * z)666 static int r_postlude(struct SN_env * z) { /* forwardmode */
667     int among_var;
668 /* repeat, line 56 */
669 
670     while(1) {        int c1 = z->c;
671         z->bra = z->c; /* [, line 58 */
672         if (z->c >= z->l || (z->p[z->c + 0] != 73 && z->p[z->c + 0] != 85)) among_var = 3; else /* substring, line 58 */
673         among_var = find_among(z, a_0, 3);
674         if (!(among_var)) goto lab0;
675         z->ket = z->c; /* ], line 58 */
676         switch (among_var) { /* among, line 58 */
677             case 1:
678                 {   int ret = slice_from_s(z, 1, s_2); /* <-, line 59 */
679                     if (ret < 0) return ret;
680                 }
681                 break;
682             case 2:
683                 {   int ret = slice_from_s(z, 1, s_3); /* <-, line 60 */
684                     if (ret < 0) return ret;
685                 }
686                 break;
687             case 3:
688                 {   int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
689                     if (ret < 0) goto lab0;
690                     z->c = ret; /* next, line 61 */
691                 }
692                 break;
693         }
694         continue;
695     lab0:
696         z->c = c1;
697         break;
698     }
699     return 1;
700 }
701 
r_RV(struct SN_env * z)702 static int r_RV(struct SN_env * z) { /* backwardmode */
703     if (!(z->I[0] <= z->c)) return 0; /* $(<integer expression> <= <integer expression>), line 68 */
704     return 1;
705 }
706 
r_R1(struct SN_env * z)707 static int r_R1(struct SN_env * z) { /* backwardmode */
708     if (!(z->I[1] <= z->c)) return 0; /* $(<integer expression> <= <integer expression>), line 69 */
709     return 1;
710 }
711 
r_R2(struct SN_env * z)712 static int r_R2(struct SN_env * z) { /* backwardmode */
713     if (!(z->I[2] <= z->c)) return 0; /* $(<integer expression> <= <integer expression>), line 70 */
714     return 1;
715 }
716 
r_step_0(struct SN_env * z)717 static int r_step_0(struct SN_env * z) { /* backwardmode */
718     int among_var;
719     z->ket = z->c; /* [, line 73 */
720     if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((266786 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0; /* substring, line 73 */
721     among_var = find_among_b(z, a_1, 16);
722     if (!(among_var)) return 0;
723     z->bra = z->c; /* ], line 73 */
724     {   int ret = r_R1(z); /* call R1, line 73 */
725         if (ret <= 0) return ret;
726     }
727     switch (among_var) { /* among, line 73 */
728         case 1:
729             {   int ret = slice_del(z); /* delete, line 75 */
730                 if (ret < 0) return ret;
731             }
732             break;
733         case 2:
734             {   int ret = slice_from_s(z, 1, s_4); /* <-, line 77 */
735                 if (ret < 0) return ret;
736             }
737             break;
738         case 3:
739             {   int ret = slice_from_s(z, 1, s_5); /* <-, line 79 */
740                 if (ret < 0) return ret;
741             }
742             break;
743         case 4:
744             {   int ret = slice_from_s(z, 1, s_6); /* <-, line 81 */
745                 if (ret < 0) return ret;
746             }
747             break;
748         case 5:
749             {   int m1 = z->l - z->c; (void)m1; /* not, line 83 */
750                 if (!(eq_s_b(z, 2, s_7))) goto lab0; /* literal, line 83 */
751                 return 0;
752             lab0:
753                 z->c = z->l - m1;
754             }
755             {   int ret = slice_from_s(z, 1, s_8); /* <-, line 83 */
756                 if (ret < 0) return ret;
757             }
758             break;
759         case 6:
760             {   int ret = slice_from_s(z, 2, s_9); /* <-, line 85 */
761                 if (ret < 0) return ret;
762             }
763             break;
764         case 7:
765             {   int ret = slice_from_s(z, 4, s_10); /* <-, line 87 */
766                 if (ret < 0) return ret;
767             }
768             break;
769     }
770     return 1;
771 }
772 
r_combo_suffix(struct SN_env * z)773 static int r_combo_suffix(struct SN_env * z) { /* backwardmode */
774     int among_var;
775     {   int m_test1 = z->l - z->c; /* test, line 91 */
776         z->ket = z->c; /* [, line 92 */
777         among_var = find_among_b(z, a_2, 46); /* substring, line 92 */
778         if (!(among_var)) return 0;
779         z->bra = z->c; /* ], line 92 */
780         {   int ret = r_R1(z); /* call R1, line 92 */
781             if (ret <= 0) return ret;
782         }
783         switch (among_var) { /* among, line 93 */
784             case 1:
785                 {   int ret = slice_from_s(z, 4, s_11); /* <-, line 101 */
786                     if (ret < 0) return ret;
787                 }
788                 break;
789             case 2:
790                 {   int ret = slice_from_s(z, 4, s_12); /* <-, line 104 */
791                     if (ret < 0) return ret;
792                 }
793                 break;
794             case 3:
795                 {   int ret = slice_from_s(z, 2, s_13); /* <-, line 107 */
796                     if (ret < 0) return ret;
797                 }
798                 break;
799             case 4:
800                 {   int ret = slice_from_s(z, 2, s_14); /* <-, line 113 */
801                     if (ret < 0) return ret;
802                 }
803                 break;
804             case 5:
805                 {   int ret = slice_from_s(z, 2, s_15); /* <-, line 118 */
806                     if (ret < 0) return ret;
807                 }
808                 break;
809             case 6:
810                 {   int ret = slice_from_s(z, 2, s_16); /* <-, line 122 */
811                     if (ret < 0) return ret;
812                 }
813                 break;
814         }
815         z->B[0] = 1; /* set standard_suffix_removed, line 125 */
816         z->c = z->l - m_test1;
817     }
818     return 1;
819 }
820 
r_standard_suffix(struct SN_env * z)821 static int r_standard_suffix(struct SN_env * z) { /* backwardmode */
822     int among_var;
823     z->B[0] = 0; /* unset standard_suffix_removed, line 130 */
824 /* repeat, line 131 */
825 
826     while(1) {        int m1 = z->l - z->c; (void)m1;
827         {   int ret = r_combo_suffix(z); /* call combo_suffix, line 131 */
828             if (ret == 0) goto lab0;
829             if (ret < 0) return ret;
830         }
831         continue;
832     lab0:
833         z->c = z->l - m1;
834         break;
835     }
836     z->ket = z->c; /* [, line 132 */
837     among_var = find_among_b(z, a_3, 62); /* substring, line 132 */
838     if (!(among_var)) return 0;
839     z->bra = z->c; /* ], line 132 */
840     {   int ret = r_R2(z); /* call R2, line 132 */
841         if (ret <= 0) return ret;
842     }
843     switch (among_var) { /* among, line 133 */
844         case 1:
845             {   int ret = slice_del(z); /* delete, line 149 */
846                 if (ret < 0) return ret;
847             }
848             break;
849         case 2:
850             if (!(eq_s_b(z, 2, s_17))) return 0; /* literal, line 152 */
851             z->bra = z->c; /* ], line 152 */
852             {   int ret = slice_from_s(z, 1, s_18); /* <-, line 152 */
853                 if (ret < 0) return ret;
854             }
855             break;
856         case 3:
857             {   int ret = slice_from_s(z, 3, s_19); /* <-, line 156 */
858                 if (ret < 0) return ret;
859             }
860             break;
861     }
862     z->B[0] = 1; /* set standard_suffix_removed, line 160 */
863     return 1;
864 }
865 
r_verb_suffix(struct SN_env * z)866 static int r_verb_suffix(struct SN_env * z) { /* backwardmode */
867     int among_var;
868 
869     {   int mlimit1; /* setlimit, line 164 */
870         if (z->c < z->I[0]) return 0;
871         mlimit1 = z->lb; z->lb = z->I[0];
872         z->ket = z->c; /* [, line 165 */
873         among_var = find_among_b(z, a_4, 94); /* substring, line 165 */
874         if (!(among_var)) { z->lb = mlimit1; return 0; }
875         z->bra = z->c; /* ], line 165 */
876         switch (among_var) { /* among, line 165 */
877             case 1:
878                 {   int m2 = z->l - z->c; (void)m2; /* or, line 200 */
879                     if (out_grouping_b_U(z, g_v, 97, 259, 0)) goto lab1; /* non v, line 200 */
880                     goto lab0;
881                 lab1:
882                     z->c = z->l - m2;
883                     if (z->c <= z->lb || z->p[z->c - 1] != 'u') { z->lb = mlimit1; return 0; } /* literal, line 200 */
884                     z->c--;
885                 }
886             lab0:
887                 {   int ret = slice_del(z); /* delete, line 200 */
888                     if (ret < 0) return ret;
889                 }
890                 break;
891             case 2:
892                 {   int ret = slice_del(z); /* delete, line 214 */
893                     if (ret < 0) return ret;
894                 }
895                 break;
896         }
897         z->lb = mlimit1;
898     }
899     return 1;
900 }
901 
r_vowel_suffix(struct SN_env * z)902 static int r_vowel_suffix(struct SN_env * z) { /* backwardmode */
903     z->ket = z->c; /* [, line 219 */
904     if (!(find_among_b(z, a_5, 5))) return 0; /* substring, line 219 */
905     z->bra = z->c; /* ], line 219 */
906     {   int ret = r_RV(z); /* call RV, line 219 */
907         if (ret <= 0) return ret;
908     }
909     {   int ret = slice_del(z); /* delete, line 220 */
910         if (ret < 0) return ret;
911     }
912     return 1;
913 }
914 
romanian_UTF_8_stem(struct SN_env * z)915 extern int romanian_UTF_8_stem(struct SN_env * z) { /* forwardmode */
916     {   int c1 = z->c; /* do, line 226 */
917         {   int ret = r_prelude(z); /* call prelude, line 226 */
918             if (ret < 0) return ret;
919         }
920         z->c = c1;
921     }
922     /* do, line 227 */
923     {   int ret = r_mark_regions(z); /* call mark_regions, line 227 */
924         if (ret < 0) return ret;
925     }
926     z->lb = z->c; z->c = z->l; /* backwards, line 228 */
927 
928     {   int m2 = z->l - z->c; (void)m2; /* do, line 229 */
929         {   int ret = r_step_0(z); /* call step_0, line 229 */
930             if (ret < 0) return ret;
931         }
932         z->c = z->l - m2;
933     }
934     {   int m3 = z->l - z->c; (void)m3; /* do, line 230 */
935         {   int ret = r_standard_suffix(z); /* call standard_suffix, line 230 */
936             if (ret < 0) return ret;
937         }
938         z->c = z->l - m3;
939     }
940     {   int m4 = z->l - z->c; (void)m4; /* do, line 231 */
941         {   int m5 = z->l - z->c; (void)m5; /* or, line 231 */
942             if (!(z->B[0])) goto lab2; /* Boolean test standard_suffix_removed, line 231 */
943             goto lab1;
944         lab2:
945             z->c = z->l - m5;
946             {   int ret = r_verb_suffix(z); /* call verb_suffix, line 231 */
947                 if (ret == 0) goto lab0;
948                 if (ret < 0) return ret;
949             }
950         }
951     lab1:
952     lab0:
953         z->c = z->l - m4;
954     }
955     {   int m6 = z->l - z->c; (void)m6; /* do, line 232 */
956         {   int ret = r_vowel_suffix(z); /* call vowel_suffix, line 232 */
957             if (ret < 0) return ret;
958         }
959         z->c = z->l - m6;
960     }
961     z->c = z->lb;
962     {   int c7 = z->c; /* do, line 234 */
963         {   int ret = r_postlude(z); /* call postlude, line 234 */
964             if (ret < 0) return ret;
965         }
966         z->c = c7;
967     }
968     return 1;
969 }
970 
romanian_UTF_8_create_env(void)971 extern struct SN_env * romanian_UTF_8_create_env(void) { return SN_create_env(0, 3, 1); }
972 
romanian_UTF_8_close_env(struct SN_env * z)973 extern void romanian_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
974 
975