LCOV - differential code coverage report
Current view: top level - src/backend/snowball/libstemmer - stem_ISO_8859_1_irish.c (source / functions) Coverage Total Hit UBC
Current: Differential Code Coverage 16@8cea358b128 vs 17@8cea358b128 Lines: 0.0 % 175 0 175
Current Date: 2024-04-14 14:21:10 Functions: 0.0 % 11 0 11
Baseline: 16@8cea358b128 Branches: 0.0 % 112 0 112
Baseline Date: 2024-04-14 14:21:09 Line coverage date bins:
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed (240..) days: 0.0 % 175 0 175
Function coverage date bins:
(240..) days: 0.0 % 11 0 11
Branch coverage date bins:
(240..) days: 0.0 % 112 0 112

 Age         Owner                    Branch data    TLA  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 irish_ISO_8859_1_stem(struct SN_env * z);
                                  9                 :                : #ifdef __cplusplus
                                 10                 :                : }
                                 11                 :                : #endif
                                 12                 :                : static int r_verb_sfx(struct SN_env * z);
                                 13                 :                : static int r_deriv(struct SN_env * z);
                                 14                 :                : static int r_noun_sfx(struct SN_env * z);
                                 15                 :                : static int r_mark_regions(struct SN_env * z);
                                 16                 :                : static int r_initial_morph(struct SN_env * z);
                                 17                 :                : static int r_RV(struct SN_env * z);
                                 18                 :                : static int r_R2(struct SN_env * z);
                                 19                 :                : static int r_R1(struct SN_env * z);
                                 20                 :                : #ifdef __cplusplus
                                 21                 :                : extern "C" {
                                 22                 :                : #endif
                                 23                 :                : 
                                 24                 :                : 
                                 25                 :                : extern struct SN_env * irish_ISO_8859_1_create_env(void);
                                 26                 :                : extern void irish_ISO_8859_1_close_env(struct SN_env * z);
                                 27                 :                : 
                                 28                 :                : 
                                 29                 :                : #ifdef __cplusplus
                                 30                 :                : }
                                 31                 :                : #endif
                                 32                 :                : static const symbol s_0_0[2] = { 'b', '\'' };
                                 33                 :                : static const symbol s_0_1[2] = { 'b', 'h' };
                                 34                 :                : static const symbol s_0_2[3] = { 'b', 'h', 'f' };
                                 35                 :                : static const symbol s_0_3[2] = { 'b', 'p' };
                                 36                 :                : static const symbol s_0_4[2] = { 'c', 'h' };
                                 37                 :                : static const symbol s_0_5[2] = { 'd', '\'' };
                                 38                 :                : static const symbol s_0_6[4] = { 'd', '\'', 'f', 'h' };
                                 39                 :                : static const symbol s_0_7[2] = { 'd', 'h' };
                                 40                 :                : static const symbol s_0_8[2] = { 'd', 't' };
                                 41                 :                : static const symbol s_0_9[2] = { 'f', 'h' };
                                 42                 :                : static const symbol s_0_10[2] = { 'g', 'c' };
                                 43                 :                : static const symbol s_0_11[2] = { 'g', 'h' };
                                 44                 :                : static const symbol s_0_12[2] = { 'h', '-' };
                                 45                 :                : static const symbol s_0_13[2] = { 'm', '\'' };
                                 46                 :                : static const symbol s_0_14[2] = { 'm', 'b' };
                                 47                 :                : static const symbol s_0_15[2] = { 'm', 'h' };
                                 48                 :                : static const symbol s_0_16[2] = { 'n', '-' };
                                 49                 :                : static const symbol s_0_17[2] = { 'n', 'd' };
                                 50                 :                : static const symbol s_0_18[2] = { 'n', 'g' };
                                 51                 :                : static const symbol s_0_19[2] = { 'p', 'h' };
                                 52                 :                : static const symbol s_0_20[2] = { 's', 'h' };
                                 53                 :                : static const symbol s_0_21[2] = { 't', '-' };
                                 54                 :                : static const symbol s_0_22[2] = { 't', 'h' };
                                 55                 :                : static const symbol s_0_23[2] = { 't', 's' };
                                 56                 :                : 
                                 57                 :                : static const struct among a_0[24] =
                                 58                 :                : {
                                 59                 :                : { 2, s_0_0, -1, 1, 0},
                                 60                 :                : { 2, s_0_1, -1, 4, 0},
                                 61                 :                : { 3, s_0_2, 1, 2, 0},
                                 62                 :                : { 2, s_0_3, -1, 8, 0},
                                 63                 :                : { 2, s_0_4, -1, 5, 0},
                                 64                 :                : { 2, s_0_5, -1, 1, 0},
                                 65                 :                : { 4, s_0_6, 5, 2, 0},
                                 66                 :                : { 2, s_0_7, -1, 6, 0},
                                 67                 :                : { 2, s_0_8, -1, 9, 0},
                                 68                 :                : { 2, s_0_9, -1, 2, 0},
                                 69                 :                : { 2, s_0_10, -1, 5, 0},
                                 70                 :                : { 2, s_0_11, -1, 7, 0},
                                 71                 :                : { 2, s_0_12, -1, 1, 0},
                                 72                 :                : { 2, s_0_13, -1, 1, 0},
                                 73                 :                : { 2, s_0_14, -1, 4, 0},
                                 74                 :                : { 2, s_0_15, -1, 10, 0},
                                 75                 :                : { 2, s_0_16, -1, 1, 0},
                                 76                 :                : { 2, s_0_17, -1, 6, 0},
                                 77                 :                : { 2, s_0_18, -1, 7, 0},
                                 78                 :                : { 2, s_0_19, -1, 8, 0},
                                 79                 :                : { 2, s_0_20, -1, 3, 0},
                                 80                 :                : { 2, s_0_21, -1, 1, 0},
                                 81                 :                : { 2, s_0_22, -1, 9, 0},
                                 82                 :                : { 2, s_0_23, -1, 3, 0}
                                 83                 :                : };
                                 84                 :                : 
                                 85                 :                : static const symbol s_1_0[6] = { 0xED, 'o', 'c', 'h', 't', 'a' };
                                 86                 :                : static const symbol s_1_1[7] = { 'a', 0xED, 'o', 'c', 'h', 't', 'a' };
                                 87                 :                : static const symbol s_1_2[3] = { 'i', 'r', 'e' };
                                 88                 :                : static const symbol s_1_3[4] = { 'a', 'i', 'r', 'e' };
                                 89                 :                : static const symbol s_1_4[3] = { 'a', 'b', 'h' };
                                 90                 :                : static const symbol s_1_5[4] = { 'e', 'a', 'b', 'h' };
                                 91                 :                : static const symbol s_1_6[3] = { 'i', 'b', 'h' };
                                 92                 :                : static const symbol s_1_7[4] = { 'a', 'i', 'b', 'h' };
                                 93                 :                : static const symbol s_1_8[3] = { 'a', 'm', 'h' };
                                 94                 :                : static const symbol s_1_9[4] = { 'e', 'a', 'm', 'h' };
                                 95                 :                : static const symbol s_1_10[3] = { 'i', 'm', 'h' };
                                 96                 :                : static const symbol s_1_11[4] = { 'a', 'i', 'm', 'h' };
                                 97                 :                : static const symbol s_1_12[5] = { 0xED, 'o', 'c', 'h', 't' };
                                 98                 :                : static const symbol s_1_13[6] = { 'a', 0xED, 'o', 'c', 'h', 't' };
                                 99                 :                : static const symbol s_1_14[3] = { 'i', 'r', 0xED };
                                100                 :                : static const symbol s_1_15[4] = { 'a', 'i', 'r', 0xED };
                                101                 :                : 
                                102                 :                : static const struct among a_1[16] =
                                103                 :                : {
                                104                 :                : { 6, s_1_0, -1, 1, 0},
                                105                 :                : { 7, s_1_1, 0, 1, 0},
                                106                 :                : { 3, s_1_2, -1, 2, 0},
                                107                 :                : { 4, s_1_3, 2, 2, 0},
                                108                 :                : { 3, s_1_4, -1, 1, 0},
                                109                 :                : { 4, s_1_5, 4, 1, 0},
                                110                 :                : { 3, s_1_6, -1, 1, 0},
                                111                 :                : { 4, s_1_7, 6, 1, 0},
                                112                 :                : { 3, s_1_8, -1, 1, 0},
                                113                 :                : { 4, s_1_9, 8, 1, 0},
                                114                 :                : { 3, s_1_10, -1, 1, 0},
                                115                 :                : { 4, s_1_11, 10, 1, 0},
                                116                 :                : { 5, s_1_12, -1, 1, 0},
                                117                 :                : { 6, s_1_13, 12, 1, 0},
                                118                 :                : { 3, s_1_14, -1, 2, 0},
                                119                 :                : { 4, s_1_15, 14, 2, 0}
                                120                 :                : };
                                121                 :                : 
                                122                 :                : static const symbol s_2_0[8] = { 0xF3, 'i', 'd', 'e', 'a', 'c', 'h', 'a' };
                                123                 :                : static const symbol s_2_1[7] = { 'p', 'a', 't', 'a', 'c', 'h', 'a' };
                                124                 :                : static const symbol s_2_2[5] = { 'a', 'c', 'h', 't', 'a' };
                                125                 :                : static const symbol s_2_3[8] = { 'a', 'r', 'c', 'a', 'c', 'h', 't', 'a' };
                                126                 :                : static const symbol s_2_4[6] = { 'e', 'a', 'c', 'h', 't', 'a' };
                                127                 :                : static const symbol s_2_5[11] = { 'g', 'r', 'a', 'f', 'a', 0xED, 'o', 'c', 'h', 't', 'a' };
                                128                 :                : static const symbol s_2_6[5] = { 'p', 'a', 'i', 't', 'e' };
                                129                 :                : static const symbol s_2_7[3] = { 'a', 'c', 'h' };
                                130                 :                : static const symbol s_2_8[4] = { 'e', 'a', 'c', 'h' };
                                131                 :                : static const symbol s_2_9[7] = { 0xF3, 'i', 'd', 'e', 'a', 'c', 'h' };
                                132                 :                : static const symbol s_2_10[7] = { 'g', 'i', 'n', 'e', 'a', 'c', 'h' };
                                133                 :                : static const symbol s_2_11[6] = { 'p', 'a', 't', 'a', 'c', 'h' };
                                134                 :                : static const symbol s_2_12[9] = { 'g', 'r', 'a', 'f', 'a', 0xED, 'o', 'c', 'h' };
                                135                 :                : static const symbol s_2_13[7] = { 'p', 'a', 't', 'a', 'i', 'g', 'h' };
                                136                 :                : static const symbol s_2_14[6] = { 0xF3, 'i', 'd', 'i', 'g', 'h' };
                                137                 :                : static const symbol s_2_15[7] = { 'a', 'c', 'h', 't', 0xFA, 'i', 'l' };
                                138                 :                : static const symbol s_2_16[8] = { 'e', 'a', 'c', 'h', 't', 0xFA, 'i', 'l' };
                                139                 :                : static const symbol s_2_17[6] = { 'g', 'i', 'n', 'e', 'a', 's' };
                                140                 :                : static const symbol s_2_18[5] = { 'g', 'i', 'n', 'i', 's' };
                                141                 :                : static const symbol s_2_19[4] = { 'a', 'c', 'h', 't' };
                                142                 :                : static const symbol s_2_20[7] = { 'a', 'r', 'c', 'a', 'c', 'h', 't' };
                                143                 :                : static const symbol s_2_21[5] = { 'e', 'a', 'c', 'h', 't' };
                                144                 :                : static const symbol s_2_22[10] = { 'g', 'r', 'a', 'f', 'a', 0xED, 'o', 'c', 'h', 't' };
                                145                 :                : static const symbol s_2_23[9] = { 'a', 'r', 'c', 'a', 'c', 'h', 't', 'a', 0xED };
                                146                 :                : static const symbol s_2_24[12] = { 'g', 'r', 'a', 'f', 'a', 0xED, 'o', 'c', 'h', 't', 'a', 0xED };
                                147                 :                : 
                                148                 :                : static const struct among a_2[25] =
                                149                 :                : {
                                150                 :                : { 8, s_2_0, -1, 6, 0},
                                151                 :                : { 7, s_2_1, -1, 5, 0},
                                152                 :                : { 5, s_2_2, -1, 1, 0},
                                153                 :                : { 8, s_2_3, 2, 2, 0},
                                154                 :                : { 6, s_2_4, 2, 1, 0},
                                155                 :                : { 11, s_2_5, -1, 4, 0},
                                156                 :                : { 5, s_2_6, -1, 5, 0},
                                157                 :                : { 3, s_2_7, -1, 1, 0},
                                158                 :                : { 4, s_2_8, 7, 1, 0},
                                159                 :                : { 7, s_2_9, 8, 6, 0},
                                160                 :                : { 7, s_2_10, 8, 3, 0},
                                161                 :                : { 6, s_2_11, 7, 5, 0},
                                162                 :                : { 9, s_2_12, -1, 4, 0},
                                163                 :                : { 7, s_2_13, -1, 5, 0},
                                164                 :                : { 6, s_2_14, -1, 6, 0},
                                165                 :                : { 7, s_2_15, -1, 1, 0},
                                166                 :                : { 8, s_2_16, 15, 1, 0},
                                167                 :                : { 6, s_2_17, -1, 3, 0},
                                168                 :                : { 5, s_2_18, -1, 3, 0},
                                169                 :                : { 4, s_2_19, -1, 1, 0},
                                170                 :                : { 7, s_2_20, 19, 2, 0},
                                171                 :                : { 5, s_2_21, 19, 1, 0},
                                172                 :                : { 10, s_2_22, -1, 4, 0},
                                173                 :                : { 9, s_2_23, -1, 2, 0},
                                174                 :                : { 12, s_2_24, -1, 4, 0}
                                175                 :                : };
                                176                 :                : 
                                177                 :                : static const symbol s_3_0[4] = { 'i', 'm', 'i', 'd' };
                                178                 :                : static const symbol s_3_1[5] = { 'a', 'i', 'm', 'i', 'd' };
                                179                 :                : static const symbol s_3_2[4] = { 0xED, 'm', 'i', 'd' };
                                180                 :                : static const symbol s_3_3[5] = { 'a', 0xED, 'm', 'i', 'd' };
                                181                 :                : static const symbol s_3_4[3] = { 'a', 'd', 'h' };
                                182                 :                : static const symbol s_3_5[4] = { 'e', 'a', 'd', 'h' };
                                183                 :                : static const symbol s_3_6[5] = { 'f', 'a', 'i', 'd', 'h' };
                                184                 :                : static const symbol s_3_7[4] = { 'f', 'i', 'd', 'h' };
                                185                 :                : static const symbol s_3_8[3] = { 0xE1, 'i', 'l' };
                                186                 :                : static const symbol s_3_9[3] = { 'a', 'i', 'n' };
                                187                 :                : static const symbol s_3_10[4] = { 't', 'e', 'a', 'r' };
                                188                 :                : static const symbol s_3_11[3] = { 't', 'a', 'r' };
                                189                 :                : 
                                190                 :                : static const struct among a_3[12] =
                                191                 :                : {
                                192                 :                : { 4, s_3_0, -1, 1, 0},
                                193                 :                : { 5, s_3_1, 0, 1, 0},
                                194                 :                : { 4, s_3_2, -1, 1, 0},
                                195                 :                : { 5, s_3_3, 2, 1, 0},
                                196                 :                : { 3, s_3_4, -1, 2, 0},
                                197                 :                : { 4, s_3_5, 4, 2, 0},
                                198                 :                : { 5, s_3_6, -1, 1, 0},
                                199                 :                : { 4, s_3_7, -1, 1, 0},
                                200                 :                : { 3, s_3_8, -1, 2, 0},
                                201                 :                : { 3, s_3_9, -1, 2, 0},
                                202                 :                : { 4, s_3_10, -1, 2, 0},
                                203                 :                : { 3, s_3_11, -1, 2, 0}
                                204                 :                : };
                                205                 :                : 
                                206                 :                : static const unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 17, 4, 2 };
                                207                 :                : 
                                208                 :                : static const symbol s_0[] = { 'f' };
                                209                 :                : static const symbol s_1[] = { 's' };
                                210                 :                : static const symbol s_2[] = { 'b' };
                                211                 :                : static const symbol s_3[] = { 'c' };
                                212                 :                : static const symbol s_4[] = { 'd' };
                                213                 :                : static const symbol s_5[] = { 'g' };
                                214                 :                : static const symbol s_6[] = { 'p' };
                                215                 :                : static const symbol s_7[] = { 't' };
                                216                 :                : static const symbol s_8[] = { 'm' };
                                217                 :                : static const symbol s_9[] = { 'a', 'r', 'c' };
                                218                 :                : static const symbol s_10[] = { 'g', 'i', 'n' };
                                219                 :                : static const symbol s_11[] = { 'g', 'r', 'a', 'f' };
                                220                 :                : static const symbol s_12[] = { 'p', 'a', 'i', 't', 'e' };
                                221                 :                : static const symbol s_13[] = { 0xF3, 'i', 'd' };
                                222                 :                : 
 1150 peter@eisentraut.org      223                 :UBC           0 : static int r_mark_regions(struct SN_env * z) {
                                224                 :              0 :     z->I[2] = z->l;
                                225                 :              0 :     z->I[1] = z->l;
                                226                 :              0 :     z->I[0] = z->l;
                                227                 :              0 :     {   int c1 = z->c;
                                228                 :                :         {   
 2029 tgl@sss.pgh.pa.us         229                 :              0 :             int ret = out_grouping(z, g_v, 97, 250, 1);
                                230         [ #  # ]:              0 :             if (ret < 0) goto lab0;
                                231                 :              0 :             z->c += ret;
                                232                 :                :         }
 1150 peter@eisentraut.org      233                 :              0 :         z->I[2] = z->c;
                                234                 :                :         {   
 2029 tgl@sss.pgh.pa.us         235                 :              0 :             int ret = in_grouping(z, g_v, 97, 250, 1);
  859 peter@eisentraut.org      236         [ #  # ]:              0 :             if (ret < 0) goto lab0;
 2029 tgl@sss.pgh.pa.us         237                 :              0 :             z->c += ret;
                                238                 :                :         }
 1150 peter@eisentraut.org      239                 :              0 :         z->I[1] = z->c;
                                240                 :                :         {   
 2029 tgl@sss.pgh.pa.us         241                 :              0 :             int ret = out_grouping(z, g_v, 97, 250, 1);
  859 peter@eisentraut.org      242         [ #  # ]:              0 :             if (ret < 0) goto lab0;
 2029 tgl@sss.pgh.pa.us         243                 :              0 :             z->c += ret;
                                244                 :                :         }
                                245                 :                :         {   
                                246                 :              0 :             int ret = in_grouping(z, g_v, 97, 250, 1);
  859 peter@eisentraut.org      247         [ #  # ]:              0 :             if (ret < 0) goto lab0;
 2029 tgl@sss.pgh.pa.us         248                 :              0 :             z->c += ret;
                                249                 :                :         }
 1150 peter@eisentraut.org      250                 :              0 :         z->I[0] = z->c;
  859                           251                 :              0 :     lab0:
                                252                 :              0 :         z->c = c1;
                                253                 :                :     }
 2029 tgl@sss.pgh.pa.us         254                 :              0 :     return 1;
                                255                 :                : }
                                256                 :                : 
 1150 peter@eisentraut.org      257                 :              0 : static int r_initial_morph(struct SN_env * z) {
                                258                 :                :     int among_var;
                                259                 :              0 :     z->bra = z->c;
                                260                 :              0 :     among_var = find_among(z, a_0, 24);
 2029 tgl@sss.pgh.pa.us         261         [ #  # ]:              0 :     if (!(among_var)) return 0;
 1150 peter@eisentraut.org      262                 :              0 :     z->ket = z->c;
                                263   [ #  #  #  #  :              0 :     switch (among_var) {
                                     #  #  #  #  #  
                                              #  # ]
 2029 tgl@sss.pgh.pa.us         264                 :              0 :         case 1:
 1150 peter@eisentraut.org      265                 :              0 :             {   int ret = slice_del(z);
 2029 tgl@sss.pgh.pa.us         266         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                267                 :                :             }
                                268                 :              0 :             break;
                                269                 :              0 :         case 2:
 1150 peter@eisentraut.org      270                 :              0 :             {   int ret = slice_from_s(z, 1, s_0);
 2029 tgl@sss.pgh.pa.us         271         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                272                 :                :             }
                                273                 :              0 :             break;
                                274                 :              0 :         case 3:
 1150 peter@eisentraut.org      275                 :              0 :             {   int ret = slice_from_s(z, 1, s_1);
 2029 tgl@sss.pgh.pa.us         276         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                277                 :                :             }
                                278                 :              0 :             break;
                                279                 :              0 :         case 4:
 1150 peter@eisentraut.org      280                 :              0 :             {   int ret = slice_from_s(z, 1, s_2);
 2029 tgl@sss.pgh.pa.us         281         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                282                 :                :             }
                                283                 :              0 :             break;
                                284                 :              0 :         case 5:
 1150 peter@eisentraut.org      285                 :              0 :             {   int ret = slice_from_s(z, 1, s_3);
 2029 tgl@sss.pgh.pa.us         286         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                287                 :                :             }
                                288                 :              0 :             break;
                                289                 :              0 :         case 6:
 1150 peter@eisentraut.org      290                 :              0 :             {   int ret = slice_from_s(z, 1, s_4);
 2029 tgl@sss.pgh.pa.us         291         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                292                 :                :             }
                                293                 :              0 :             break;
                                294                 :              0 :         case 7:
 1150 peter@eisentraut.org      295                 :              0 :             {   int ret = slice_from_s(z, 1, s_5);
 2029 tgl@sss.pgh.pa.us         296         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                297                 :                :             }
                                298                 :              0 :             break;
                                299                 :              0 :         case 8:
 1150 peter@eisentraut.org      300                 :              0 :             {   int ret = slice_from_s(z, 1, s_6);
 2029 tgl@sss.pgh.pa.us         301         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                302                 :                :             }
                                303                 :              0 :             break;
                                304                 :              0 :         case 9:
 1150 peter@eisentraut.org      305                 :              0 :             {   int ret = slice_from_s(z, 1, s_7);
 2029 tgl@sss.pgh.pa.us         306         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                307                 :                :             }
                                308                 :              0 :             break;
                                309                 :              0 :         case 10:
 1150 peter@eisentraut.org      310                 :              0 :             {   int ret = slice_from_s(z, 1, s_8);
 2029 tgl@sss.pgh.pa.us         311         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                312                 :                :             }
                                313                 :              0 :             break;
                                314                 :                :     }
                                315                 :              0 :     return 1;
                                316                 :                : }
                                317                 :                : 
 1150 peter@eisentraut.org      318                 :              0 : static int r_RV(struct SN_env * z) {
                                319         [ #  # ]:              0 :     if (!(z->I[2] <= z->c)) return 0;
 2029 tgl@sss.pgh.pa.us         320                 :              0 :     return 1;
                                321                 :                : }
                                322                 :                : 
 1150 peter@eisentraut.org      323                 :              0 : static int r_R1(struct SN_env * z) {
                                324         [ #  # ]:              0 :     if (!(z->I[1] <= z->c)) return 0;
 2029 tgl@sss.pgh.pa.us         325                 :              0 :     return 1;
                                326                 :                : }
                                327                 :                : 
 1150 peter@eisentraut.org      328                 :              0 : static int r_R2(struct SN_env * z) {
                                329         [ #  # ]:              0 :     if (!(z->I[0] <= z->c)) return 0;
 2029 tgl@sss.pgh.pa.us         330                 :              0 :     return 1;
                                331                 :                : }
                                332                 :                : 
 1150 peter@eisentraut.org      333                 :              0 : static int r_noun_sfx(struct SN_env * z) {
                                334                 :                :     int among_var;
                                335                 :              0 :     z->ket = z->c;
                                336                 :              0 :     among_var = find_among_b(z, a_1, 16);
 2029 tgl@sss.pgh.pa.us         337         [ #  # ]:              0 :     if (!(among_var)) return 0;
 1150 peter@eisentraut.org      338                 :              0 :     z->bra = z->c;
                                339      [ #  #  # ]:              0 :     switch (among_var) {
 2029 tgl@sss.pgh.pa.us         340                 :              0 :         case 1:
 1150 peter@eisentraut.org      341                 :              0 :             {   int ret = r_R1(z);
 2029 tgl@sss.pgh.pa.us         342         [ #  # ]:              0 :                 if (ret <= 0) return ret;
                                343                 :                :             }
 1150 peter@eisentraut.org      344                 :              0 :             {   int ret = slice_del(z);
 2029 tgl@sss.pgh.pa.us         345         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                346                 :                :             }
                                347                 :              0 :             break;
                                348                 :              0 :         case 2:
 1150 peter@eisentraut.org      349                 :              0 :             {   int ret = r_R2(z);
 2029 tgl@sss.pgh.pa.us         350         [ #  # ]:              0 :                 if (ret <= 0) return ret;
                                351                 :                :             }
 1150 peter@eisentraut.org      352                 :              0 :             {   int ret = slice_del(z);
 2029 tgl@sss.pgh.pa.us         353         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                354                 :                :             }
                                355                 :              0 :             break;
                                356                 :                :     }
                                357                 :              0 :     return 1;
                                358                 :                : }
                                359                 :                : 
 1150 peter@eisentraut.org      360                 :              0 : static int r_deriv(struct SN_env * z) {
                                361                 :                :     int among_var;
                                362                 :              0 :     z->ket = z->c;
                                363                 :              0 :     among_var = find_among_b(z, a_2, 25);
 2029 tgl@sss.pgh.pa.us         364         [ #  # ]:              0 :     if (!(among_var)) return 0;
 1150 peter@eisentraut.org      365                 :              0 :     z->bra = z->c;
                                366   [ #  #  #  #  :              0 :     switch (among_var) {
                                           #  #  # ]
 2029 tgl@sss.pgh.pa.us         367                 :              0 :         case 1:
 1150 peter@eisentraut.org      368                 :              0 :             {   int ret = r_R2(z);
 2029 tgl@sss.pgh.pa.us         369         [ #  # ]:              0 :                 if (ret <= 0) return ret;
                                370                 :                :             }
 1150 peter@eisentraut.org      371                 :              0 :             {   int ret = slice_del(z);
 2029 tgl@sss.pgh.pa.us         372         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                373                 :                :             }
                                374                 :              0 :             break;
                                375                 :              0 :         case 2:
 1150 peter@eisentraut.org      376                 :              0 :             {   int ret = slice_from_s(z, 3, s_9);
 2029 tgl@sss.pgh.pa.us         377         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                378                 :                :             }
                                379                 :              0 :             break;
                                380                 :              0 :         case 3:
 1150 peter@eisentraut.org      381                 :              0 :             {   int ret = slice_from_s(z, 3, s_10);
 2029 tgl@sss.pgh.pa.us         382         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                383                 :                :             }
                                384                 :              0 :             break;
                                385                 :              0 :         case 4:
 1150 peter@eisentraut.org      386                 :              0 :             {   int ret = slice_from_s(z, 4, s_11);
 2029 tgl@sss.pgh.pa.us         387         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                388                 :                :             }
                                389                 :              0 :             break;
                                390                 :              0 :         case 5:
 1150 peter@eisentraut.org      391                 :              0 :             {   int ret = slice_from_s(z, 5, s_12);
 2029 tgl@sss.pgh.pa.us         392         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                393                 :                :             }
                                394                 :              0 :             break;
                                395                 :              0 :         case 6:
 1150 peter@eisentraut.org      396                 :              0 :             {   int ret = slice_from_s(z, 3, s_13);
 2029 tgl@sss.pgh.pa.us         397         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                398                 :                :             }
                                399                 :              0 :             break;
                                400                 :                :     }
                                401                 :              0 :     return 1;
                                402                 :                : }
                                403                 :                : 
 1150 peter@eisentraut.org      404                 :              0 : static int r_verb_sfx(struct SN_env * z) {
                                405                 :                :     int among_var;
                                406                 :              0 :     z->ket = z->c;
                                407   [ #  #  #  #  :              0 :     if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((282896 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
                                              #  # ]
 2029 tgl@sss.pgh.pa.us         408                 :              0 :     among_var = find_among_b(z, a_3, 12);
                                409         [ #  # ]:              0 :     if (!(among_var)) return 0;
 1150 peter@eisentraut.org      410                 :              0 :     z->bra = z->c;
                                411      [ #  #  # ]:              0 :     switch (among_var) {
 2029 tgl@sss.pgh.pa.us         412                 :              0 :         case 1:
 1150 peter@eisentraut.org      413                 :              0 :             {   int ret = r_RV(z);
 2029 tgl@sss.pgh.pa.us         414         [ #  # ]:              0 :                 if (ret <= 0) return ret;
                                415                 :                :             }
 1150 peter@eisentraut.org      416                 :              0 :             {   int ret = slice_del(z);
 2029 tgl@sss.pgh.pa.us         417         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                418                 :                :             }
                                419                 :              0 :             break;
                                420                 :              0 :         case 2:
 1150 peter@eisentraut.org      421                 :              0 :             {   int ret = r_R1(z);
 2029 tgl@sss.pgh.pa.us         422         [ #  # ]:              0 :                 if (ret <= 0) return ret;
                                423                 :                :             }
 1150 peter@eisentraut.org      424                 :              0 :             {   int ret = slice_del(z);
 2029 tgl@sss.pgh.pa.us         425         [ #  # ]:              0 :                 if (ret < 0) return ret;
                                426                 :                :             }
                                427                 :              0 :             break;
                                428                 :                :     }
                                429                 :              0 :     return 1;
                                430                 :                : }
                                431                 :                : 
 1150 peter@eisentraut.org      432                 :              0 : extern int irish_ISO_8859_1_stem(struct SN_env * z) {
                                433                 :              0 :     {   int c1 = z->c;
                                434                 :              0 :         {   int ret = r_initial_morph(z);
 2029 tgl@sss.pgh.pa.us         435         [ #  # ]:              0 :             if (ret < 0) return ret;
                                436                 :                :         }
                                437                 :              0 :         z->c = c1;
                                438                 :                :     }
                                439                 :                :     
 1150 peter@eisentraut.org      440                 :              0 :     {   int ret = r_mark_regions(z);
 2029 tgl@sss.pgh.pa.us         441         [ #  # ]:              0 :         if (ret < 0) return ret;
                                442                 :                :     }
 1150 peter@eisentraut.org      443                 :              0 :     z->lb = z->c; z->c = z->l;
                                444                 :                : 
                                445                 :              0 :     {   int m2 = z->l - z->c; (void)m2;
                                446                 :              0 :         {   int ret = r_noun_sfx(z);
 2029 tgl@sss.pgh.pa.us         447         [ #  # ]:              0 :             if (ret < 0) return ret;
                                448                 :                :         }
                                449                 :              0 :         z->c = z->l - m2;
                                450                 :                :     }
 1150 peter@eisentraut.org      451                 :              0 :     {   int m3 = z->l - z->c; (void)m3;
                                452                 :              0 :         {   int ret = r_deriv(z);
 2029 tgl@sss.pgh.pa.us         453         [ #  # ]:              0 :             if (ret < 0) return ret;
                                454                 :                :         }
                                455                 :              0 :         z->c = z->l - m3;
                                456                 :                :     }
 1150 peter@eisentraut.org      457                 :              0 :     {   int m4 = z->l - z->c; (void)m4;
                                458                 :              0 :         {   int ret = r_verb_sfx(z);
 2029 tgl@sss.pgh.pa.us         459         [ #  # ]:              0 :             if (ret < 0) return ret;
                                460                 :                :         }
                                461                 :              0 :         z->c = z->l - m4;
                                462                 :                :     }
                                463                 :              0 :     z->c = z->lb;
                                464                 :              0 :     return 1;
                                465                 :                : }
                                466                 :                : 
 1150 peter@eisentraut.org      467                 :              0 : extern struct SN_env * irish_ISO_8859_1_create_env(void) { return SN_create_env(0, 3); }
                                468                 :                : 
 2029 tgl@sss.pgh.pa.us         469                 :              0 : extern void irish_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 0); }
                                470                 :                : 
        

Generated by: LCOV version 2.1-beta2-3-g6141622