/* Generated by re2c */
#line 1 "encodings/unicode_group_N_u_encoding_policy_substitute.re"
// re2c $INPUT -o $OUTPUT -u --encoding-policy substitute
#include <stdio.h>

#define YYCTYPE unsigned int
bool scan(const YYCTYPE * start, const YYCTYPE * const limit)
{
	__attribute__((unused)) const YYCTYPE * YYMARKER; // silence compiler warnings when YYMARKER is not used
#	define YYCURSOR start
N:
	
#line 14 "encodings/unicode_group_N_u_encoding_policy_substitute.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x0000AA59) {
		if (yych <= 0x000019CF) {
			if (yych <= 0x00000C6F) {
				if (yych <= 0x0000096F) {
					if (yych <= 0x000000BE) {
						if (yych <= 0x000000B3) {
							if (yych <= '/') goto yy1;
							if (yych <= '9') goto yy2;
							if (yych >= 0x000000B2) goto yy2;
						} else {
							if (yych == 0x000000B9) goto yy2;
							if (yych >= 0x000000BC) goto yy2;
						}
					} else {
						if (yych <= 0x000006F9) {
							if (yych <= 0x0000065F) goto yy1;
							if (yych <= 0x00000669) goto yy2;
							if (yych >= 0x000006F0) goto yy2;
						} else {
							if (yych <= 0x000007BF) goto yy1;
							if (yych <= 0x000007C9) goto yy2;
							if (yych >= 0x00000966) goto yy2;
						}
					}
				} else {
					if (yych <= 0x00000AEF) {
						if (yych <= 0x000009F9) {
							if (yych <= 0x000009E5) goto yy1;
							if (yych <= 0x000009EF) goto yy2;
							if (yych >= 0x000009F4) goto yy2;
						} else {
							if (yych <= 0x00000A65) goto yy1;
							if (yych <= 0x00000A6F) goto yy2;
							if (yych >= 0x00000AE6) goto yy2;
						}
					} else {
						if (yych <= 0x00000B77) {
							if (yych <= 0x00000B65) goto yy1;
							if (yych <= 0x00000B6F) goto yy2;
							if (yych >= 0x00000B72) goto yy2;
						} else {
							if (yych <= 0x00000BE5) goto yy1;
							if (yych <= 0x00000BF2) goto yy2;
							if (yych >= 0x00000C66) goto yy2;
						}
					}
				}
			} else {
				if (yych <= 0x00000F33) {
					if (yych <= 0x00000D78) {
						if (yych <= 0x00000CEF) {
							if (yych <= 0x00000C77) goto yy1;
							if (yych <= 0x00000C7E) goto yy2;
							if (yych >= 0x00000CE6) goto yy2;
						} else {
							if (yych <= 0x00000D57) goto yy1;
							if (yych <= 0x00000D5E) goto yy2;
							if (yych >= 0x00000D66) goto yy2;
						}
					} else {
						if (yych <= 0x00000E59) {
							if (yych <= 0x00000DE5) goto yy1;
							if (yych <= 0x00000DEF) goto yy2;
							if (yych >= 0x00000E50) goto yy2;
						} else {
							if (yych <= 0x00000ECF) goto yy1;
							if (yych <= 0x00000ED9) goto yy2;
							if (yych >= 0x00000F20) goto yy2;
						}
					}
				} else {
					if (yych <= 0x000016F0) {
						if (yych <= 0x00001099) {
							if (yych <= 0x0000103F) goto yy1;
							if (yych <= 0x00001049) goto yy2;
							if (yych >= 0x00001090) goto yy2;
						} else {
							if (yych <= 0x00001368) goto yy1;
							if (yych <= 0x0000137C) goto yy2;
							if (yych >= 0x000016EE) goto yy2;
						}
					} else {
						if (yych <= 0x000017F9) {
							if (yych <= 0x000017DF) goto yy1;
							if (yych <= 0x000017E9) goto yy2;
							if (yych >= 0x000017F0) goto yy2;
						} else {
							if (yych <= 0x00001819) {
								if (yych >= 0x00001810) goto yy2;
							} else {
								if (yych <= 0x00001945) goto yy1;
								if (yych <= 0x0000194F) goto yy2;
							}
						}
					}
				}
			}
		} else {
			if (yych <= 0x00003006) {
				if (yych <= 0x00002073) {
					if (yych <= 0x00001BAF) {
						if (yych <= 0x00001A8F) {
							if (yych <= 0x000019DA) goto yy2;
							if (yych <= 0x00001A7F) goto yy1;
							if (yych <= 0x00001A89) goto yy2;
						} else {
							if (yych <= 0x00001A99) goto yy2;
							if (yych <= 0x00001B4F) goto yy1;
							if (yych <= 0x00001B59) goto yy2;
						}
					} else {
						if (yych <= 0x00001C4F) {
							if (yych <= 0x00001BB9) goto yy2;
							if (yych <= 0x00001C3F) goto yy1;
							if (yych <= 0x00001C49) goto yy2;
						} else {
							if (yych <= 0x00001C59) goto yy2;
							if (yych == 0x00002070) goto yy2;
						}
					}
				} else {
					if (yych <= 0x0000245F) {
						if (yych <= 0x0000214F) {
							if (yych <= 0x00002079) goto yy2;
							if (yych <= 0x0000207F) goto yy1;
							if (yych <= 0x00002089) goto yy2;
						} else {
							if (yych <= 0x00002182) goto yy2;
							if (yych <= 0x00002184) goto yy1;
							if (yych <= 0x00002189) goto yy2;
						}
					} else {
						if (yych <= 0x00002775) {
							if (yych <= 0x0000249B) goto yy2;
							if (yych <= 0x000024E9) goto yy1;
							if (yych <= 0x000024FF) goto yy2;
						} else {
							if (yych <= 0x00002793) goto yy2;
							if (yych == 0x00002CFD) goto yy2;
						}
					}
				}
			} else {
				if (yych <= 0x000032B0) {
					if (yych <= 0x0000321F) {
						if (yych <= 0x00003037) {
							if (yych <= 0x00003007) goto yy2;
							if (yych <= 0x00003020) goto yy1;
							if (yych <= 0x00003029) goto yy2;
						} else {
							if (yych <= 0x0000303A) goto yy2;
							if (yych <= 0x00003191) goto yy1;
							if (yych <= 0x00003195) goto yy2;
						}
					} else {
						if (yych <= 0x00003250) {
							if (yych <= 0x00003229) goto yy2;
							if (yych <= 0x00003247) goto yy1;
							if (yych <= 0x0000324F) goto yy2;
						} else {
							if (yych <= 0x0000325F) goto yy2;
							if (yych <= 0x0000327F) goto yy1;
							if (yych <= 0x00003289) goto yy2;
						}
					}
				} else {
					if (yych <= 0x0000A8CF) {
						if (yych <= 0x0000A6E5) {
							if (yych <= 0x000032BF) goto yy2;
							if (yych <= 0x0000A61F) goto yy1;
							if (yych <= 0x0000A629) goto yy2;
						} else {
							if (yych <= 0x0000A6EF) goto yy2;
							if (yych <= 0x0000A82F) goto yy1;
							if (yych <= 0x0000A835) goto yy2;
						}
					} else {
						if (yych <= 0x0000A9CF) {
							if (yych <= 0x0000A8D9) goto yy2;
							if (yych <= 0x0000A8FF) goto yy1;
							if (yych <= 0x0000A909) goto yy2;
						} else {
							if (yych <= 0x0000A9EF) {
								if (yych <= 0x0000A9D9) goto yy2;
							} else {
								if (yych <= 0x0000A9F9) goto yy2;
								if (yych >= 0x0000AA50) goto yy2;
							}
						}
					}
				}
			}
		}
	} else {
		if (yych <= 0x000110EF) {
			if (yych <= 0x0001091B) {
				if (yych <= 0x00010341) {
					if (yych <= 0x00010178) {
						if (yych <= 0x0000FF19) {
							if (yych <= 0x0000ABEF) goto yy1;
							if (yych <= 0x0000ABF9) goto yy2;
							if (yych >= 0x0000FF10) goto yy2;
						} else {
							if (yych <= 0x00010106) goto yy1;
							if (yych <= 0x00010133) goto yy2;
							if (yych >= 0x00010140) goto yy2;
						}
					} else {
						if (yych <= 0x000102FB) {
							if (yych <= 0x00010189) goto yy1;
							if (yych <= 0x0001018B) goto yy2;
							if (yych >= 0x000102E1) goto yy2;
						} else {
							if (yych <= 0x0001031F) goto yy1;
							if (yych <= 0x00010323) goto yy2;
							if (yych >= 0x00010341) goto yy2;
						}
					}
				} else {
					if (yych <= 0x0001085F) {
						if (yych <= 0x000103D5) {
							if (yych == 0x0001034A) goto yy2;
							if (yych >= 0x000103D1) goto yy2;
						} else {
							if (yych <= 0x0001049F) goto yy1;
							if (yych <= 0x000104A9) goto yy2;
							if (yych >= 0x00010858) goto yy2;
						}
					} else {
						if (yych <= 0x000108AF) {
							if (yych <= 0x00010878) goto yy1;
							if (yych <= 0x0001087F) goto yy2;
							if (yych >= 0x000108A7) goto yy2;
						} else {
							if (yych <= 0x000108FA) goto yy1;
							if (yych <= 0x000108FF) goto yy2;
							if (yych >= 0x00010916) goto yy2;
						}
					}
				}
			} else {
				if (yych <= 0x00010B5F) {
					if (yych <= 0x00010A48) {
						if (yych <= 0x000109CF) {
							if (yych <= 0x000109BB) goto yy1;
							if (yych <= 0x000109BD) goto yy2;
							if (yych >= 0x000109C0) goto yy2;
						} else {
							if (yych <= 0x000109D1) goto yy1;
							if (yych <= 0x000109FF) goto yy2;
							if (yych >= 0x00010A40) goto yy2;
						}
					} else {
						if (yych <= 0x00010A9F) {
							if (yych <= 0x00010A7C) goto yy1;
							if (yych <= 0x00010A7E) goto yy2;
							if (yych >= 0x00010A9D) goto yy2;
						} else {
							if (yych <= 0x00010AEA) goto yy1;
							if (yych <= 0x00010AEF) goto yy2;
							if (yych >= 0x00010B58) goto yy2;
						}
					}
				} else {
					if (yych <= 0x00010D39) {
						if (yych <= 0x00010BAF) {
							if (yych <= 0x00010B77) goto yy1;
							if (yych <= 0x00010B7F) goto yy2;
							if (yych >= 0x00010BA9) goto yy2;
						} else {
							if (yych <= 0x00010CF9) goto yy1;
							if (yych <= 0x00010CFF) goto yy2;
							if (yych >= 0x00010D30) goto yy2;
						}
					} else {
						if (yych <= 0x00010F26) {
							if (yych <= 0x00010E5F) goto yy1;
							if (yych <= 0x00010E7E) goto yy2;
							if (yych >= 0x00010F1D) goto yy2;
						} else {
							if (yych <= 0x00010F54) {
								if (yych >= 0x00010F51) goto yy2;
							} else {
								if (yych <= 0x00011051) goto yy1;
								if (yych <= 0x0001106F) goto yy2;
							}
						}
					}
				}
			}
		} else {
			if (yych <= 0x00016A69) {
				if (yych <= 0x000116BF) {
					if (yych <= 0x000112EF) {
						if (yych <= 0x000111CF) {
							if (yych <= 0x000110F9) goto yy2;
							if (yych <= 0x00011135) goto yy1;
							if (yych <= 0x0001113F) goto yy2;
						} else {
							if (yych <= 0x000111D9) goto yy2;
							if (yych <= 0x000111E0) goto yy1;
							if (yych <= 0x000111F4) goto yy2;
						}
					} else {
						if (yych <= 0x000114CF) {
							if (yych <= 0x000112F9) goto yy2;
							if (yych <= 0x0001144F) goto yy1;
							if (yych <= 0x00011459) goto yy2;
						} else {
							if (yych <= 0x000114D9) goto yy2;
							if (yych <= 0x0001164F) goto yy1;
							if (yych <= 0x00011659) goto yy2;
						}
					}
				} else {
					if (yych <= 0x00011D4F) {
						if (yych <= 0x000118DF) {
							if (yych <= 0x000116C9) goto yy2;
							if (yych <= 0x0001172F) goto yy1;
							if (yych <= 0x0001173B) goto yy2;
						} else {
							if (yych <= 0x000118F2) goto yy2;
							if (yych <= 0x00011C4F) goto yy1;
							if (yych <= 0x00011C6C) goto yy2;
						}
					} else {
						if (yych <= 0x00011FBF) {
							if (yych <= 0x00011D59) goto yy2;
							if (yych <= 0x00011D9F) goto yy1;
							if (yych <= 0x00011DA9) goto yy2;
						} else {
							if (yych <= 0x000123FF) {
								if (yych <= 0x00011FD4) goto yy2;
							} else {
								if (yych <= 0x0001246E) goto yy2;
								if (yych >= 0x00016A60) goto yy2;
							}
						}
					}
				}
			} else {
				if (yych <= 0x0001E2F9) {
					if (yych <= 0x0001D2F3) {
						if (yych <= 0x00016B61) {
							if (yych <= 0x00016B4F) goto yy1;
							if (yych != 0x00016B5A) goto yy2;
						} else {
							if (yych <= 0x00016E7F) goto yy1;
							if (yych <= 0x00016E96) goto yy2;
							if (yych >= 0x0001D2E0) goto yy2;
						}
					} else {
						if (yych <= 0x0001D7FF) {
							if (yych <= 0x0001D35F) goto yy1;
							if (yych <= 0x0001D378) goto yy2;
							if (yych >= 0x0001D7CE) goto yy2;
						} else {
							if (yych <= 0x0001E13F) goto yy1;
							if (yych <= 0x0001E149) goto yy2;
							if (yych >= 0x0001E2F0) goto yy2;
						}
					}
				} else {
					if (yych <= 0x0001ECAF) {
						if (yych <= 0x0001E959) {
							if (yych <= 0x0001E8C6) goto yy1;
							if (yych <= 0x0001E8CF) goto yy2;
							if (yych >= 0x0001E950) goto yy2;
						} else {
							if (yych <= 0x0001EC70) goto yy1;
							if (yych != 0x0001ECAC) goto yy2;
						}
					} else {
						if (yych <= 0x0001ED2D) {
							if (yych <= 0x0001ECB0) goto yy1;
							if (yych <= 0x0001ECB4) goto yy2;
							if (yych >= 0x0001ED01) goto yy2;
						} else {
							if (yych <= 0x0001ED3D) {
								if (yych >= 0x0001ED2F) goto yy2;
							} else {
								if (yych <= 0x0001F0FF) goto yy1;
								if (yych <= 0x0001F10C) goto yy2;
							}
						}
					}
				}
			}
		}
	}
yy1:
	++YYCURSOR;
#line 14 "encodings/unicode_group_N_u_encoding_policy_substitute.re"
	{ return YYCURSOR == limit; }
#line 412 "encodings/unicode_group_N_u_encoding_policy_substitute.c"
yy2:
	++YYCURSOR;
#line 13 "encodings/unicode_group_N_u_encoding_policy_substitute.re"
	{ goto N; }
#line 417 "encodings/unicode_group_N_u_encoding_policy_substitute.c"
}
#line 15 "encodings/unicode_group_N_u_encoding_policy_substitute.re"

}
static const unsigned int chars_N [] = {0x30,0x39,  0xb2,0xb3,  0xb9,0xb9,  0xbc,0xbe,  0x660,0x669,  0x6f0,0x6f9,  0x7c0,0x7c9,  0x966,0x96f,  0x9e6,0x9ef,  0x9f4,0x9f9,  0xa66,0xa6f,  0xae6,0xaef,  0xb66,0xb6f,  0xb72,0xb77,  0xbe6,0xbf2,  0xc66,0xc6f,  0xc78,0xc7e,  0xce6,0xcef,  0xd58,0xd5e,  0xd66,0xd78,  0xde6,0xdef,  0xe50,0xe59,  0xed0,0xed9,  0xf20,0xf33,  0x1040,0x1049,  0x1090,0x1099,  0x1369,0x137c,  0x16ee,0x16f0,  0x17e0,0x17e9,  0x17f0,0x17f9,  0x1810,0x1819,  0x1946,0x194f,  0x19d0,0x19da,  0x1a80,0x1a89,  0x1a90,0x1a99,  0x1b50,0x1b59,  0x1bb0,0x1bb9,  0x1c40,0x1c49,  0x1c50,0x1c59,  0x2070,0x2070,  0x2074,0x2079,  0x2080,0x2089,  0x2150,0x2182,  0x2185,0x2189,  0x2460,0x249b,  0x24ea,0x24ff,  0x2776,0x2793,  0x2cfd,0x2cfd,  0x3007,0x3007,  0x3021,0x3029,  0x3038,0x303a,  0x3192,0x3195,  0x3220,0x3229,  0x3248,0x324f,  0x3251,0x325f,  0x3280,0x3289,  0x32b1,0x32bf,  0xa620,0xa629,  0xa6e6,0xa6ef,  0xa830,0xa835,  0xa8d0,0xa8d9,  0xa900,0xa909,  0xa9d0,0xa9d9,  0xa9f0,0xa9f9,  0xaa50,0xaa59,  0xabf0,0xabf9,  0xff10,0xff19,  0x10107,0x10133,  0x10140,0x10178,  0x1018a,0x1018b,  0x102e1,0x102fb,  0x10320,0x10323,  0x10341,0x10341,  0x1034a,0x1034a,  0x103d1,0x103d5,  0x104a0,0x104a9,  0x10858,0x1085f,  0x10879,0x1087f,  0x108a7,0x108af,  0x108fb,0x108ff,  0x10916,0x1091b,  0x109bc,0x109bd,  0x109c0,0x109cf,  0x109d2,0x109ff,  0x10a40,0x10a48,  0x10a7d,0x10a7e,  0x10a9d,0x10a9f,  0x10aeb,0x10aef,  0x10b58,0x10b5f,  0x10b78,0x10b7f,  0x10ba9,0x10baf,  0x10cfa,0x10cff,  0x10d30,0x10d39,  0x10e60,0x10e7e,  0x10f1d,0x10f26,  0x10f51,0x10f54,  0x11052,0x1106f,  0x110f0,0x110f9,  0x11136,0x1113f,  0x111d0,0x111d9,  0x111e1,0x111f4,  0x112f0,0x112f9,  0x11450,0x11459,  0x114d0,0x114d9,  0x11650,0x11659,  0x116c0,0x116c9,  0x11730,0x1173b,  0x118e0,0x118f2,  0x11c50,0x11c6c,  0x11d50,0x11d59,  0x11da0,0x11da9,  0x11fc0,0x11fd4,  0x12400,0x1246e,  0x16a60,0x16a69,  0x16b50,0x16b59,  0x16b5b,0x16b61,  0x16e80,0x16e96,  0x1d2e0,0x1d2f3,  0x1d360,0x1d378,  0x1d7ce,0x1d7ff,  0x1e140,0x1e149,  0x1e2f0,0x1e2f9,  0x1e8c7,0x1e8cf,  0x1e950,0x1e959,  0x1ec71,0x1ecab,  0x1ecad,0x1ecaf,  0x1ecb1,0x1ecb4,  0x1ed01,0x1ed2d,  0x1ed2f,0x1ed3d,  0x1f100,0x1f10c,  0x0,0x0};
static unsigned int encode_utf32 (const unsigned int * ranges, unsigned int ranges_count, unsigned int * s)
{
	unsigned int * const s_start = s;
	for (unsigned int i = 0; i < ranges_count; i += 2)
		for (unsigned int j = ranges[i]; j <= ranges[i + 1]; ++j)
			*s++ = j;
	return s - s_start;
}

int main ()
{
	unsigned int * buffer_N = new unsigned int [1755];
	YYCTYPE * s = (YYCTYPE *) buffer_N;
	unsigned int buffer_len = encode_utf32 (chars_N, sizeof (chars_N) / sizeof (unsigned int), buffer_N);
	/* convert 32-bit code units to YYCTYPE; reuse the same buffer */
	for (unsigned int i = 0; i < buffer_len; ++i) s[i] = buffer_N[i];
	if (!scan (s, s + buffer_len))
		printf("test 'N' failed\n");
	delete [] buffer_N;
	return 0;
}
