Branch data Line data Source code
1 : : /* Generated from portuguese.sbl by Snowball 3.0.0 - https://snowballstem.org/ */
2 : :
3 : : #include "stem_UTF_8_portuguese.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 : : };
15 : :
16 : : typedef struct SN_local SN_local;
17 : :
18 : : #ifdef __cplusplus
19 : : extern "C" {
20 : : #endif
21 : : extern int portuguese_UTF_8_stem(struct SN_env * z);
22 : : #ifdef __cplusplus
23 : : }
24 : : #endif
25 : :
26 : : static int r_residual_form(struct SN_env * z);
27 : : static int r_residual_suffix(struct SN_env * z);
28 : : static int r_verb_suffix(struct SN_env * z);
29 : : static int r_standard_suffix(struct SN_env * z);
30 : : static int r_R2(struct SN_env * z);
31 : : static int r_R1(struct SN_env * z);
32 : : static int r_RV(struct SN_env * z);
33 : : static int r_mark_regions(struct SN_env * z);
34 : : static int r_postlude(struct SN_env * z);
35 : : static int r_prelude(struct SN_env * z);
36 : :
37 : : static const symbol s_0[] = { 'a', '~' };
38 : : static const symbol s_1[] = { 'o', '~' };
39 : : static const symbol s_2[] = { 0xC3, 0xA3 };
40 : : static const symbol s_3[] = { 0xC3, 0xB5 };
41 : : static const symbol s_4[] = { 'l', 'o', 'g' };
42 : : static const symbol s_5[] = { 'u' };
43 : : static const symbol s_6[] = { 'e', 'n', 't', 'e' };
44 : : static const symbol s_7[] = { 'a', 't' };
45 : : static const symbol s_8[] = { 'a', 't' };
46 : : static const symbol s_9[] = { 'i', 'r' };
47 : : static const symbol s_10[] = { 'c' };
48 : :
49 : : static const symbol s_0_1[2] = { 0xC3, 0xA3 };
50 : : static const symbol s_0_2[2] = { 0xC3, 0xB5 };
51 : : static const struct among a_0[3] = {
52 : : { 0, 0, 0, 3, 0},
53 : : { 2, s_0_1, -1, 1, 0},
54 : : { 2, s_0_2, -2, 2, 0}
55 : : };
56 : :
57 : : static const symbol s_1_1[2] = { 'a', '~' };
58 : : static const symbol s_1_2[2] = { 'o', '~' };
59 : : static const struct among a_1[3] = {
60 : : { 0, 0, 0, 3, 0},
61 : : { 2, s_1_1, -1, 1, 0},
62 : : { 2, s_1_2, -2, 2, 0}
63 : : };
64 : :
65 : : static const symbol s_2_0[2] = { 'i', 'c' };
66 : : static const symbol s_2_1[2] = { 'a', 'd' };
67 : : static const symbol s_2_2[2] = { 'o', 's' };
68 : : static const symbol s_2_3[2] = { 'i', 'v' };
69 : : static const struct among a_2[4] = {
70 : : { 2, s_2_0, 0, -1, 0},
71 : : { 2, s_2_1, 0, -1, 0},
72 : : { 2, s_2_2, 0, -1, 0},
73 : : { 2, s_2_3, 0, 1, 0}
74 : : };
75 : :
76 : : static const symbol s_3_0[4] = { 'a', 'n', 't', 'e' };
77 : : static const symbol s_3_1[4] = { 'a', 'v', 'e', 'l' };
78 : : static const symbol s_3_2[5] = { 0xC3, 0xAD, 'v', 'e', 'l' };
79 : : static const struct among a_3[3] = {
80 : : { 4, s_3_0, 0, 1, 0},
81 : : { 4, s_3_1, 0, 1, 0},
82 : : { 5, s_3_2, 0, 1, 0}
83 : : };
84 : :
85 : : static const symbol s_4_0[2] = { 'i', 'c' };
86 : : static const symbol s_4_1[4] = { 'a', 'b', 'i', 'l' };
87 : : static const symbol s_4_2[2] = { 'i', 'v' };
88 : : static const struct among a_4[3] = {
89 : : { 2, s_4_0, 0, 1, 0},
90 : : { 4, s_4_1, 0, 1, 0},
91 : : { 2, s_4_2, 0, 1, 0}
92 : : };
93 : :
94 : : static const symbol s_5_0[3] = { 'i', 'c', 'a' };
95 : : static const symbol s_5_1[6] = { 0xC3, 0xA2, 'n', 'c', 'i', 'a' };
96 : : static const symbol s_5_2[6] = { 0xC3, 0xAA, 'n', 'c', 'i', 'a' };
97 : : static const symbol s_5_3[5] = { 'l', 'o', 'g', 'i', 'a' };
98 : : static const symbol s_5_4[3] = { 'i', 'r', 'a' };
99 : : static const symbol s_5_5[5] = { 'a', 'd', 'o', 'r', 'a' };
100 : : static const symbol s_5_6[3] = { 'o', 's', 'a' };
101 : : static const symbol s_5_7[4] = { 'i', 's', 't', 'a' };
102 : : static const symbol s_5_8[3] = { 'i', 'v', 'a' };
103 : : static const symbol s_5_9[3] = { 'e', 'z', 'a' };
104 : : static const symbol s_5_10[5] = { 'i', 'd', 'a', 'd', 'e' };
105 : : static const symbol s_5_11[4] = { 'a', 'n', 't', 'e' };
106 : : static const symbol s_5_12[5] = { 'm', 'e', 'n', 't', 'e' };
107 : : static const symbol s_5_13[6] = { 'a', 'm', 'e', 'n', 't', 'e' };
108 : : static const symbol s_5_14[5] = { 0xC3, 0xA1, 'v', 'e', 'l' };
109 : : static const symbol s_5_15[5] = { 0xC3, 0xAD, 'v', 'e', 'l' };
110 : : static const symbol s_5_16[3] = { 'i', 'c', 'o' };
111 : : static const symbol s_5_17[4] = { 'i', 's', 'm', 'o' };
112 : : static const symbol s_5_18[3] = { 'o', 's', 'o' };
113 : : static const symbol s_5_19[6] = { 'a', 'm', 'e', 'n', 't', 'o' };
114 : : static const symbol s_5_20[6] = { 'i', 'm', 'e', 'n', 't', 'o' };
115 : : static const symbol s_5_21[3] = { 'i', 'v', 'o' };
116 : : static const symbol s_5_22[6] = { 'a', 0xC3, 0xA7, 'a', '~', 'o' };
117 : : static const symbol s_5_23[6] = { 'u', 0xC3, 0xA7, 'a', '~', 'o' };
118 : : static const symbol s_5_24[4] = { 'a', 'd', 'o', 'r' };
119 : : static const symbol s_5_25[4] = { 'i', 'c', 'a', 's' };
120 : : static const symbol s_5_26[7] = { 0xC3, 0xAA, 'n', 'c', 'i', 'a', 's' };
121 : : static const symbol s_5_27[6] = { 'l', 'o', 'g', 'i', 'a', 's' };
122 : : static const symbol s_5_28[4] = { 'i', 'r', 'a', 's' };
123 : : static const symbol s_5_29[6] = { 'a', 'd', 'o', 'r', 'a', 's' };
124 : : static const symbol s_5_30[4] = { 'o', 's', 'a', 's' };
125 : : static const symbol s_5_31[5] = { 'i', 's', 't', 'a', 's' };
126 : : static const symbol s_5_32[4] = { 'i', 'v', 'a', 's' };
127 : : static const symbol s_5_33[4] = { 'e', 'z', 'a', 's' };
128 : : static const symbol s_5_34[6] = { 'i', 'd', 'a', 'd', 'e', 's' };
129 : : static const symbol s_5_35[6] = { 'a', 'd', 'o', 'r', 'e', 's' };
130 : : static const symbol s_5_36[5] = { 'a', 'n', 't', 'e', 's' };
131 : : static const symbol s_5_37[7] = { 'a', 0xC3, 0xA7, 'o', '~', 'e', 's' };
132 : : static const symbol s_5_38[7] = { 'u', 0xC3, 0xA7, 'o', '~', 'e', 's' };
133 : : static const symbol s_5_39[4] = { 'i', 'c', 'o', 's' };
134 : : static const symbol s_5_40[5] = { 'i', 's', 'm', 'o', 's' };
135 : : static const symbol s_5_41[4] = { 'o', 's', 'o', 's' };
136 : : static const symbol s_5_42[7] = { 'a', 'm', 'e', 'n', 't', 'o', 's' };
137 : : static const symbol s_5_43[7] = { 'i', 'm', 'e', 'n', 't', 'o', 's' };
138 : : static const symbol s_5_44[4] = { 'i', 'v', 'o', 's' };
139 : : static const struct among a_5[45] = {
140 : : { 3, s_5_0, 0, 1, 0},
141 : : { 6, s_5_1, 0, 1, 0},
142 : : { 6, s_5_2, 0, 4, 0},
143 : : { 5, s_5_3, 0, 2, 0},
144 : : { 3, s_5_4, 0, 9, 0},
145 : : { 5, s_5_5, 0, 1, 0},
146 : : { 3, s_5_6, 0, 1, 0},
147 : : { 4, s_5_7, 0, 1, 0},
148 : : { 3, s_5_8, 0, 8, 0},
149 : : { 3, s_5_9, 0, 1, 0},
150 : : { 5, s_5_10, 0, 7, 0},
151 : : { 4, s_5_11, 0, 1, 0},
152 : : { 5, s_5_12, 0, 6, 0},
153 : : { 6, s_5_13, -1, 5, 0},
154 : : { 5, s_5_14, 0, 1, 0},
155 : : { 5, s_5_15, 0, 1, 0},
156 : : { 3, s_5_16, 0, 1, 0},
157 : : { 4, s_5_17, 0, 1, 0},
158 : : { 3, s_5_18, 0, 1, 0},
159 : : { 6, s_5_19, 0, 1, 0},
160 : : { 6, s_5_20, 0, 1, 0},
161 : : { 3, s_5_21, 0, 8, 0},
162 : : { 6, s_5_22, 0, 1, 0},
163 : : { 6, s_5_23, 0, 3, 0},
164 : : { 4, s_5_24, 0, 1, 0},
165 : : { 4, s_5_25, 0, 1, 0},
166 : : { 7, s_5_26, 0, 4, 0},
167 : : { 6, s_5_27, 0, 2, 0},
168 : : { 4, s_5_28, 0, 9, 0},
169 : : { 6, s_5_29, 0, 1, 0},
170 : : { 4, s_5_30, 0, 1, 0},
171 : : { 5, s_5_31, 0, 1, 0},
172 : : { 4, s_5_32, 0, 8, 0},
173 : : { 4, s_5_33, 0, 1, 0},
174 : : { 6, s_5_34, 0, 7, 0},
175 : : { 6, s_5_35, 0, 1, 0},
176 : : { 5, s_5_36, 0, 1, 0},
177 : : { 7, s_5_37, 0, 1, 0},
178 : : { 7, s_5_38, 0, 3, 0},
179 : : { 4, s_5_39, 0, 1, 0},
180 : : { 5, s_5_40, 0, 1, 0},
181 : : { 4, s_5_41, 0, 1, 0},
182 : : { 7, s_5_42, 0, 1, 0},
183 : : { 7, s_5_43, 0, 1, 0},
184 : : { 4, s_5_44, 0, 8, 0}
185 : : };
186 : :
187 : : static const symbol s_6_0[3] = { 'a', 'd', 'a' };
188 : : static const symbol s_6_1[3] = { 'i', 'd', 'a' };
189 : : static const symbol s_6_2[2] = { 'i', 'a' };
190 : : static const symbol s_6_3[4] = { 'a', 'r', 'i', 'a' };
191 : : static const symbol s_6_4[4] = { 'e', 'r', 'i', 'a' };
192 : : static const symbol s_6_5[4] = { 'i', 'r', 'i', 'a' };
193 : : static const symbol s_6_6[3] = { 'a', 'r', 'a' };
194 : : static const symbol s_6_7[3] = { 'e', 'r', 'a' };
195 : : static const symbol s_6_8[3] = { 'i', 'r', 'a' };
196 : : static const symbol s_6_9[3] = { 'a', 'v', 'a' };
197 : : static const symbol s_6_10[4] = { 'a', 's', 's', 'e' };
198 : : static const symbol s_6_11[4] = { 'e', 's', 's', 'e' };
199 : : static const symbol s_6_12[4] = { 'i', 's', 's', 'e' };
200 : : static const symbol s_6_13[4] = { 'a', 's', 't', 'e' };
201 : : static const symbol s_6_14[4] = { 'e', 's', 't', 'e' };
202 : : static const symbol s_6_15[4] = { 'i', 's', 't', 'e' };
203 : : static const symbol s_6_16[2] = { 'e', 'i' };
204 : : static const symbol s_6_17[4] = { 'a', 'r', 'e', 'i' };
205 : : static const symbol s_6_18[4] = { 'e', 'r', 'e', 'i' };
206 : : static const symbol s_6_19[4] = { 'i', 'r', 'e', 'i' };
207 : : static const symbol s_6_20[2] = { 'a', 'm' };
208 : : static const symbol s_6_21[3] = { 'i', 'a', 'm' };
209 : : static const symbol s_6_22[5] = { 'a', 'r', 'i', 'a', 'm' };
210 : : static const symbol s_6_23[5] = { 'e', 'r', 'i', 'a', 'm' };
211 : : static const symbol s_6_24[5] = { 'i', 'r', 'i', 'a', 'm' };
212 : : static const symbol s_6_25[4] = { 'a', 'r', 'a', 'm' };
213 : : static const symbol s_6_26[4] = { 'e', 'r', 'a', 'm' };
214 : : static const symbol s_6_27[4] = { 'i', 'r', 'a', 'm' };
215 : : static const symbol s_6_28[4] = { 'a', 'v', 'a', 'm' };
216 : : static const symbol s_6_29[2] = { 'e', 'm' };
217 : : static const symbol s_6_30[4] = { 'a', 'r', 'e', 'm' };
218 : : static const symbol s_6_31[4] = { 'e', 'r', 'e', 'm' };
219 : : static const symbol s_6_32[4] = { 'i', 'r', 'e', 'm' };
220 : : static const symbol s_6_33[5] = { 'a', 's', 's', 'e', 'm' };
221 : : static const symbol s_6_34[5] = { 'e', 's', 's', 'e', 'm' };
222 : : static const symbol s_6_35[5] = { 'i', 's', 's', 'e', 'm' };
223 : : static const symbol s_6_36[3] = { 'a', 'd', 'o' };
224 : : static const symbol s_6_37[3] = { 'i', 'd', 'o' };
225 : : static const symbol s_6_38[4] = { 'a', 'n', 'd', 'o' };
226 : : static const symbol s_6_39[4] = { 'e', 'n', 'd', 'o' };
227 : : static const symbol s_6_40[4] = { 'i', 'n', 'd', 'o' };
228 : : static const symbol s_6_41[5] = { 'a', 'r', 'a', '~', 'o' };
229 : : static const symbol s_6_42[5] = { 'e', 'r', 'a', '~', 'o' };
230 : : static const symbol s_6_43[5] = { 'i', 'r', 'a', '~', 'o' };
231 : : static const symbol s_6_44[2] = { 'a', 'r' };
232 : : static const symbol s_6_45[2] = { 'e', 'r' };
233 : : static const symbol s_6_46[2] = { 'i', 'r' };
234 : : static const symbol s_6_47[2] = { 'a', 's' };
235 : : static const symbol s_6_48[4] = { 'a', 'd', 'a', 's' };
236 : : static const symbol s_6_49[4] = { 'i', 'd', 'a', 's' };
237 : : static const symbol s_6_50[3] = { 'i', 'a', 's' };
238 : : static const symbol s_6_51[5] = { 'a', 'r', 'i', 'a', 's' };
239 : : static const symbol s_6_52[5] = { 'e', 'r', 'i', 'a', 's' };
240 : : static const symbol s_6_53[5] = { 'i', 'r', 'i', 'a', 's' };
241 : : static const symbol s_6_54[4] = { 'a', 'r', 'a', 's' };
242 : : static const symbol s_6_55[4] = { 'e', 'r', 'a', 's' };
243 : : static const symbol s_6_56[4] = { 'i', 'r', 'a', 's' };
244 : : static const symbol s_6_57[4] = { 'a', 'v', 'a', 's' };
245 : : static const symbol s_6_58[2] = { 'e', 's' };
246 : : static const symbol s_6_59[5] = { 'a', 'r', 'd', 'e', 's' };
247 : : static const symbol s_6_60[5] = { 'e', 'r', 'd', 'e', 's' };
248 : : static const symbol s_6_61[5] = { 'i', 'r', 'd', 'e', 's' };
249 : : static const symbol s_6_62[4] = { 'a', 'r', 'e', 's' };
250 : : static const symbol s_6_63[4] = { 'e', 'r', 'e', 's' };
251 : : static const symbol s_6_64[4] = { 'i', 'r', 'e', 's' };
252 : : static const symbol s_6_65[5] = { 'a', 's', 's', 'e', 's' };
253 : : static const symbol s_6_66[5] = { 'e', 's', 's', 'e', 's' };
254 : : static const symbol s_6_67[5] = { 'i', 's', 's', 'e', 's' };
255 : : static const symbol s_6_68[5] = { 'a', 's', 't', 'e', 's' };
256 : : static const symbol s_6_69[5] = { 'e', 's', 't', 'e', 's' };
257 : : static const symbol s_6_70[5] = { 'i', 's', 't', 'e', 's' };
258 : : static const symbol s_6_71[2] = { 'i', 's' };
259 : : static const symbol s_6_72[3] = { 'a', 'i', 's' };
260 : : static const symbol s_6_73[3] = { 'e', 'i', 's' };
261 : : static const symbol s_6_74[5] = { 'a', 'r', 'e', 'i', 's' };
262 : : static const symbol s_6_75[5] = { 'e', 'r', 'e', 'i', 's' };
263 : : static const symbol s_6_76[5] = { 'i', 'r', 'e', 'i', 's' };
264 : : static const symbol s_6_77[6] = { 0xC3, 0xA1, 'r', 'e', 'i', 's' };
265 : : static const symbol s_6_78[6] = { 0xC3, 0xA9, 'r', 'e', 'i', 's' };
266 : : static const symbol s_6_79[6] = { 0xC3, 0xAD, 'r', 'e', 'i', 's' };
267 : : static const symbol s_6_80[7] = { 0xC3, 0xA1, 's', 's', 'e', 'i', 's' };
268 : : static const symbol s_6_81[7] = { 0xC3, 0xA9, 's', 's', 'e', 'i', 's' };
269 : : static const symbol s_6_82[7] = { 0xC3, 0xAD, 's', 's', 'e', 'i', 's' };
270 : : static const symbol s_6_83[6] = { 0xC3, 0xA1, 'v', 'e', 'i', 's' };
271 : : static const symbol s_6_84[5] = { 0xC3, 0xAD, 'e', 'i', 's' };
272 : : static const symbol s_6_85[7] = { 'a', 'r', 0xC3, 0xAD, 'e', 'i', 's' };
273 : : static const symbol s_6_86[7] = { 'e', 'r', 0xC3, 0xAD, 'e', 'i', 's' };
274 : : static const symbol s_6_87[7] = { 'i', 'r', 0xC3, 0xAD, 'e', 'i', 's' };
275 : : static const symbol s_6_88[4] = { 'a', 'd', 'o', 's' };
276 : : static const symbol s_6_89[4] = { 'i', 'd', 'o', 's' };
277 : : static const symbol s_6_90[4] = { 'a', 'm', 'o', 's' };
278 : : static const symbol s_6_91[7] = { 0xC3, 0xA1, 'r', 'a', 'm', 'o', 's' };
279 : : static const symbol s_6_92[7] = { 0xC3, 0xA9, 'r', 'a', 'm', 'o', 's' };
280 : : static const symbol s_6_93[7] = { 0xC3, 0xAD, 'r', 'a', 'm', 'o', 's' };
281 : : static const symbol s_6_94[7] = { 0xC3, 0xA1, 'v', 'a', 'm', 'o', 's' };
282 : : static const symbol s_6_95[6] = { 0xC3, 0xAD, 'a', 'm', 'o', 's' };
283 : : static const symbol s_6_96[8] = { 'a', 'r', 0xC3, 0xAD, 'a', 'm', 'o', 's' };
284 : : static const symbol s_6_97[8] = { 'e', 'r', 0xC3, 0xAD, 'a', 'm', 'o', 's' };
285 : : static const symbol s_6_98[8] = { 'i', 'r', 0xC3, 0xAD, 'a', 'm', 'o', 's' };
286 : : static const symbol s_6_99[4] = { 'e', 'm', 'o', 's' };
287 : : static const symbol s_6_100[6] = { 'a', 'r', 'e', 'm', 'o', 's' };
288 : : static const symbol s_6_101[6] = { 'e', 'r', 'e', 'm', 'o', 's' };
289 : : static const symbol s_6_102[6] = { 'i', 'r', 'e', 'm', 'o', 's' };
290 : : static const symbol s_6_103[8] = { 0xC3, 0xA1, 's', 's', 'e', 'm', 'o', 's' };
291 : : static const symbol s_6_104[8] = { 0xC3, 0xAA, 's', 's', 'e', 'm', 'o', 's' };
292 : : static const symbol s_6_105[8] = { 0xC3, 0xAD, 's', 's', 'e', 'm', 'o', 's' };
293 : : static const symbol s_6_106[4] = { 'i', 'm', 'o', 's' };
294 : : static const symbol s_6_107[5] = { 'a', 'r', 'm', 'o', 's' };
295 : : static const symbol s_6_108[5] = { 'e', 'r', 'm', 'o', 's' };
296 : : static const symbol s_6_109[5] = { 'i', 'r', 'm', 'o', 's' };
297 : : static const symbol s_6_110[5] = { 0xC3, 0xA1, 'm', 'o', 's' };
298 : : static const symbol s_6_111[5] = { 'a', 'r', 0xC3, 0xA1, 's' };
299 : : static const symbol s_6_112[5] = { 'e', 'r', 0xC3, 0xA1, 's' };
300 : : static const symbol s_6_113[5] = { 'i', 'r', 0xC3, 0xA1, 's' };
301 : : static const symbol s_6_114[2] = { 'e', 'u' };
302 : : static const symbol s_6_115[2] = { 'i', 'u' };
303 : : static const symbol s_6_116[2] = { 'o', 'u' };
304 : : static const symbol s_6_117[4] = { 'a', 'r', 0xC3, 0xA1 };
305 : : static const symbol s_6_118[4] = { 'e', 'r', 0xC3, 0xA1 };
306 : : static const symbol s_6_119[4] = { 'i', 'r', 0xC3, 0xA1 };
307 : : static const struct among a_6[120] = {
308 : : { 3, s_6_0, 0, 1, 0},
309 : : { 3, s_6_1, 0, 1, 0},
310 : : { 2, s_6_2, 0, 1, 0},
311 : : { 4, s_6_3, -1, 1, 0},
312 : : { 4, s_6_4, -2, 1, 0},
313 : : { 4, s_6_5, -3, 1, 0},
314 : : { 3, s_6_6, 0, 1, 0},
315 : : { 3, s_6_7, 0, 1, 0},
316 : : { 3, s_6_8, 0, 1, 0},
317 : : { 3, s_6_9, 0, 1, 0},
318 : : { 4, s_6_10, 0, 1, 0},
319 : : { 4, s_6_11, 0, 1, 0},
320 : : { 4, s_6_12, 0, 1, 0},
321 : : { 4, s_6_13, 0, 1, 0},
322 : : { 4, s_6_14, 0, 1, 0},
323 : : { 4, s_6_15, 0, 1, 0},
324 : : { 2, s_6_16, 0, 1, 0},
325 : : { 4, s_6_17, -1, 1, 0},
326 : : { 4, s_6_18, -2, 1, 0},
327 : : { 4, s_6_19, -3, 1, 0},
328 : : { 2, s_6_20, 0, 1, 0},
329 : : { 3, s_6_21, -1, 1, 0},
330 : : { 5, s_6_22, -1, 1, 0},
331 : : { 5, s_6_23, -2, 1, 0},
332 : : { 5, s_6_24, -3, 1, 0},
333 : : { 4, s_6_25, -5, 1, 0},
334 : : { 4, s_6_26, -6, 1, 0},
335 : : { 4, s_6_27, -7, 1, 0},
336 : : { 4, s_6_28, -8, 1, 0},
337 : : { 2, s_6_29, 0, 1, 0},
338 : : { 4, s_6_30, -1, 1, 0},
339 : : { 4, s_6_31, -2, 1, 0},
340 : : { 4, s_6_32, -3, 1, 0},
341 : : { 5, s_6_33, -4, 1, 0},
342 : : { 5, s_6_34, -5, 1, 0},
343 : : { 5, s_6_35, -6, 1, 0},
344 : : { 3, s_6_36, 0, 1, 0},
345 : : { 3, s_6_37, 0, 1, 0},
346 : : { 4, s_6_38, 0, 1, 0},
347 : : { 4, s_6_39, 0, 1, 0},
348 : : { 4, s_6_40, 0, 1, 0},
349 : : { 5, s_6_41, 0, 1, 0},
350 : : { 5, s_6_42, 0, 1, 0},
351 : : { 5, s_6_43, 0, 1, 0},
352 : : { 2, s_6_44, 0, 1, 0},
353 : : { 2, s_6_45, 0, 1, 0},
354 : : { 2, s_6_46, 0, 1, 0},
355 : : { 2, s_6_47, 0, 1, 0},
356 : : { 4, s_6_48, -1, 1, 0},
357 : : { 4, s_6_49, -2, 1, 0},
358 : : { 3, s_6_50, -3, 1, 0},
359 : : { 5, s_6_51, -1, 1, 0},
360 : : { 5, s_6_52, -2, 1, 0},
361 : : { 5, s_6_53, -3, 1, 0},
362 : : { 4, s_6_54, -7, 1, 0},
363 : : { 4, s_6_55, -8, 1, 0},
364 : : { 4, s_6_56, -9, 1, 0},
365 : : { 4, s_6_57, -10, 1, 0},
366 : : { 2, s_6_58, 0, 1, 0},
367 : : { 5, s_6_59, -1, 1, 0},
368 : : { 5, s_6_60, -2, 1, 0},
369 : : { 5, s_6_61, -3, 1, 0},
370 : : { 4, s_6_62, -4, 1, 0},
371 : : { 4, s_6_63, -5, 1, 0},
372 : : { 4, s_6_64, -6, 1, 0},
373 : : { 5, s_6_65, -7, 1, 0},
374 : : { 5, s_6_66, -8, 1, 0},
375 : : { 5, s_6_67, -9, 1, 0},
376 : : { 5, s_6_68, -10, 1, 0},
377 : : { 5, s_6_69, -11, 1, 0},
378 : : { 5, s_6_70, -12, 1, 0},
379 : : { 2, s_6_71, 0, 1, 0},
380 : : { 3, s_6_72, -1, 1, 0},
381 : : { 3, s_6_73, -2, 1, 0},
382 : : { 5, s_6_74, -1, 1, 0},
383 : : { 5, s_6_75, -2, 1, 0},
384 : : { 5, s_6_76, -3, 1, 0},
385 : : { 6, s_6_77, -4, 1, 0},
386 : : { 6, s_6_78, -5, 1, 0},
387 : : { 6, s_6_79, -6, 1, 0},
388 : : { 7, s_6_80, -7, 1, 0},
389 : : { 7, s_6_81, -8, 1, 0},
390 : : { 7, s_6_82, -9, 1, 0},
391 : : { 6, s_6_83, -10, 1, 0},
392 : : { 5, s_6_84, -11, 1, 0},
393 : : { 7, s_6_85, -1, 1, 0},
394 : : { 7, s_6_86, -2, 1, 0},
395 : : { 7, s_6_87, -3, 1, 0},
396 : : { 4, s_6_88, 0, 1, 0},
397 : : { 4, s_6_89, 0, 1, 0},
398 : : { 4, s_6_90, 0, 1, 0},
399 : : { 7, s_6_91, -1, 1, 0},
400 : : { 7, s_6_92, -2, 1, 0},
401 : : { 7, s_6_93, -3, 1, 0},
402 : : { 7, s_6_94, -4, 1, 0},
403 : : { 6, s_6_95, -5, 1, 0},
404 : : { 8, s_6_96, -1, 1, 0},
405 : : { 8, s_6_97, -2, 1, 0},
406 : : { 8, s_6_98, -3, 1, 0},
407 : : { 4, s_6_99, 0, 1, 0},
408 : : { 6, s_6_100, -1, 1, 0},
409 : : { 6, s_6_101, -2, 1, 0},
410 : : { 6, s_6_102, -3, 1, 0},
411 : : { 8, s_6_103, -4, 1, 0},
412 : : { 8, s_6_104, -5, 1, 0},
413 : : { 8, s_6_105, -6, 1, 0},
414 : : { 4, s_6_106, 0, 1, 0},
415 : : { 5, s_6_107, 0, 1, 0},
416 : : { 5, s_6_108, 0, 1, 0},
417 : : { 5, s_6_109, 0, 1, 0},
418 : : { 5, s_6_110, 0, 1, 0},
419 : : { 5, s_6_111, 0, 1, 0},
420 : : { 5, s_6_112, 0, 1, 0},
421 : : { 5, s_6_113, 0, 1, 0},
422 : : { 2, s_6_114, 0, 1, 0},
423 : : { 2, s_6_115, 0, 1, 0},
424 : : { 2, s_6_116, 0, 1, 0},
425 : : { 4, s_6_117, 0, 1, 0},
426 : : { 4, s_6_118, 0, 1, 0},
427 : : { 4, s_6_119, 0, 1, 0}
428 : : };
429 : :
430 : : static const symbol s_7_0[1] = { 'a' };
431 : : static const symbol s_7_1[1] = { 'i' };
432 : : static const symbol s_7_2[1] = { 'o' };
433 : : static const symbol s_7_3[2] = { 'o', 's' };
434 : : static const symbol s_7_4[2] = { 0xC3, 0xA1 };
435 : : static const symbol s_7_5[2] = { 0xC3, 0xAD };
436 : : static const symbol s_7_6[2] = { 0xC3, 0xB3 };
437 : : static const struct among a_7[7] = {
438 : : { 1, s_7_0, 0, 1, 0},
439 : : { 1, s_7_1, 0, 1, 0},
440 : : { 1, s_7_2, 0, 1, 0},
441 : : { 2, s_7_3, 0, 1, 0},
442 : : { 2, s_7_4, 0, 1, 0},
443 : : { 2, s_7_5, 0, 1, 0},
444 : : { 2, s_7_6, 0, 1, 0}
445 : : };
446 : :
447 : : static const symbol s_8_0[1] = { 'e' };
448 : : static const symbol s_8_1[2] = { 0xC3, 0xA7 };
449 : : static const symbol s_8_2[2] = { 0xC3, 0xA9 };
450 : : static const symbol s_8_3[2] = { 0xC3, 0xAA };
451 : : static const struct among a_8[4] = {
452 : : { 1, s_8_0, 0, 1, 0},
453 : : { 2, s_8_1, 0, 2, 0},
454 : : { 2, s_8_2, 0, 1, 0},
455 : : { 2, s_8_3, 0, 1, 0}
456 : : };
457 : :
458 : : static const unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 19, 12, 2 };
459 : :
460 : 0 : static int r_prelude(struct SN_env * z) {
461 : 0 : int among_var;
462 : 0 : while (1) {
463 : 0 : int v_1 = z->c;
464 : 0 : z->bra = z->c;
465 [ # # # # : 0 : if (z->c + 1 >= z->l || (z->p[z->c + 1] != 163 && z->p[z->c + 1] != 181)) among_var = 3; else
# # ]
466 : 0 : among_var = find_among(z, a_0, 3, 0);
467 : 0 : z->ket = z->c;
468 [ # # # # ]: 0 : switch (among_var) {
469 : : case 1:
470 : : {
471 : 0 : int ret = slice_from_s(z, 2, s_0);
472 [ # # ]: 0 : if (ret < 0) return ret;
473 [ # # ]: 0 : }
474 : 0 : break;
475 : : case 2:
476 : : {
477 : 0 : int ret = slice_from_s(z, 2, s_1);
478 [ # # ]: 0 : if (ret < 0) return ret;
479 [ # # ]: 0 : }
480 : 0 : break;
481 : : case 3:
482 : : {
483 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
484 [ # # ]: 0 : if (ret < 0) goto lab0;
485 : 0 : z->c = ret;
486 [ # # # ]: 0 : }
487 : 0 : break;
488 : : }
489 : 0 : continue;
490 : : lab0:
491 : 0 : z->c = v_1;
492 : 0 : break;
493 [ # # # ]: 0 : }
494 : 0 : return 1;
495 : 0 : }
496 : :
497 : 0 : static int r_mark_regions(struct SN_env * z) {
498 : 0 : ((SN_local *)z)->i_pV = z->l;
499 : 0 : ((SN_local *)z)->i_p1 = z->l;
500 : 0 : ((SN_local *)z)->i_p2 = z->l;
501 : : {
502 : 0 : int v_1 = z->c;
503 : 0 : do {
504 : 0 : int v_2 = z->c;
505 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 250, 0)) goto lab1;
506 : 0 : do {
507 : 0 : int v_3 = z->c;
508 [ # # ]: 0 : if (out_grouping_U(z, g_v, 97, 250, 0)) goto lab2;
509 : : {
510 : 0 : int ret = out_grouping_U(z, g_v, 97, 250, 1);
511 [ # # ]: 0 : if (ret < 0) goto lab2;
512 : 0 : z->c += ret;
513 [ # # # ]: 0 : }
514 : 0 : break;
515 : : lab2:
516 : 0 : z->c = v_3;
517 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 250, 0)) goto lab1;
518 : : {
519 : 0 : int ret = in_grouping_U(z, g_v, 97, 250, 1);
520 [ # # ]: 0 : if (ret < 0) goto lab1;
521 : 0 : z->c += ret;
522 [ # # ]: 0 : }
523 [ # # # # ]: 0 : } while (0);
524 : 0 : break;
525 : : lab1:
526 : 0 : z->c = v_2;
527 [ # # ]: 0 : if (out_grouping_U(z, g_v, 97, 250, 0)) goto lab0;
528 : 0 : do {
529 : 0 : int v_4 = z->c;
530 [ # # ]: 0 : if (out_grouping_U(z, g_v, 97, 250, 0)) goto lab3;
531 : : {
532 : 0 : int ret = out_grouping_U(z, g_v, 97, 250, 1);
533 [ # # ]: 0 : if (ret < 0) goto lab3;
534 : 0 : z->c += ret;
535 [ # # # ]: 0 : }
536 : 0 : break;
537 : : lab3:
538 : 0 : z->c = v_4;
539 [ # # ]: 0 : if (in_grouping_U(z, g_v, 97, 250, 0)) goto lab0;
540 : : {
541 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
542 [ # # ]: 0 : if (ret < 0) goto lab0;
543 : 0 : z->c = ret;
544 [ # # ]: 0 : }
545 [ # # # ]: 0 : } while (0);
546 [ # # # ]: 0 : } while (0);
547 : 0 : ((SN_local *)z)->i_pV = z->c;
548 : : lab0:
549 : 0 : z->c = v_1;
550 : 0 : }
551 : : {
552 : 0 : int v_5 = z->c;
553 : : {
554 : 0 : int ret = out_grouping_U(z, g_v, 97, 250, 1);
555 [ # # ]: 0 : if (ret < 0) goto lab4;
556 : 0 : z->c += ret;
557 [ # # ]: 0 : }
558 : : {
559 : 0 : int ret = in_grouping_U(z, g_v, 97, 250, 1);
560 [ # # ]: 0 : if (ret < 0) goto lab4;
561 : 0 : z->c += ret;
562 [ # # ]: 0 : }
563 : 0 : ((SN_local *)z)->i_p1 = z->c;
564 : : {
565 : 0 : int ret = out_grouping_U(z, g_v, 97, 250, 1);
566 [ # # ]: 0 : if (ret < 0) goto lab4;
567 : 0 : z->c += ret;
568 [ # # ]: 0 : }
569 : : {
570 : 0 : int ret = in_grouping_U(z, g_v, 97, 250, 1);
571 [ # # ]: 0 : if (ret < 0) goto lab4;
572 : 0 : z->c += ret;
573 [ # # ]: 0 : }
574 : 0 : ((SN_local *)z)->i_p2 = z->c;
575 : : lab4:
576 : 0 : z->c = v_5;
577 : 0 : }
578 : 0 : return 1;
579 : : }
580 : :
581 : 0 : static int r_postlude(struct SN_env * z) {
582 : 0 : int among_var;
583 : 0 : while (1) {
584 : 0 : int v_1 = z->c;
585 : 0 : z->bra = z->c;
586 [ # # # # ]: 0 : if (z->c + 1 >= z->l || z->p[z->c + 1] != 126) among_var = 3; else
587 : 0 : among_var = find_among(z, a_1, 3, 0);
588 : 0 : z->ket = z->c;
589 [ # # # # ]: 0 : switch (among_var) {
590 : : case 1:
591 : : {
592 : 0 : int ret = slice_from_s(z, 2, s_2);
593 [ # # ]: 0 : if (ret < 0) return ret;
594 [ # # ]: 0 : }
595 : 0 : break;
596 : : case 2:
597 : : {
598 : 0 : int ret = slice_from_s(z, 2, s_3);
599 [ # # ]: 0 : if (ret < 0) return ret;
600 [ # # ]: 0 : }
601 : 0 : break;
602 : : case 3:
603 : : {
604 : 0 : int ret = skip_utf8(z->p, z->c, z->l, 1);
605 [ # # ]: 0 : if (ret < 0) goto lab0;
606 : 0 : z->c = ret;
607 [ # # # ]: 0 : }
608 : 0 : break;
609 : : }
610 : 0 : continue;
611 : : lab0:
612 : 0 : z->c = v_1;
613 : 0 : break;
614 [ # # # ]: 0 : }
615 : 0 : return 1;
616 : 0 : }
617 : :
618 : 0 : static int r_RV(struct SN_env * z) {
619 : 0 : return ((SN_local *)z)->i_pV <= z->c;
620 : : }
621 : :
622 : 0 : static int r_R1(struct SN_env * z) {
623 : 0 : return ((SN_local *)z)->i_p1 <= z->c;
624 : : }
625 : :
626 : 0 : static int r_R2(struct SN_env * z) {
627 : 0 : return ((SN_local *)z)->i_p2 <= z->c;
628 : : }
629 : :
630 : 0 : static int r_standard_suffix(struct SN_env * z) {
631 : 0 : int among_var;
632 : 0 : z->ket = z->c;
633 [ # # # # : 0 : if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((823330 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
# # ]
634 : 0 : among_var = find_among_b(z, a_5, 45, 0);
635 [ # # ]: 0 : if (!among_var) return 0;
636 : 0 : z->bra = z->c;
637 [ # # # # : 0 : switch (among_var) {
# # # # #
# ]
638 : : case 1:
639 : : {
640 : 0 : int ret = r_R2(z);
641 [ # # ]: 0 : if (ret <= 0) return ret;
642 [ # # ]: 0 : }
643 : : {
644 : 0 : int ret = slice_del(z);
645 [ # # ]: 0 : if (ret < 0) return ret;
646 [ # # ]: 0 : }
647 : 0 : break;
648 : : case 2:
649 : : {
650 : 0 : int ret = r_R2(z);
651 [ # # ]: 0 : if (ret <= 0) return ret;
652 [ # # ]: 0 : }
653 : : {
654 : 0 : int ret = slice_from_s(z, 3, s_4);
655 [ # # ]: 0 : if (ret < 0) return ret;
656 [ # # ]: 0 : }
657 : 0 : break;
658 : : case 3:
659 : : {
660 : 0 : int ret = r_R2(z);
661 [ # # ]: 0 : if (ret <= 0) return ret;
662 [ # # ]: 0 : }
663 : : {
664 : 0 : int ret = slice_from_s(z, 1, s_5);
665 [ # # ]: 0 : if (ret < 0) return ret;
666 [ # # ]: 0 : }
667 : 0 : break;
668 : : case 4:
669 : : {
670 : 0 : int ret = r_R2(z);
671 [ # # ]: 0 : if (ret <= 0) return ret;
672 [ # # ]: 0 : }
673 : : {
674 : 0 : int ret = slice_from_s(z, 4, s_6);
675 [ # # ]: 0 : if (ret < 0) return ret;
676 [ # # ]: 0 : }
677 : 0 : break;
678 : : case 5:
679 : : {
680 : 0 : int ret = r_R1(z);
681 [ # # ]: 0 : if (ret <= 0) return ret;
682 [ # # ]: 0 : }
683 : : {
684 : 0 : int ret = slice_del(z);
685 [ # # ]: 0 : if (ret < 0) return ret;
686 [ # # ]: 0 : }
687 : : {
688 : 0 : int v_1 = z->l - z->c;
689 : 0 : z->ket = z->c;
690 [ # # # # : 0 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((4718616 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->c = z->l - v_1; goto lab0; }
# # ]
691 : 0 : among_var = find_among_b(z, a_2, 4, 0);
692 [ # # ]: 0 : if (!among_var) { z->c = z->l - v_1; goto lab0; }
693 : 0 : z->bra = z->c;
694 : : {
695 : 0 : int ret = r_R2(z);
696 [ # # ]: 0 : if (ret == 0) { z->c = z->l - v_1; goto lab0; }
697 [ # # ]: 0 : if (ret < 0) return ret;
698 [ # # # ]: 0 : }
699 : : {
700 : 0 : int ret = slice_del(z);
701 [ # # ]: 0 : if (ret < 0) return ret;
702 [ # # ]: 0 : }
703 [ # # ]: 0 : switch (among_var) {
704 : : case 1:
705 : 0 : z->ket = z->c;
706 [ # # ]: 0 : if (!(eq_s_b(z, 2, s_7))) { z->c = z->l - v_1; goto lab0; }
707 : 0 : z->bra = z->c;
708 : : {
709 : 0 : int ret = r_R2(z);
710 [ # # ]: 0 : if (ret == 0) { z->c = z->l - v_1; goto lab0; }
711 [ # # ]: 0 : if (ret < 0) return ret;
712 [ # # ]: 0 : }
713 : : {
714 : 0 : int ret = slice_del(z);
715 [ # # ]: 0 : if (ret < 0) return ret;
716 [ # # ]: 0 : }
717 : 0 : break;
718 : 0 : }
719 : : lab0:
720 : : ;
721 [ # # ]: 0 : }
722 : 0 : break;
723 : : case 6:
724 : : {
725 : 0 : int ret = r_R2(z);
726 [ # # ]: 0 : if (ret <= 0) return ret;
727 [ # # ]: 0 : }
728 : : {
729 : 0 : int ret = slice_del(z);
730 [ # # ]: 0 : if (ret < 0) return ret;
731 [ # # ]: 0 : }
732 : : {
733 : 0 : int v_2 = z->l - z->c;
734 : 0 : z->ket = z->c;
735 [ # # # # : 0 : if (z->c - 3 <= z->lb || (z->p[z->c - 1] != 101 && z->p[z->c - 1] != 108)) { z->c = z->l - v_2; goto lab1; }
# # ]
736 [ # # ]: 0 : if (!find_among_b(z, a_3, 3, 0)) { z->c = z->l - v_2; goto lab1; }
737 : 0 : z->bra = z->c;
738 : : {
739 : 0 : int ret = r_R2(z);
740 [ # # ]: 0 : if (ret == 0) { z->c = z->l - v_2; goto lab1; }
741 [ # # ]: 0 : if (ret < 0) return ret;
742 [ # # # ]: 0 : }
743 : : {
744 : 0 : int ret = slice_del(z);
745 [ # # ]: 0 : if (ret < 0) return ret;
746 [ # # ]: 0 : }
747 : : lab1:
748 : : ;
749 [ # # ]: 0 : }
750 : 0 : break;
751 : : case 7:
752 : : {
753 : 0 : int ret = r_R2(z);
754 [ # # ]: 0 : if (ret <= 0) return ret;
755 [ # # ]: 0 : }
756 : : {
757 : 0 : int ret = slice_del(z);
758 [ # # ]: 0 : if (ret < 0) return ret;
759 [ # # ]: 0 : }
760 : : {
761 : 0 : int v_3 = z->l - z->c;
762 : 0 : z->ket = z->c;
763 [ # # # # : 0 : if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((4198408 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->c = z->l - v_3; goto lab2; }
# # ]
764 [ # # ]: 0 : if (!find_among_b(z, a_4, 3, 0)) { z->c = z->l - v_3; goto lab2; }
765 : 0 : z->bra = z->c;
766 : : {
767 : 0 : int ret = r_R2(z);
768 [ # # ]: 0 : if (ret == 0) { z->c = z->l - v_3; goto lab2; }
769 [ # # ]: 0 : if (ret < 0) return ret;
770 [ # # # ]: 0 : }
771 : : {
772 : 0 : int ret = slice_del(z);
773 [ # # ]: 0 : if (ret < 0) return ret;
774 [ # # ]: 0 : }
775 : : lab2:
776 : : ;
777 [ # # ]: 0 : }
778 : 0 : break;
779 : : case 8:
780 : : {
781 : 0 : int ret = r_R2(z);
782 [ # # ]: 0 : if (ret <= 0) return ret;
783 [ # # ]: 0 : }
784 : : {
785 : 0 : int ret = slice_del(z);
786 [ # # ]: 0 : if (ret < 0) return ret;
787 [ # # ]: 0 : }
788 : : {
789 : 0 : int v_4 = z->l - z->c;
790 : 0 : z->ket = z->c;
791 [ # # ]: 0 : if (!(eq_s_b(z, 2, s_8))) { z->c = z->l - v_4; goto lab3; }
792 : 0 : z->bra = z->c;
793 : : {
794 : 0 : int ret = r_R2(z);
795 [ # # ]: 0 : if (ret == 0) { z->c = z->l - v_4; goto lab3; }
796 [ # # ]: 0 : if (ret < 0) return ret;
797 [ # # # ]: 0 : }
798 : : {
799 : 0 : int ret = slice_del(z);
800 [ # # ]: 0 : if (ret < 0) return ret;
801 [ # # ]: 0 : }
802 : : lab3:
803 : : ;
804 [ # # ]: 0 : }
805 : 0 : break;
806 : : case 9:
807 : : {
808 : 0 : int ret = r_RV(z);
809 [ # # ]: 0 : if (ret <= 0) return ret;
810 [ # # ]: 0 : }
811 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'e') return 0;
812 : 0 : z->c--;
813 : : {
814 : 0 : int ret = slice_from_s(z, 2, s_9);
815 [ # # ]: 0 : if (ret < 0) return ret;
816 [ # # ]: 0 : }
817 : 0 : break;
818 : : }
819 : 0 : return 1;
820 : 0 : }
821 : :
822 : 0 : static int r_verb_suffix(struct SN_env * z) {
823 : : {
824 : 0 : int v_1;
825 [ # # ]: 0 : if (z->c < ((SN_local *)z)->i_pV) return 0;
826 : 0 : v_1 = z->lb; z->lb = ((SN_local *)z)->i_pV;
827 : 0 : z->ket = z->c;
828 [ # # ]: 0 : if (!find_among_b(z, a_6, 120, 0)) { z->lb = v_1; return 0; }
829 : 0 : z->bra = z->c;
830 : : {
831 : 0 : int ret = slice_del(z);
832 [ # # ]: 0 : if (ret < 0) return ret;
833 [ # # ]: 0 : }
834 : 0 : z->lb = v_1;
835 [ # # # ]: 0 : }
836 : 0 : return 1;
837 : 0 : }
838 : :
839 : 0 : static int r_residual_suffix(struct SN_env * z) {
840 : 0 : z->ket = z->c;
841 [ # # ]: 0 : if (!find_among_b(z, a_7, 7, 0)) return 0;
842 : 0 : z->bra = z->c;
843 : : {
844 : 0 : int ret = r_RV(z);
845 [ # # ]: 0 : if (ret <= 0) return ret;
846 [ # # ]: 0 : }
847 : : {
848 : 0 : int ret = slice_del(z);
849 [ # # ]: 0 : if (ret < 0) return ret;
850 [ # # ]: 0 : }
851 : 0 : return 1;
852 : 0 : }
853 : :
854 : 0 : static int r_residual_form(struct SN_env * z) {
855 : 0 : int among_var;
856 : 0 : z->ket = z->c;
857 : 0 : among_var = find_among_b(z, a_8, 4, 0);
858 [ # # ]: 0 : if (!among_var) return 0;
859 : 0 : z->bra = z->c;
860 [ # # # ]: 0 : switch (among_var) {
861 : : case 1:
862 : : {
863 : 0 : int ret = r_RV(z);
864 [ # # ]: 0 : if (ret <= 0) return ret;
865 [ # # ]: 0 : }
866 : : {
867 : 0 : int ret = slice_del(z);
868 [ # # ]: 0 : if (ret < 0) return ret;
869 [ # # ]: 0 : }
870 : 0 : z->ket = z->c;
871 : 0 : do {
872 : 0 : int v_1 = z->l - z->c;
873 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'u') goto lab0;
874 : 0 : z->c--;
875 : 0 : z->bra = z->c;
876 : : {
877 : 0 : int v_2 = z->l - z->c;
878 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'g') goto lab0;
879 : 0 : z->c--;
880 : 0 : z->c = z->l - v_2;
881 [ # # # ]: 0 : }
882 : 0 : break;
883 : : lab0:
884 : 0 : z->c = z->l - v_1;
885 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'i') return 0;
886 : 0 : z->c--;
887 : 0 : z->bra = z->c;
888 : : {
889 : 0 : int v_3 = z->l - z->c;
890 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'c') return 0;
891 : 0 : z->c--;
892 : 0 : z->c = z->l - v_3;
893 [ # # ]: 0 : }
894 [ # # # ]: 0 : } while (0);
895 : : {
896 : 0 : int ret = r_RV(z);
897 [ # # ]: 0 : if (ret <= 0) return ret;
898 [ # # ]: 0 : }
899 : : {
900 : 0 : int ret = slice_del(z);
901 [ # # ]: 0 : if (ret < 0) return ret;
902 [ # # ]: 0 : }
903 : 0 : break;
904 : : case 2:
905 : : {
906 : 0 : int ret = slice_from_s(z, 1, s_10);
907 [ # # ]: 0 : if (ret < 0) return ret;
908 [ # # ]: 0 : }
909 : 0 : break;
910 : : }
911 : 0 : return 1;
912 : 0 : }
913 : :
914 : 0 : extern int portuguese_UTF_8_stem(struct SN_env * z) {
915 : : {
916 : 0 : int v_1 = z->c;
917 : : {
918 : 0 : int ret = r_prelude(z);
919 [ # # ]: 0 : if (ret < 0) return ret;
920 [ # # ]: 0 : }
921 : 0 : z->c = v_1;
922 [ # # ]: 0 : }
923 : : {
924 : 0 : int ret = r_mark_regions(z);
925 [ # # ]: 0 : if (ret < 0) return ret;
926 [ # # ]: 0 : }
927 : 0 : z->lb = z->c; z->c = z->l;
928 : : {
929 : 0 : int v_2 = z->l - z->c;
930 : 0 : do {
931 : 0 : int v_3 = z->l - z->c;
932 : : {
933 : 0 : int v_4 = z->l - z->c;
934 : 0 : do {
935 : 0 : int v_5 = z->l - z->c;
936 : : {
937 : 0 : int ret = r_standard_suffix(z);
938 [ # # ]: 0 : if (ret == 0) goto lab2;
939 [ # # ]: 0 : if (ret < 0) return ret;
940 [ # # # ]: 0 : }
941 : 0 : break;
942 : : lab2:
943 : 0 : z->c = z->l - v_5;
944 : : {
945 : 0 : int ret = r_verb_suffix(z);
946 [ # # ]: 0 : if (ret == 0) goto lab1;
947 [ # # ]: 0 : if (ret < 0) return ret;
948 [ # # ]: 0 : }
949 [ # # # ]: 0 : } while (0);
950 : 0 : z->c = z->l - v_4;
951 : : {
952 : 0 : int v_6 = z->l - z->c;
953 : 0 : z->ket = z->c;
954 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'i') goto lab3;
955 : 0 : z->c--;
956 : 0 : z->bra = z->c;
957 : : {
958 : 0 : int v_7 = z->l - z->c;
959 [ # # # # ]: 0 : if (z->c <= z->lb || z->p[z->c - 1] != 'c') goto lab3;
960 : 0 : z->c--;
961 : 0 : z->c = z->l - v_7;
962 [ # # # ]: 0 : }
963 : : {
964 : 0 : int ret = r_RV(z);
965 [ # # ]: 0 : if (ret == 0) goto lab3;
966 [ # # ]: 0 : if (ret < 0) return ret;
967 [ # # ]: 0 : }
968 : : {
969 : 0 : int ret = slice_del(z);
970 [ # # ]: 0 : if (ret < 0) return ret;
971 [ # # ]: 0 : }
972 : : lab3:
973 : 0 : z->c = z->l - v_6;
974 [ # # ]: 0 : }
975 [ # # # ]: 0 : }
976 : 0 : break;
977 : : lab1:
978 : 0 : z->c = z->l - v_3;
979 : : {
980 : 0 : int ret = r_residual_suffix(z);
981 [ # # ]: 0 : if (ret == 0) goto lab0;
982 [ # # ]: 0 : if (ret < 0) return ret;
983 [ # # ]: 0 : }
984 [ # # # # ]: 0 : } while (0);
985 : : lab0:
986 : 0 : z->c = z->l - v_2;
987 [ # # ]: 0 : }
988 : : {
989 : 0 : int v_8 = z->l - z->c;
990 : : {
991 : 0 : int ret = r_residual_form(z);
992 [ # # ]: 0 : if (ret < 0) return ret;
993 [ # # ]: 0 : }
994 : 0 : z->c = z->l - v_8;
995 [ # # ]: 0 : }
996 : 0 : z->c = z->lb;
997 : : {
998 : 0 : int v_9 = z->c;
999 : : {
1000 : 0 : int ret = r_postlude(z);
1001 [ # # ]: 0 : if (ret < 0) return ret;
1002 [ # # ]: 0 : }
1003 : 0 : z->c = v_9;
1004 [ # # ]: 0 : }
1005 : 0 : return 1;
1006 : 0 : }
1007 : :
1008 : 0 : extern struct SN_env * portuguese_UTF_8_create_env(void) {
1009 : 0 : struct SN_env * z = SN_new_env(sizeof(SN_local));
1010 [ # # ]: 0 : if (z) {
1011 : 0 : ((SN_local *)z)->i_p2 = 0;
1012 : 0 : ((SN_local *)z)->i_p1 = 0;
1013 : 0 : ((SN_local *)z)->i_pV = 0;
1014 : 0 : }
1015 : 0 : return z;
1016 : 0 : }
1017 : :
1018 : 0 : extern void portuguese_UTF_8_close_env(struct SN_env * z) {
1019 : 0 : SN_delete_env(z);
1020 : 0 : }
1021 : :
|