LCOV - code coverage report
Current view: top level - src/backend/snowball/libstemmer - stem_UTF_8_nepali.c (source / functions) Hit Total Coverage
Test: PostgreSQL 18devel Lines: 0 104 0.0 %
Date: 2024-11-21 08:14:44 Functions: 0 7 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
       2             : 
       3             : #include "header.h"
       4             : 
       5             : #ifdef __cplusplus
       6             : extern "C" {
       7             : #endif
       8             : extern int nepali_UTF_8_stem(struct SN_env * z);
       9             : #ifdef __cplusplus
      10             : }
      11             : #endif
      12             : static int r_remove_category_3(struct SN_env * z);
      13             : static int r_remove_category_2(struct SN_env * z);
      14             : static int r_check_category_2(struct SN_env * z);
      15             : static int r_remove_category_1(struct SN_env * z);
      16             : #ifdef __cplusplus
      17             : extern "C" {
      18             : #endif
      19             : 
      20             : 
      21             : extern struct SN_env * nepali_UTF_8_create_env(void);
      22             : extern void nepali_UTF_8_close_env(struct SN_env * z);
      23             : 
      24             : 
      25             : #ifdef __cplusplus
      26             : }
      27             : #endif
      28             : static const symbol s_0_0[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
      29             : static const symbol s_0_1[9] = { 0xE0, 0xA4, 0xB2, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0x87 };
      30             : static const symbol s_0_2[6] = { 0xE0, 0xA4, 0xB2, 0xE0, 0xA5, 0x87 };
      31             : static const symbol s_0_3[9] = { 0xE0, 0xA4, 0xB2, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0x88 };
      32             : static const symbol s_0_4[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x88 };
      33             : static const symbol s_0_5[12] = { 0xE0, 0xA4, 0xB8, 0xE0, 0xA4, 0x81, 0xE0, 0xA4, 0x97, 0xE0, 0xA5, 0x88 };
      34             : static const symbol s_0_6[6] = { 0xE0, 0xA4, 0xAE, 0xE0, 0xA5, 0x88 };
      35             : static const symbol s_0_7[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
      36             : static const symbol s_0_8[9] = { 0xE0, 0xA4, 0xB8, 0xE0, 0xA4, 0x81, 0xE0, 0xA4, 0x97 };
      37             : static const symbol s_0_9[9] = { 0xE0, 0xA4, 0xB8, 0xE0, 0xA4, 0x82, 0xE0, 0xA4, 0x97 };
      38             : static const symbol s_0_10[18] = { 0xE0, 0xA4, 0xAE, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0xB0, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xAB, 0xE0, 0xA4, 0xA4 };
      39             : static const symbol s_0_11[6] = { 0xE0, 0xA4, 0xB0, 0xE0, 0xA4, 0xA4 };
      40             : static const symbol s_0_12[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
      41             : static const symbol s_0_13[6] = { 0xE0, 0xA4, 0xAE, 0xE0, 0xA4, 0xBE };
      42             : static const symbol s_0_14[18] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xB5, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0xB0, 0xE0, 0xA4, 0xBE };
      43             : static const symbol s_0_15[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBF };
      44             : static const symbol s_0_16[9] = { 0xE0, 0xA4, 0xAA, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xBF };
      45             : 
      46             : static const struct among a_0[17] =
      47             : {
      48             : { 6, s_0_0, -1, 2, 0},
      49             : { 9, s_0_1, -1, 1, 0},
      50             : { 6, s_0_2, -1, 1, 0},
      51             : { 9, s_0_3, -1, 1, 0},
      52             : { 6, s_0_4, -1, 2, 0},
      53             : { 12, s_0_5, -1, 1, 0},
      54             : { 6, s_0_6, -1, 1, 0},
      55             : { 6, s_0_7, -1, 2, 0},
      56             : { 9, s_0_8, -1, 1, 0},
      57             : { 9, s_0_9, -1, 1, 0},
      58             : { 18, s_0_10, -1, 1, 0},
      59             : { 6, s_0_11, -1, 1, 0},
      60             : { 6, s_0_12, -1, 2, 0},
      61             : { 6, s_0_13, -1, 1, 0},
      62             : { 18, s_0_14, -1, 1, 0},
      63             : { 6, s_0_15, -1, 2, 0},
      64             : { 9, s_0_16, -1, 1, 0}
      65             : };
      66             : 
      67             : static const symbol s_1_0[3] = { 0xE0, 0xA4, 0x81 };
      68             : static const symbol s_1_1[3] = { 0xE0, 0xA4, 0x82 };
      69             : static const symbol s_1_2[3] = { 0xE0, 0xA5, 0x88 };
      70             : 
      71             : static const struct among a_1[3] =
      72             : {
      73             : { 3, s_1_0, -1, -1, 0},
      74             : { 3, s_1_1, -1, -1, 0},
      75             : { 3, s_1_2, -1, -1, 0}
      76             : };
      77             : 
      78             : static const symbol s_2_0[3] = { 0xE0, 0xA4, 0x81 };
      79             : static const symbol s_2_1[3] = { 0xE0, 0xA4, 0x82 };
      80             : static const symbol s_2_2[3] = { 0xE0, 0xA5, 0x88 };
      81             : 
      82             : static const struct among a_2[3] =
      83             : {
      84             : { 3, s_2_0, -1, 1, 0},
      85             : { 3, s_2_1, -1, 1, 0},
      86             : { 3, s_2_2, -1, 2, 0}
      87             : };
      88             : 
      89             : static const symbol s_3_0[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
      90             : static const symbol s_3_1[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
      91             : static const symbol s_3_2[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
      92             : static const symbol s_3_3[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
      93             : static const symbol s_3_4[12] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x96, 0xE0, 0xA5, 0x80 };
      94             : static const symbol s_3_5[6] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x80 };
      95             : static const symbol s_3_6[6] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x80 };
      96             : static const symbol s_3_7[6] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x81 };
      97             : static const symbol s_3_8[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x81 };
      98             : static const symbol s_3_9[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x81 };
      99             : static const symbol s_3_10[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x81 };
     100             : static const symbol s_3_11[6] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x81 };
     101             : static const symbol s_3_12[9] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA4, 0xB0, 0xE0, 0xA5, 0x81 };
     102             : static const symbol s_3_13[9] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA4, 0xB0, 0xE0, 0xA5, 0x82 };
     103             : static const symbol s_3_14[6] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x87 };
     104             : static const symbol s_3_15[6] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x87 };
     105             : static const symbol s_3_16[6] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87 };
     106             : static const symbol s_3_17[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x88 };
     107             : static const symbol s_3_18[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x88 };
     108             : static const symbol s_3_19[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x88 };
     109             : static const symbol s_3_20[6] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x88 };
     110             : static const symbol s_3_21[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x88 };
     111             : static const symbol s_3_22[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x88 };
     112             : static const symbol s_3_23[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
     113             : static const symbol s_3_24[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
     114             : static const symbol s_3_25[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
     115             : static const symbol s_3_26[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
     116             : static const symbol s_3_27[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
     117             : static const symbol s_3_28[6] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x8B };
     118             : static const symbol s_3_29[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x8B };
     119             : static const symbol s_3_30[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x8B };
     120             : static const symbol s_3_31[6] = { 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
     121             : static const symbol s_3_32[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
     122             : static const symbol s_3_33[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
     123             : static const symbol s_3_34[9] = { 0xE0, 0xA4, 0xAD, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
     124             : static const symbol s_3_35[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
     125             : static const symbol s_3_36[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
     126             : static const symbol s_3_37[12] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
     127             : static const symbol s_3_38[6] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
     128             : static const symbol s_3_39[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
     129             : static const symbol s_3_40[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
     130             : static const symbol s_3_41[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
     131             : static const symbol s_3_42[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
     132             : static const symbol s_3_43[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
     133             : static const symbol s_3_44[6] = { 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
     134             : static const symbol s_3_45[12] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
     135             : static const symbol s_3_46[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
     136             : static const symbol s_3_47[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
     137             : static const symbol s_3_48[9] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     138             : static const symbol s_3_49[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     139             : static const symbol s_3_50[12] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     140             : static const symbol s_3_51[15] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     141             : static const symbol s_3_52[12] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     142             : static const symbol s_3_53[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     143             : static const symbol s_3_54[12] = { 0xE0, 0xA4, 0xB2, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     144             : static const symbol s_3_55[12] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     145             : static const symbol s_3_56[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
     146             : static const symbol s_3_57[9] = { 0xE0, 0xA4, 0xAA, 0xE0, 0xA4, 0xB0, 0xE0, 0xA5, 0x8D };
     147             : static const symbol s_3_58[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     148             : static const symbol s_3_59[15] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     149             : static const symbol s_3_60[12] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     150             : static const symbol s_3_61[12] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA5, 0x8B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     151             : static const symbol s_3_62[9] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     152             : static const symbol s_3_63[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     153             : static const symbol s_3_64[12] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     154             : static const symbol s_3_65[15] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     155             : static const symbol s_3_66[12] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     156             : static const symbol s_3_67[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     157             : static const symbol s_3_68[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     158             : static const symbol s_3_69[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
     159             : static const symbol s_3_70[9] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x8F };
     160             : static const symbol s_3_71[3] = { 0xE0, 0xA4, 0x9B };
     161             : static const symbol s_3_72[6] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x9B };
     162             : static const symbol s_3_73[6] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B };
     163             : static const symbol s_3_74[9] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B };
     164             : static const symbol s_3_75[15] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA5, 0x81, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B };
     165             : static const symbol s_3_76[15] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA5, 0x81, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0x9B };
     166             : static const symbol s_3_77[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0x9B };
     167             : static const symbol s_3_78[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0x9B };
     168             : static const symbol s_3_79[6] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B };
     169             : static const symbol s_3_80[6] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x9B };
     170             : static const symbol s_3_81[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
     171             : static const symbol s_3_82[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
     172             : static const symbol s_3_83[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
     173             : static const symbol s_3_84[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
     174             : static const symbol s_3_85[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
     175             : static const symbol s_3_86[6] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA4, 0xBE };
     176             : static const symbol s_3_87[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xA6, 0xE0, 0xA4, 0xBE };
     177             : static const symbol s_3_88[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA6, 0xE0, 0xA4, 0xBE };
     178             : static const symbol s_3_89[12] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x96, 0xE0, 0xA4, 0xBF };
     179             : static const symbol s_3_90[12] = { 0xE0, 0xA4, 0xAE, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF };
     180             : 
     181             : static const struct among a_3[91] =
     182             : {
     183             : { 9, s_3_0, -1, 1, 0},
     184             : { 9, s_3_1, -1, 1, 0},
     185             : { 12, s_3_2, 1, 1, 0},
     186             : { 12, s_3_3, 1, 1, 0},
     187             : { 12, s_3_4, -1, 1, 0},
     188             : { 6, s_3_5, -1, 1, 0},
     189             : { 6, s_3_6, -1, 1, 0},
     190             : { 6, s_3_7, -1, 1, 0},
     191             : { 9, s_3_8, 7, 1, 0},
     192             : { 12, s_3_9, 8, 1, 0},
     193             : { 9, s_3_10, 7, 1, 0},
     194             : { 6, s_3_11, -1, 1, 0},
     195             : { 9, s_3_12, -1, 1, 0},
     196             : { 9, s_3_13, -1, 1, 0},
     197             : { 6, s_3_14, -1, 1, 0},
     198             : { 6, s_3_15, -1, 1, 0},
     199             : { 6, s_3_16, -1, 1, 0},
     200             : { 9, s_3_17, -1, 1, 0},
     201             : { 12, s_3_18, 17, 1, 0},
     202             : { 9, s_3_19, -1, 1, 0},
     203             : { 6, s_3_20, -1, 1, 0},
     204             : { 9, s_3_21, 20, 1, 0},
     205             : { 9, s_3_22, 20, 1, 0},
     206             : { 9, s_3_23, -1, 1, 0},
     207             : { 12, s_3_24, 23, 1, 0},
     208             : { 9, s_3_25, -1, 1, 0},
     209             : { 12, s_3_26, 25, 1, 0},
     210             : { 12, s_3_27, 25, 1, 0},
     211             : { 6, s_3_28, -1, 1, 0},
     212             : { 9, s_3_29, 28, 1, 0},
     213             : { 9, s_3_30, 28, 1, 0},
     214             : { 6, s_3_31, -1, 1, 0},
     215             : { 9, s_3_32, 31, 1, 0},
     216             : { 12, s_3_33, 31, 1, 0},
     217             : { 9, s_3_34, 31, 1, 0},
     218             : { 9, s_3_35, 31, 1, 0},
     219             : { 12, s_3_36, 35, 1, 0},
     220             : { 12, s_3_37, 35, 1, 0},
     221             : { 6, s_3_38, -1, 1, 0},
     222             : { 9, s_3_39, 38, 1, 0},
     223             : { 9, s_3_40, 38, 1, 0},
     224             : { 12, s_3_41, 40, 1, 0},
     225             : { 9, s_3_42, 38, 1, 0},
     226             : { 9, s_3_43, 38, 1, 0},
     227             : { 6, s_3_44, -1, 1, 0},
     228             : { 12, s_3_45, 44, 1, 0},
     229             : { 12, s_3_46, 44, 1, 0},
     230             : { 12, s_3_47, 44, 1, 0},
     231             : { 9, s_3_48, -1, 1, 0},
     232             : { 12, s_3_49, 48, 1, 0},
     233             : { 12, s_3_50, 48, 1, 0},
     234             : { 15, s_3_51, 50, 1, 0},
     235             : { 12, s_3_52, 48, 1, 0},
     236             : { 12, s_3_53, 48, 1, 0},
     237             : { 12, s_3_54, -1, 1, 0},
     238             : { 12, s_3_55, -1, 1, 0},
     239             : { 12, s_3_56, -1, 1, 0},
     240             : { 9, s_3_57, -1, 1, 0},
     241             : { 9, s_3_58, -1, 1, 0},
     242             : { 15, s_3_59, 58, 1, 0},
     243             : { 12, s_3_60, -1, 1, 0},
     244             : { 12, s_3_61, -1, 1, 0},
     245             : { 9, s_3_62, -1, 1, 0},
     246             : { 12, s_3_63, 62, 1, 0},
     247             : { 12, s_3_64, 62, 1, 0},
     248             : { 15, s_3_65, 64, 1, 0},
     249             : { 12, s_3_66, 62, 1, 0},
     250             : { 12, s_3_67, 62, 1, 0},
     251             : { 9, s_3_68, -1, 1, 0},
     252             : { 12, s_3_69, 68, 1, 0},
     253             : { 9, s_3_70, -1, 1, 0},
     254             : { 3, s_3_71, -1, 1, 0},
     255             : { 6, s_3_72, 71, 1, 0},
     256             : { 6, s_3_73, 71, 1, 0},
     257             : { 9, s_3_74, 73, 1, 0},
     258             : { 15, s_3_75, 74, 1, 0},
     259             : { 15, s_3_76, 71, 1, 0},
     260             : { 12, s_3_77, 71, 1, 0},
     261             : { 12, s_3_78, 71, 1, 0},
     262             : { 6, s_3_79, 71, 1, 0},
     263             : { 6, s_3_80, 71, 1, 0},
     264             : { 9, s_3_81, -1, 1, 0},
     265             : { 12, s_3_82, 81, 1, 0},
     266             : { 9, s_3_83, -1, 1, 0},
     267             : { 12, s_3_84, 83, 1, 0},
     268             : { 12, s_3_85, 83, 1, 0},
     269             : { 6, s_3_86, -1, 1, 0},
     270             : { 9, s_3_87, 86, 1, 0},
     271             : { 9, s_3_88, 86, 1, 0},
     272             : { 12, s_3_89, -1, 1, 0},
     273             : { 12, s_3_90, -1, 1, 0}
     274             : };
     275             : 
     276             : static const symbol s_0[] = { 0xE0, 0xA4, 0x8F };
     277             : static const symbol s_1[] = { 0xE0, 0xA5, 0x87 };
     278             : static const symbol s_2[] = { 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
     279             : static const symbol s_3[] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
     280             : static const symbol s_4[] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8C };
     281             : static const symbol s_5[] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x87 };
     282             : static const symbol s_6[] = { 0xE0, 0xA4, 0xA4, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xB0 };
     283             : 
     284           0 : static int r_remove_category_1(struct SN_env * z) {
     285             :     int among_var;
     286           0 :     z->ket = z->c;
     287           0 :     among_var = find_among_b(z, a_0, 17);
     288           0 :     if (!(among_var)) return 0;
     289           0 :     z->bra = z->c;
     290           0 :     switch (among_var) {
     291           0 :         case 1:
     292           0 :             {   int ret = slice_del(z);
     293           0 :                 if (ret < 0) return ret;
     294             :             }
     295           0 :             break;
     296           0 :         case 2:
     297           0 :             {   int m1 = z->l - z->c; (void)m1;
     298           0 :                 {   int m2 = z->l - z->c; (void)m2;
     299           0 :                     if (!(eq_s_b(z, 3, s_0))) goto lab3;
     300           0 :                     goto lab2;
     301           0 :                 lab3:
     302           0 :                     z->c = z->l - m2;
     303           0 :                     if (!(eq_s_b(z, 3, s_1))) goto lab1;
     304             :                 }
     305           0 :             lab2:
     306           0 :                 goto lab0;
     307           0 :             lab1:
     308           0 :                 z->c = z->l - m1;
     309           0 :                 {   int ret = slice_del(z);
     310           0 :                     if (ret < 0) return ret;
     311             :                 }
     312             :             }
     313           0 :         lab0:
     314           0 :             break;
     315             :     }
     316           0 :     return 1;
     317             : }
     318             : 
     319           0 : static int r_check_category_2(struct SN_env * z) {
     320           0 :     z->ket = z->c;
     321           0 :     if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 4 || !((262 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
     322           0 :     if (!(find_among_b(z, a_1, 3))) return 0;
     323           0 :     z->bra = z->c;
     324           0 :     return 1;
     325             : }
     326             : 
     327           0 : static int r_remove_category_2(struct SN_env * z) {
     328             :     int among_var;
     329           0 :     z->ket = z->c;
     330           0 :     if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 4 || !((262 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
     331           0 :     among_var = find_among_b(z, a_2, 3);
     332           0 :     if (!(among_var)) return 0;
     333           0 :     z->bra = z->c;
     334           0 :     switch (among_var) {
     335           0 :         case 1:
     336           0 :             {   int m1 = z->l - z->c; (void)m1;
     337           0 :                 if (!(eq_s_b(z, 6, s_2))) goto lab1;
     338           0 :                 goto lab0;
     339           0 :             lab1:
     340           0 :                 z->c = z->l - m1;
     341           0 :                 if (!(eq_s_b(z, 6, s_3))) goto lab2;
     342           0 :                 goto lab0;
     343           0 :             lab2:
     344           0 :                 z->c = z->l - m1;
     345           0 :                 if (!(eq_s_b(z, 6, s_4))) goto lab3;
     346           0 :                 goto lab0;
     347           0 :             lab3:
     348           0 :                 z->c = z->l - m1;
     349           0 :                 if (!(eq_s_b(z, 6, s_5))) return 0;
     350             :             }
     351           0 :         lab0:
     352           0 :             {   int ret = slice_del(z);
     353           0 :                 if (ret < 0) return ret;
     354             :             }
     355           0 :             break;
     356           0 :         case 2:
     357           0 :             if (!(eq_s_b(z, 9, s_6))) return 0;
     358           0 :             {   int ret = slice_del(z);
     359           0 :                 if (ret < 0) return ret;
     360             :             }
     361           0 :             break;
     362             :     }
     363           0 :     return 1;
     364             : }
     365             : 
     366           0 : static int r_remove_category_3(struct SN_env * z) {
     367           0 :     z->ket = z->c;
     368           0 :     if (!(find_among_b(z, a_3, 91))) return 0;
     369           0 :     z->bra = z->c;
     370           0 :     {   int ret = slice_del(z);
     371           0 :         if (ret < 0) return ret;
     372             :     }
     373           0 :     return 1;
     374             : }
     375             : 
     376           0 : extern int nepali_UTF_8_stem(struct SN_env * z) {
     377           0 :     z->lb = z->c; z->c = z->l;
     378             : 
     379           0 :     {   int m1 = z->l - z->c; (void)m1;
     380           0 :         {   int ret = r_remove_category_1(z);
     381           0 :             if (ret < 0) return ret;
     382             :         }
     383           0 :         z->c = z->l - m1;
     384             :     }
     385           0 :     {   int m2 = z->l - z->c; (void)m2;
     386           0 :         while(1) {
     387           0 :             int m3 = z->l - z->c; (void)m3;
     388           0 :             {   int m4 = z->l - z->c; (void)m4;
     389           0 :                 {   int m5 = z->l - z->c; (void)m5;
     390           0 :                     {   int ret = r_check_category_2(z);
     391           0 :                         if (ret == 0) goto lab2;
     392           0 :                         if (ret < 0) return ret;
     393             :                     }
     394           0 :                     z->c = z->l - m5;
     395           0 :                     {   int ret = r_remove_category_2(z);
     396           0 :                         if (ret == 0) goto lab2;
     397           0 :                         if (ret < 0) return ret;
     398             :                     }
     399             :                 }
     400           0 :             lab2:
     401           0 :                 z->c = z->l - m4;
     402             :             }
     403           0 :             {   int ret = r_remove_category_3(z);
     404           0 :                 if (ret == 0) goto lab1;
     405           0 :                 if (ret < 0) return ret;
     406             :             }
     407           0 :             continue;
     408           0 :         lab1:
     409           0 :             z->c = z->l - m3;
     410           0 :             break;
     411             :         }
     412           0 :         z->c = z->l - m2;
     413             :     }
     414           0 :     z->c = z->lb;
     415           0 :     return 1;
     416             : }
     417             : 
     418           0 : extern struct SN_env * nepali_UTF_8_create_env(void) { return SN_create_env(0, 0); }
     419             : 
     420           0 : extern void nepali_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
     421             : 

Generated by: LCOV version 1.14