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: 603a3335f2b60b2c798da5c627b3bb288b92a7bd vs e395fbd32a07557de4ac98088928c1749d4845d8 Lines: 0.0 % 321 0 321
Current Date: 2026-07-25 17:13:00 -0400 Functions: 0.0 % 9 0 9
Baseline: lcov-20260726-baseline Branches: 0.0 % 215 0 215
Baseline Date: 2026-07-25 19:16:42 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 0.0 % 147 0 147
(360..) days: 0.0 % 174 0 174
Function coverage date bins:
(30,360] days: 0.0 % 2 0 2
(360..) days: 0.0 % 7 0 7
Branch coverage date bins:
(30,360] days: 0.0 % 66 0 66
(360..) days: 0.0 % 149 0 149

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

Generated by: LCOV version 2.0-1