7#include "snowball_runtime.h"
53static const symbol s_0_6[6] = {
'k', 0xC3, 0xA4, 0xC3, 0xA4,
'n' };
81{ 3,
s_1_4, -1, -1, 0},
96{ 4,
s_2_4, -1, -1, 0},
103{ 3,
s_3_0, 0, -1, 0},
136{ 2,
s_5_0, 0, -1, 0},
137{ 2,
s_5_1, 0, -1, 0},
138{ 2,
s_5_2, 0, -1, 0},
139{ 2,
s_5_3, 0, -1, 0},
140{ 2,
s_5_4, 0, -1, 0},
141{ 4,
s_5_5, 0, -1, 0},
177{ 3,
s_6_1, -1, -1, 0},
178{ 2,
s_6_2, -2, -1, 0},
179{ 3,
s_6_3, -3, -1, 0},
180{ 2,
s_6_4, -4, -1, 0},
181{ 3,
s_6_5, -1, -1, 0},
182{ 3,
s_6_6, -2, -1, 0},
183{ 3,
s_6_7, -3, 2, 0},
184{ 3,
s_6_8, 0, -1, 0},
185{ 3,
s_6_9, 0, -1, 0},
210 case 1:
return r_VI(z);
231{ 3,
s_7_0, 0, -1, 0},
233{ 4,
s_7_2, -1, -1, 0},
235{ 4,
s_7_4, -1, -1, 0},
237{ 4,
s_7_6, -1, -1, 0},
239{ 4,
s_7_8, -1, -1, 0},
240{ 4,
s_7_9, 0, -1, 0},
251{ 4,
s_9_1, -1, -1, 0}
254static const unsigned char g_AEI[] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 };
256static const unsigned char g_C[] = { 119, 223, 119, 1 };
258static const unsigned char g_V1[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
260static const unsigned char g_V2[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
262static 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 };
269 if (ret < 0)
return 0;
274 if (ret < 0)
return 0;
280 if (ret < 0)
return 0;
285 if (ret < 0)
return 0;
300 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
304 if (!among_var) { z->lb = v_1;
return 0; }
315 if (ret <= 0)
return ret;
321 if (ret < 0)
return ret;
330 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
334 if (!among_var) { z->lb = v_1;
return 0; }
341 int v_2 = z->
l - z->
c;
342 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'k')
goto lab0;
350 if (ret < 0)
return ret;
356 if (ret < 0)
return ret;
363 if (ret < 0)
return ret;
369 if (ret < 0)
return ret;
373 if (z->
c - 1 <= z->
lb || z->
p[z->
c - 1] != 97)
return 0;
377 if (ret < 0)
return ret;
381 if (z->
c - 2 <= z->
lb || z->
p[z->
c - 1] != 164)
return 0;
385 if (ret < 0)
return ret;
389 if (z->
c - 2 <= z->
lb || z->
p[z->
c - 1] != 101)
return 0;
393 if (ret < 0)
return ret;
405 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'i')
return 0;
414 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
418 if (!among_var) { z->lb = v_1;
return 0; }
424 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'a')
return 0;
428 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'e')
return 0;
432 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'i')
return 0;
436 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'o')
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_4))) { z->
c = z->
l - v_2;
goto lab0; }
465 if (ret < 0) { z->
c = z->
l - v_2;
goto lab0; }
481 if (ret < 0)
return ret;
483 ((
SN_local *)z)->b_ending_removed = 1;
491 if (z->
c < ((
SN_local *)z)->i_p2)
return 0;
495 if (!among_var) { z->lb = v_1;
return 0; }
502 int v_2 = z->
l - z->
c;
512 if (ret < 0)
return ret;
520 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
523 if (z->c <= z->lb || (z->p[z->c - 1] != 105 && z->p[z->c - 1] != 106)) { z->lb = v_1;
return 0; }
530 if (ret < 0)
return ret;
539 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
542 if (z->c <= z->lb || z->p[z->c - 1] !=
't') { z->lb = v_1;
return 0; }
546 int v_2 = z->l - z->c;
552 if (ret < 0)
return ret;
558 if (z->
c < ((
SN_local *)z)->i_p2)
return 0;
561 if (z->c - 2 <= z->lb || z->p[z->c - 1] != 97) { z->lb = v_3;
return 0; }
563 if (!among_var) { z->lb = v_3;
return 0; }
570 int v_4 = z->
l - z->
c;
580 if (ret < 0)
return ret;
588 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
591 int v_2 = z->l - z->c;
593 int v_3 = z->l - z->c;
596 if (ret == 0)
goto lab0;
597 if (ret < 0)
return ret;
603 if (ret < 0)
goto lab0;
609 if (ret < 0)
return ret;
616 int v_4 = z->l - z->c;
623 if (ret < 0)
return ret;
629 int v_5 = z->l - z->c;
631 if (z->c <= z->lb || z->p[z->c - 1] !=
'j')
goto lab2;
635 int v_6 = z->l - z->c;
636 if (z->c <= z->lb || z->p[z->c - 1] !=
'o')
goto lab3;
641 if (z->c <= z->lb || z->p[z->c - 1] !=
'u')
goto lab2;
646 if (ret < 0)
return ret;
652 int v_7 = z->l - z->c;
654 if (z->c <= z->lb || z->p[z->c - 1] !=
'o')
goto lab4;
657 if (z->c <= z->lb || z->p[z->c - 1] !=
'j')
goto lab4;
661 if (ret < 0)
return ret;
674 if (ret < 0)
return ret;
679 if (ret < 0)
return ret;
689 if (ret < 0)
return ret;
693 ((
SN_local *)z)->b_ending_removed = 0;
694 z->
lb = z->
c; z->
c = z->
l;
696 int v_2 = z->
l - z->
c;
699 if (ret < 0)
return ret;
704 int v_3 = z->
l - z->
c;
707 if (ret < 0)
return ret;
712 int v_4 = z->
l - z->
c;
715 if (ret < 0)
return ret;
720 int v_5 = z->
l - z->
c;
723 if (ret < 0)
return ret;
728 if (!((
SN_local *)z)->b_ending_removed)
goto lab0;
730 int v_6 = z->l - z->c;
733 if (ret < 0)
return ret;
740 int v_7 = z->l - z->c;
743 if (ret < 0)
return ret;
749 int v_8 = z->
l - z->
c;
752 if (ret < 0)
return ret;
763 ((
SN_local *)z)->b_ending_removed = 0;
void SN_delete_env(struct SN_env *z)
struct SN_env * SN_new_env(int alloc_size)
struct SN_env * finnish_UTF_8_create_env(void)
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[]
static const symbol s_6_24[3]
static const struct among a_3[2]
static const symbol s_6_21[4]
static const symbol s_4[]
static const symbol s_7_13[5]
static const struct among a_7[14]
static const unsigned char g_V1[]
static const symbol s_4_1[3]
static const symbol s_5_6[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_3[3]
static int af_6(struct SN_env *z)
static const symbol s_9_0[3]
static const symbol s_5_3[2]
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 const symbol s_2_3[3]
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_1_3[2]
static const symbol s_2_1[3]
static const symbol s_6_12[3]
static const symbol s_6[]
static const symbol s_0_0[2]
static const symbol s_0_5[4]
static const symbol s_6_20[4]
static const symbol s_6_29[4]
static const symbol s_3[]
static const symbol s_2_2[4]
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_2_4[4]
static const symbol s_7_12[4]
static const symbol s_7_9[4]
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_0_8[3]
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_27[4]
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_7_0[3]
static const symbol s_0_1[3]
static const symbol s_6_2[2]
static int r_VI(struct SN_env *z)
int finnish_UTF_8_stem(struct SN_env *z)
static const symbol s_6_7[3]
static const struct among a_4[9]
static const symbol s_5_4[2]
static const symbol s_6_22[2]
static int r_LONG(struct SN_env *z)
static const symbol s_6_16[4]
static const symbol s_0_9[3]
static const symbol s_7_2[4]
static const struct among a_6[30]
static int r_i_plural(struct SN_env *z)
static const symbol s_6_11[1]
static const symbol s_7_4[4]
static const struct among a_1[6]
static const symbol s_1[]
static const symbol s_5_5[4]
static const symbol s_9_1[4]
static const symbol s_1_2[3]
static const symbol s_6_8[3]
static const symbol s_5_2[2]
static const struct among a_9[2]
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_2_0[4]
static const symbol s_6_23[4]
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_0_6[6]
static const struct among a_0[10]
static const symbol s_4_3[2]
static const symbol s_4_8[4]
static const symbol s_5_1[2]
static const symbol s_1_4[3]
static const symbol s_6_25[4]
static const symbol s_6_26[3]
static const symbol s_2_5[4]
static int r_particle_etc(struct SN_env *z)
void finnish_UTF_8_close_env(struct SN_env *z)
static const symbol s_6_28[4]
static const symbol s_7_10[4]
static const symbol s_4_7[3]
static const symbol s_5[]
static const symbol s_4_2[3]
static const symbol s_4_0[3]
static const symbol s_7_11[5]
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 out_grouping_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
int in_grouping_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
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)
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 in_grouping_b_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
int skip_b_utf8(const symbol *p, int c, int limit, int n)
int eq_s_b(struct SN_env *z, int s_size, const symbol *s)
SNOWBALL_ERR slice_del(struct SN_env *z)