LCOV - code coverage report
Current view: top level - src/backend/snowball/libstemmer - stem_UTF_8_dutch.c (source / functions) Hit Total Coverage
Test: PostgreSQL 13devel Lines: 0 322 0.0 %
Date: 2019-11-15 23:07:02 Functions: 0 12 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* This file was generated automatically by the Snowball to ISO C compiler */
       2             : /* http://snowballstem.org/ */
       3             : 
       4             : #include "header.h"
       5             : 
       6             : #ifdef __cplusplus
       7             : extern "C" {
       8             : #endif
       9             : extern int dutch_UTF_8_stem(struct SN_env * z);
      10             : #ifdef __cplusplus
      11             : }
      12             : #endif
      13             : static int r_standard_suffix(struct SN_env * z);
      14             : static int r_undouble(struct SN_env * z);
      15             : static int r_R2(struct SN_env * z);
      16             : static int r_R1(struct SN_env * z);
      17             : static int r_mark_regions(struct SN_env * z);
      18             : static int r_en_ending(struct SN_env * z);
      19             : static int r_e_ending(struct SN_env * z);
      20             : static int r_postlude(struct SN_env * z);
      21             : static int r_prelude(struct SN_env * z);
      22             : #ifdef __cplusplus
      23             : extern "C" {
      24             : #endif
      25             : 
      26             : 
      27             : extern struct SN_env * dutch_UTF_8_create_env(void);
      28             : extern void dutch_UTF_8_close_env(struct SN_env * z);
      29             : 
      30             : 
      31             : #ifdef __cplusplus
      32             : }
      33             : #endif
      34             : static const symbol s_0_1[2] = { 0xC3, 0xA1 };
      35             : static const symbol s_0_2[2] = { 0xC3, 0xA4 };
      36             : static const symbol s_0_3[2] = { 0xC3, 0xA9 };
      37             : static const symbol s_0_4[2] = { 0xC3, 0xAB };
      38             : static const symbol s_0_5[2] = { 0xC3, 0xAD };
      39             : static const symbol s_0_6[2] = { 0xC3, 0xAF };
      40             : static const symbol s_0_7[2] = { 0xC3, 0xB3 };
      41             : static const symbol s_0_8[2] = { 0xC3, 0xB6 };
      42             : static const symbol s_0_9[2] = { 0xC3, 0xBA };
      43             : static const symbol s_0_10[2] = { 0xC3, 0xBC };
      44             : 
      45             : static const struct among a_0[11] =
      46             : {
      47             : /*  0 */ { 0, 0, -1, 6, 0},
      48             : /*  1 */ { 2, s_0_1, 0, 1, 0},
      49             : /*  2 */ { 2, s_0_2, 0, 1, 0},
      50             : /*  3 */ { 2, s_0_3, 0, 2, 0},
      51             : /*  4 */ { 2, s_0_4, 0, 2, 0},
      52             : /*  5 */ { 2, s_0_5, 0, 3, 0},
      53             : /*  6 */ { 2, s_0_6, 0, 3, 0},
      54             : /*  7 */ { 2, s_0_7, 0, 4, 0},
      55             : /*  8 */ { 2, s_0_8, 0, 4, 0},
      56             : /*  9 */ { 2, s_0_9, 0, 5, 0},
      57             : /* 10 */ { 2, s_0_10, 0, 5, 0}
      58             : };
      59             : 
      60             : static const symbol s_1_1[1] = { 'I' };
      61             : static const symbol s_1_2[1] = { 'Y' };
      62             : 
      63             : static const struct among a_1[3] =
      64             : {
      65             : /*  0 */ { 0, 0, -1, 3, 0},
      66             : /*  1 */ { 1, s_1_1, 0, 2, 0},
      67             : /*  2 */ { 1, s_1_2, 0, 1, 0}
      68             : };
      69             : 
      70             : static const symbol s_2_0[2] = { 'd', 'd' };
      71             : static const symbol s_2_1[2] = { 'k', 'k' };
      72             : static const symbol s_2_2[2] = { 't', 't' };
      73             : 
      74             : static const struct among a_2[3] =
      75             : {
      76             : /*  0 */ { 2, s_2_0, -1, -1, 0},
      77             : /*  1 */ { 2, s_2_1, -1, -1, 0},
      78             : /*  2 */ { 2, s_2_2, -1, -1, 0}
      79             : };
      80             : 
      81             : static const symbol s_3_0[3] = { 'e', 'n', 'e' };
      82             : static const symbol s_3_1[2] = { 's', 'e' };
      83             : static const symbol s_3_2[2] = { 'e', 'n' };
      84             : static const symbol s_3_3[5] = { 'h', 'e', 'd', 'e', 'n' };
      85             : static const symbol s_3_4[1] = { 's' };
      86             : 
      87             : static const struct among a_3[5] =
      88             : {
      89             : /*  0 */ { 3, s_3_0, -1, 2, 0},
      90             : /*  1 */ { 2, s_3_1, -1, 3, 0},
      91             : /*  2 */ { 2, s_3_2, -1, 2, 0},
      92             : /*  3 */ { 5, s_3_3, 2, 1, 0},
      93             : /*  4 */ { 1, s_3_4, -1, 3, 0}
      94             : };
      95             : 
      96             : static const symbol s_4_0[3] = { 'e', 'n', 'd' };
      97             : static const symbol s_4_1[2] = { 'i', 'g' };
      98             : static const symbol s_4_2[3] = { 'i', 'n', 'g' };
      99             : static const symbol s_4_3[4] = { 'l', 'i', 'j', 'k' };
     100             : static const symbol s_4_4[4] = { 'b', 'a', 'a', 'r' };
     101             : static const symbol s_4_5[3] = { 'b', 'a', 'r' };
     102             : 
     103             : static const struct among a_4[6] =
     104             : {
     105             : /*  0 */ { 3, s_4_0, -1, 1, 0},
     106             : /*  1 */ { 2, s_4_1, -1, 2, 0},
     107             : /*  2 */ { 3, s_4_2, -1, 1, 0},
     108             : /*  3 */ { 4, s_4_3, -1, 3, 0},
     109             : /*  4 */ { 4, s_4_4, -1, 4, 0},
     110             : /*  5 */ { 3, s_4_5, -1, 5, 0}
     111             : };
     112             : 
     113             : static const symbol s_5_0[2] = { 'a', 'a' };
     114             : static const symbol s_5_1[2] = { 'e', 'e' };
     115             : static const symbol s_5_2[2] = { 'o', 'o' };
     116             : static const symbol s_5_3[2] = { 'u', 'u' };
     117             : 
     118             : static const struct among a_5[4] =
     119             : {
     120             : /*  0 */ { 2, s_5_0, -1, -1, 0},
     121             : /*  1 */ { 2, s_5_1, -1, -1, 0},
     122             : /*  2 */ { 2, s_5_2, -1, -1, 0},
     123             : /*  3 */ { 2, s_5_3, -1, -1, 0}
     124             : };
     125             : 
     126             : static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
     127             : 
     128             : static const unsigned char g_v_I[] = { 1, 0, 0, 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
     129             : 
     130             : static const unsigned char g_v_j[] = { 17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
     131             : 
     132             : static const symbol s_0[] = { 'a' };
     133             : static const symbol s_1[] = { 'e' };
     134             : static const symbol s_2[] = { 'i' };
     135             : static const symbol s_3[] = { 'o' };
     136             : static const symbol s_4[] = { 'u' };
     137             : static const symbol s_5[] = { 'Y' };
     138             : static const symbol s_6[] = { 'I' };
     139             : static const symbol s_7[] = { 'Y' };
     140             : static const symbol s_8[] = { 'y' };
     141             : static const symbol s_9[] = { 'i' };
     142             : static const symbol s_10[] = { 'g', 'e', 'm' };
     143             : static const symbol s_11[] = { 'h', 'e', 'i', 'd' };
     144             : static const symbol s_12[] = { 'h', 'e', 'i', 'd' };
     145             : static const symbol s_13[] = { 'e', 'n' };
     146             : static const symbol s_14[] = { 'i', 'g' };
     147             : 
     148           0 : static int r_prelude(struct SN_env * z) { /* forwardmode */
     149             :     int among_var;
     150           0 :     {   int c_test1 = z->c; /* test, line 42 */
     151           0 :         while(1) { /* repeat, line 42 */
     152           0 :             int c2 = z->c;
     153           0 :             z->bra = z->c; /* [, line 43 */
     154           0 :             if (z->c + 1 >= z->l || z->p[z->c + 1] >> 5 != 5 || !((340306450 >> (z->p[z->c + 1] & 0x1f)) & 1)) among_var = 6; else /* substring, line 43 */
     155           0 :             among_var = find_among(z, a_0, 11);
     156           0 :             if (!(among_var)) goto lab0;
     157           0 :             z->ket = z->c; /* ], line 43 */
     158           0 :             switch (among_var) { /* among, line 43 */
     159             :                 case 1:
     160           0 :                     {   int ret = slice_from_s(z, 1, s_0); /* <-, line 45 */
     161           0 :                         if (ret < 0) return ret;
     162             :                     }
     163           0 :                     break;
     164             :                 case 2:
     165           0 :                     {   int ret = slice_from_s(z, 1, s_1); /* <-, line 47 */
     166           0 :                         if (ret < 0) return ret;
     167             :                     }
     168           0 :                     break;
     169             :                 case 3:
     170           0 :                     {   int ret = slice_from_s(z, 1, s_2); /* <-, line 49 */
     171           0 :                         if (ret < 0) return ret;
     172             :                     }
     173           0 :                     break;
     174             :                 case 4:
     175           0 :                     {   int ret = slice_from_s(z, 1, s_3); /* <-, line 51 */
     176           0 :                         if (ret < 0) return ret;
     177             :                     }
     178           0 :                     break;
     179             :                 case 5:
     180           0 :                     {   int ret = slice_from_s(z, 1, s_4); /* <-, line 53 */
     181           0 :                         if (ret < 0) return ret;
     182             :                     }
     183           0 :                     break;
     184             :                 case 6:
     185           0 :                     {   int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
     186           0 :                         if (ret < 0) goto lab0;
     187           0 :                         z->c = ret; /* next, line 54 */
     188             :                     }
     189           0 :                     break;
     190             :             }
     191           0 :             continue;
     192             :         lab0:
     193           0 :             z->c = c2;
     194           0 :             break;
     195             :         }
     196           0 :         z->c = c_test1;
     197             :     }
     198           0 :     {   int c3 = z->c; /* try, line 57 */
     199           0 :         z->bra = z->c; /* [, line 57 */
     200           0 :         if (z->c == z->l || z->p[z->c] != 'y') { z->c = c3; goto lab1; } /* literal, line 57 */
     201           0 :         z->c++;
     202           0 :         z->ket = z->c; /* ], line 57 */
     203           0 :         {   int ret = slice_from_s(z, 1, s_5); /* <-, line 57 */
     204           0 :             if (ret < 0) return ret;
     205             :         }
     206             :     lab1:
     207             :         ;
     208             :     }
     209           0 :     while(1) { /* repeat, line 58 */
     210           0 :         int c4 = z->c;
     211           0 :         while(1) { /* goto, line 58 */
     212           0 :             int c5 = z->c;
     213           0 :             if (in_grouping_U(z, g_v, 97, 232, 0)) goto lab3; /* grouping v, line 59 */
     214           0 :             z->bra = z->c; /* [, line 59 */
     215           0 :             {   int c6 = z->c; /* or, line 59 */
     216           0 :                 if (z->c == z->l || z->p[z->c] != 'i') goto lab5; /* literal, line 59 */
     217           0 :                 z->c++;
     218           0 :                 z->ket = z->c; /* ], line 59 */
     219           0 :                 if (in_grouping_U(z, g_v, 97, 232, 0)) goto lab5; /* grouping v, line 59 */
     220           0 :                 {   int ret = slice_from_s(z, 1, s_6); /* <-, line 59 */
     221           0 :                     if (ret < 0) return ret;
     222             :                 }
     223           0 :                 goto lab4;
     224             :             lab5:
     225           0 :                 z->c = c6;
     226           0 :                 if (z->c == z->l || z->p[z->c] != 'y') goto lab3; /* literal, line 60 */
     227           0 :                 z->c++;
     228           0 :                 z->ket = z->c; /* ], line 60 */
     229           0 :                 {   int ret = slice_from_s(z, 1, s_7); /* <-, line 60 */
     230           0 :                     if (ret < 0) return ret;
     231             :                 }
     232             :             }
     233             :         lab4:
     234           0 :             z->c = c5;
     235           0 :             break;
     236             :         lab3:
     237           0 :             z->c = c5;
     238           0 :             {   int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
     239           0 :                 if (ret < 0) goto lab2;
     240           0 :                 z->c = ret; /* goto, line 58 */
     241             :             }
     242             :         }
     243           0 :         continue;
     244             :     lab2:
     245           0 :         z->c = c4;
     246           0 :         break;
     247             :     }
     248           0 :     return 1;
     249             : }
     250             : 
     251           0 : static int r_mark_regions(struct SN_env * z) { /* forwardmode */
     252           0 :     z->I[0] = z->l; /* $p1 = <integer expression>, line 66 */
     253           0 :     z->I[1] = z->l; /* $p2 = <integer expression>, line 67 */
     254             :     {    /* gopast */ /* grouping v, line 69 */
     255           0 :         int ret = out_grouping_U(z, g_v, 97, 232, 1);
     256           0 :         if (ret < 0) return 0;
     257           0 :         z->c += ret;
     258             :     }
     259             :     {    /* gopast */ /* non v, line 69 */
     260           0 :         int ret = in_grouping_U(z, g_v, 97, 232, 1);
     261           0 :         if (ret < 0) return 0;
     262           0 :         z->c += ret;
     263             :     }
     264           0 :     z->I[0] = z->c; /* setmark p1, line 69 */
     265             :     /* try, line 70 */
     266           0 :     if (!(z->I[0] < 3)) goto lab0; /* $(<integer expression> < <integer expression>), line 70 */
     267           0 :     z->I[0] = 3; /* $p1 = <integer expression>, line 70 */
     268             : lab0:
     269             :     {    /* gopast */ /* grouping v, line 71 */
     270           0 :         int ret = out_grouping_U(z, g_v, 97, 232, 1);
     271           0 :         if (ret < 0) return 0;
     272           0 :         z->c += ret;
     273             :     }
     274             :     {    /* gopast */ /* non v, line 71 */
     275           0 :         int ret = in_grouping_U(z, g_v, 97, 232, 1);
     276           0 :         if (ret < 0) return 0;
     277           0 :         z->c += ret;
     278             :     }
     279           0 :     z->I[1] = z->c; /* setmark p2, line 71 */
     280           0 :     return 1;
     281             : }
     282             : 
     283           0 : static int r_postlude(struct SN_env * z) { /* forwardmode */
     284             :     int among_var;
     285           0 :     while(1) { /* repeat, line 75 */
     286           0 :         int c1 = z->c;
     287           0 :         z->bra = z->c; /* [, line 77 */
     288           0 :         if (z->c >= z->l || (z->p[z->c + 0] != 73 && z->p[z->c + 0] != 89)) among_var = 3; else /* substring, line 77 */
     289           0 :         among_var = find_among(z, a_1, 3);
     290           0 :         if (!(among_var)) goto lab0;
     291           0 :         z->ket = z->c; /* ], line 77 */
     292           0 :         switch (among_var) { /* among, line 77 */
     293             :             case 1:
     294           0 :                 {   int ret = slice_from_s(z, 1, s_8); /* <-, line 78 */
     295           0 :                     if (ret < 0) return ret;
     296             :                 }
     297           0 :                 break;
     298             :             case 2:
     299           0 :                 {   int ret = slice_from_s(z, 1, s_9); /* <-, line 79 */
     300           0 :                     if (ret < 0) return ret;
     301             :                 }
     302           0 :                 break;
     303             :             case 3:
     304           0 :                 {   int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
     305           0 :                     if (ret < 0) goto lab0;
     306           0 :                     z->c = ret; /* next, line 80 */
     307             :                 }
     308           0 :                 break;
     309             :         }
     310           0 :         continue;
     311             :     lab0:
     312           0 :         z->c = c1;
     313           0 :         break;
     314             :     }
     315           0 :     return 1;
     316             : }
     317             : 
     318           0 : static int r_R1(struct SN_env * z) { /* backwardmode */
     319           0 :     if (!(z->I[0] <= z->c)) return 0; /* $(<integer expression> <= <integer expression>), line 87 */
     320           0 :     return 1;
     321             : }
     322             : 
     323           0 : static int r_R2(struct SN_env * z) { /* backwardmode */
     324           0 :     if (!(z->I[1] <= z->c)) return 0; /* $(<integer expression> <= <integer expression>), line 88 */
     325           0 :     return 1;
     326             : }
     327             : 
     328           0 : static int r_undouble(struct SN_env * z) { /* backwardmode */
     329           0 :     {   int m_test1 = z->l - z->c; /* test, line 91 */
     330           0 :         if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1050640 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0; /* among, line 91 */
     331           0 :         if (!(find_among_b(z, a_2, 3))) return 0;
     332           0 :         z->c = z->l - m_test1;
     333             :     }
     334           0 :     z->ket = z->c; /* [, line 91 */
     335           0 :     {   int ret = skip_utf8(z->p, z->c, z->lb, 0, -1);
     336           0 :         if (ret < 0) return 0;
     337           0 :         z->c = ret; /* next, line 91 */
     338             :     }
     339           0 :     z->bra = z->c; /* ], line 91 */
     340           0 :     {   int ret = slice_del(z); /* delete, line 91 */
     341           0 :         if (ret < 0) return ret;
     342             :     }
     343           0 :     return 1;
     344             : }
     345             : 
     346           0 : static int r_e_ending(struct SN_env * z) { /* backwardmode */
     347           0 :     z->B[0] = 0; /* unset e_found, line 95 */
     348           0 :     z->ket = z->c; /* [, line 96 */
     349           0 :     if (z->c <= z->lb || z->p[z->c - 1] != 'e') return 0; /* literal, line 96 */
     350           0 :     z->c--;
     351           0 :     z->bra = z->c; /* ], line 96 */
     352           0 :     {   int ret = r_R1(z); /* call R1, line 96 */
     353           0 :         if (ret <= 0) return ret;
     354             :     }
     355           0 :     {   int m_test1 = z->l - z->c; /* test, line 96 */
     356           0 :         if (out_grouping_b_U(z, g_v, 97, 232, 0)) return 0; /* non v, line 96 */
     357           0 :         z->c = z->l - m_test1;
     358             :     }
     359           0 :     {   int ret = slice_del(z); /* delete, line 96 */
     360           0 :         if (ret < 0) return ret;
     361             :     }
     362           0 :     z->B[0] = 1; /* set e_found, line 97 */
     363           0 :     {   int ret = r_undouble(z); /* call undouble, line 98 */
     364           0 :         if (ret <= 0) return ret;
     365             :     }
     366           0 :     return 1;
     367             : }
     368             : 
     369           0 : static int r_en_ending(struct SN_env * z) { /* backwardmode */
     370           0 :     {   int ret = r_R1(z); /* call R1, line 102 */
     371           0 :         if (ret <= 0) return ret;
     372             :     }
     373           0 :     {   int m1 = z->l - z->c; (void)m1; /* and, line 102 */
     374           0 :         if (out_grouping_b_U(z, g_v, 97, 232, 0)) return 0; /* non v, line 102 */
     375           0 :         z->c = z->l - m1;
     376           0 :         {   int m2 = z->l - z->c; (void)m2; /* not, line 102 */
     377           0 :             if (!(eq_s_b(z, 3, s_10))) goto lab0; /* literal, line 102 */
     378           0 :             return 0;
     379             :         lab0:
     380           0 :             z->c = z->l - m2;
     381             :         }
     382             :     }
     383           0 :     {   int ret = slice_del(z); /* delete, line 102 */
     384           0 :         if (ret < 0) return ret;
     385             :     }
     386           0 :     {   int ret = r_undouble(z); /* call undouble, line 103 */
     387           0 :         if (ret <= 0) return ret;
     388             :     }
     389           0 :     return 1;
     390             : }
     391             : 
     392           0 : static int r_standard_suffix(struct SN_env * z) { /* backwardmode */
     393             :     int among_var;
     394           0 :     {   int m1 = z->l - z->c; (void)m1; /* do, line 107 */
     395           0 :         z->ket = z->c; /* [, line 108 */
     396           0 :         if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((540704 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab0; /* substring, line 108 */
     397           0 :         among_var = find_among_b(z, a_3, 5);
     398           0 :         if (!(among_var)) goto lab0;
     399           0 :         z->bra = z->c; /* ], line 108 */
     400           0 :         switch (among_var) { /* among, line 108 */
     401             :             case 1:
     402           0 :                 {   int ret = r_R1(z); /* call R1, line 110 */
     403           0 :                     if (ret == 0) goto lab0;
     404           0 :                     if (ret < 0) return ret;
     405             :                 }
     406           0 :                 {   int ret = slice_from_s(z, 4, s_11); /* <-, line 110 */
     407           0 :                     if (ret < 0) return ret;
     408             :                 }
     409           0 :                 break;
     410             :             case 2:
     411           0 :                 {   int ret = r_en_ending(z); /* call en_ending, line 113 */
     412           0 :                     if (ret == 0) goto lab0;
     413           0 :                     if (ret < 0) return ret;
     414             :                 }
     415           0 :                 break;
     416             :             case 3:
     417           0 :                 {   int ret = r_R1(z); /* call R1, line 116 */
     418           0 :                     if (ret == 0) goto lab0;
     419           0 :                     if (ret < 0) return ret;
     420             :                 }
     421           0 :                 if (out_grouping_b_U(z, g_v_j, 97, 232, 0)) goto lab0; /* non v_j, line 116 */
     422           0 :                 {   int ret = slice_del(z); /* delete, line 116 */
     423           0 :                     if (ret < 0) return ret;
     424             :                 }
     425           0 :                 break;
     426             :         }
     427             :     lab0:
     428           0 :         z->c = z->l - m1;
     429             :     }
     430           0 :     {   int m2 = z->l - z->c; (void)m2; /* do, line 120 */
     431           0 :         {   int ret = r_e_ending(z); /* call e_ending, line 120 */
     432           0 :             if (ret == 0) goto lab1;
     433           0 :             if (ret < 0) return ret;
     434             :         }
     435             :     lab1:
     436           0 :         z->c = z->l - m2;
     437             :     }
     438           0 :     {   int m3 = z->l - z->c; (void)m3; /* do, line 122 */
     439           0 :         z->ket = z->c; /* [, line 122 */
     440           0 :         if (!(eq_s_b(z, 4, s_12))) goto lab2; /* literal, line 122 */
     441           0 :         z->bra = z->c; /* ], line 122 */
     442           0 :         {   int ret = r_R2(z); /* call R2, line 122 */
     443           0 :             if (ret == 0) goto lab2;
     444           0 :             if (ret < 0) return ret;
     445             :         }
     446           0 :         {   int m4 = z->l - z->c; (void)m4; /* not, line 122 */
     447           0 :             if (z->c <= z->lb || z->p[z->c - 1] != 'c') goto lab3; /* literal, line 122 */
     448           0 :             z->c--;
     449           0 :             goto lab2;
     450             :         lab3:
     451           0 :             z->c = z->l - m4;
     452             :         }
     453           0 :         {   int ret = slice_del(z); /* delete, line 122 */
     454           0 :             if (ret < 0) return ret;
     455             :         }
     456           0 :         z->ket = z->c; /* [, line 123 */
     457           0 :         if (!(eq_s_b(z, 2, s_13))) goto lab2; /* literal, line 123 */
     458           0 :         z->bra = z->c; /* ], line 123 */
     459           0 :         {   int ret = r_en_ending(z); /* call en_ending, line 123 */
     460           0 :             if (ret == 0) goto lab2;
     461           0 :             if (ret < 0) return ret;
     462             :         }
     463             :     lab2:
     464           0 :         z->c = z->l - m3;
     465             :     }
     466           0 :     {   int m5 = z->l - z->c; (void)m5; /* do, line 126 */
     467           0 :         z->ket = z->c; /* [, line 127 */
     468           0 :         if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((264336 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab4; /* substring, line 127 */
     469           0 :         among_var = find_among_b(z, a_4, 6);
     470           0 :         if (!(among_var)) goto lab4;
     471           0 :         z->bra = z->c; /* ], line 127 */
     472           0 :         switch (among_var) { /* among, line 127 */
     473             :             case 1:
     474           0 :                 {   int ret = r_R2(z); /* call R2, line 129 */
     475           0 :                     if (ret == 0) goto lab4;
     476           0 :                     if (ret < 0) return ret;
     477             :                 }
     478           0 :                 {   int ret = slice_del(z); /* delete, line 129 */
     479           0 :                     if (ret < 0) return ret;
     480             :                 }
     481           0 :                 {   int m6 = z->l - z->c; (void)m6; /* or, line 130 */
     482           0 :                     z->ket = z->c; /* [, line 130 */
     483           0 :                     if (!(eq_s_b(z, 2, s_14))) goto lab6; /* literal, line 130 */
     484           0 :                     z->bra = z->c; /* ], line 130 */
     485           0 :                     {   int ret = r_R2(z); /* call R2, line 130 */
     486           0 :                         if (ret == 0) goto lab6;
     487           0 :                         if (ret < 0) return ret;
     488             :                     }
     489           0 :                     {   int m7 = z->l - z->c; (void)m7; /* not, line 130 */
     490           0 :                         if (z->c <= z->lb || z->p[z->c - 1] != 'e') goto lab7; /* literal, line 130 */
     491           0 :                         z->c--;
     492           0 :                         goto lab6;
     493             :                     lab7:
     494           0 :                         z->c = z->l - m7;
     495             :                     }
     496           0 :                     {   int ret = slice_del(z); /* delete, line 130 */
     497           0 :                         if (ret < 0) return ret;
     498             :                     }
     499           0 :                     goto lab5;
     500             :                 lab6:
     501           0 :                     z->c = z->l - m6;
     502           0 :                     {   int ret = r_undouble(z); /* call undouble, line 130 */
     503           0 :                         if (ret == 0) goto lab4;
     504           0 :                         if (ret < 0) return ret;
     505             :                     }
     506             :                 }
     507             :             lab5:
     508           0 :                 break;
     509             :             case 2:
     510           0 :                 {   int ret = r_R2(z); /* call R2, line 133 */
     511           0 :                     if (ret == 0) goto lab4;
     512           0 :                     if (ret < 0) return ret;
     513             :                 }
     514           0 :                 {   int m8 = z->l - z->c; (void)m8; /* not, line 133 */
     515           0 :                     if (z->c <= z->lb || z->p[z->c - 1] != 'e') goto lab8; /* literal, line 133 */
     516           0 :                     z->c--;
     517           0 :                     goto lab4;
     518             :                 lab8:
     519           0 :                     z->c = z->l - m8;
     520             :                 }
     521           0 :                 {   int ret = slice_del(z); /* delete, line 133 */
     522           0 :                     if (ret < 0) return ret;
     523             :                 }
     524           0 :                 break;
     525             :             case 3:
     526           0 :                 {   int ret = r_R2(z); /* call R2, line 136 */
     527           0 :                     if (ret == 0) goto lab4;
     528           0 :                     if (ret < 0) return ret;
     529             :                 }
     530           0 :                 {   int ret = slice_del(z); /* delete, line 136 */
     531           0 :                     if (ret < 0) return ret;
     532             :                 }
     533           0 :                 {   int ret = r_e_ending(z); /* call e_ending, line 136 */
     534           0 :                     if (ret == 0) goto lab4;
     535           0 :                     if (ret < 0) return ret;
     536             :                 }
     537           0 :                 break;
     538             :             case 4:
     539           0 :                 {   int ret = r_R2(z); /* call R2, line 139 */
     540           0 :                     if (ret == 0) goto lab4;
     541           0 :                     if (ret < 0) return ret;
     542             :                 }
     543           0 :                 {   int ret = slice_del(z); /* delete, line 139 */
     544           0 :                     if (ret < 0) return ret;
     545             :                 }
     546           0 :                 break;
     547             :             case 5:
     548           0 :                 {   int ret = r_R2(z); /* call R2, line 142 */
     549           0 :                     if (ret == 0) goto lab4;
     550           0 :                     if (ret < 0) return ret;
     551             :                 }
     552           0 :                 if (!(z->B[0])) goto lab4; /* Boolean test e_found, line 142 */
     553           0 :                 {   int ret = slice_del(z); /* delete, line 142 */
     554           0 :                     if (ret < 0) return ret;
     555             :                 }
     556           0 :                 break;
     557             :         }
     558             :     lab4:
     559           0 :         z->c = z->l - m5;
     560             :     }
     561           0 :     {   int m9 = z->l - z->c; (void)m9; /* do, line 146 */
     562           0 :         if (out_grouping_b_U(z, g_v_I, 73, 232, 0)) goto lab9; /* non v_I, line 147 */
     563           0 :         {   int m_test10 = z->l - z->c; /* test, line 148 */
     564           0 :             if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((2129954 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab9; /* among, line 149 */
     565           0 :             if (!(find_among_b(z, a_5, 4))) goto lab9;
     566           0 :             if (out_grouping_b_U(z, g_v, 97, 232, 0)) goto lab9; /* non v, line 150 */
     567           0 :             z->c = z->l - m_test10;
     568             :         }
     569           0 :         z->ket = z->c; /* [, line 152 */
     570           0 :         {   int ret = skip_utf8(z->p, z->c, z->lb, 0, -1);
     571           0 :             if (ret < 0) goto lab9;
     572           0 :             z->c = ret; /* next, line 152 */
     573             :         }
     574           0 :         z->bra = z->c; /* ], line 152 */
     575           0 :         {   int ret = slice_del(z); /* delete, line 152 */
     576           0 :             if (ret < 0) return ret;
     577             :         }
     578             :     lab9:
     579           0 :         z->c = z->l - m9;
     580             :     }
     581           0 :     return 1;
     582             : }
     583             : 
     584           0 : extern int dutch_UTF_8_stem(struct SN_env * z) { /* forwardmode */
     585           0 :     {   int c1 = z->c; /* do, line 159 */
     586           0 :         {   int ret = r_prelude(z); /* call prelude, line 159 */
     587           0 :             if (ret == 0) goto lab0;
     588           0 :             if (ret < 0) return ret;
     589             :         }
     590             :     lab0:
     591           0 :         z->c = c1;
     592             :     }
     593           0 :     {   int c2 = z->c; /* do, line 160 */
     594           0 :         {   int ret = r_mark_regions(z); /* call mark_regions, line 160 */
     595           0 :             if (ret == 0) goto lab1;
     596           0 :             if (ret < 0) return ret;
     597             :         }
     598             :     lab1:
     599           0 :         z->c = c2;
     600             :     }
     601           0 :     z->lb = z->c; z->c = z->l; /* backwards, line 161 */
     602             : 
     603             :     /* do, line 162 */
     604           0 :     {   int ret = r_standard_suffix(z); /* call standard_suffix, line 162 */
     605           0 :         if (ret == 0) goto lab2;
     606           0 :         if (ret < 0) return ret;
     607             :     }
     608             : lab2:
     609           0 :     z->c = z->lb;
     610           0 :     {   int c3 = z->c; /* do, line 163 */
     611           0 :         {   int ret = r_postlude(z); /* call postlude, line 163 */
     612           0 :             if (ret == 0) goto lab3;
     613           0 :             if (ret < 0) return ret;
     614             :         }
     615             :     lab3:
     616           0 :         z->c = c3;
     617             :     }
     618           0 :     return 1;
     619             : }
     620             : 
     621           0 : extern struct SN_env * dutch_UTF_8_create_env(void) { return SN_create_env(0, 2, 1); }
     622             : 
     623           0 : extern void dutch_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
     624             : 

Generated by: LCOV version 1.13