/* Generated by re2c */
#include "re2c/base.h"

namespace re2c_submatch_23__cat4_0 {





#define YYMAXFILL 2


struct input_t {
    FILE* file;
    char *buf;
    char *lim;
    char *cur;
    char *mar;
    char *tok;
    char *yyt1;
char *yyt2;
char *yyt3;
char *yyt4;
char *yyt5;
char *yyt6;
char *yyt7;
char *yyt8;

    
    taglistpool_t tlp;
    int eof;
};

static inline void free_input(input_t *in) {
    free(in->buf);
    taglistpool_free(&in->tlp);
    if (in->file) fclose(in->file);
}

static inline int fill_buffered_eof(input_t *in) {
    size_t free;
    if (in->eof) return 1;

    free = in->tok - in->buf;
    assert(free > 0);

    memmove(in->buf, in->tok, in->lim - in->tok);
    in->lim -= free;
    in->cur -= free;
    in->mar -= free;
    in->tok -= free;
    if (in->yyt1) in->yyt1 -= free;
if (in->yyt2) in->yyt2 -= free;
if (in->yyt3) in->yyt3 -= free;
if (in->yyt4) in->yyt4 -= free;
if (in->yyt5) in->yyt5 -= free;
if (in->yyt6) in->yyt6 -= free;
if (in->yyt7) in->yyt7 -= free;
if (in->yyt8) in->yyt8 -= free;


    in->lim += fread(in->lim, 1, free, in->file);
    in->lim[0] = 0;

    if (in->lim < in->buf + SIZE) {
        in->eof = 1;
    }

    return 0;
}

static inline int fill_buffered_scc(input_t *in, size_t need) {
    size_t free;
    if (in->eof) return 1;

    free = in->tok - in->buf;
    assert(free >= need);

    memmove(in->buf, in->tok, in->lim - in->tok);
    in->lim -= free;
    in->cur -= free;
    in->mar -= free;
    in->tok -= free;
    if (in->yyt1) in->yyt1 -= free;
if (in->yyt2) in->yyt2 -= free;
if (in->yyt3) in->yyt3 -= free;
if (in->yyt4) in->yyt4 -= free;
if (in->yyt5) in->yyt5 -= free;
if (in->yyt6) in->yyt6 -= free;
if (in->yyt7) in->yyt7 -= free;
if (in->yyt8) in->yyt8 -= free;


    in->lim += fread(in->lim, 1, free, in->file);

    if (in->lim < in->buf + SIZE) {
        in->eof = 1;
        memset(in->lim, 0, YYMAXFILL);
        in->lim += YYMAXFILL;
    }

    return 0;
}

static inline void init_input_simple(input_t *in, const char* fname) {
    FILE* f = fopen(fname, "rb");

    fseek(f, 0, SEEK_END);
    size_t flen = (size_t) ftell(f);
    fseek(f, 0, SEEK_SET);

    in->file = nullptr; // unused
    in->buf = (char*) malloc(flen + 1);
    in->lim = nullptr; // unused
    in->cur = in->mar = in->tok = in->buf;
    in->yyt1 = 0;
in->yyt2 = 0;
in->yyt3 = 0;
in->yyt4 = 0;
in->yyt5 = 0;
in->yyt6 = 0;
in->yyt7 = 0;
in->yyt8 = 0;

    
    taglistpool_init(&in->tlp);
    in->eof = 0; // unused

    fread(in->buf, 1, flen, f);
    in->buf[flen] = 0;

    fclose(f);
}

static inline void init_input_buffered_eof(input_t *in, const char* fname) {
    in->file = fopen(fname, "rb");
    in->buf = (char*) malloc(SIZE + 1);
    in->lim = in->buf + SIZE;
    in->cur = in->lim;
    in->mar = in->lim;
    in->tok = in->lim;
    in->yyt1 = 0;
in->yyt2 = 0;
in->yyt3 = 0;
in->yyt4 = 0;
in->yyt5 = 0;
in->yyt6 = 0;
in->yyt7 = 0;
in->yyt8 = 0;

    
    taglistpool_init(&in->tlp);
    in->eof = 0;
    fill_buffered_eof(in);
}

static inline void init_input_buffered_scc(input_t *in, const char* fname) {
    in->file = fopen(fname, "rb");
    in->buf = (char*) malloc(SIZE + YYMAXFILL);
    in->lim = in->buf + SIZE;
    in->cur = in->lim;
    in->mar = in->lim;
    in->tok = in->lim;
    in->yyt1 = 0;
in->yyt2 = 0;
in->yyt3 = 0;
in->yyt4 = 0;
in->yyt5 = 0;
in->yyt6 = 0;
in->yyt7 = 0;
in->yyt8 = 0;

    
    taglistpool_init(&in->tlp);
    in->eof = 0;
}

#define YYCURSOR cur
#define YYMARKER mar
#define YYTOKEN tok
#define TLP_CLEAR() do { \
    in->tlp.next = in->tlp.head; \
     \
} while (0)

int lex_simple(input_t *in) {
    char *cur = in->buf, *mar, *tok;
    (void) mar; // maybe unused
    (void) tok; // maybe unused
    char *yyt1;
char *yyt2;
char *yyt3;
char *yyt4;
char *yyt5;
char *yyt6;
char *yyt7;
char *yyt8;

    
    const char* a0;const char* a1;const char* a2;const char* a3;const char* b0;const char* b1;const char* b2;const char* b3;
    
    long count = 0;
loop:
    tok = cur;
    
{
	char yych;
	yych = *YYCURSOR;
	switch (yych) {
		case 0x00: goto yy1;
		case '\n':
			yyt1 = YYCURSOR;
			yyt2 = YYCURSOR;
			yyt3 = YYCURSOR;
			yyt4 = YYCURSOR;
			yyt5 = YYCURSOR;
			yyt6 = YYCURSOR;
			yyt7 = YYCURSOR;
			yyt8 = YYCURSOR;
			goto yy4;
		case 'a':
			yyt1 = YYCURSOR;
			goto yy5;
		case 'b':
			yyt1 = YYCURSOR;
			yyt8 = YYCURSOR;
			goto yy6;
		default: goto yy2;
	}
yy1:
	++YYCURSOR;
	{ return count; }
yy2:
	++YYCURSOR;
yy3:
	{ return -1; }
yy4:
	++YYCURSOR;
	a0 = yyt1;
	b0 = yyt8;
	a1 = yyt2;
	b1 = yyt3;
	a2 = yyt4;
	b2 = yyt5;
	a3 = yyt6;
	b3 = yyt7;
	{
        OUTS(a0, b0); OUTC('.'); OUTS(b0, a1); OUTC('.');
        OUTS(a1, b1); OUTC('.'); OUTS(b1, a2); OUTC('.');
        OUTS(a2, b2); OUTC('.'); OUTS(b2, a3); OUTC('.');
        OUTS(a3, b3); OUTC('.'); OUTS(b3, YYCURSOR);
        goto loop;
    }
yy5:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case '\n':
		case 'a':
		case 'b': goto yy8;
		default: goto yy3;
	}
yy6:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case '\n':
		case 'a':
		case 'b': goto yy11;
		default: goto yy3;
	}
yy7:
	yych = *++YYCURSOR;
yy8:
	switch (yych) {
		case '\n':
			yyt2 = YYCURSOR;
			yyt3 = YYCURSOR;
			yyt4 = YYCURSOR;
			yyt5 = YYCURSOR;
			yyt6 = YYCURSOR;
			yyt7 = YYCURSOR;
			yyt8 = YYCURSOR;
			goto yy4;
		case 'a': goto yy7;
		case 'b':
			yyt8 = YYCURSOR;
			goto yy10;
		default: goto yy9;
	}
yy9:
	YYCURSOR = YYMARKER;
	goto yy3;
yy10:
	yych = *++YYCURSOR;
yy11:
	switch (yych) {
		case '\n':
			yyt2 = YYCURSOR;
			yyt3 = YYCURSOR;
			yyt4 = YYCURSOR;
			yyt5 = YYCURSOR;
			yyt6 = YYCURSOR;
			yyt7 = YYCURSOR;
			goto yy4;
		case 'a':
			yyt2 = YYCURSOR;
			goto yy12;
		case 'b': goto yy10;
		default: goto yy9;
	}
yy12:
	yych = *++YYCURSOR;
	switch (yych) {
		case '\n':
			yyt3 = YYCURSOR;
			yyt4 = YYCURSOR;
			yyt5 = YYCURSOR;
			yyt6 = YYCURSOR;
			yyt7 = YYCURSOR;
			goto yy4;
		case 'a': goto yy12;
		case 'b':
			yyt3 = YYCURSOR;
			goto yy13;
		default: goto yy9;
	}
yy13:
	yych = *++YYCURSOR;
	switch (yych) {
		case '\n':
			yyt4 = YYCURSOR;
			yyt5 = YYCURSOR;
			yyt6 = YYCURSOR;
			yyt7 = YYCURSOR;
			goto yy4;
		case 'a':
			yyt4 = YYCURSOR;
			goto yy14;
		case 'b': goto yy13;
		default: goto yy9;
	}
yy14:
	yych = *++YYCURSOR;
	switch (yych) {
		case '\n':
			yyt5 = YYCURSOR;
			yyt6 = YYCURSOR;
			yyt7 = YYCURSOR;
			goto yy4;
		case 'a': goto yy14;
		case 'b':
			yyt5 = YYCURSOR;
			goto yy15;
		default: goto yy9;
	}
yy15:
	yych = *++YYCURSOR;
	switch (yych) {
		case '\n':
			yyt6 = YYCURSOR;
			yyt7 = YYCURSOR;
			goto yy4;
		case 'a':
			yyt6 = YYCURSOR;
			goto yy16;
		case 'b': goto yy15;
		default: goto yy9;
	}
yy16:
	yych = *++YYCURSOR;
	switch (yych) {
		case '\n':
			yyt7 = YYCURSOR;
			goto yy4;
		case 'a': goto yy16;
		case 'b':
			yyt7 = YYCURSOR;
			goto yy17;
		default: goto yy9;
	}
yy17:
	yych = *++YYCURSOR;
	switch (yych) {
		case '\n': goto yy4;
		case 'b': goto yy17;
		default: goto yy9;
	}
}

}

#undef YYCURSOR
#undef YYMARKER
#undef YYTOKEN
#undef TLP_CLEAR

#define YYCURSOR in->cur
#define YYMARKER in->mar
#define YYLIMIT in->lim
#define YYTOKEN in->tok
#define TLP_CLEAR() do { \
    in->tlp.next = in->tlp.head; \
     \
} while (0)

int lex_buffered_eof(input_t *in) {
    const char* a0;const char* a1;const char* a2;const char* a3;const char* b0;const char* b1;const char* b2;const char* b3;
    
    long count = 0;
loop:
    in->tok = in->cur;
    
{
	char yych;
yyFillLabel0:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt1 = YYCURSOR;
			in->yyt2 = YYCURSOR;
			in->yyt3 = YYCURSOR;
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			in->yyt8 = YYCURSOR;
			goto yy21;
		case 'a':
			in->yyt1 = YYCURSOR;
			goto yy22;
		case 'b':
			in->yyt1 = YYCURSOR;
			in->yyt8 = YYCURSOR;
			goto yy23;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel0;
				goto yy35;
			}
			goto yy19;
	}
yy19:
	++YYCURSOR;
yy20:
	{ return -1; }
yy21:
	++YYCURSOR;
	a0 = in->yyt1;
	b0 = in->yyt8;
	a1 = in->yyt2;
	b1 = in->yyt3;
	a2 = in->yyt4;
	b2 = in->yyt5;
	a3 = in->yyt6;
	b3 = in->yyt7;
	{
        OUTS(a0, b0); OUTC('.'); OUTS(b0, a1); OUTC('.');
        OUTS(a1, b1); OUTC('.'); OUTS(b1, a2); OUTC('.');
        OUTS(a2, b2); OUTC('.'); OUTS(b2, a3); OUTC('.');
        OUTS(a3, b3); OUTC('.'); OUTS(b3, YYCURSOR);
        goto loop;
    }
yy22:
	YYMARKER = ++YYCURSOR;
yyFillLabel1:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
		case 'a':
		case 'b': goto yy25;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel1;
			}
			goto yy20;
	}
yy23:
	YYMARKER = ++YYCURSOR;
yyFillLabel2:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
		case 'a':
		case 'b': goto yy28;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel2;
			}
			goto yy20;
	}
yy24:
	++YYCURSOR;
yyFillLabel3:
	yych = *YYCURSOR;
yy25:
	switch (yych) {
		case '\n':
			in->yyt2 = YYCURSOR;
			in->yyt3 = YYCURSOR;
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			in->yyt8 = YYCURSOR;
			goto yy21;
		case 'a': goto yy24;
		case 'b':
			in->yyt8 = YYCURSOR;
			goto yy27;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel3;
			}
			goto yy26;
	}
yy26:
	YYCURSOR = YYMARKER;
	goto yy20;
yy27:
	++YYCURSOR;
yyFillLabel4:
	yych = *YYCURSOR;
yy28:
	switch (yych) {
		case '\n':
			in->yyt2 = YYCURSOR;
			in->yyt3 = YYCURSOR;
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy21;
		case 'a':
			in->yyt2 = YYCURSOR;
			goto yy29;
		case 'b': goto yy27;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel4;
			}
			goto yy26;
	}
yy29:
	++YYCURSOR;
yyFillLabel5:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt3 = YYCURSOR;
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy21;
		case 'a': goto yy29;
		case 'b':
			in->yyt3 = YYCURSOR;
			goto yy30;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel5;
			}
			goto yy26;
	}
yy30:
	++YYCURSOR;
yyFillLabel6:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy21;
		case 'a':
			in->yyt4 = YYCURSOR;
			goto yy31;
		case 'b': goto yy30;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel6;
			}
			goto yy26;
	}
yy31:
	++YYCURSOR;
yyFillLabel7:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy21;
		case 'a': goto yy31;
		case 'b':
			in->yyt5 = YYCURSOR;
			goto yy32;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel7;
			}
			goto yy26;
	}
yy32:
	++YYCURSOR;
yyFillLabel8:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy21;
		case 'a':
			in->yyt6 = YYCURSOR;
			goto yy33;
		case 'b': goto yy32;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel8;
			}
			goto yy26;
	}
yy33:
	++YYCURSOR;
yyFillLabel9:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt7 = YYCURSOR;
			goto yy21;
		case 'a': goto yy33;
		case 'b':
			in->yyt7 = YYCURSOR;
			goto yy34;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel9;
			}
			goto yy26;
	}
yy34:
	++YYCURSOR;
yyFillLabel10:
	yych = *YYCURSOR;
	switch (yych) {
		case '\n': goto yy21;
		case 'b': goto yy34;
		default:
			if (YYLIMIT <= YYCURSOR) {
				if (fill_buffered_eof(in) == 0) goto yyFillLabel10;
			}
			goto yy26;
	}
yy35:
	{ return count; }
}

}

int lex_buffered_scc(input_t *in) {
    const char* a0;const char* a1;const char* a2;const char* a3;const char* b0;const char* b1;const char* b2;const char* b3;
    
    long count = 0;
loop:
    in->tok = in->cur;
    
{
	char yych;
	if ((YYLIMIT - YYCURSOR) < 2) if (fill_buffered_scc(in, 2) != 0) return -2;
	yych = *YYCURSOR;
	switch (yych) {
		case 0x00: goto yy37;
		case '\n':
			in->yyt1 = YYCURSOR;
			in->yyt2 = YYCURSOR;
			in->yyt3 = YYCURSOR;
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			in->yyt8 = YYCURSOR;
			goto yy40;
		case 'a':
			in->yyt1 = YYCURSOR;
			goto yy41;
		case 'b':
			in->yyt1 = YYCURSOR;
			in->yyt8 = YYCURSOR;
			goto yy42;
		default: goto yy38;
	}
yy37:
	++YYCURSOR;
	{ return count; }
yy38:
	++YYCURSOR;
yy39:
	{ return -1; }
yy40:
	++YYCURSOR;
	a0 = in->yyt1;
	b0 = in->yyt8;
	a1 = in->yyt2;
	b1 = in->yyt3;
	a2 = in->yyt4;
	b2 = in->yyt5;
	a3 = in->yyt6;
	b3 = in->yyt7;
	{
        OUTS(a0, b0); OUTC('.'); OUTS(b0, a1); OUTC('.');
        OUTS(a1, b1); OUTC('.'); OUTS(b1, a2); OUTC('.');
        OUTS(a2, b2); OUTC('.'); OUTS(b2, a3); OUTC('.');
        OUTS(a3, b3); OUTC('.'); OUTS(b3, YYCURSOR);
        goto loop;
    }
yy41:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case '\n':
		case 'a':
		case 'b': goto yy44;
		default: goto yy39;
	}
yy42:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case '\n':
		case 'a':
		case 'b': goto yy47;
		default: goto yy39;
	}
yy43:
	++YYCURSOR;
	if (YYLIMIT <= YYCURSOR) if (fill_buffered_scc(in, 1) != 0) return -2;
	yych = *YYCURSOR;
yy44:
	switch (yych) {
		case '\n':
			in->yyt2 = YYCURSOR;
			in->yyt3 = YYCURSOR;
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			in->yyt8 = YYCURSOR;
			goto yy40;
		case 'a': goto yy43;
		case 'b':
			in->yyt8 = YYCURSOR;
			goto yy46;
		default: goto yy45;
	}
yy45:
	YYCURSOR = YYMARKER;
	goto yy39;
yy46:
	++YYCURSOR;
	if (YYLIMIT <= YYCURSOR) if (fill_buffered_scc(in, 1) != 0) return -2;
	yych = *YYCURSOR;
yy47:
	switch (yych) {
		case '\n':
			in->yyt2 = YYCURSOR;
			in->yyt3 = YYCURSOR;
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy40;
		case 'a':
			in->yyt2 = YYCURSOR;
			goto yy48;
		case 'b': goto yy46;
		default: goto yy45;
	}
yy48:
	++YYCURSOR;
	if (YYLIMIT <= YYCURSOR) if (fill_buffered_scc(in, 1) != 0) return -2;
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt3 = YYCURSOR;
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy40;
		case 'a': goto yy48;
		case 'b':
			in->yyt3 = YYCURSOR;
			goto yy49;
		default: goto yy45;
	}
yy49:
	++YYCURSOR;
	if (YYLIMIT <= YYCURSOR) if (fill_buffered_scc(in, 1) != 0) return -2;
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt4 = YYCURSOR;
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy40;
		case 'a':
			in->yyt4 = YYCURSOR;
			goto yy50;
		case 'b': goto yy49;
		default: goto yy45;
	}
yy50:
	++YYCURSOR;
	if (YYLIMIT <= YYCURSOR) if (fill_buffered_scc(in, 1) != 0) return -2;
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt5 = YYCURSOR;
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy40;
		case 'a': goto yy50;
		case 'b':
			in->yyt5 = YYCURSOR;
			goto yy51;
		default: goto yy45;
	}
yy51:
	++YYCURSOR;
	if (YYLIMIT <= YYCURSOR) if (fill_buffered_scc(in, 1) != 0) return -2;
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt6 = YYCURSOR;
			in->yyt7 = YYCURSOR;
			goto yy40;
		case 'a':
			in->yyt6 = YYCURSOR;
			goto yy52;
		case 'b': goto yy51;
		default: goto yy45;
	}
yy52:
	++YYCURSOR;
	if (YYLIMIT <= YYCURSOR) if (fill_buffered_scc(in, 1) != 0) return -2;
	yych = *YYCURSOR;
	switch (yych) {
		case '\n':
			in->yyt7 = YYCURSOR;
			goto yy40;
		case 'a': goto yy52;
		case 'b':
			in->yyt7 = YYCURSOR;
			goto yy53;
		default: goto yy45;
	}
yy53:
	++YYCURSOR;
	if (YYLIMIT <= YYCURSOR) if (fill_buffered_scc(in, 1) != 0) return -2;
	yych = *YYCURSOR;
	switch (yych) {
		case '\n': goto yy40;
		case 'b': goto yy53;
		default: goto yy45;
	}
}

}

#undef YYCURSOR
#undef YYMARKER
#undef YYLIMIT
#undef YYTOKEN
#undef TLP_CLEAR

#define FN_BENCH(suffix) \
void bench_##suffix::operator()( \
        benchmark::State &state, const char* input, long expected) const { \
    long count = 0; \
    for (auto _ : state) { \
        input_t in; \
        init_input_##suffix(&in, input); \
        count = lex_##suffix(&in); \
        free_input(&in); \
    } \
    if (count != expected) state.SkipWithError("re2c: error"); \
}
FN_BENCH(simple)
FN_BENCH(buffered_eof)
FN_BENCH(buffered_scc)
#undef FN_BENCH

#define FN_TEST(suffix) \
bool test_##suffix(const char* input, long expected) { \
    input_t in; \
    init_input_##suffix(&in, input); \
    long count = lex_##suffix(&in); \
    switch (count) { \
    default: \
        if (count != expected) { \
            fprintf(stderr, "re2c: wrong count, expected %ld, got %ld\n", expected, count); \
        } \
        break; \
    case -1: \
        fprintf(stderr, "re2c: syntax error\n"); \
        break; \
    case -2: \
        fprintf(stderr, "re2c: yyfill error\n"); \
        break; \
    } \
    free_input(&in); \
    return count == expected; \
}
FN_TEST(simple)
FN_TEST(buffered_eof)
FN_TEST(buffered_scc)
#undef FN_TEST


} // namespace re2c_submatch_23__cat4_0
