LCOV - code coverage report
Current view: top level - src/backend/snowball/libstemmer - stem_UTF_8_russian.c (source / functions) Hit Total Coverage
Test: PostgreSQL 14devel Lines: 0 232 0.0 %
Date: 2020-10-28 18:07:10 Functions: 0 13 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* Generated by Snowball 2.0.0 - https://snowballstem.org/ */
       2             : 
       3             : #include "header.h"
       4             : 
       5             : #ifdef __cplusplus
       6             : extern "C" {
       7             : #endif
       8             : extern int russian_UTF_8_stem(struct SN_env * z);
       9             : #ifdef __cplusplus
      10             : }
      11             : #endif
      12             : static int r_tidy_up(struct SN_env * z);
      13             : static int r_derivational(struct SN_env * z);
      14             : static int r_noun(struct SN_env * z);
      15             : static int r_verb(struct SN_env * z);
      16             : static int r_reflexive(struct SN_env * z);
      17             : static int r_adjectival(struct SN_env * z);
      18             : static int r_adjective(struct SN_env * z);
      19             : static int r_perfective_gerund(struct SN_env * z);
      20             : static int r_R2(struct SN_env * z);
      21             : static int r_mark_regions(struct SN_env * z);
      22             : #ifdef __cplusplus
      23             : extern "C" {
      24             : #endif
      25             : 
      26             : 
      27             : extern struct SN_env * russian_UTF_8_create_env(void);
      28             : extern void russian_UTF_8_close_env(struct SN_env * z);
      29             : 
      30             : 
      31             : #ifdef __cplusplus
      32             : }
      33             : #endif
      34             : static const symbol s_0_0[10] = { 0xD0, 0xB2, 0xD1, 0x88, 0xD0, 0xB8, 0xD1, 0x81, 0xD1, 0x8C };
      35             : static const symbol s_0_1[12] = { 0xD1, 0x8B, 0xD0, 0xB2, 0xD1, 0x88, 0xD0, 0xB8, 0xD1, 0x81, 0xD1, 0x8C };
      36             : static const symbol s_0_2[12] = { 0xD0, 0xB8, 0xD0, 0xB2, 0xD1, 0x88, 0xD0, 0xB8, 0xD1, 0x81, 0xD1, 0x8C };
      37             : static const symbol s_0_3[2] = { 0xD0, 0xB2 };
      38             : static const symbol s_0_4[4] = { 0xD1, 0x8B, 0xD0, 0xB2 };
      39             : static const symbol s_0_5[4] = { 0xD0, 0xB8, 0xD0, 0xB2 };
      40             : static const symbol s_0_6[6] = { 0xD0, 0xB2, 0xD1, 0x88, 0xD0, 0xB8 };
      41             : static const symbol s_0_7[8] = { 0xD1, 0x8B, 0xD0, 0xB2, 0xD1, 0x88, 0xD0, 0xB8 };
      42             : static const symbol s_0_8[8] = { 0xD0, 0xB8, 0xD0, 0xB2, 0xD1, 0x88, 0xD0, 0xB8 };
      43             : 
      44             : static const struct among a_0[9] =
      45             : {
      46             : /*  0 */ { 10, s_0_0, -1, 1, 0},
      47             : /*  1 */ { 12, s_0_1, 0, 2, 0},
      48             : /*  2 */ { 12, s_0_2, 0, 2, 0},
      49             : /*  3 */ { 2, s_0_3, -1, 1, 0},
      50             : /*  4 */ { 4, s_0_4, 3, 2, 0},
      51             : /*  5 */ { 4, s_0_5, 3, 2, 0},
      52             : /*  6 */ { 6, s_0_6, -1, 1, 0},
      53             : /*  7 */ { 8, s_0_7, 6, 2, 0},
      54             : /*  8 */ { 8, s_0_8, 6, 2, 0}
      55             : };
      56             : 
      57             : static const symbol s_1_0[6] = { 0xD0, 0xB5, 0xD0, 0xBC, 0xD1, 0x83 };
      58             : static const symbol s_1_1[6] = { 0xD0, 0xBE, 0xD0, 0xBC, 0xD1, 0x83 };
      59             : static const symbol s_1_2[4] = { 0xD1, 0x8B, 0xD1, 0x85 };
      60             : static const symbol s_1_3[4] = { 0xD0, 0xB8, 0xD1, 0x85 };
      61             : static const symbol s_1_4[4] = { 0xD1, 0x83, 0xD1, 0x8E };
      62             : static const symbol s_1_5[4] = { 0xD1, 0x8E, 0xD1, 0x8E };
      63             : static const symbol s_1_6[4] = { 0xD0, 0xB5, 0xD1, 0x8E };
      64             : static const symbol s_1_7[4] = { 0xD0, 0xBE, 0xD1, 0x8E };
      65             : static const symbol s_1_8[4] = { 0xD1, 0x8F, 0xD1, 0x8F };
      66             : static const symbol s_1_9[4] = { 0xD0, 0xB0, 0xD1, 0x8F };
      67             : static const symbol s_1_10[4] = { 0xD1, 0x8B, 0xD0, 0xB5 };
      68             : static const symbol s_1_11[4] = { 0xD0, 0xB5, 0xD0, 0xB5 };
      69             : static const symbol s_1_12[4] = { 0xD0, 0xB8, 0xD0, 0xB5 };
      70             : static const symbol s_1_13[4] = { 0xD0, 0xBE, 0xD0, 0xB5 };
      71             : static const symbol s_1_14[6] = { 0xD1, 0x8B, 0xD0, 0xBC, 0xD0, 0xB8 };
      72             : static const symbol s_1_15[6] = { 0xD0, 0xB8, 0xD0, 0xBC, 0xD0, 0xB8 };
      73             : static const symbol s_1_16[4] = { 0xD1, 0x8B, 0xD0, 0xB9 };
      74             : static const symbol s_1_17[4] = { 0xD0, 0xB5, 0xD0, 0xB9 };
      75             : static const symbol s_1_18[4] = { 0xD0, 0xB8, 0xD0, 0xB9 };
      76             : static const symbol s_1_19[4] = { 0xD0, 0xBE, 0xD0, 0xB9 };
      77             : static const symbol s_1_20[4] = { 0xD1, 0x8B, 0xD0, 0xBC };
      78             : static const symbol s_1_21[4] = { 0xD0, 0xB5, 0xD0, 0xBC };
      79             : static const symbol s_1_22[4] = { 0xD0, 0xB8, 0xD0, 0xBC };
      80             : static const symbol s_1_23[4] = { 0xD0, 0xBE, 0xD0, 0xBC };
      81             : static const symbol s_1_24[6] = { 0xD0, 0xB5, 0xD0, 0xB3, 0xD0, 0xBE };
      82             : static const symbol s_1_25[6] = { 0xD0, 0xBE, 0xD0, 0xB3, 0xD0, 0xBE };
      83             : 
      84             : static const struct among a_1[26] =
      85             : {
      86             : /*  0 */ { 6, s_1_0, -1, 1, 0},
      87             : /*  1 */ { 6, s_1_1, -1, 1, 0},
      88             : /*  2 */ { 4, s_1_2, -1, 1, 0},
      89             : /*  3 */ { 4, s_1_3, -1, 1, 0},
      90             : /*  4 */ { 4, s_1_4, -1, 1, 0},
      91             : /*  5 */ { 4, s_1_5, -1, 1, 0},
      92             : /*  6 */ { 4, s_1_6, -1, 1, 0},
      93             : /*  7 */ { 4, s_1_7, -1, 1, 0},
      94             : /*  8 */ { 4, s_1_8, -1, 1, 0},
      95             : /*  9 */ { 4, s_1_9, -1, 1, 0},
      96             : /* 10 */ { 4, s_1_10, -1, 1, 0},
      97             : /* 11 */ { 4, s_1_11, -1, 1, 0},
      98             : /* 12 */ { 4, s_1_12, -1, 1, 0},
      99             : /* 13 */ { 4, s_1_13, -1, 1, 0},
     100             : /* 14 */ { 6, s_1_14, -1, 1, 0},
     101             : /* 15 */ { 6, s_1_15, -1, 1, 0},
     102             : /* 16 */ { 4, s_1_16, -1, 1, 0},
     103             : /* 17 */ { 4, s_1_17, -1, 1, 0},
     104             : /* 18 */ { 4, s_1_18, -1, 1, 0},
     105             : /* 19 */ { 4, s_1_19, -1, 1, 0},
     106             : /* 20 */ { 4, s_1_20, -1, 1, 0},
     107             : /* 21 */ { 4, s_1_21, -1, 1, 0},
     108             : /* 22 */ { 4, s_1_22, -1, 1, 0},
     109             : /* 23 */ { 4, s_1_23, -1, 1, 0},
     110             : /* 24 */ { 6, s_1_24, -1, 1, 0},
     111             : /* 25 */ { 6, s_1_25, -1, 1, 0}
     112             : };
     113             : 
     114             : static const symbol s_2_0[4] = { 0xD0, 0xB2, 0xD1, 0x88 };
     115             : static const symbol s_2_1[6] = { 0xD1, 0x8B, 0xD0, 0xB2, 0xD1, 0x88 };
     116             : static const symbol s_2_2[6] = { 0xD0, 0xB8, 0xD0, 0xB2, 0xD1, 0x88 };
     117             : static const symbol s_2_3[2] = { 0xD1, 0x89 };
     118             : static const symbol s_2_4[4] = { 0xD1, 0x8E, 0xD1, 0x89 };
     119             : static const symbol s_2_5[6] = { 0xD1, 0x83, 0xD1, 0x8E, 0xD1, 0x89 };
     120             : static const symbol s_2_6[4] = { 0xD0, 0xB5, 0xD0, 0xBC };
     121             : static const symbol s_2_7[4] = { 0xD0, 0xBD, 0xD0, 0xBD };
     122             : 
     123             : static const struct among a_2[8] =
     124             : {
     125             : /*  0 */ { 4, s_2_0, -1, 1, 0},
     126             : /*  1 */ { 6, s_2_1, 0, 2, 0},
     127             : /*  2 */ { 6, s_2_2, 0, 2, 0},
     128             : /*  3 */ { 2, s_2_3, -1, 1, 0},
     129             : /*  4 */ { 4, s_2_4, 3, 1, 0},
     130             : /*  5 */ { 6, s_2_5, 4, 2, 0},
     131             : /*  6 */ { 4, s_2_6, -1, 1, 0},
     132             : /*  7 */ { 4, s_2_7, -1, 1, 0}
     133             : };
     134             : 
     135             : static const symbol s_3_0[4] = { 0xD1, 0x81, 0xD1, 0x8C };
     136             : static const symbol s_3_1[4] = { 0xD1, 0x81, 0xD1, 0x8F };
     137             : 
     138             : static const struct among a_3[2] =
     139             : {
     140             : /*  0 */ { 4, s_3_0, -1, 1, 0},
     141             : /*  1 */ { 4, s_3_1, -1, 1, 0}
     142             : };
     143             : 
     144             : static const symbol s_4_0[4] = { 0xD1, 0x8B, 0xD1, 0x82 };
     145             : static const symbol s_4_1[4] = { 0xD1, 0x8E, 0xD1, 0x82 };
     146             : static const symbol s_4_2[6] = { 0xD1, 0x83, 0xD1, 0x8E, 0xD1, 0x82 };
     147             : static const symbol s_4_3[4] = { 0xD1, 0x8F, 0xD1, 0x82 };
     148             : static const symbol s_4_4[4] = { 0xD0, 0xB5, 0xD1, 0x82 };
     149             : static const symbol s_4_5[6] = { 0xD1, 0x83, 0xD0, 0xB5, 0xD1, 0x82 };
     150             : static const symbol s_4_6[4] = { 0xD0, 0xB8, 0xD1, 0x82 };
     151             : static const symbol s_4_7[4] = { 0xD0, 0xBD, 0xD1, 0x8B };
     152             : static const symbol s_4_8[6] = { 0xD0, 0xB5, 0xD0, 0xBD, 0xD1, 0x8B };
     153             : static const symbol s_4_9[4] = { 0xD1, 0x82, 0xD1, 0x8C };
     154             : static const symbol s_4_10[6] = { 0xD1, 0x8B, 0xD1, 0x82, 0xD1, 0x8C };
     155             : static const symbol s_4_11[6] = { 0xD0, 0xB8, 0xD1, 0x82, 0xD1, 0x8C };
     156             : static const symbol s_4_12[6] = { 0xD0, 0xB5, 0xD1, 0x88, 0xD1, 0x8C };
     157             : static const symbol s_4_13[6] = { 0xD0, 0xB8, 0xD1, 0x88, 0xD1, 0x8C };
     158             : static const symbol s_4_14[2] = { 0xD1, 0x8E };
     159             : static const symbol s_4_15[4] = { 0xD1, 0x83, 0xD1, 0x8E };
     160             : static const symbol s_4_16[4] = { 0xD0, 0xBB, 0xD0, 0xB0 };
     161             : static const symbol s_4_17[6] = { 0xD1, 0x8B, 0xD0, 0xBB, 0xD0, 0xB0 };
     162             : static const symbol s_4_18[6] = { 0xD0, 0xB8, 0xD0, 0xBB, 0xD0, 0xB0 };
     163             : static const symbol s_4_19[4] = { 0xD0, 0xBD, 0xD0, 0xB0 };
     164             : static const symbol s_4_20[6] = { 0xD0, 0xB5, 0xD0, 0xBD, 0xD0, 0xB0 };
     165             : static const symbol s_4_21[6] = { 0xD0, 0xB5, 0xD1, 0x82, 0xD0, 0xB5 };
     166             : static const symbol s_4_22[6] = { 0xD0, 0xB8, 0xD1, 0x82, 0xD0, 0xB5 };
     167             : static const symbol s_4_23[6] = { 0xD0, 0xB9, 0xD1, 0x82, 0xD0, 0xB5 };
     168             : static const symbol s_4_24[8] = { 0xD1, 0x83, 0xD0, 0xB9, 0xD1, 0x82, 0xD0, 0xB5 };
     169             : static const symbol s_4_25[8] = { 0xD0, 0xB5, 0xD0, 0xB9, 0xD1, 0x82, 0xD0, 0xB5 };
     170             : static const symbol s_4_26[4] = { 0xD0, 0xBB, 0xD0, 0xB8 };
     171             : static const symbol s_4_27[6] = { 0xD1, 0x8B, 0xD0, 0xBB, 0xD0, 0xB8 };
     172             : static const symbol s_4_28[6] = { 0xD0, 0xB8, 0xD0, 0xBB, 0xD0, 0xB8 };
     173             : static const symbol s_4_29[2] = { 0xD0, 0xB9 };
     174             : static const symbol s_4_30[4] = { 0xD1, 0x83, 0xD0, 0xB9 };
     175             : static const symbol s_4_31[4] = { 0xD0, 0xB5, 0xD0, 0xB9 };
     176             : static const symbol s_4_32[2] = { 0xD0, 0xBB };
     177             : static const symbol s_4_33[4] = { 0xD1, 0x8B, 0xD0, 0xBB };
     178             : static const symbol s_4_34[4] = { 0xD0, 0xB8, 0xD0, 0xBB };
     179             : static const symbol s_4_35[4] = { 0xD1, 0x8B, 0xD0, 0xBC };
     180             : static const symbol s_4_36[4] = { 0xD0, 0xB5, 0xD0, 0xBC };
     181             : static const symbol s_4_37[4] = { 0xD0, 0xB8, 0xD0, 0xBC };
     182             : static const symbol s_4_38[2] = { 0xD0, 0xBD };
     183             : static const symbol s_4_39[4] = { 0xD0, 0xB5, 0xD0, 0xBD };
     184             : static const symbol s_4_40[4] = { 0xD0, 0xBB, 0xD0, 0xBE };
     185             : static const symbol s_4_41[6] = { 0xD1, 0x8B, 0xD0, 0xBB, 0xD0, 0xBE };
     186             : static const symbol s_4_42[6] = { 0xD0, 0xB8, 0xD0, 0xBB, 0xD0, 0xBE };
     187             : static const symbol s_4_43[4] = { 0xD0, 0xBD, 0xD0, 0xBE };
     188             : static const symbol s_4_44[6] = { 0xD0, 0xB5, 0xD0, 0xBD, 0xD0, 0xBE };
     189             : static const symbol s_4_45[6] = { 0xD0, 0xBD, 0xD0, 0xBD, 0xD0, 0xBE };
     190             : 
     191             : static const struct among a_4[46] =
     192             : {
     193             : /*  0 */ { 4, s_4_0, -1, 2, 0},
     194             : /*  1 */ { 4, s_4_1, -1, 1, 0},
     195             : /*  2 */ { 6, s_4_2, 1, 2, 0},
     196             : /*  3 */ { 4, s_4_3, -1, 2, 0},
     197             : /*  4 */ { 4, s_4_4, -1, 1, 0},
     198             : /*  5 */ { 6, s_4_5, 4, 2, 0},
     199             : /*  6 */ { 4, s_4_6, -1, 2, 0},
     200             : /*  7 */ { 4, s_4_7, -1, 1, 0},
     201             : /*  8 */ { 6, s_4_8, 7, 2, 0},
     202             : /*  9 */ { 4, s_4_9, -1, 1, 0},
     203             : /* 10 */ { 6, s_4_10, 9, 2, 0},
     204             : /* 11 */ { 6, s_4_11, 9, 2, 0},
     205             : /* 12 */ { 6, s_4_12, -1, 1, 0},
     206             : /* 13 */ { 6, s_4_13, -1, 2, 0},
     207             : /* 14 */ { 2, s_4_14, -1, 2, 0},
     208             : /* 15 */ { 4, s_4_15, 14, 2, 0},
     209             : /* 16 */ { 4, s_4_16, -1, 1, 0},
     210             : /* 17 */ { 6, s_4_17, 16, 2, 0},
     211             : /* 18 */ { 6, s_4_18, 16, 2, 0},
     212             : /* 19 */ { 4, s_4_19, -1, 1, 0},
     213             : /* 20 */ { 6, s_4_20, 19, 2, 0},
     214             : /* 21 */ { 6, s_4_21, -1, 1, 0},
     215             : /* 22 */ { 6, s_4_22, -1, 2, 0},
     216             : /* 23 */ { 6, s_4_23, -1, 1, 0},
     217             : /* 24 */ { 8, s_4_24, 23, 2, 0},
     218             : /* 25 */ { 8, s_4_25, 23, 2, 0},
     219             : /* 26 */ { 4, s_4_26, -1, 1, 0},
     220             : /* 27 */ { 6, s_4_27, 26, 2, 0},
     221             : /* 28 */ { 6, s_4_28, 26, 2, 0},
     222             : /* 29 */ { 2, s_4_29, -1, 1, 0},
     223             : /* 30 */ { 4, s_4_30, 29, 2, 0},
     224             : /* 31 */ { 4, s_4_31, 29, 2, 0},
     225             : /* 32 */ { 2, s_4_32, -1, 1, 0},
     226             : /* 33 */ { 4, s_4_33, 32, 2, 0},
     227             : /* 34 */ { 4, s_4_34, 32, 2, 0},
     228             : /* 35 */ { 4, s_4_35, -1, 2, 0},
     229             : /* 36 */ { 4, s_4_36, -1, 1, 0},
     230             : /* 37 */ { 4, s_4_37, -1, 2, 0},
     231             : /* 38 */ { 2, s_4_38, -1, 1, 0},
     232             : /* 39 */ { 4, s_4_39, 38, 2, 0},
     233             : /* 40 */ { 4, s_4_40, -1, 1, 0},
     234             : /* 41 */ { 6, s_4_41, 40, 2, 0},
     235             : /* 42 */ { 6, s_4_42, 40, 2, 0},
     236             : /* 43 */ { 4, s_4_43, -1, 1, 0},
     237             : /* 44 */ { 6, s_4_44, 43, 2, 0},
     238             : /* 45 */ { 6, s_4_45, 43, 1, 0}
     239             : };
     240             : 
     241             : static const symbol s_5_0[2] = { 0xD1, 0x83 };
     242             : static const symbol s_5_1[4] = { 0xD1, 0x8F, 0xD1, 0x85 };
     243             : static const symbol s_5_2[6] = { 0xD0, 0xB8, 0xD1, 0x8F, 0xD1, 0x85 };
     244             : static const symbol s_5_3[4] = { 0xD0, 0xB0, 0xD1, 0x85 };
     245             : static const symbol s_5_4[2] = { 0xD1, 0x8B };
     246             : static const symbol s_5_5[2] = { 0xD1, 0x8C };
     247             : static const symbol s_5_6[2] = { 0xD1, 0x8E };
     248             : static const symbol s_5_7[4] = { 0xD1, 0x8C, 0xD1, 0x8E };
     249             : static const symbol s_5_8[4] = { 0xD0, 0xB8, 0xD1, 0x8E };
     250             : static const symbol s_5_9[2] = { 0xD1, 0x8F };
     251             : static const symbol s_5_10[4] = { 0xD1, 0x8C, 0xD1, 0x8F };
     252             : static const symbol s_5_11[4] = { 0xD0, 0xB8, 0xD1, 0x8F };
     253             : static const symbol s_5_12[2] = { 0xD0, 0xB0 };
     254             : static const symbol s_5_13[4] = { 0xD0, 0xB5, 0xD0, 0xB2 };
     255             : static const symbol s_5_14[4] = { 0xD0, 0xBE, 0xD0, 0xB2 };
     256             : static const symbol s_5_15[2] = { 0xD0, 0xB5 };
     257             : static const symbol s_5_16[4] = { 0xD1, 0x8C, 0xD0, 0xB5 };
     258             : static const symbol s_5_17[4] = { 0xD0, 0xB8, 0xD0, 0xB5 };
     259             : static const symbol s_5_18[2] = { 0xD0, 0xB8 };
     260             : static const symbol s_5_19[4] = { 0xD0, 0xB5, 0xD0, 0xB8 };
     261             : static const symbol s_5_20[4] = { 0xD0, 0xB8, 0xD0, 0xB8 };
     262             : static const symbol s_5_21[6] = { 0xD1, 0x8F, 0xD0, 0xBC, 0xD0, 0xB8 };
     263             : static const symbol s_5_22[8] = { 0xD0, 0xB8, 0xD1, 0x8F, 0xD0, 0xBC, 0xD0, 0xB8 };
     264             : static const symbol s_5_23[6] = { 0xD0, 0xB0, 0xD0, 0xBC, 0xD0, 0xB8 };
     265             : static const symbol s_5_24[2] = { 0xD0, 0xB9 };
     266             : static const symbol s_5_25[4] = { 0xD0, 0xB5, 0xD0, 0xB9 };
     267             : static const symbol s_5_26[6] = { 0xD0, 0xB8, 0xD0, 0xB5, 0xD0, 0xB9 };
     268             : static const symbol s_5_27[4] = { 0xD0, 0xB8, 0xD0, 0xB9 };
     269             : static const symbol s_5_28[4] = { 0xD0, 0xBE, 0xD0, 0xB9 };
     270             : static const symbol s_5_29[4] = { 0xD1, 0x8F, 0xD0, 0xBC };
     271             : static const symbol s_5_30[6] = { 0xD0, 0xB8, 0xD1, 0x8F, 0xD0, 0xBC };
     272             : static const symbol s_5_31[4] = { 0xD0, 0xB0, 0xD0, 0xBC };
     273             : static const symbol s_5_32[4] = { 0xD0, 0xB5, 0xD0, 0xBC };
     274             : static const symbol s_5_33[6] = { 0xD0, 0xB8, 0xD0, 0xB5, 0xD0, 0xBC };
     275             : static const symbol s_5_34[4] = { 0xD0, 0xBE, 0xD0, 0xBC };
     276             : static const symbol s_5_35[2] = { 0xD0, 0xBE };
     277             : 
     278             : static const struct among a_5[36] =
     279             : {
     280             : /*  0 */ { 2, s_5_0, -1, 1, 0},
     281             : /*  1 */ { 4, s_5_1, -1, 1, 0},
     282             : /*  2 */ { 6, s_5_2, 1, 1, 0},
     283             : /*  3 */ { 4, s_5_3, -1, 1, 0},
     284             : /*  4 */ { 2, s_5_4, -1, 1, 0},
     285             : /*  5 */ { 2, s_5_5, -1, 1, 0},
     286             : /*  6 */ { 2, s_5_6, -1, 1, 0},
     287             : /*  7 */ { 4, s_5_7, 6, 1, 0},
     288             : /*  8 */ { 4, s_5_8, 6, 1, 0},
     289             : /*  9 */ { 2, s_5_9, -1, 1, 0},
     290             : /* 10 */ { 4, s_5_10, 9, 1, 0},
     291             : /* 11 */ { 4, s_5_11, 9, 1, 0},
     292             : /* 12 */ { 2, s_5_12, -1, 1, 0},
     293             : /* 13 */ { 4, s_5_13, -1, 1, 0},
     294             : /* 14 */ { 4, s_5_14, -1, 1, 0},
     295             : /* 15 */ { 2, s_5_15, -1, 1, 0},
     296             : /* 16 */ { 4, s_5_16, 15, 1, 0},
     297             : /* 17 */ { 4, s_5_17, 15, 1, 0},
     298             : /* 18 */ { 2, s_5_18, -1, 1, 0},
     299             : /* 19 */ { 4, s_5_19, 18, 1, 0},
     300             : /* 20 */ { 4, s_5_20, 18, 1, 0},
     301             : /* 21 */ { 6, s_5_21, 18, 1, 0},
     302             : /* 22 */ { 8, s_5_22, 21, 1, 0},
     303             : /* 23 */ { 6, s_5_23, 18, 1, 0},
     304             : /* 24 */ { 2, s_5_24, -1, 1, 0},
     305             : /* 25 */ { 4, s_5_25, 24, 1, 0},
     306             : /* 26 */ { 6, s_5_26, 25, 1, 0},
     307             : /* 27 */ { 4, s_5_27, 24, 1, 0},
     308             : /* 28 */ { 4, s_5_28, 24, 1, 0},
     309             : /* 29 */ { 4, s_5_29, -1, 1, 0},
     310             : /* 30 */ { 6, s_5_30, 29, 1, 0},
     311             : /* 31 */ { 4, s_5_31, -1, 1, 0},
     312             : /* 32 */ { 4, s_5_32, -1, 1, 0},
     313             : /* 33 */ { 6, s_5_33, 32, 1, 0},
     314             : /* 34 */ { 4, s_5_34, -1, 1, 0},
     315             : /* 35 */ { 2, s_5_35, -1, 1, 0}
     316             : };
     317             : 
     318             : static const symbol s_6_0[6] = { 0xD0, 0xBE, 0xD1, 0x81, 0xD1, 0x82 };
     319             : static const symbol s_6_1[8] = { 0xD0, 0xBE, 0xD1, 0x81, 0xD1, 0x82, 0xD1, 0x8C };
     320             : 
     321             : static const struct among a_6[2] =
     322             : {
     323             : /*  0 */ { 6, s_6_0, -1, 1, 0},
     324             : /*  1 */ { 8, s_6_1, -1, 1, 0}
     325             : };
     326             : 
     327             : static const symbol s_7_0[6] = { 0xD0, 0xB5, 0xD0, 0xB9, 0xD1, 0x88 };
     328             : static const symbol s_7_1[2] = { 0xD1, 0x8C };
     329             : static const symbol s_7_2[8] = { 0xD0, 0xB5, 0xD0, 0xB9, 0xD1, 0x88, 0xD0, 0xB5 };
     330             : static const symbol s_7_3[2] = { 0xD0, 0xBD };
     331             : 
     332             : static const struct among a_7[4] =
     333             : {
     334             : /*  0 */ { 6, s_7_0, -1, 1, 0},
     335             : /*  1 */ { 2, s_7_1, -1, 3, 0},
     336             : /*  2 */ { 8, s_7_2, -1, 1, 0},
     337             : /*  3 */ { 2, s_7_3, -1, 2, 0}
     338             : };
     339             : 
     340             : static const unsigned char g_v[] = { 33, 65, 8, 232 };
     341             : 
     342             : static const symbol s_0[] = { 0xD0, 0xB0 };
     343             : static const symbol s_1[] = { 0xD1, 0x8F };
     344             : static const symbol s_2[] = { 0xD0, 0xB0 };
     345             : static const symbol s_3[] = { 0xD1, 0x8F };
     346             : static const symbol s_4[] = { 0xD0, 0xB0 };
     347             : static const symbol s_5[] = { 0xD1, 0x8F };
     348             : static const symbol s_6[] = { 0xD0, 0xBD };
     349             : static const symbol s_7[] = { 0xD0, 0xBD };
     350             : static const symbol s_8[] = { 0xD0, 0xBD };
     351             : static const symbol s_9[] = { 0xD1, 0x91 };
     352             : static const symbol s_10[] = { 0xD0, 0xB5 };
     353             : static const symbol s_11[] = { 0xD0, 0xB8 };
     354             : 
     355           0 : static int r_mark_regions(struct SN_env * z) { /* forwardmode */
     356           0 :     z->I[0] = z->l; /* $pV = <integer expression>, line 61 */
     357           0 :     z->I[1] = z->l; /* $p2 = <integer expression>, line 62 */
     358           0 :     {   int c1 = z->c; /* do, line 63 */
     359             :         {    /* gopast */ /* grouping v, line 64 */
     360           0 :             int ret = out_grouping_U(z, g_v, 1072, 1103, 1);
     361           0 :             if (ret < 0) goto lab0;
     362           0 :             z->c += ret;
     363             :         }
     364           0 :         z->I[0] = z->c; /* setmark pV, line 64 */
     365             :         {    /* gopast */ /* non v, line 64 */
     366           0 :             int ret = in_grouping_U(z, g_v, 1072, 1103, 1);
     367           0 :             if (ret < 0) goto lab0;
     368           0 :             z->c += ret;
     369             :         }
     370             :         {    /* gopast */ /* grouping v, line 65 */
     371           0 :             int ret = out_grouping_U(z, g_v, 1072, 1103, 1);
     372           0 :             if (ret < 0) goto lab0;
     373           0 :             z->c += ret;
     374             :         }
     375             :         {    /* gopast */ /* non v, line 65 */
     376           0 :             int ret = in_grouping_U(z, g_v, 1072, 1103, 1);
     377           0 :             if (ret < 0) goto lab0;
     378           0 :             z->c += ret;
     379             :         }
     380           0 :         z->I[1] = z->c; /* setmark p2, line 65 */
     381           0 :     lab0:
     382           0 :         z->c = c1;
     383             :     }
     384           0 :     return 1;
     385             : }
     386             : 
     387           0 : static int r_R2(struct SN_env * z) { /* backwardmode */
     388           0 :     if (!(z->I[1] <= z->c)) return 0; /* $(<integer expression> <= <integer expression>), line 71 */
     389           0 :     return 1;
     390             : }
     391             : 
     392           0 : static int r_perfective_gerund(struct SN_env * z) { /* backwardmode */
     393             :     int among_var;
     394           0 :     z->ket = z->c; /* [, line 74 */
     395           0 :     among_var = find_among_b(z, a_0, 9); /* substring, line 74 */
     396           0 :     if (!(among_var)) return 0;
     397           0 :     z->bra = z->c; /* ], line 74 */
     398           0 :     switch (among_var) { /* among, line 74 */
     399           0 :         case 1:
     400           0 :             {   int m1 = z->l - z->c; (void)m1; /* or, line 78 */
     401           0 :                 if (!(eq_s_b(z, 2, s_0))) goto lab1; /* literal, line 78 */
     402           0 :                 goto lab0;
     403           0 :             lab1:
     404           0 :                 z->c = z->l - m1;
     405           0 :                 if (!(eq_s_b(z, 2, s_1))) return 0; /* literal, line 78 */
     406             :             }
     407           0 :         lab0:
     408           0 :             {   int ret = slice_del(z); /* delete, line 78 */
     409           0 :                 if (ret < 0) return ret;
     410             :             }
     411           0 :             break;
     412           0 :         case 2:
     413           0 :             {   int ret = slice_del(z); /* delete, line 85 */
     414           0 :                 if (ret < 0) return ret;
     415             :             }
     416           0 :             break;
     417             :     }
     418           0 :     return 1;
     419             : }
     420             : 
     421           0 : static int r_adjective(struct SN_env * z) { /* backwardmode */
     422           0 :     z->ket = z->c; /* [, line 90 */
     423           0 :     if (!(find_among_b(z, a_1, 26))) return 0; /* substring, line 90 */
     424           0 :     z->bra = z->c; /* ], line 90 */
     425           0 :     {   int ret = slice_del(z); /* delete, line 99 */
     426           0 :         if (ret < 0) return ret;
     427             :     }
     428           0 :     return 1;
     429             : }
     430             : 
     431           0 : static int r_adjectival(struct SN_env * z) { /* backwardmode */
     432             :     int among_var;
     433           0 :     {   int ret = r_adjective(z); /* call adjective, line 104 */
     434           0 :         if (ret <= 0) return ret;
     435             :     }
     436           0 :     {   int m1 = z->l - z->c; (void)m1; /* try, line 111 */
     437           0 :         z->ket = z->c; /* [, line 112 */
     438           0 :         among_var = find_among_b(z, a_2, 8); /* substring, line 112 */
     439           0 :         if (!(among_var)) { z->c = z->l - m1; goto lab0; }
     440           0 :         z->bra = z->c; /* ], line 112 */
     441           0 :         switch (among_var) { /* among, line 112 */
     442           0 :             case 1:
     443           0 :                 {   int m2 = z->l - z->c; (void)m2; /* or, line 117 */
     444           0 :                     if (!(eq_s_b(z, 2, s_2))) goto lab2; /* literal, line 117 */
     445           0 :                     goto lab1;
     446           0 :                 lab2:
     447           0 :                     z->c = z->l - m2;
     448           0 :                     if (!(eq_s_b(z, 2, s_3))) { z->c = z->l - m1; goto lab0; } /* literal, line 117 */
     449             :                 }
     450           0 :             lab1:
     451           0 :                 {   int ret = slice_del(z); /* delete, line 117 */
     452           0 :                     if (ret < 0) return ret;
     453             :                 }
     454           0 :                 break;
     455           0 :             case 2:
     456           0 :                 {   int ret = slice_del(z); /* delete, line 124 */
     457           0 :                     if (ret < 0) return ret;
     458             :                 }
     459           0 :                 break;
     460             :         }
     461           0 :     lab0:
     462             :         ;
     463             :     }
     464           0 :     return 1;
     465             : }
     466             : 
     467           0 : static int r_reflexive(struct SN_env * z) { /* backwardmode */
     468           0 :     z->ket = z->c; /* [, line 131 */
     469           0 :     if (z->c - 3 <= z->lb || (z->p[z->c - 1] != 140 && z->p[z->c - 1] != 143)) return 0; /* substring, line 131 */
     470           0 :     if (!(find_among_b(z, a_3, 2))) return 0;
     471           0 :     z->bra = z->c; /* ], line 131 */
     472           0 :     {   int ret = slice_del(z); /* delete, line 134 */
     473           0 :         if (ret < 0) return ret;
     474             :     }
     475           0 :     return 1;
     476             : }
     477             : 
     478           0 : static int r_verb(struct SN_env * z) { /* backwardmode */
     479             :     int among_var;
     480           0 :     z->ket = z->c; /* [, line 139 */
     481           0 :     among_var = find_among_b(z, a_4, 46); /* substring, line 139 */
     482           0 :     if (!(among_var)) return 0;
     483           0 :     z->bra = z->c; /* ], line 139 */
     484           0 :     switch (among_var) { /* among, line 139 */
     485           0 :         case 1:
     486           0 :             {   int m1 = z->l - z->c; (void)m1; /* or, line 145 */
     487           0 :                 if (!(eq_s_b(z, 2, s_4))) goto lab1; /* literal, line 145 */
     488           0 :                 goto lab0;
     489           0 :             lab1:
     490           0 :                 z->c = z->l - m1;
     491           0 :                 if (!(eq_s_b(z, 2, s_5))) return 0; /* literal, line 145 */
     492             :             }
     493           0 :         lab0:
     494           0 :             {   int ret = slice_del(z); /* delete, line 145 */
     495           0 :                 if (ret < 0) return ret;
     496             :             }
     497           0 :             break;
     498           0 :         case 2:
     499           0 :             {   int ret = slice_del(z); /* delete, line 153 */
     500           0 :                 if (ret < 0) return ret;
     501             :             }
     502           0 :             break;
     503             :     }
     504           0 :     return 1;
     505             : }
     506             : 
     507           0 : static int r_noun(struct SN_env * z) { /* backwardmode */
     508           0 :     z->ket = z->c; /* [, line 162 */
     509           0 :     if (!(find_among_b(z, a_5, 36))) return 0; /* substring, line 162 */
     510           0 :     z->bra = z->c; /* ], line 162 */
     511           0 :     {   int ret = slice_del(z); /* delete, line 169 */
     512           0 :         if (ret < 0) return ret;
     513             :     }
     514           0 :     return 1;
     515             : }
     516             : 
     517           0 : static int r_derivational(struct SN_env * z) { /* backwardmode */
     518           0 :     z->ket = z->c; /* [, line 178 */
     519           0 :     if (z->c - 5 <= z->lb || (z->p[z->c - 1] != 130 && z->p[z->c - 1] != 140)) return 0; /* substring, line 178 */
     520           0 :     if (!(find_among_b(z, a_6, 2))) return 0;
     521           0 :     z->bra = z->c; /* ], line 178 */
     522           0 :     {   int ret = r_R2(z); /* call R2, line 178 */
     523           0 :         if (ret <= 0) return ret;
     524             :     }
     525           0 :     {   int ret = slice_del(z); /* delete, line 181 */
     526           0 :         if (ret < 0) return ret;
     527             :     }
     528           0 :     return 1;
     529             : }
     530             : 
     531           0 : static int r_tidy_up(struct SN_env * z) { /* backwardmode */
     532             :     int among_var;
     533           0 :     z->ket = z->c; /* [, line 186 */
     534           0 :     among_var = find_among_b(z, a_7, 4); /* substring, line 186 */
     535           0 :     if (!(among_var)) return 0;
     536           0 :     z->bra = z->c; /* ], line 186 */
     537           0 :     switch (among_var) { /* among, line 186 */
     538           0 :         case 1:
     539           0 :             {   int ret = slice_del(z); /* delete, line 190 */
     540           0 :                 if (ret < 0) return ret;
     541             :             }
     542           0 :             z->ket = z->c; /* [, line 191 */
     543           0 :             if (!(eq_s_b(z, 2, s_6))) return 0; /* literal, line 191 */
     544           0 :             z->bra = z->c; /* ], line 191 */
     545           0 :             if (!(eq_s_b(z, 2, s_7))) return 0; /* literal, line 191 */
     546           0 :             {   int ret = slice_del(z); /* delete, line 191 */
     547           0 :                 if (ret < 0) return ret;
     548             :             }
     549           0 :             break;
     550           0 :         case 2:
     551           0 :             if (!(eq_s_b(z, 2, s_8))) return 0; /* literal, line 194 */
     552           0 :             {   int ret = slice_del(z); /* delete, line 194 */
     553           0 :                 if (ret < 0) return ret;
     554             :             }
     555           0 :             break;
     556           0 :         case 3:
     557           0 :             {   int ret = slice_del(z); /* delete, line 196 */
     558           0 :                 if (ret < 0) return ret;
     559             :             }
     560           0 :             break;
     561             :     }
     562           0 :     return 1;
     563             : }
     564             : 
     565           0 : extern int russian_UTF_8_stem(struct SN_env * z) { /* forwardmode */
     566           0 :     {   int c1 = z->c; /* do, line 205 */
     567             : /* repeat, line 205 */
     568             : 
     569           0 :         while(1) {            int c2 = z->c;
     570           0 :             while(1) { /* goto, line 205 */
     571           0 :                 int c3 = z->c;
     572           0 :                 z->bra = z->c; /* [, line 205 */
     573           0 :                 if (!(eq_s(z, 2, s_9))) goto lab2; /* literal, line 205 */
     574           0 :                 z->ket = z->c; /* ], line 205 */
     575           0 :                 z->c = c3;
     576           0 :                 break;
     577           0 :             lab2:
     578           0 :                 z->c = c3;
     579           0 :                 {   int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
     580           0 :                     if (ret < 0) goto lab1;
     581           0 :                     z->c = ret; /* goto, line 205 */
     582             :                 }
     583             :             }
     584           0 :             {   int ret = slice_from_s(z, 2, s_10); /* <-, line 205 */
     585           0 :                 if (ret < 0) return ret;
     586             :             }
     587           0 :             continue;
     588           0 :         lab1:
     589           0 :             z->c = c2;
     590           0 :             break;
     591             :         }
     592           0 :         z->c = c1;
     593             :     }
     594             :     /* do, line 207 */
     595           0 :     {   int ret = r_mark_regions(z); /* call mark_regions, line 207 */
     596           0 :         if (ret < 0) return ret;
     597             :     }
     598           0 :     z->lb = z->c; z->c = z->l; /* backwards, line 208 */
     599             : 
     600             : 
     601             :     {   int mlimit4; /* setlimit, line 208 */
     602           0 :         if (z->c < z->I[0]) return 0;
     603           0 :         mlimit4 = z->lb; z->lb = z->I[0];
     604           0 :         {   int m5 = z->l - z->c; (void)m5; /* do, line 209 */
     605           0 :             {   int m6 = z->l - z->c; (void)m6; /* or, line 210 */
     606           0 :                 {   int ret = r_perfective_gerund(z); /* call perfective_gerund, line 210 */
     607           0 :                     if (ret == 0) goto lab5;
     608           0 :                     if (ret < 0) return ret;
     609             :                 }
     610           0 :                 goto lab4;
     611           0 :             lab5:
     612           0 :                 z->c = z->l - m6;
     613           0 :                 {   int m7 = z->l - z->c; (void)m7; /* try, line 211 */
     614           0 :                     {   int ret = r_reflexive(z); /* call reflexive, line 211 */
     615           0 :                         if (ret == 0) { z->c = z->l - m7; goto lab6; }
     616           0 :                         if (ret < 0) return ret;
     617             :                     }
     618           0 :                 lab6:
     619             :                     ;
     620             :                 }
     621           0 :                 {   int m8 = z->l - z->c; (void)m8; /* or, line 212 */
     622           0 :                     {   int ret = r_adjectival(z); /* call adjectival, line 212 */
     623           0 :                         if (ret == 0) goto lab8;
     624           0 :                         if (ret < 0) return ret;
     625             :                     }
     626           0 :                     goto lab7;
     627           0 :                 lab8:
     628           0 :                     z->c = z->l - m8;
     629           0 :                     {   int ret = r_verb(z); /* call verb, line 212 */
     630           0 :                         if (ret == 0) goto lab9;
     631           0 :                         if (ret < 0) return ret;
     632             :                     }
     633           0 :                     goto lab7;
     634           0 :                 lab9:
     635           0 :                     z->c = z->l - m8;
     636           0 :                     {   int ret = r_noun(z); /* call noun, line 212 */
     637           0 :                         if (ret == 0) goto lab3;
     638           0 :                         if (ret < 0) return ret;
     639             :                     }
     640             :                 }
     641           0 :             lab7:
     642             :                 ;
     643             :             }
     644           0 :         lab4:
     645           0 :         lab3:
     646           0 :             z->c = z->l - m5;
     647             :         }
     648           0 :         {   int m9 = z->l - z->c; (void)m9; /* try, line 215 */
     649           0 :             z->ket = z->c; /* [, line 215 */
     650           0 :             if (!(eq_s_b(z, 2, s_11))) { z->c = z->l - m9; goto lab10; } /* literal, line 215 */
     651           0 :             z->bra = z->c; /* ], line 215 */
     652           0 :             {   int ret = slice_del(z); /* delete, line 215 */
     653           0 :                 if (ret < 0) return ret;
     654             :             }
     655           0 :         lab10:
     656             :             ;
     657             :         }
     658           0 :         {   int m10 = z->l - z->c; (void)m10; /* do, line 218 */
     659           0 :             {   int ret = r_derivational(z); /* call derivational, line 218 */
     660           0 :                 if (ret < 0) return ret;
     661             :             }
     662           0 :             z->c = z->l - m10;
     663             :         }
     664           0 :         {   int m11 = z->l - z->c; (void)m11; /* do, line 219 */
     665           0 :             {   int ret = r_tidy_up(z); /* call tidy_up, line 219 */
     666           0 :                 if (ret < 0) return ret;
     667             :             }
     668           0 :             z->c = z->l - m11;
     669             :         }
     670           0 :         z->lb = mlimit4;
     671             :     }
     672           0 :     z->c = z->lb;
     673           0 :     return 1;
     674             : }
     675             : 
     676           0 : extern struct SN_env * russian_UTF_8_create_env(void) { return SN_create_env(0, 2, 0); }
     677             : 
     678           0 : extern void russian_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
     679             : 

Generated by: LCOV version 1.13