static int r_prelude(struct SN_env * z) { z->B[0] = 0; /* unset Y_found, line 26 */ { int c = z->c; /* do, line 27 */ z->bra = z->c; /* [, line 27 */ if (!(eq_s(z, 1, s_0))) goto lab0; z->ket = z->c; /* ], line 27 */ { int ret; ret = slice_del(z); /* delete, line 27 */ if (ret < 0) return ret; } lab0: z->c = c; } { int c = z->c; /* do, line 28 */ z->bra = z->c; /* [, line 28 */ if (!(eq_s(z, 1, s_1))) goto lab1; z->ket = z->c; /* ], line 28 */ if (!(in_grouping(z, g_v, 97, 121))) goto lab1; { int ret; ret = slice_from_s(z, 1, s_2); /* <-, line 28 */ if (ret < 0) return ret; } z->B[0] = 1; /* set Y_found, line 28 */ lab1: z->c = c; } { int c = z->c; /* do, line 29 */ while(1) { /* repeat, line 29 */ int c = z->c; while(1) { /* goto, line 29 */ int c = z->c; if (!(in_grouping(z, g_v, 97, 121))) goto lab4; z->bra = z->c; /* [, line 29 */ if (!(eq_s(z, 1, s_3))) goto lab4; z->ket = z->c; /* ], line 29 */ z->c = c; break; lab4: z->c = c; if (z->c >= z->l) goto lab3; z->c++; /* goto, line 29 */ } { int ret; ret = slice_from_s(z, 1, s_4); /* <-, line 29 */ if (ret < 0) return ret; } z->B[0] = 1; /* set Y_found, line 29 */ continue; lab3: z->c = c; break; } z->c = c; } return 1; }
static int r_postlude(struct SN_env * z) { if (!(z->B[0])) return 0; /* Boolean test Y_found, line 202 */ while(1) { /* repeat, line 202 */ int c = z->c; while(1) { /* goto, line 202 */ int c = z->c; z->bra = z->c; /* [, line 202 */ if (!(eq_s(z, 1, s_48))) goto lab1; z->ket = z->c; /* ], line 202 */ z->c = c; break; lab1: z->c = c; if (z->c >= z->l) goto lab0; z->c++; /* goto, line 202 */ } { int ret; ret = slice_from_s(z, 1, s_49); /* <-, line 202 */ if (ret < 0) return ret; } continue; lab0: z->c = c; break; } return 1; }
static int r_prelude(struct SN_env * z) { while(1) { /* repeat, line 38 */ int c = z->c; while(1) { /* goto, line 38 */ int c = z->c; { int c = z->c; /* or, line 44 */ if (!(in_grouping(z, g_v, 97, 251))) goto lab3; z->bra = z->c; /* [, line 40 */ { int c = z->c; /* or, line 40 */ if (!(eq_s(z, 1, s_0))) goto lab5; z->ket = z->c; /* ], line 40 */ if (!(in_grouping(z, g_v, 97, 251))) goto lab5; slice_from_s(z, 1, s_1); /* <-, line 40 */ goto lab4; lab5: z->c = c; if (!(eq_s(z, 1, s_2))) goto lab6; z->ket = z->c; /* ], line 41 */ if (!(in_grouping(z, g_v, 97, 251))) goto lab6; slice_from_s(z, 1, s_3); /* <-, line 41 */ goto lab4; lab6: z->c = c; if (!(eq_s(z, 1, s_4))) goto lab3; z->ket = z->c; /* ], line 42 */ slice_from_s(z, 1, s_5); /* <-, line 42 */ } lab4: goto lab2; lab3: z->c = c; z->bra = z->c; /* [, line 45 */ if (!(eq_s(z, 1, s_6))) goto lab7; z->ket = z->c; /* ], line 45 */ if (!(in_grouping(z, g_v, 97, 251))) goto lab7; slice_from_s(z, 1, s_7); /* <-, line 45 */ goto lab2; lab7: z->c = c; if (!(eq_s(z, 1, s_8))) goto lab1; z->bra = z->c; /* [, line 47 */ if (!(eq_s(z, 1, s_9))) goto lab1; z->ket = z->c; /* ], line 47 */ slice_from_s(z, 1, s_10); /* <-, line 47 */ } lab2: z->c = c; break; lab1: z->c = c; if (z->c >= z->l) goto lab0; z->c++; } continue; lab0: z->c = c; break; } return 1; }
static int r_KER(struct SN_env * z) { /* forwardmode */ if (out_grouping_U(z, g_vowel, 97, 117, 0)) return 0; /* non vowel, line 143 */ if (!(eq_s(z, 2, s_0))) return 0; /* literal, line 143 */ return 1; }
extern int porter_UTF_8_stem(struct SN_env * z) { z->B[0] = 0; /* unset Y_found, line 115 */ { int c = z->c; /* do, line 116 */ z->bra = z->c; /* [, line 116 */ if (!(eq_s(z, 1, s_29))) goto lab0; z->ket = z->c; /* ], line 116 */ { int ret; ret = slice_from_s(z, 1, s_30); /* <-, line 116 */ if (ret < 0) return ret; } z->B[0] = 1; /* set Y_found, line 116 */ lab0: z->c = c; } { int c = z->c; /* do, line 117 */ while(1) { /* repeat, line 117 */ int c = z->c; while(1) { /* goto, line 117 */ int c = z->c; if (!(in_grouping_U(z, g_v, 97, 121))) goto lab3; z->bra = z->c; /* [, line 117 */ if (!(eq_s(z, 1, s_31))) goto lab3; z->ket = z->c; /* ], line 117 */ z->c = c; break; lab3: z->c = c; { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab2; z->c = c; /* goto, line 117 */ } } { int ret; ret = slice_from_s(z, 1, s_32); /* <-, line 117 */ if (ret < 0) return ret; } z->B[0] = 1; /* set Y_found, line 117 */ continue; lab2: z->c = c; break; } z->c = c; } z->I[0] = z->l; z->I[1] = z->l; { int c = z->c; /* do, line 121 */ while(1) { /* gopast, line 122 */ if (!(in_grouping_U(z, g_v, 97, 121))) goto lab5; break; lab5: { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab4; z->c = c; /* gopast, line 122 */ } } while(1) { /* gopast, line 122 */ if (!(out_grouping_U(z, g_v, 97, 121))) goto lab6; break; lab6: { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab4; z->c = c; /* gopast, line 122 */ } } z->I[0] = z->c; /* setmark p1, line 122 */ while(1) { /* gopast, line 123 */ if (!(in_grouping_U(z, g_v, 97, 121))) goto lab7; break; lab7: { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab4; z->c = c; /* gopast, line 123 */ } } while(1) { /* gopast, line 123 */ if (!(out_grouping_U(z, g_v, 97, 121))) goto lab8; break; lab8: { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab4; z->c = c; /* gopast, line 123 */ } } z->I[1] = z->c; /* setmark p2, line 123 */ lab4: z->c = c; } z->lb = z->c; z->c = z->l; /* backwards, line 126 */ { int m = z->l - z->c; (void) m; /* do, line 127 */ { int ret = r_Step_1a(z); if (ret == 0) goto lab9; /* call Step_1a, line 127 */ if (ret < 0) return ret; } lab9: z->c = z->l - m; } { int m = z->l - z->c; (void) m; /* do, line 128 */ { int ret = r_Step_1b(z); if (ret == 0) goto lab10; /* call Step_1b, line 128 */ if (ret < 0) return ret; } lab10: z->c = z->l - m; } { int m = z->l - z->c; (void) m; /* do, line 129 */ { int ret = r_Step_1c(z); if (ret == 0) goto lab11; /* call Step_1c, line 129 */ if (ret < 0) return ret; } lab11: z->c = z->l - m; } { int m = z->l - z->c; (void) m; /* do, line 130 */ { int ret = r_Step_2(z); if (ret == 0) goto lab12; /* call Step_2, line 130 */ if (ret < 0) return ret; } lab12: z->c = z->l - m; } { int m = z->l - z->c; (void) m; /* do, line 131 */ { int ret = r_Step_3(z); if (ret == 0) goto lab13; /* call Step_3, line 131 */ if (ret < 0) return ret; } lab13: z->c = z->l - m; } { int m = z->l - z->c; (void) m; /* do, line 132 */ { int ret = r_Step_4(z); if (ret == 0) goto lab14; /* call Step_4, line 132 */ if (ret < 0) return ret; } lab14: z->c = z->l - m; } { int m = z->l - z->c; (void) m; /* do, line 133 */ { int ret = r_Step_5a(z); if (ret == 0) goto lab15; /* call Step_5a, line 133 */ if (ret < 0) return ret; } lab15: z->c = z->l - m; } { int m = z->l - z->c; (void) m; /* do, line 134 */ { int ret = r_Step_5b(z); if (ret == 0) goto lab16; /* call Step_5b, line 134 */ if (ret < 0) return ret; } lab16: z->c = z->l - m; } z->c = z->lb; { int c = z->c; /* do, line 137 */ if (!(z->B[0])) goto lab17; /* Boolean test Y_found, line 137 */ while(1) { /* repeat, line 137 */ int c = z->c; while(1) { /* goto, line 137 */ int c = z->c; z->bra = z->c; /* [, line 137 */ if (!(eq_s(z, 1, s_33))) goto lab19; z->ket = z->c; /* ], line 137 */ z->c = c; break; lab19: z->c = c; { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab18; z->c = c; /* goto, line 137 */ } } { int ret; ret = slice_from_s(z, 1, s_34); /* <-, line 137 */ if (ret < 0) return ret; } continue; lab18: z->c = c; break; } lab17: z->c = c; } return 1; }
static int r_prelude(struct SN_env * z) { int among_var; { int c_test = z->c; /* test, line 35 */ while(1) { /* repeat, line 35 */ int c = z->c; z->bra = z->c; /* [, line 36 */ among_var = find_among(z, a_0, 7); /* substring, line 36 */ if (!(among_var)) goto lab0; z->ket = z->c; /* ], line 36 */ switch(among_var) { case 0: goto lab0; case 1: slice_from_s(z, 1, s_0); /* <-, line 37 */ break; case 2: slice_from_s(z, 1, s_1); /* <-, line 38 */ break; case 3: slice_from_s(z, 1, s_2); /* <-, line 39 */ break; case 4: slice_from_s(z, 1, s_3); /* <-, line 40 */ break; case 5: slice_from_s(z, 1, s_4); /* <-, line 41 */ break; case 6: slice_from_s(z, 2, s_5); /* <-, line 42 */ break; case 7: if (z->c >= z->l) goto lab0; z->c++; /* next, line 43 */ break; } continue; lab0: z->c = c; break; } z->c = c_test; } while(1) { /* repeat, line 46 */ int c = z->c; while(1) { /* goto, line 46 */ int c = z->c; if (!(in_grouping(z, g_v, 97, 249))) goto lab2; z->bra = z->c; /* [, line 47 */ { int c = z->c; /* or, line 47 */ if (!(eq_s(z, 1, s_6))) goto lab4; z->ket = z->c; /* ], line 47 */ if (!(in_grouping(z, g_v, 97, 249))) goto lab4; slice_from_s(z, 1, s_7); /* <-, line 47 */ goto lab3; lab4: z->c = c; if (!(eq_s(z, 1, s_8))) goto lab2; z->ket = z->c; /* ], line 48 */ if (!(in_grouping(z, g_v, 97, 249))) goto lab2; slice_from_s(z, 1, s_9); /* <-, line 48 */ } lab3: z->c = c; break; lab2: z->c = c; if (z->c >= z->l) goto lab1; z->c++; } continue; lab1: z->c = c; break; } return 1; }
static int r_prelude(struct SN_env * z) { int among_var; { int c_test = z->c; /* test, line 42 */ while(1) { /* repeat, line 42 */ int c = z->c; z->bra = z->c; /* [, line 43 */ among_var = find_among(z, a_0, 11); /* substring, line 43 */ if (!(among_var)) goto lab0; z->ket = z->c; /* ], line 43 */ switch(among_var) { case 0: goto lab0; case 1: { int ret; ret = slice_from_s(z, 1, s_0); /* <-, line 45 */ if (ret < 0) return ret; } break; case 2: { int ret; ret = slice_from_s(z, 1, s_1); /* <-, line 47 */ if (ret < 0) return ret; } break; case 3: { int ret; ret = slice_from_s(z, 1, s_2); /* <-, line 49 */ if (ret < 0) return ret; } break; case 4: { int ret; ret = slice_from_s(z, 1, s_3); /* <-, line 51 */ if (ret < 0) return ret; } break; case 5: { int ret; ret = slice_from_s(z, 1, s_4); /* <-, line 53 */ if (ret < 0) return ret; } break; case 6: { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab0; z->c = c; /* next, line 54 */ } break; } continue; lab0: z->c = c; break; } z->c = c_test; } { int c = z->c; /* try, line 57 */ z->bra = z->c; /* [, line 57 */ if (!(eq_s(z, 1, s_5))) { z->c = c; goto lab1; } z->ket = z->c; /* ], line 57 */ { int ret; ret = slice_from_s(z, 1, s_6); /* <-, line 57 */ if (ret < 0) return ret; } lab1: ; } while(1) { /* repeat, line 58 */ int c = z->c; while(1) { /* goto, line 58 */ int c = z->c; if (!(in_grouping_U(z, g_v, 97, 232))) goto lab3; z->bra = z->c; /* [, line 59 */ { int c = z->c; /* or, line 59 */ if (!(eq_s(z, 1, s_7))) goto lab5; z->ket = z->c; /* ], line 59 */ if (!(in_grouping_U(z, g_v, 97, 232))) goto lab5; { int ret; ret = slice_from_s(z, 1, s_8); /* <-, line 59 */ if (ret < 0) return ret; } goto lab4; lab5: z->c = c; if (!(eq_s(z, 1, s_9))) goto lab3; z->ket = z->c; /* ], line 60 */ { int ret; ret = slice_from_s(z, 1, s_10); /* <-, line 60 */ if (ret < 0) return ret; } } lab4: z->c = c; break; lab3: z->c = c; { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab2; z->c = c; /* goto, line 58 */ } } continue; lab2: z->c = c; break; } return 1; }
static int r_prelude(struct SN_env * z) { while(1) { /* repeat, line 38 */ int c = z->c; while(1) { /* goto, line 38 */ int c = z->c; { int c = z->c; /* or, line 44 */ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab3; z->bra = z->c; /* [, line 40 */ { int c = z->c; /* or, line 40 */ if (!(eq_s(z, 1, s_0))) goto lab5; z->ket = z->c; /* ], line 40 */ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab5; { int ret; ret = slice_from_s(z, 1, s_1); /* <-, line 40 */ if (ret < 0) return ret; } goto lab4; lab5: z->c = c; if (!(eq_s(z, 1, s_2))) goto lab6; z->ket = z->c; /* ], line 41 */ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab6; { int ret; ret = slice_from_s(z, 1, s_3); /* <-, line 41 */ if (ret < 0) return ret; } goto lab4; lab6: z->c = c; if (!(eq_s(z, 1, s_4))) goto lab3; z->ket = z->c; /* ], line 42 */ { int ret; ret = slice_from_s(z, 1, s_5); /* <-, line 42 */ if (ret < 0) return ret; } } lab4: goto lab2; lab3: z->c = c; z->bra = z->c; /* [, line 45 */ if (!(eq_s(z, 1, s_6))) goto lab7; z->ket = z->c; /* ], line 45 */ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab7; { int ret; ret = slice_from_s(z, 1, s_7); /* <-, line 45 */ if (ret < 0) return ret; } goto lab2; lab7: z->c = c; if (!(eq_s(z, 1, s_8))) goto lab1; z->bra = z->c; /* [, line 47 */ if (!(eq_s(z, 1, s_9))) goto lab1; z->ket = z->c; /* ], line 47 */ { int ret; ret = slice_from_s(z, 1, s_10); /* <-, line 47 */ if (ret < 0) return ret; } } lab2: z->c = c; break; lab1: z->c = c; { int c = skip_utf8(z->p, z->c, 0, z->l, 1); if (c < 0) goto lab0; z->c = c; /* goto, line 38 */ } } continue; lab0: z->c = c; break; } return 1; }
static int r_prelude(struct SN_env * z) { { int c_test = z->c; /* test, line 30 */ while(1) { /* repeat, line 30 */ int c = z->c; { int c = z->c; /* or, line 33 */ z->bra = z->c; /* [, line 32 */ if (!(eq_s(z, 1, s_0))) goto lab2; z->ket = z->c; /* ], line 32 */ { int ret; ret = slice_from_s(z, 2, s_1); /* <-, line 32 */ if (ret < 0) return ret; } goto lab1; lab2: z->c = c; if (z->c >= z->l) goto lab0; z->c++; /* next, line 33 */ } lab1: continue; lab0: z->c = c; break; } z->c = c_test; } while(1) { /* repeat, line 36 */ int c = z->c; while(1) { /* goto, line 36 */ int c = z->c; if (!(in_grouping(z, g_v, 97, 252))) goto lab4; z->bra = z->c; /* [, line 37 */ { int c = z->c; /* or, line 37 */ if (!(eq_s(z, 1, s_2))) goto lab6; z->ket = z->c; /* ], line 37 */ if (!(in_grouping(z, g_v, 97, 252))) goto lab6; { int ret; ret = slice_from_s(z, 1, s_3); /* <-, line 37 */ if (ret < 0) return ret; } goto lab5; lab6: z->c = c; if (!(eq_s(z, 1, s_4))) goto lab4; z->ket = z->c; /* ], line 38 */ if (!(in_grouping(z, g_v, 97, 252))) goto lab4; { int ret; ret = slice_from_s(z, 1, s_5); /* <-, line 38 */ if (ret < 0) return ret; } } lab5: z->c = c; break; lab4: z->c = c; if (z->c >= z->l) goto lab3; z->c++; /* goto, line 36 */ } continue; lab3: z->c = c; break; } return 1; }