LCOV - differential code coverage report
Current view: top level - src/backend/snowball/libstemmer - stem_UTF_8_german.c (source / functions) Coverage Total Hit UBC
Current: c70b6db34ffeab48beef1fb4ce61bcad3772b8dd vs 06473f5a344df8c9594ead90a609b86f6724cff8 Lines: 0.0 % 303 0 303
Current Date: 2025-09-06 07:49:51 +0900 Functions: 0.0 % 9 0 9
Baseline: lcov-20250906-005545-baseline Branches: 0.0 % 200 0 200
Baseline Date: 2025-09-05 08:21:35 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 0.0 % 121 0 121
(360..) days: 0.0 % 182 0 182
Function coverage date bins:
(360..) days: 0.0 % 9 0 9
Branch coverage date bins:
(30,360] days: 0.0 % 98 0 98
(360..) days: 0.0 % 102 0 102

 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 german_UTF_8_stem(struct SN_env * z);
                                  9                 :                : #ifdef __cplusplus
                                 10                 :                : }
                                 11                 :                : #endif
                                 12                 :                : static int r_standard_suffix(struct SN_env * z);
                                 13                 :                : static int r_R2(struct SN_env * z);
                                 14                 :                : static int r_R1(struct SN_env * z);
                                 15                 :                : static int r_mark_regions(struct SN_env * z);
                                 16                 :                : static int r_postlude(struct SN_env * z);
                                 17                 :                : static int r_prelude(struct SN_env * z);
                                 18                 :                : #ifdef __cplusplus
                                 19                 :                : extern "C" {
                                 20                 :                : #endif
                                 21                 :                : 
                                 22                 :                : 
                                 23                 :                : extern struct SN_env * german_UTF_8_create_env(void);
                                 24                 :                : extern void german_UTF_8_close_env(struct SN_env * z);
                                 25                 :                : 
                                 26                 :                : 
                                 27                 :                : #ifdef __cplusplus
                                 28                 :                : }
                                 29                 :                : #endif
                                 30                 :                : static const symbol s_0_1[2] = { 'a', 'e' };
                                 31                 :                : static const symbol s_0_2[2] = { 'o', 'e' };
                                 32                 :                : static const symbol s_0_3[2] = { 'q', 'u' };
                                 33                 :                : static const symbol s_0_4[2] = { 'u', 'e' };
                                 34                 :                : static const symbol s_0_5[2] = { 0xC3, 0x9F };
                                 35                 :                : 
                                 36                 :                : static const struct among a_0[6] =
                                 37                 :                : {
                                 38                 :                : { 0, 0, -1, 5, 0},
                                 39                 :                : { 2, s_0_1, 0, 2, 0},
                                 40                 :                : { 2, s_0_2, 0, 3, 0},
                                 41                 :                : { 2, s_0_3, 0, -1, 0},
                                 42                 :                : { 2, s_0_4, 0, 4, 0},
                                 43                 :                : { 2, s_0_5, 0, 1, 0}
                                 44                 :                : };
                                 45                 :                : 
                                 46                 :                : static const symbol s_1_1[1] = { 'U' };
                                 47                 :                : static const symbol s_1_2[1] = { 'Y' };
                                 48                 :                : static const symbol s_1_3[2] = { 0xC3, 0xA4 };
                                 49                 :                : static const symbol s_1_4[2] = { 0xC3, 0xB6 };
                                 50                 :                : static const symbol s_1_5[2] = { 0xC3, 0xBC };
                                 51                 :                : 
                                 52                 :                : static const struct among a_1[6] =
                                 53                 :                : {
                                 54                 :                : { 0, 0, -1, 5, 0},
                                 55                 :                : { 1, s_1_1, 0, 2, 0},
                                 56                 :                : { 1, s_1_2, 0, 1, 0},
                                 57                 :                : { 2, s_1_3, 0, 3, 0},
                                 58                 :                : { 2, s_1_4, 0, 4, 0},
                                 59                 :                : { 2, s_1_5, 0, 2, 0}
                                 60                 :                : };
                                 61                 :                : 
                                 62                 :                : static const symbol s_2_0[1] = { 'e' };
                                 63                 :                : static const symbol s_2_1[2] = { 'e', 'm' };
                                 64                 :                : static const symbol s_2_2[2] = { 'e', 'n' };
                                 65                 :                : static const symbol s_2_3[7] = { 'e', 'r', 'i', 'n', 'n', 'e', 'n' };
                                 66                 :                : static const symbol s_2_4[4] = { 'e', 'r', 'i', 'n' };
                                 67                 :                : static const symbol s_2_5[2] = { 'l', 'n' };
                                 68                 :                : static const symbol s_2_6[3] = { 'e', 'r', 'n' };
                                 69                 :                : static const symbol s_2_7[2] = { 'e', 'r' };
                                 70                 :                : static const symbol s_2_8[1] = { 's' };
                                 71                 :                : static const symbol s_2_9[2] = { 'e', 's' };
                                 72                 :                : static const symbol s_2_10[3] = { 'l', 'n', 's' };
                                 73                 :                : 
                                 74                 :                : static const struct among a_2[11] =
                                 75                 :                : {
                                 76                 :                : { 1, s_2_0, -1, 3, 0},
                                 77                 :                : { 2, s_2_1, -1, 1, 0},
                                 78                 :                : { 2, s_2_2, -1, 3, 0},
                                 79                 :                : { 7, s_2_3, 2, 2, 0},
                                 80                 :                : { 4, s_2_4, -1, 2, 0},
                                 81                 :                : { 2, s_2_5, -1, 5, 0},
                                 82                 :                : { 3, s_2_6, -1, 2, 0},
                                 83                 :                : { 2, s_2_7, -1, 2, 0},
                                 84                 :                : { 1, s_2_8, -1, 4, 0},
                                 85                 :                : { 2, s_2_9, 8, 3, 0},
                                 86                 :                : { 3, s_2_10, 8, 5, 0}
                                 87                 :                : };
                                 88                 :                : 
                                 89                 :                : static const symbol s_3_0[2] = { 'e', 'n' };
                                 90                 :                : static const symbol s_3_1[2] = { 'e', 'r' };
                                 91                 :                : static const symbol s_3_2[2] = { 's', 't' };
                                 92                 :                : static const symbol s_3_3[3] = { 'e', 's', 't' };
                                 93                 :                : 
                                 94                 :                : static const struct among a_3[4] =
                                 95                 :                : {
                                 96                 :                : { 2, s_3_0, -1, 1, 0},
                                 97                 :                : { 2, s_3_1, -1, 1, 0},
                                 98                 :                : { 2, s_3_2, -1, 2, 0},
                                 99                 :                : { 3, s_3_3, 2, 1, 0}
                                100                 :                : };
                                101                 :                : 
                                102                 :                : static const symbol s_4_0[2] = { 'i', 'g' };
                                103                 :                : static const symbol s_4_1[4] = { 'l', 'i', 'c', 'h' };
                                104                 :                : 
                                105                 :                : static const struct among a_4[2] =
                                106                 :                : {
                                107                 :                : { 2, s_4_0, -1, 1, 0},
                                108                 :                : { 4, s_4_1, -1, 1, 0}
                                109                 :                : };
                                110                 :                : 
                                111                 :                : static const symbol s_5_0[3] = { 'e', 'n', 'd' };
                                112                 :                : static const symbol s_5_1[2] = { 'i', 'g' };
                                113                 :                : static const symbol s_5_2[3] = { 'u', 'n', 'g' };
                                114                 :                : static const symbol s_5_3[4] = { 'l', 'i', 'c', 'h' };
                                115                 :                : static const symbol s_5_4[4] = { 'i', 's', 'c', 'h' };
                                116                 :                : static const symbol s_5_5[2] = { 'i', 'k' };
                                117                 :                : static const symbol s_5_6[4] = { 'h', 'e', 'i', 't' };
                                118                 :                : static const symbol s_5_7[4] = { 'k', 'e', 'i', 't' };
                                119                 :                : 
                                120                 :                : static const struct among a_5[8] =
                                121                 :                : {
                                122                 :                : { 3, s_5_0, -1, 1, 0},
                                123                 :                : { 2, s_5_1, -1, 2, 0},
                                124                 :                : { 3, s_5_2, -1, 1, 0},
                                125                 :                : { 4, s_5_3, -1, 3, 0},
                                126                 :                : { 4, s_5_4, -1, 2, 0},
                                127                 :                : { 2, s_5_5, -1, 2, 0},
                                128                 :                : { 4, s_5_6, -1, 3, 0},
                                129                 :                : { 4, s_5_7, -1, 4, 0}
                                130                 :                : };
                                131                 :                : 
                                132                 :                : static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32, 8 };
                                133                 :                : 
                                134                 :                : static const unsigned char g_s_ending[] = { 117, 30, 5 };
                                135                 :                : 
                                136                 :                : static const unsigned char g_st_ending[] = { 117, 30, 4 };
                                137                 :                : 
                                138                 :                : static const symbol s_0[] = { 'U' };
                                139                 :                : static const symbol s_1[] = { 'Y' };
                                140                 :                : static const symbol s_2[] = { 's', 's' };
                                141                 :                : static const symbol s_3[] = { 0xC3, 0xA4 };
                                142                 :                : static const symbol s_4[] = { 0xC3, 0xB6 };
                                143                 :                : static const symbol s_5[] = { 0xC3, 0xBC };
                                144                 :                : static const symbol s_6[] = { 'y' };
                                145                 :                : static const symbol s_7[] = { 'u' };
                                146                 :                : static const symbol s_8[] = { 'a' };
                                147                 :                : static const symbol s_9[] = { 'o' };
                                148                 :                : static const symbol s_10[] = { 's', 'y', 's', 't' };
                                149                 :                : static const symbol s_11[] = { 'n', 'i', 's' };
                                150                 :                : static const symbol s_12[] = { 'l' };
                                151                 :                : static const symbol s_13[] = { 'i', 'g' };
                                152                 :                : static const symbol s_14[] = { 'e', 'r' };
                                153                 :                : static const symbol s_15[] = { 'e', 'n' };
                                154                 :                : 
 1660 peter@eisentraut.org      155                 :UBC           0 : static int r_prelude(struct SN_env * z) {
                                156                 :                :     int among_var;
                                157                 :              0 :     {   int c_test1 = z->c;
                                158                 :              0 :         while(1) {
                                159                 :              0 :             int c2 = z->c;
  200 tgl@sss.pgh.pa.us         160                 :              0 :             while(1) {
                                161                 :              0 :                 int c3 = z->c;
                                162         [ #  # ]:              0 :                 if (in_grouping_U(z, g_v, 97, 252, 0)) goto lab1;
 1660 peter@eisentraut.org      163                 :              0 :                 z->bra = z->c;
  200 tgl@sss.pgh.pa.us         164                 :              0 :                 {   int c4 = z->c;
                                165   [ #  #  #  # ]:              0 :                     if (z->c == z->l || z->p[z->c] != 'u') goto lab3;
                                166                 :              0 :                     z->c++;
                                167                 :              0 :                     z->ket = z->c;
                                168         [ #  # ]:              0 :                     if (in_grouping_U(z, g_v, 97, 252, 0)) goto lab3;
                                169                 :              0 :                     {   int ret = slice_from_s(z, 1, s_0);
                                170         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                171                 :                :                     }
                                172                 :              0 :                     goto lab2;
                                173                 :              0 :                 lab3:
                                174                 :              0 :                     z->c = c4;
                                175   [ #  #  #  # ]:              0 :                     if (z->c == z->l || z->p[z->c] != 'y') goto lab1;
                                176                 :              0 :                     z->c++;
                                177                 :              0 :                     z->ket = z->c;
                                178         [ #  # ]:              0 :                     if (in_grouping_U(z, g_v, 97, 252, 0)) goto lab1;
                                179                 :              0 :                     {   int ret = slice_from_s(z, 1, s_1);
                                180         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                181                 :                :                     }
                                182                 :                :                 }
 6591                           183                 :              0 :             lab2:
  200                           184                 :              0 :                 z->c = c3;
                                185                 :              0 :                 break;
                                186                 :              0 :             lab1:
 2539                           187                 :              0 :                 z->c = c3;
 1660 peter@eisentraut.org      188                 :              0 :                 {   int ret = skip_utf8(z->p, z->c, z->l, 1);
 6591 tgl@sss.pgh.pa.us         189         [ #  # ]:              0 :                     if (ret < 0) goto lab0;
 1660 peter@eisentraut.org      190                 :              0 :                     z->c = ret;
                                191                 :                :                 }
                                192                 :                :             }
 6591 tgl@sss.pgh.pa.us         193                 :              0 :             continue;
                                194                 :              0 :         lab0:
 2539                           195                 :              0 :             z->c = c2;
 6591                           196                 :              0 :             break;
                                197                 :                :         }
 2539                           198                 :              0 :         z->c = c_test1;
                                199                 :                :     }
 1660 peter@eisentraut.org      200                 :              0 :     while(1) {
  200 tgl@sss.pgh.pa.us         201                 :              0 :         int c5 = z->c;
                                202                 :              0 :         z->bra = z->c;
                                203                 :              0 :         among_var = find_among(z, a_0, 6);
                                204                 :              0 :         z->ket = z->c;
                                205   [ #  #  #  #  :              0 :         switch (among_var) {
                                              #  # ]
                                206                 :              0 :             case 1:
                                207                 :              0 :                 {   int ret = slice_from_s(z, 2, s_2);
 6591                           208         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                209                 :                :                 }
  200                           210                 :              0 :                 break;
                                211                 :              0 :             case 2:
                                212                 :              0 :                 {   int ret = slice_from_s(z, 2, s_3);
 6591                           213         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                214                 :                :                 }
  200                           215                 :              0 :                 break;
                                216                 :              0 :             case 3:
                                217                 :              0 :                 {   int ret = slice_from_s(z, 2, s_4);
                                218         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                219                 :                :                 }
                                220                 :              0 :                 break;
                                221                 :              0 :             case 4:
                                222                 :              0 :                 {   int ret = slice_from_s(z, 2, s_5);
                                223         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                224                 :                :                 }
                                225                 :              0 :                 break;
                                226                 :              0 :             case 5:
                                227                 :              0 :                 {   int ret = skip_utf8(z->p, z->c, z->l, 1);
                                228         [ #  # ]:              0 :                     if (ret < 0) goto lab4;
                                229                 :              0 :                     z->c = ret;
                                230                 :                :                 }
                                231                 :              0 :                 break;
                                232                 :                :         }
 6591                           233                 :              0 :         continue;
  200                           234                 :              0 :     lab4:
                                235                 :              0 :         z->c = c5;
 6591                           236                 :              0 :         break;
                                237                 :                :     }
                                238                 :              0 :     return 1;
                                239                 :                : }
                                240                 :                : 
 1660 peter@eisentraut.org      241                 :              0 : static int r_mark_regions(struct SN_env * z) {
                                242                 :              0 :     z->I[2] = z->l;
                                243                 :              0 :     z->I[1] = z->l;
                                244                 :              0 :     {   int c_test1 = z->c;
                                245                 :              0 :         {   int ret = skip_utf8(z->p, z->c, z->l, 3);
 6591 tgl@sss.pgh.pa.us         246         [ #  # ]:              0 :             if (ret < 0) return 0;
 2539                           247                 :              0 :             z->c = ret;
                                248                 :                :         }
 1660 peter@eisentraut.org      249                 :              0 :         z->I[0] = z->c;
 2539 tgl@sss.pgh.pa.us         250                 :              0 :         z->c = c_test1;
                                251                 :                :     }
                                252                 :                : 
                                253                 :                :     {
 6591                           254                 :              0 :         int ret = out_grouping_U(z, g_v, 97, 252, 1);
                                255         [ #  # ]:              0 :         if (ret < 0) return 0;
                                256                 :              0 :         z->c += ret;
                                257                 :                :     }
                                258                 :                : 
                                259                 :                :     {
                                260                 :              0 :         int ret = in_grouping_U(z, g_v, 97, 252, 1);
                                261         [ #  # ]:              0 :         if (ret < 0) return 0;
                                262                 :              0 :         z->c += ret;
                                263                 :                :     }
 1660 peter@eisentraut.org      264                 :              0 :     z->I[2] = z->c;
                                265                 :                : 
  200 tgl@sss.pgh.pa.us         266         [ #  # ]:              0 :     if (z->I[2] >= z->I[0]) goto lab0;
 1660 peter@eisentraut.org      267                 :              0 :     z->I[2] = z->I[0];
 6591 tgl@sss.pgh.pa.us         268                 :              0 : lab0:
                                269                 :                : 
                                270                 :                :     {
                                271                 :              0 :         int ret = out_grouping_U(z, g_v, 97, 252, 1);
                                272         [ #  # ]:              0 :         if (ret < 0) return 0;
                                273                 :              0 :         z->c += ret;
                                274                 :                :     }
                                275                 :                : 
                                276                 :                :     {
                                277                 :              0 :         int ret = in_grouping_U(z, g_v, 97, 252, 1);
                                278         [ #  # ]:              0 :         if (ret < 0) return 0;
                                279                 :              0 :         z->c += ret;
                                280                 :                :     }
 1660 peter@eisentraut.org      281                 :              0 :     z->I[1] = z->c;
 6591 tgl@sss.pgh.pa.us         282                 :              0 :     return 1;
                                283                 :                : }
                                284                 :                : 
 1660 peter@eisentraut.org      285                 :              0 : static int r_postlude(struct SN_env * z) {
                                286                 :                :     int among_var;
                                287                 :              0 :     while(1) {
                                288                 :              0 :         int c1 = z->c;
                                289                 :              0 :         z->bra = z->c;
  200 tgl@sss.pgh.pa.us         290                 :              0 :         among_var = find_among(z, a_1, 6);
 1660 peter@eisentraut.org      291                 :              0 :         z->ket = z->c;
                                292   [ #  #  #  #  :              0 :         switch (among_var) {
                                              #  # ]
 6591 tgl@sss.pgh.pa.us         293                 :              0 :             case 1:
  200                           294                 :              0 :                 {   int ret = slice_from_s(z, 1, s_6);
 6591                           295         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                296                 :                :                 }
                                297                 :              0 :                 break;
                                298                 :              0 :             case 2:
  200                           299                 :              0 :                 {   int ret = slice_from_s(z, 1, s_7);
 6591                           300         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                301                 :                :                 }
                                302                 :              0 :                 break;
                                303                 :              0 :             case 3:
  200                           304                 :              0 :                 {   int ret = slice_from_s(z, 1, s_8);
 6591                           305         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                306                 :                :                 }
                                307                 :              0 :                 break;
                                308                 :              0 :             case 4:
  200                           309                 :              0 :                 {   int ret = slice_from_s(z, 1, s_9);
 6591                           310         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                311                 :                :                 }
                                312                 :              0 :                 break;
                                313                 :              0 :             case 5:
 1660 peter@eisentraut.org      314                 :              0 :                 {   int ret = skip_utf8(z->p, z->c, z->l, 1);
 6591 tgl@sss.pgh.pa.us         315         [ #  # ]:              0 :                     if (ret < 0) goto lab0;
 1660 peter@eisentraut.org      316                 :              0 :                     z->c = ret;
                                317                 :                :                 }
 6591 tgl@sss.pgh.pa.us         318                 :              0 :                 break;
                                319                 :                :         }
                                320                 :              0 :         continue;
                                321                 :              0 :     lab0:
                                322                 :              0 :         z->c = c1;
                                323                 :              0 :         break;
                                324                 :                :     }
                                325                 :              0 :     return 1;
                                326                 :                : }
                                327                 :                : 
 1660 peter@eisentraut.org      328                 :              0 : static int r_R1(struct SN_env * z) {
  200 tgl@sss.pgh.pa.us         329                 :              0 :     return z->I[2] <= z->c;
                                330                 :                : }
                                331                 :                : 
 1660 peter@eisentraut.org      332                 :              0 : static int r_R2(struct SN_env * z) {
  200 tgl@sss.pgh.pa.us         333                 :              0 :     return z->I[1] <= z->c;
                                334                 :                : }
                                335                 :                : 
 1660 peter@eisentraut.org      336                 :              0 : static int r_standard_suffix(struct SN_env * z) {
                                337                 :                :     int among_var;
                                338                 :              0 :     {   int m1 = z->l - z->c; (void)m1;
                                339                 :              0 :         z->ket = z->c;
                                340   [ #  #  #  #  :              0 :         if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((811040 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab0;
                                              #  # ]
  200 tgl@sss.pgh.pa.us         341                 :              0 :         among_var = find_among_b(z, a_2, 11);
                                342         [ #  # ]:              0 :         if (!among_var) goto lab0;
 1660 peter@eisentraut.org      343                 :              0 :         z->bra = z->c;
                                344                 :              0 :         {   int ret = r_R1(z);
 2539 tgl@sss.pgh.pa.us         345         [ #  # ]:              0 :             if (ret == 0) goto lab0;
 6591                           346         [ #  # ]:              0 :             if (ret < 0) return ret;
                                347                 :                :         }
 1660 peter@eisentraut.org      348   [ #  #  #  #  :              0 :         switch (among_var) {
                                              #  # ]
 6591 tgl@sss.pgh.pa.us         349                 :              0 :             case 1:
  200                           350                 :              0 :                 {   int m2 = z->l - z->c; (void)m2;
                                351         [ #  # ]:              0 :                     if (!(eq_s_b(z, 4, s_10))) goto lab1;
                                352                 :              0 :                     goto lab0;
                                353                 :              0 :                 lab1:
                                354                 :              0 :                     z->c = z->l - m2;
                                355                 :                :                 }
 1660 peter@eisentraut.org      356                 :              0 :                 {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         357         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                358                 :                :                 }
                                359                 :              0 :                 break;
                                360                 :              0 :             case 2:
 1660 peter@eisentraut.org      361                 :              0 :                 {   int ret = slice_del(z);
 2539 tgl@sss.pgh.pa.us         362         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                363                 :                :                 }
  200                           364                 :              0 :                 break;
                                365                 :              0 :             case 3:
                                366                 :              0 :                 {   int ret = slice_del(z);
                                367         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                368                 :                :                 }
                                369                 :              0 :                 {   int m3 = z->l - z->c; (void)m3;
 1660 peter@eisentraut.org      370                 :              0 :                     z->ket = z->c;
  200 tgl@sss.pgh.pa.us         371   [ #  #  #  # ]:              0 :                     if (z->c <= z->lb || z->p[z->c - 1] != 's') { z->c = z->l - m3; goto lab2; }
 2539                           372                 :              0 :                     z->c--;
 1660 peter@eisentraut.org      373                 :              0 :                     z->bra = z->c;
  200 tgl@sss.pgh.pa.us         374         [ #  # ]:              0 :                     if (!(eq_s_b(z, 3, s_11))) { z->c = z->l - m3; goto lab2; }
 1660 peter@eisentraut.org      375                 :              0 :                     {   int ret = slice_del(z);
 2539 tgl@sss.pgh.pa.us         376         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                377                 :                :                     }
  200                           378                 :              0 :                 lab2:
                                379                 :                :                     ;
                                380                 :                :                 }
 2539                           381                 :              0 :                 break;
  200                           382                 :              0 :             case 4:
 1660 peter@eisentraut.org      383         [ #  # ]:              0 :                 if (in_grouping_b_U(z, g_s_ending, 98, 116, 0)) goto lab0;
                                384                 :              0 :                 {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         385         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                386                 :                :                 }
                                387                 :              0 :                 break;
  200                           388                 :              0 :             case 5:
                                389                 :              0 :                 {   int ret = slice_from_s(z, 1, s_12);
                                390         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                391                 :                :                 }
                                392                 :              0 :                 break;
                                393                 :                :         }
 6591                           394                 :              0 :     lab0:
                                395                 :              0 :         z->c = z->l - m1;
                                396                 :                :     }
  200                           397                 :              0 :     {   int m4 = z->l - z->c; (void)m4;
 1660 peter@eisentraut.org      398                 :              0 :         z->ket = z->c;
  200 tgl@sss.pgh.pa.us         399   [ #  #  #  #  :              0 :         if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1327104 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab3;
                                              #  # ]
                                400                 :              0 :         among_var = find_among_b(z, a_3, 4);
                                401         [ #  # ]:              0 :         if (!among_var) goto lab3;
 1660 peter@eisentraut.org      402                 :              0 :         z->bra = z->c;
                                403                 :              0 :         {   int ret = r_R1(z);
  200 tgl@sss.pgh.pa.us         404         [ #  # ]:              0 :             if (ret == 0) goto lab3;
 6591                           405         [ #  # ]:              0 :             if (ret < 0) return ret;
                                406                 :                :         }
 1660 peter@eisentraut.org      407      [ #  #  # ]:              0 :         switch (among_var) {
 6591 tgl@sss.pgh.pa.us         408                 :              0 :             case 1:
 1660 peter@eisentraut.org      409                 :              0 :                 {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         410         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                411                 :                :                 }
                                412                 :              0 :                 break;
                                413                 :              0 :             case 2:
  200                           414         [ #  # ]:              0 :                 if (in_grouping_b_U(z, g_st_ending, 98, 116, 0)) goto lab3;
 1660 peter@eisentraut.org      415                 :              0 :                 {   int ret = skip_b_utf8(z->p, z->c, z->lb, 3);
  200 tgl@sss.pgh.pa.us         416         [ #  # ]:              0 :                     if (ret < 0) goto lab3;
 2539                           417                 :              0 :                     z->c = ret;
                                418                 :                :                 }
 1660 peter@eisentraut.org      419                 :              0 :                 {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         420         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                421                 :                :                 }
                                422                 :              0 :                 break;
                                423                 :                :         }
  200                           424                 :              0 :     lab3:
                                425                 :              0 :         z->c = z->l - m4;
                                426                 :                :     }
                                427                 :              0 :     {   int m5 = z->l - z->c; (void)m5;
 1660 peter@eisentraut.org      428                 :              0 :         z->ket = z->c;
  200 tgl@sss.pgh.pa.us         429   [ #  #  #  #  :              0 :         if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1051024 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab4;
                                              #  # ]
                                430                 :              0 :         among_var = find_among_b(z, a_5, 8);
                                431         [ #  # ]:              0 :         if (!among_var) goto lab4;
 1660 peter@eisentraut.org      432                 :              0 :         z->bra = z->c;
                                433                 :              0 :         {   int ret = r_R2(z);
  200 tgl@sss.pgh.pa.us         434         [ #  # ]:              0 :             if (ret == 0) goto lab4;
 6591                           435         [ #  # ]:              0 :             if (ret < 0) return ret;
                                436                 :                :         }
 1660 peter@eisentraut.org      437   [ #  #  #  #  :              0 :         switch (among_var) {
                                                 # ]
 6591 tgl@sss.pgh.pa.us         438                 :              0 :             case 1:
 1660 peter@eisentraut.org      439                 :              0 :                 {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         440         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                441                 :                :                 }
  200                           442                 :              0 :                 {   int m6 = z->l - z->c; (void)m6;
 1660 peter@eisentraut.org      443                 :              0 :                     z->ket = z->c;
  200 tgl@sss.pgh.pa.us         444         [ #  # ]:              0 :                     if (!(eq_s_b(z, 2, s_13))) { z->c = z->l - m6; goto lab5; }
 1660 peter@eisentraut.org      445                 :              0 :                     z->bra = z->c;
  200 tgl@sss.pgh.pa.us         446                 :              0 :                     {   int m7 = z->l - z->c; (void)m7;
                                447   [ #  #  #  # ]:              0 :                         if (z->c <= z->lb || z->p[z->c - 1] != 'e') goto lab6;
 2539                           448                 :              0 :                         z->c--;
  200                           449                 :              0 :                         { z->c = z->l - m6; goto lab5; }
                                450                 :              0 :                     lab6:
                                451                 :              0 :                         z->c = z->l - m7;
                                452                 :                :                     }
 1660 peter@eisentraut.org      453                 :              0 :                     {   int ret = r_R2(z);
  200 tgl@sss.pgh.pa.us         454         [ #  # ]:              0 :                         if (ret == 0) { z->c = z->l - m6; goto lab5; }
 6591                           455         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                456                 :                :                     }
 1660 peter@eisentraut.org      457                 :              0 :                     {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         458         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                459                 :                :                     }
  200                           460                 :              0 :                 lab5:
                                461                 :                :                     ;
                                462                 :                :                 }
 6591                           463                 :              0 :                 break;
                                464                 :              0 :             case 2:
  200                           465                 :              0 :                 {   int m8 = z->l - z->c; (void)m8;
                                466   [ #  #  #  # ]:              0 :                     if (z->c <= z->lb || z->p[z->c - 1] != 'e') goto lab7;
 2539                           467                 :              0 :                     z->c--;
  200                           468                 :              0 :                     goto lab4;
                                469                 :              0 :                 lab7:
                                470                 :              0 :                     z->c = z->l - m8;
                                471                 :                :                 }
 1660 peter@eisentraut.org      472                 :              0 :                 {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         473         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                474                 :                :                 }
                                475                 :              0 :                 break;
                                476                 :              0 :             case 3:
 1660 peter@eisentraut.org      477                 :              0 :                 {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         478         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                479                 :                :                 }
  200                           480                 :              0 :                 {   int m9 = z->l - z->c; (void)m9;
 1660 peter@eisentraut.org      481                 :              0 :                     z->ket = z->c;
  200 tgl@sss.pgh.pa.us         482                 :              0 :                     {   int m10 = z->l - z->c; (void)m10;
                                483         [ #  # ]:              0 :                         if (!(eq_s_b(z, 2, s_14))) goto lab10;
                                484                 :              0 :                         goto lab9;
                                485                 :              0 :                     lab10:
                                486                 :              0 :                         z->c = z->l - m10;
                                487         [ #  # ]:              0 :                         if (!(eq_s_b(z, 2, s_15))) { z->c = z->l - m9; goto lab8; }
                                488                 :                :                     }
                                489                 :              0 :                 lab9:
 1660 peter@eisentraut.org      490                 :              0 :                     z->bra = z->c;
                                491                 :              0 :                     {   int ret = r_R1(z);
  200 tgl@sss.pgh.pa.us         492         [ #  # ]:              0 :                         if (ret == 0) { z->c = z->l - m9; goto lab8; }
 6591                           493         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                494                 :                :                     }
 1660 peter@eisentraut.org      495                 :              0 :                     {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         496         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                497                 :                :                     }
  200                           498                 :              0 :                 lab8:
                                499                 :                :                     ;
                                500                 :                :                 }
 6591                           501                 :              0 :                 break;
                                502                 :              0 :             case 4:
 1660 peter@eisentraut.org      503                 :              0 :                 {   int ret = slice_del(z);
 6591 tgl@sss.pgh.pa.us         504         [ #  # ]:              0 :                     if (ret < 0) return ret;
                                505                 :                :                 }
  200                           506                 :              0 :                 {   int m11 = z->l - z->c; (void)m11;
 1660 peter@eisentraut.org      507                 :              0 :                     z->ket = z->c;
  200 tgl@sss.pgh.pa.us         508   [ #  #  #  #  :              0 :                     if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 103 && z->p[z->c - 1] != 104)) { z->c = z->l - m11; goto lab11; }
                                              #  # ]
                                509         [ #  # ]:              0 :                     if (!find_among_b(z, a_4, 2)) { z->c = z->l - m11; goto lab11; }
 1660 peter@eisentraut.org      510                 :              0 :                     z->bra = z->c;
                                511                 :              0 :                     {   int ret = r_R2(z);
  200 tgl@sss.pgh.pa.us         512         [ #  # ]:              0 :                         if (ret == 0) { z->c = z->l - m11; goto lab11; }
 6591                           513         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                514                 :                :                     }
 1660 peter@eisentraut.org      515                 :              0 :                     {   int ret = slice_del(z);
 2539 tgl@sss.pgh.pa.us         516         [ #  # ]:              0 :                         if (ret < 0) return ret;
                                517                 :                :                     }
  200                           518                 :              0 :                 lab11:
                                519                 :                :                     ;
                                520                 :                :                 }
 6591                           521                 :              0 :                 break;
                                522                 :                :         }
  200                           523                 :              0 :     lab4:
                                524                 :              0 :         z->c = z->l - m5;
                                525                 :                :     }
 6591                           526                 :              0 :     return 1;
                                527                 :                : }
                                528                 :                : 
 1660 peter@eisentraut.org      529                 :              0 : extern int german_UTF_8_stem(struct SN_env * z) {
                                530                 :              0 :     {   int c1 = z->c;
                                531                 :              0 :         {   int ret = r_prelude(z);
 6591 tgl@sss.pgh.pa.us         532         [ #  # ]:              0 :             if (ret < 0) return ret;
                                533                 :                :         }
                                534                 :              0 :         z->c = c1;
                                535                 :                :     }
 1660 peter@eisentraut.org      536                 :              0 :     {   int c2 = z->c;
                                537                 :              0 :         {   int ret = r_mark_regions(z);
 6591 tgl@sss.pgh.pa.us         538         [ #  # ]:              0 :             if (ret < 0) return ret;
                                539                 :                :         }
                                540                 :              0 :         z->c = c2;
                                541                 :                :     }
 1660 peter@eisentraut.org      542                 :              0 :     z->lb = z->c; z->c = z->l;
                                543                 :                : 
                                544                 :                : 
                                545                 :              0 :     {   int ret = r_standard_suffix(z);
 2539 tgl@sss.pgh.pa.us         546         [ #  # ]:              0 :         if (ret < 0) return ret;
                                547                 :                :     }
 6591                           548                 :              0 :     z->c = z->lb;
 1660 peter@eisentraut.org      549                 :              0 :     {   int c3 = z->c;
                                550                 :              0 :         {   int ret = r_postlude(z);
 6591 tgl@sss.pgh.pa.us         551         [ #  # ]:              0 :             if (ret < 0) return ret;
                                552                 :                :         }
 2539                           553                 :              0 :         z->c = c3;
                                554                 :                :     }
 6591                           555                 :              0 :     return 1;
                                556                 :                : }
                                557                 :                : 
 1660 peter@eisentraut.org      558                 :              0 : extern struct SN_env * german_UTF_8_create_env(void) { return SN_create_env(0, 3); }
                                559                 :                : 
 6591 tgl@sss.pgh.pa.us         560                 :              0 : extern void german_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
                                561                 :                : 
        

Generated by: LCOV version 2.4-beta