7#include "snowball_runtime.h"
79{ 3,
s_1_4, -1, -1, 0},
94{ 3,
s_2_4, -1, -1, 0},
101{ 3,
s_3_0, 0, -1, 0},
134{ 2,
s_5_0, 0, -1, 0},
135{ 2,
s_5_1, 0, -1, 0},
136{ 2,
s_5_2, 0, -1, 0},
137{ 2,
s_5_3, 0, -1, 0},
138{ 2,
s_5_4, 0, -1, 0},
139{ 2,
s_5_5, 0, -1, 0},
175{ 3,
s_6_1, -1, -1, 0},
176{ 2,
s_6_2, -2, -1, 0},
177{ 3,
s_6_3, -3, -1, 0},
178{ 2,
s_6_4, -4, -1, 0},
179{ 3,
s_6_5, -1, -1, 0},
180{ 3,
s_6_6, -2, -1, 0},
181{ 3,
s_6_7, -3, 2, 0},
182{ 3,
s_6_8, 0, -1, 0},
183{ 3,
s_6_9, 0, -1, 0},
208 case 1:
return r_VI(z);
229{ 3,
s_7_0, 0, -1, 0},
231{ 4,
s_7_2, -1, -1, 0},
233{ 4,
s_7_4, -1, -1, 0},
235{ 4,
s_7_6, -1, -1, 0},
237{ 4,
s_7_8, -1, -1, 0},
238{ 3,
s_7_9, 0, -1, 0},
249{ 4,
s_9_1, -1, -1, 0}
252static const unsigned char g_AEI[] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 };
254static const unsigned char g_C[] = { 119, 223, 119, 1 };
256static const unsigned char g_V1[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
258static const unsigned char g_V2[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
260static const unsigned char g_particle_end[] = { 17, 97, 24, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
267 if (ret < 0)
return 0;
272 if (ret < 0)
return 0;
278 if (ret < 0)
return 0;
283 if (ret < 0)
return 0;
298 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
302 if (!among_var) { z->lb = v_1;
return 0; }
313 if (ret <= 0)
return ret;
319 if (ret < 0)
return ret;
328 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
332 if (!among_var) { z->lb = v_1;
return 0; }
339 int v_2 = z->
l - z->
c;
340 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'k')
goto lab0;
348 if (ret < 0)
return ret;
354 if (ret < 0)
return ret;
361 if (ret < 0)
return ret;
367 if (ret < 0)
return ret;
371 if (z->
c - 1 <= z->
lb || z->
p[z->
c - 1] != 97)
return 0;
375 if (ret < 0)
return ret;
379 if (z->
c - 1 <= z->
lb || z->
p[z->
c - 1] != 228)
return 0;
383 if (ret < 0)
return ret;
387 if (z->
c - 2 <= z->
lb || z->
p[z->
c - 1] != 101)
return 0;
391 if (ret < 0)
return ret;
403 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'i')
return 0;
412 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
416 if (!among_var) { z->lb = v_1;
return 0; }
422 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'a')
return 0;
426 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'e')
return 0;
430 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'i')
return 0;
434 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'o')
return 0;
438 if (z->
c <= z->
lb || z->
p[z->
c - 1] != 0xE4)
return 0;
442 if (z->
c <= z->
lb || z->
p[z->
c - 1] != 0xF6)
return 0;
447 int v_2 = z->
l - z->
c;
449 int v_3 = z->
l - z->
c;
451 int v_4 = z->
l - z->
c;
454 if (ret == 0)
goto lab1;
455 if (ret < 0)
return ret;
460 if (!(
eq_s_b(z, 2,
s_2))) { z->
c = z->
l - v_2;
goto lab0; }
463 if (z->
c <= z->
lb) { z->
c = z->
l - v_2;
goto lab0; }
478 if (ret < 0)
return ret;
480 ((
SN_local *)z)->b_ending_removed = 1;
488 if (z->
c < ((
SN_local *)z)->i_p2)
return 0;
492 if (!among_var) { z->lb = v_1;
return 0; }
499 int v_2 = z->
l - z->
c;
509 if (ret < 0)
return ret;
517 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
520 if (z->c <= z->lb || (z->p[z->c - 1] != 105 && z->p[z->c - 1] != 106)) { z->lb = v_1;
return 0; }
527 if (ret < 0)
return ret;
536 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
539 if (z->c <= z->lb || z->p[z->c - 1] !=
't') { z->lb = v_1;
return 0; }
543 int v_2 = z->l - z->c;
549 if (ret < 0)
return ret;
555 if (z->
c < ((
SN_local *)z)->i_p2)
return 0;
558 if (z->c - 2 <= z->lb || z->p[z->c - 1] != 97) { z->lb = v_3;
return 0; }
560 if (!among_var) { z->lb = v_3;
return 0; }
567 int v_4 = z->
l - z->
c;
577 if (ret < 0)
return ret;
585 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
588 int v_2 = z->l - z->c;
590 int v_3 = z->l - z->c;
593 if (ret == 0)
goto lab0;
594 if (ret < 0)
return ret;
598 if (z->c <= z->lb)
goto lab0;
603 if (ret < 0)
return ret;
610 int v_4 = z->l - z->c;
617 if (ret < 0)
return ret;
623 int v_5 = z->l - z->c;
625 if (z->c <= z->lb || z->p[z->c - 1] !=
'j')
goto lab2;
629 int v_6 = z->l - z->c;
630 if (z->c <= z->lb || z->p[z->c - 1] !=
'o')
goto lab3;
635 if (z->c <= z->lb || z->p[z->c - 1] !=
'u')
goto lab2;
640 if (ret < 0)
return ret;
646 int v_7 = z->l - z->c;
648 if (z->c <= z->lb || z->p[z->c - 1] !=
'o')
goto lab4;
651 if (z->c <= z->lb || z->p[z->c - 1] !=
'j')
goto lab4;
655 if (ret < 0)
return ret;
668 if (ret < 0)
return ret;
673 if (ret < 0)
return ret;
683 if (ret < 0)
return ret;
687 ((
SN_local *)z)->b_ending_removed = 0;
688 z->
lb = z->
c; z->
c = z->
l;
690 int v_2 = z->
l - z->
c;
693 if (ret < 0)
return ret;
698 int v_3 = z->
l - z->
c;
701 if (ret < 0)
return ret;
706 int v_4 = z->
l - z->
c;
709 if (ret < 0)
return ret;
714 int v_5 = z->
l - z->
c;
717 if (ret < 0)
return ret;
722 if (!((
SN_local *)z)->b_ending_removed)
goto lab0;
724 int v_6 = z->l - z->c;
727 if (ret < 0)
return ret;
734 int v_7 = z->l - z->c;
737 if (ret < 0)
return ret;
743 int v_8 = z->
l - z->
c;
746 if (ret < 0)
return ret;
757 ((
SN_local *)z)->b_ending_removed = 0;
void SN_delete_env(struct SN_env *z)
struct SN_env * SN_new_env(int alloc_size)
static const symbol s_0_2[4]
static int r_case_ending(struct SN_env *z)
static const symbol s_2[]
static const unsigned char g_C[]
int finnish_ISO_8859_1_stem(struct SN_env *z)
static const struct among a_3[2]
static const symbol s_4[]
static const struct among a_7[14]
static const unsigned char g_V1[]
static const symbol s_4_1[3]
static const symbol s_7_13[4]
static const symbol s_1_5[3]
static const symbol s_7_7[3]
static const symbol s_6_17[3]
static const symbol s_0_5[3]
static const symbol s_6_23[3]
static const symbol s_4_7[2]
static const symbol s_7_11[4]
static const symbol s_0_3[3]
static const symbol s_0_8[2]
static int af_6(struct SN_env *z)
static const symbol s_9_0[3]
static const symbol s_5_3[2]
static const symbol s_6_28[3]
static const unsigned char g_particle_end[]
static const symbol s_6_1[3]
static const struct among a_5[7]
static const symbol s_5_0[2]
static int r_tidy(struct SN_env *z)
static const struct among a_2[6]
static const symbol s_6_15[3]
static const symbol s_5_6[2]
static const symbol s_1_3[2]
static const symbol s_7_9[3]
static const symbol s_6_12[3]
static const symbol s_0_0[2]
static const symbol s_3[]
static const symbol s_4_6[2]
static const symbol s_6_6[3]
static const symbol s_3_0[3]
static const symbol s_4_4[2]
static const symbol s_7_1[3]
static const symbol s_0_7[2]
static const symbol s_6_22[1]
static const symbol s_6_5[3]
static int r_R2(struct SN_env *z)
static const symbol s_7_6[4]
static const symbol s_6_4[2]
static const symbol s_6_19[3]
static const symbol s_6_10[3]
static const symbol s_7_5[3]
static const symbol s_6_21[3]
static const symbol s_3_1[3]
static const symbol s_6_13[3]
static const symbol s_1_1[2]
static const symbol s_7_8[4]
static const symbol s_6_18[4]
static const symbol s_6_9[3]
static int r_other_endings(struct SN_env *z)
static int r_t_plural(struct SN_env *z)
static const unsigned char g_V2[]
static const symbol s_0_6[4]
static const symbol s_7_0[3]
static const symbol s_0_1[3]
static const symbol s_2_0[3]
static const symbol s_6_2[2]
static int r_VI(struct SN_env *z)
static const symbol s_7_12[3]
static const symbol s_6_7[3]
static const struct among a_4[9]
static const symbol s_5_4[2]
static int r_LONG(struct SN_env *z)
static const symbol s_2_4[3]
static const symbol s_6_16[4]
static const symbol s_7_2[4]
static const symbol s_6_20[3]
static const struct among a_6[30]
static int r_i_plural(struct SN_env *z)
static const symbol s_7_10[3]
static const symbol s_6_24[2]
static const symbol s_4_8[3]
static const symbol s_6_11[1]
static const symbol s_7_4[4]
static const symbol s_2_3[2]
static const struct among a_1[6]
static const symbol s_1[]
static const symbol s_9_1[4]
static const symbol s_1_2[3]
static const symbol s_6_27[3]
static const symbol s_6_8[3]
static const symbol s_5_2[2]
static const struct among a_9[2]
static const symbol s_6_25[3]
static const symbol s_2_2[3]
static int r_possessive(struct SN_env *z)
static const symbol s_6_14[4]
static int r_mark_regions(struct SN_env *z)
static const symbol s_7_3[3]
static const unsigned char g_AEI[]
static const symbol s_1_0[3]
static const symbol s_6_0[1]
static const symbol s_6_3[3]
static const symbol s_6_26[2]
static const struct among a_0[10]
static const symbol s_4_3[2]
static const symbol s_5_1[2]
static const symbol s_1_4[3]
static const symbol s_2_5[3]
static const symbol s_5_5[2]
static const symbol s_6_29[3]
static int r_particle_etc(struct SN_env *z)
struct SN_env * finnish_ISO_8859_1_create_env(void)
static const symbol s_2_1[2]
static const symbol s_0_9[2]
void finnish_ISO_8859_1_close_env(struct SN_env *z)
static const symbol s_4_2[3]
static const symbol s_4_0[3]
static const symbol s_4_5[2]
static const symbol s_0[]
static const symbol s_0_4[3]
unsigned char b_ending_removed
int eq_v_b(struct SN_env *z, const symbol *p)
SNOWBALL_ERR slice_from_s(struct SN_env *z, int s_size, const symbol *s)
int in_grouping(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
SNOWBALL_ERR slice_to(struct SN_env *z, symbol **p)
int find_among_b(struct SN_env *z, const struct among *v, int v_size, int(*call_among_func)(struct SN_env *))
int eq_s_b(struct SN_env *z, int s_size, const symbol *s)
int out_grouping(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
SNOWBALL_ERR slice_del(struct SN_env *z)
int in_grouping_b(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)