Vulkan: Add support for EXT_primitive_bounding_box

1. Added support for EXT_primitive_bounding_box extension
2. Renamed shader variable gl_BoundingBoxEXT[] to ANGLEBoundingBox[]

Bug: angleproject:3576
Test: dEQP-GLES31.functional.primitive_bounding_box.*
Change-Id: I15fa9af50c6fd8e86d225670ddd8eb39f6e65d35
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3053618
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Brandon Schade 2021-07-21 12:42:56 -07:00 коммит произвёл Angle LUCI CQ
Родитель cb0b4b7e9c
Коммит 217acac2b4
30 изменённых файлов: 3501 добавлений и 3350 удалений

Просмотреть файл

@ -26,7 +26,7 @@
// Version number for shader translation API.
// It is incremented every time the API changes.
#define ANGLE_SH_VERSION 263
#define ANGLE_SH_VERSION 264
enum ShShaderSpec
{
@ -406,6 +406,7 @@ struct ShBuiltInResources
int EXT_texture_buffer;
int OES_sample_variables;
int EXT_clip_cull_distance;
int EXT_primitive_bounding_box;
// Set to 1 to enable replacing GL_EXT_draw_buffers #extension directives
// with GL_NV_draw_buffers in ESSL output. This flag can be used to emulate

Просмотреть файл

@ -1,28 +1,28 @@
{
"src/compiler/translator/ImmutableString_ESSL_autogen.cpp":
"c42766f916066e087b4ce5ac371e1868",
"0c86a8e0710083e2eb3e8a563eb6d2b5",
"src/compiler/translator/ImmutableString_autogen.cpp":
"7822fcba1f643962cdfc0d68378fa60d",
"0c6be16a3298353bede1478c9791a42d",
"src/compiler/translator/Operator_autogen.h":
"340c7966d65f4f46858cc228e103cd86",
"src/compiler/translator/SymbolTable_ESSL_autogen.cpp":
"01f284b20a462f479454aa598b3caeb3",
"9b4a0b271abf8d595a12f12e5854061e",
"src/compiler/translator/SymbolTable_autogen.cpp":
"788a2c426b84483e1ddce9c29e89db16",
"cff150cd97174b2c219a22230283b10a",
"src/compiler/translator/SymbolTable_autogen.h":
"d43593050c4d1b31b0be9cdd3a2d0ea5",
"291eba34a070f5fddbf2827a1577c598",
"src/compiler/translator/builtin_function_declarations.txt":
"056a62d343ee5b140f148cb05dac7297",
"src/compiler/translator/builtin_variables.json":
"eaf9b7f23ba2f98fec40ed42bed9d01f",
"9cfcb559faaa064c8e30b2d985129297",
"src/compiler/translator/gen_builtin_symbols.py":
"e77c4c743c26d8515661a9d9c4d3c96b",
"src/compiler/translator/tree_util/BuiltIn_ESSL_autogen.h":
"72040c4addd75a1a950e7a6561a7c9a0",
"4ea3769755b81f27d7143a4186854d57",
"src/compiler/translator/tree_util/BuiltIn_complete_autogen.h":
"0658aa4488627e3121e8ae1d0aa6d273",
"24f308502067e3ac3cbb55e3377108e7",
"src/tests/compiler_tests/ImmutableString_test_ESSL_autogen.cpp":
"0a8a2636307f9da05af17326878865fb",
"2fafd495642755521724ce7d40e4981f",
"src/tests/compiler_tests/ImmutableString_test_autogen.cpp":
"cd59be7af0fabc1abcc4f9329bc2fcd9"
"227aac98de8bbe6e2347139800daed8c"
}

Просмотреть файл

@ -231,6 +231,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
resources.MaxClipDistances = 1;
resources.EXT_shadow_samplers = 1;
resources.EXT_clip_cull_distance = 1;
resources.EXT_primitive_bounding_box = 1;
if (!translator->Init(resources))
{

Просмотреть файл

@ -1134,6 +1134,9 @@ enum TQualifier
EvqTessLevelOuter,
EvqTessLevelInner,
// GLES ES 3.1 extension EXT_primitive_bounding_box
EvqBoundingBoxEXT,
EvqTessEvaluationIn,
EvqTessEvaluationOut,
EvqTessCoord,
@ -1554,6 +1557,7 @@ inline const char *getQualifierString(TQualifier q)
case EvqPatchVerticesIn: return "PatchVerticesIn";
case EvqTessLevelOuter: return "TessLevelOuter";
case EvqTessLevelInner: return "TessLevelInner";
case EvqBoundingBoxEXT: return "BoundingBoxEXT";
case EvqTessEvaluationIn: return "in";
case EvqTessEvaluationOut: return "out";
case EvqTessCoord: return "TessCoord";

Просмотреть файл

@ -237,6 +237,7 @@ class CollectVariablesTraverser : public TIntermTraverser
bool mPatchVerticesInAdded;
bool mTessLevelOuterAdded;
bool mTessLevelInnerAdded;
bool mBoundingBoxEXTAdded;
bool mTessCoordAdded;
const int mTessControlShaderOutputVertices;
@ -309,6 +310,7 @@ CollectVariablesTraverser::CollectVariablesTraverser(
mPatchVerticesInAdded(false),
mTessLevelOuterAdded(false),
mTessLevelInnerAdded(false),
mBoundingBoxEXTAdded(false),
mTessCoordAdded(false),
mTessControlShaderOutputVertices(tessControlShaderOutputVertices),
mHashFunction(hashFunction),
@ -332,8 +334,9 @@ void CollectVariablesTraverser::setBuiltInInfoFromSymbol(const TVariable &variab
bool isShaderIOBlock =
IsShaderIoBlock(type.getQualifier()) && type.getInterfaceBlock() != nullptr;
bool isPatch =
type.getQualifier() == EvqTessLevelInner || type.getQualifier() == EvqTessLevelOuter;
bool isPatch = type.getQualifier() == EvqTessLevelInner ||
type.getQualifier() == EvqTessLevelOuter ||
type.getQualifier() == EvqBoundingBoxEXT;
setFieldOrVariableProperties(type, true, isShaderIOBlock, isPatch, info);
}
@ -715,6 +718,10 @@ void CollectVariablesTraverser::visitSymbol(TIntermSymbol *symbol)
mInputVaryings);
}
break;
case EvqBoundingBoxEXT:
recordBuiltInVaryingUsed(symbol->variable(), &mBoundingBoxEXTAdded,
mOutputVaryings);
break;
default:
break;
}

Просмотреть файл

@ -1183,6 +1183,7 @@ void TCompiler::setResourceString()
<< ":MaxFunctionParameters:" << mResources.MaxFunctionParameters
<< ":EXT_blend_func_extended:" << mResources.EXT_blend_func_extended
<< ":EXT_frag_depth:" << mResources.EXT_frag_depth
<< ":EXT_primitive_bounding_box:" << mResources.EXT_primitive_bounding_box
<< ":EXT_shader_texture_lod:" << mResources.EXT_shader_texture_lod
<< ":EXT_shader_framebuffer_fetch:" << mResources.EXT_shader_framebuffer_fetch
<< ":EXT_shader_framebuffer_fetch_non_coherent:" << mResources.EXT_shader_framebuffer_fetch_non_coherent

Просмотреть файл

@ -28,6 +28,7 @@
OP(OES_shader_io_blocks) \
OP(EXT_shader_io_blocks) \
OP(EXT_gpu_shader5) \
OP(EXT_primitive_bounding_box) \
OP(EXT_shader_framebuffer_fetch) \
OP(EXT_shader_framebuffer_fetch_non_coherent) \
OP(EXT_shader_non_constant_global_initializers) \

Просмотреть файл

@ -34,6 +34,7 @@ enum class TExtension : uint8_t
OES_shader_io_blocks,
EXT_shader_io_blocks,
EXT_gpu_shader5,
EXT_primitive_bounding_box,
EXT_shader_framebuffer_fetch,
EXT_shader_framebuffer_fetch_non_coherent,
EXT_shader_non_constant_global_initializers,

Просмотреть файл

@ -24,217 +24,198 @@ std::ostream &operator<<(std::ostream &os, const sh::ImmutableString &str)
namespace
{
constexpr int mangledkT1[] = {1556, 238, 1079, 2379, 1830, 1969, 1294, 1527, 2823, 1963,
1949, 2765, 253, 197, 2341, 1962, 2150, 3196, 2836, 1405,
65, 1616, 194, 3215, 1963, 835, 1185, 1040, 776, 1429,
2833, 2536, 3097, 2289, 2243, 407, 2802, 1920, 2364, 819};
constexpr int mangledkT2[] = {2251, 438, 1259, 2530, 406, 1029, 185, 2724, 2797, 476,
2188, 3034, 264, 1903, 1339, 1935, 1186, 1808, 2356, 1337,
1708, 557, 2982, 2555, 2384, 2229, 2382, 1976, 1471, 2699,
2002, 1699, 752, 2862, 2949, 2208, 1670, 256, 1054, 2471};
constexpr int mangledkT1[] = {1527, 1943, 1880, 1243, 1509, 140, 1696, 103, 163, 2049,
1333, 2689, 1246, 626, 562, 1634, 2548, 2195, 2149, 59,
1179, 654, 587, 174, 1528, 1042, 266, 457, 140, 864,
520, 913, 1647, 598, 1669, 154, 2071, 580, 1372, 2809};
constexpr int mangledkT2[] = {890, 2242, 2689, 2094, 2746, 538, 1689, 1610, 625, 1617,
2764, 775, 612, 2458, 797, 438, 1122, 1941, 1673, 2635,
976, 2649, 2701, 1532, 1267, 49, 1285, 2806, 237, 342,
1105, 2537, 2291, 870, 693, 1953, 6, 1401, 1788, 1352};
constexpr int mangledkG[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1267,
0, 0, 0, 2778, 0, 0, 0, 0, 0, 0, 0, 0, 2196, 0, 2049, 911,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3190, 0, 0, 0,
0, 0, 0, 0, 2291, 0, 2090, 2, 0, 0, 0, 535, 0, 2621, 0, 0,
0, 0, 0, 0, 0, 0, 0, 2650, 0, 0, 0, 0, 0, 0, 0, 0,
0, 2523, 0, 0, 0, 0, 2609, 0, 0, 0, 2366, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 1723, 0, 2222, 0, 1305,
1037, 0, 0, 0, 0, 0, 0, 914, 0, 0, 2039, 0, 139, 0, 261, 0,
0, 291, 0, 0, 0, 2680, 0, 0, 0, 789, 0, 1207, 0, 0, 0, 0,
0, 0, 886, 0, 0, 0, 0, 0, 625, 0, 0, 0, 0, 0, 0, 3071,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1170, 0, 0, 0, 739, 0,
0, 159, 857, 0, 0, 0, 0, 3093, 778, 0, 0, 0, 0, 660, 0, 0,
0, 0, 0, 295, 0, 0, 0, 140, 0, 0, 0, 0, 0, 0, 0, 1917,
0, 0, 0, 0, 0, 0, 0, 1929, 0, 0, 0, 0, 0, 0, 0, 0,
1553, 0, 0, 1909, 3123, 0, 0, 0, 0, 286, 0, 0, 0, 0, 0, 0,
1393, 740, 0, 0, 563, 0, 0, 0, 0, 1626, 0, 0, 0, 530, 0, 0,
0, 423, 0, 0, 0, 0, 0, 1089, 0, 0, 0, 3074, 0, 3014, 0, 405,
1596, 0, 0, 0, 0, 0, 1563, 0, 0, 0, 0, 974, 1166, 1654, 0, 0,
0, 876, 0, 0, 0, 0, 1699, 1056, 1194, 1834, 0, 0, 0, 2434, 934, 197,
0, 0, 0, 0, 0, 0, 547, 0, 2841, 0, 1759, 0, 0, 0, 0, 0,
0, 0, 712, 0, 0, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 810, 0, 0, 0, 0, 0, 2831, 271, 0, 0, 212,
2961, 0, 0, 115, 0, 0, 1297, 0, 0, 0, 0, 1487, 0, 2515, 0, 3063,
106, 2632, 0, 0, 0, 0, 0, 0, 0, 2827, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1728, 2348, 756, 0, 0, 0, 548, 0, 1059, 0,
2935, 0, 2125, 656, 388, 0, 0, 0, 1698, 1535, 11, 0, 324, 1696, 0, 1878,
0, 0, 0, 1761, 506, 0, 2704, 0, 0, 0, 564, 0, 536, 0, 0, 592,
0, 0, 0, 2489, 0, 0, 1556, 0, 0, 0, 0, 2680, 0, 0, 0, 1978,
824, 0, 1553, 0, 0, 0, 0, 1428, 0, 0, 1591, 0, 0, 0, 740, 1338,
0, 0, 0, 0, 414, 2573, 0, 2711, 2849, 0, 999, 1928, 3163, 0, 0, 1244,
0, 0, 0, 1197, 2516, 0, 0, 0, 1458, 2069, 0, 0, 0, 0, 1210, 332,
1908, 0, 0, 0, 0, 1121, 0, 1010, 0, 0, 66, 1941, 2631, 2219, 0, 2068,
0, 0, 0, 0, 0, 0, 0, 0, 1600, 0, 0, 783, 0, 1259, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 851, 0, 0, 1491, 0, 3041, 0, 0,
2910, 0, 0, 2262, 1299, 0, 0, 580, 790, 0, 1403, 0, 2401, 0, 627, 1023,
2636, 0, 0, 0, 0, 0, 0, 3147, 0, 2713, 0, 231, 451, 1446, 0, 0,
3106, 0, 0, 0, 0, 0, 0, 1868, 0, 0, 0, 0, 1055, 0, 21, 94,
0, 1792, 0, 1642, 1761, 0, 0, 0, 0, 0, 1435, 0, 0, 558, 423, 1295,
0, 0, 0, 0, 1784, 0, 0, 0, 0, 1412, 0, 0, 2934, 366, 0, 0,
0, 2233, 0, 0, 0, 373, 2332, 1648, 0, 0, 2317, 3028, 0, 0, 2125, 0,
0, 0, 0, 0, 0, 0, 823, 0, 0, 0, 2274, 0, 0, 3027, 0, 0,
0, 2500, 0, 0, 0, 0, 0, 203, 2882, 1277, 0, 848, 0, 0, 0, 0,
0, 1211, 1225, 0, 0, 0, 1057, 0, 2649, 0, 0, 1725, 0, 0, 0, 1206,
0, 0, 205, 236, 29, 1503, 816, 771, 1580, 0, 0, 0, 1084, 0, 3021, 198,
2147, 0, 0, 0, 0, 29, 0, 0, 0, 1707, 0, 0, 1544, 0, 0, 2685,
0, 0, 3168, 0, 0, 1160, 727, 1501, 2503, 2679, 800, 2850, 0, 0, 2252, 0,
1203, 1416, 0, 0, 2908, 2674, 94, 2383, 0, 0, 0, 0, 1415, 2713, 435, 0,
0, 1029, 0, 2133, 0, 0, 0, 0, 0, 0, 0, 1614, 346, 0, 0, 0,
0, 3114, 0, 2728, 0, 446, 0, 0, 0, 3045, 1773, 0, 2923, 0, 0, 0,
0, 0, 1564, 0, 1852, 0, 1585, 2233, 0, 0, 618, 2412, 457, 814, 0, 0,
1287, 329, 372, 1258, 3184, 2486, 0, 361, 2574, 0, 2101, 0, 2009, 1320, 1348, 1144,
2591, 0, 954, 2798, 0, 483, 907, 0, 0, 1334, 0, 3213, 0, 0, 1593, 13,
87, 0, 113, 0, 0, 0, 0, 0, 164, 0, 0, 0, 812, 3220, 567, 109,
0, 0, 0, 265, 0, 0, 0, 1529, 463, 0, 0, 0, 0, 0, 0, 3211,
1778, 1094, 738, 1193, 1254, 0, 0, 616, 234, 0, 0, 0, 1712, 2731, 0, 0,
0, 0, 3081, 2289, 0, 0, 0, 0, 0, 776, 2356, 2048, 447, 610, 79, 0,
1145, 0, 2679, 0, 0, 0, 0, 2365, 1588, 317, 0, 0, 0, 0, 2151, 0,
0, 0, 0, 1443, 0, 0, 0, 0, 1674, 0, 3042, 667, 0, 2935, 2582, 0,
0, 382, 0, 0, 0, 0, 98, 0, 2966, 1425, 0, 0, 2686, 0, 2393, 550,
0, 0, 0, 86, 1198, 717, 1829, 0, 0, 0, 0, 523, 2813, 0, 806, 0,
376, 0, 1782, 0, 822, 0, 1476, 271, 2862, 0, 0, 596, 0, 560, 0, 2395,
1155, 0, 0, 187, 188, 0, 0, 1485, 1082, 1148, 220, 1693, 0, 0, 0, 1547,
0, 0, 1042, 436, 0, 0, 1004, 0, 694, 190, 0, 906, 0, 0, 2840, 0,
509, 922, 3219, 1017, 871, 0, 0, 0, 0, 0, 0, 1580, 1421, 0, 0, 0,
675, 0, 0, 137, 2855, 0, 1707, 184, 0, 0, 0, 502, 257, 1673, 176, 0,
0, 2564, 2800, 0, 0, 0, 0, 1211, 1287, 0, 0, 0, 2904, 906, 581, 453,
0, 1584, 928, 2294, 0, 0, 2256, 0, 1397, 0, 1817, 0, 0, 0, 1142, 694,
0, 222, 0, 549, 1358, 0, 0, 619, 1878, 0, 357, 1604, 3010, 0, 0, 1047,
722, 0, 2783, 588, 0, 0, 0, 695, 2841, 0, 0, 0, 899, 0, 0, 0,
995, 302, 2151, 0, 812, 0, 0, 925, 0, 0, 0, 0, 0, 1331, 1292, 808,
0, 2461, 0, 1946, 862, 0, 666, 0, 0, 323, 0, 2010, 421, 0, 3087, 2497,
0, 217, 73, 14, 3104, 0, 0, 622, 0, 0, 1173, 0, 0, 0, 3000, 0,
0, 0, 1336, 655, 1099, 0, 0, 0, 2220, 2358, 0, 0, 2945, 0, 0, 2635,
1380, 0, 0, 2277, 0, 0, 728, 1399, 1441, 0, 1964, 0, 3038, 0, 0, 3139,
0, 1149, 3019, 351, 0, 0, 0, 0, 95, 0, 0, 0, 0, 0, 325, 0,
0, 2174, 1384, 0, 1542, 1006, 960, 0, 1719, 0, 0, 1745, 2369, 1042, 2797, 0,
0, 2445, 0, 0, 1720, 2576, 427, 505, 2924, 0, 3055, 0, 196, 174, 0, 1617,
2648, 292, 2333, 3064, 0, 0, 1000, 0, 1420, 0, 0, 1281, 1562, 1652, 0, 801,
60, 1121, 430, 0, 1149, 2982, 0, 0, 1262, 0, 1167, 0, 0, 1580, 986, 0,
145, 0, 2060, 0, 0, 0, 0, 1289, 0, 0, 573, 820, 0, 9, 2551, 2178,
0, 587, 0, 196, 0, 115, 0, 114, 0, 0, 0, 0, 463, 653, 0, 0,
66, 0, 1102, 0, 0, 1047, 0, 2708, 804, 0, 1444, 2469, 1832, 0, 0, 1498,
913, 0, 0, 1406, 752, 0, 128, 992, 188, 0, 0, 771, 552, 0, 65, 0,
63, 1200, 0, 0, 2225, 0, 0, 2635, 0, 48, 0, 0, 33, 791, 1350, 0,
0, 0, 2981, 1090, 0, 0, 2514, 2478, 582, 0, 142, 2960, 278, 2223, 1573, 1082,
1731, 2556, 712, 0, 0, 0, 484, 0, 19, 0, 0, 0, 0, 0, 1496, 1321,
0, 0, 57, 0, 0, 955, 0, 932, 150, 0, 1729, 182, 119, 703, 28, 0,
0, 2164, 0, 0, 1422, 0, 2958, 0, 0, 0, 364, 0, 1128, 641, 0, 1371,
277, 0, 0, 0, 0, 1338, 0, 0, 962, 0, 575, 2917, 0, 0, 995, 0,
0, 1158, 613, 0, 0, 76, 0, 0, 2231, 0, 0, 0, 225, 0, 0, 450,
638, 0, 0, 0, 2995, 360, 143, 2543, 1080, 215, 0, 0, 0, 1525, 550, 256,
1355, 0, 1154, 1411, 2860, 356, 0, 0, 2658, 366, 0, 0, 0, 4, 889, 419,
0, 3141, 0, 0, 917, 2551, 0, 452, 179, 1124, 700, 0, 0, 624, 0, 0,
0, 34, 0, 213, 0, 106, 1242, 1380, 0, 0, 1187, 2339, 938, 358, 0, 1103,
0, 0, 2724, 867, 0, 2248, 0, 0, 2598, 1070, 0, 0, 0, 431, 518, 0,
0, 1375, 12, 633, 165, 2622, 3132, 0, 711, 1000, 344, 0, 0, 0, 0, 249,
0, 2096, 72, 0, 0, 476, 2397, 0, 1867, 0, 2775, 0, 0, 0, 2803, 985,
0, 0, 0, 0, 2564, 1195, 3059, 2627, 1156, 2115, 1178, 208, 0, 0, 1189, 229,
0, 1389, 0, 812, 2059, 0, 0, 0, 2769, 752, 237, 0, 0, 1602, 1253, 0,
0, 0, 608, 0, 912, 2257, 879, 2503, 1261, 799, 1380, 2183, 559, 0, 0, 0,
2403, 227, 1561, 0, 0, 0, 902, 477, 0, 553, 929, 2702, 0, 0, 0, 0,
0, 0, 2235, 521, 1719, 369, 773, 395, 1583, 0, 0, 0, 2924, 0, 3185, 44,
1390, 1004, 2312, 0, 0, 1494, 0, 1259, 633, 0, 793, 0, 3120, 0, 556, 0,
0, 1457, 0, 612, 1291, 474, 0, 3015, 0, 0, 0, 1506, 722, 3175, 439, 978,
29, 1538, 3172, 2266, 1050, 2605, 773, 819, 0, 2773, 3187, 0, 400, 0, 2107, 1379,
0, 0, 430, 1541, 0, 573, 1374, 0, 2609, 0, 2010, 2955, 302, 0, 31, 1576,
0, 1709, 1191, 0, 0, 0, 1065, 2600, 3206, 2394, 0, 50, 2745, 1390, 0, 2263,
1207, 58, 2033, 0, 2521, 0, 521, 0, 0, 0, 0, 2992, 0, 0, 0, 2032,
1259, 534, 0, 0, 0, 0, 2348, 0, 2112, 310, 0, 536, 0, 2453, 432, 0,
2475, 0, 0, 986, 863, 233, 1313, 0, 829, 0, 0, 0, 775, 2991, 2090, 0,
1381, 2631, 1638, 0, 1146, 2526, 0, 0, 2883, 3097, 2210, 0, 1339, 2850, 1337, 0,
1220, 0, 2408, 0, 0, 945, 0, 525, 2565, 623, 847, 2619, 0, 0, 1370, 0,
0, 1226, 64, 0, 0, 1054, 0, 0, 1170, 1925, 0, 0, 141, 1606, 951, 2144,
0, 0, 171, 466, 0, 654, 2213, 0, 0, 0, 0, 13, 0, 192, 1161, 0,
371, 0, 0, 491, 0, 1132, 0, 1552, 0, 0, 53, 1155, 1147, 975, 0, 0,
0, 2276, 0, 0, 178, 392, 0, 2352, 2698, 1728, 0, 1942, 0, 3028, 0, 1566,
1525, 0, 0, 0, 245, 0, 512, 0, 0, 2106, 0, 3152, 972, 0, 0, 2857,
0, 1197, 2568, 2427, 1421, 2310, 0, 1190, 1293, 2619, 795, 1066, 367, 2606, 2919, 0,
0, 847, 0, 2793, 3076, 0, 1279, 2538, 3203, 2445, 1509, 427, 0, 238, 0, 0,
1885, 0, 0, 0, 2706, 1926, 656, 0, 451, 0, 0, 0, 37, 610, 643, 2522,
256, 0, 3151, 473, 0, 693, 0, 1754, 0, 0, 0, 0, 0, 0, 0, 0,
1121, 1322, 0, 0, 1445, 0, 0, 2235, 0, 0, 431, 1624, 0, 275, 0, 1050,
0, 0, 0, 0, 0, 0, 0, 817, 0, 2505, 0, 711, 0, 0, 663, 36,
3168, 694, 0, 2011, 973, 0, 2635, 2865, 895, 0, 297, 0, 1925, 0, 910, 386,
1058, 0, 312, 313, 512, 108, 320, 0, 0, 0, 697, 400, 1207, 1979, 1311, 1028,
0, 0, 0, 0, 1526, 0, 0, 342, 0, 0, 0, 0, 0, 2547, 0, 286,
151, 0, 1366, 103, 514, 2574, 1985, 0, 0, 631, 507, 2673, 0, 3053, 0, 0,
0, 0, 472, 1216, 2618, 0, 0, 1364, 383, 2926, 0, 0, 0, 942, 365, 0,
1282, 3052, 0, 0, 0, 297, 0, 829, 3134, 2557, 2638, 781, 2441, 0, 651, 284,
0, 1439, 0, 0, 1514, 3028, 0, 66, 324, 7, 1395, 0, 384, 401, 0, 1972,
0, 1364, 0, 3005, 762, 898, 2080, 365, 105, 0, 2597, 0, 0, 2619, 2919, 422,
0, 919, 0, 0, 0, 722, 1504, 0, 1716, 0, 0, 150, 343, 641, 219, 0,
2162, 557, 1113, 0, 960, 0, 0, 1354, 3105, 0, 744, 0, 782, 0, 1730, 429,
2165, 2214, 0, 0, 0, 0, 652, 364, 61, 0, 870, 2176, 0, 0, 693, 980,
0, 150, 1464, 0, 1644, 538, 0, 0, 0, 0, 0, 1959, 179, 998, 293, 0,
1064, 3158, 1949, 638, 1011, 0, 0, 2221, 0, 0, 0, 0, 631, 1569, 2225, 1906,
828, 840, 3177, 2830, 275, 2558, 2901, 2544, 0, 299, 2712, 0, 3102, 0, 2673, 735,
2982, 0, 0, 1342, 138, 1963, 149, 273, 1085, 1868, 0, 0, 2251, 0, 0, 0,
2570, 2504, 0, 1076, 1835, 2594, 0, 590, 1495, 318, 0, 0, 660, 379, 666, 0,
1404, 2997, 512, 0, 0, 842, 850, 1543, 708, 3194, 0, 0, 0, 2197, 0, 0,
246, 306, 0, 0, 2810, 0, 1308, 0, 1335, 572, 245, 1531, 3038, 0, 0, 1361,
0, 2703, 0, 1150, 93, 2081, 1484, 0, 3093, 178, 342, 0, 3167, 616, 0, 1043,
0, 2369, 2492, 3098, 0, 0, 335, 249, 0, 0, 0, 85, 726, 0, 482, 2260,
1621, 1250, 0, 799, 1498, 0, 0, 911, 448, 0, 1266, 1816, 626, 2978, 0, 425,
3081, 250, 2860, 0, 987, 1151, 0, 2322, 0, 0, 0, 0, 0, 540, 1324, 1269,
0, 380, 0, 0, 0, 185, 3074, 0, 952, 0, 0, 659, 2837, 497, 617, 3189,
2965, 0, 906, 333, 1221, 180, 0, 0, 2946, 0, 2616, 0, 2802, 1812, 274, 0,
751, 277, 0, 0, 0, 218, 750, 966, 930, 0, 0, 0, 0, 1021, 819, 1561,
0, 0, 1152, 2779, 251, 0, 252, 0, 2603, 1471, 811, 0, 566, 0, 1267, 0,
1162, 1401, 285, 0, 0, 547, 3074, 297, 61, 0, 1711, 29, 2213, 2980, 0, 635,
919, 792, 2527, 812, 0, 0, 1061, 0, 0, 0, 0, 0, 1490, 616, 537, 0,
0, 227, 0, 0, 0, 1989, 455, 282, 0, 1460, 2836, 0, 2692, 0, 734, 249,
984, 2940, 1430, 1972, 1668, 2683, 0, 0, 1442, 1330, 383, 3008, 0, 0, 0, 854,
354, 198, 0, 1286, 0, 98, 0, 1346, 0, 1639, 404, 0, 82, 1084, 655, 0,
0, 3180, 0, 1074, 904, 218, 0, 2861, 2155, 0, 1578, 0, 1599, 21, 3116, 3022,
661, 0, 0, 1594, 0, 0, 1075, 0, 1194, 1392, 0, 1475, 1108, 934, 2471, 0,
1045, 265, 283, 639, 0, 0, 218, 0, 2751, 0, 0, 46, 979, 0, 0, 0,
448, 0, 2971, 206, 1503, 0, 699, 1673, 0, 2935, 2092, 0, 0, 0, 957, 0,
444, 0, 1356, 0, 990, 1615, 3155, 0, 553, 2827, 652, 565, 1295, 1484, 483, 375,
1369, 1432, 132, 361, 577, 0, 0, 1589, 59, 0, 0, 0, 1621, 0, 949, 0,
1312, 0, 0, 0, 3124, 2307, 1337, 1546, 108, 0, 1487, 397, 1388, 495, 812, 0,
0, 0, 0, 164, 0, 0, 0, 0, 0, 273, 2938, 43, 3185, 1100, 0, 1076,
1119, 0, 1202, 0, 0, 1243, 1257, 2102, 30, 268, 533, 0, 1268, 651, 231, 0,
0, 0, 766, 724, 2952, 901, 3052, 3048, 381, 0, 859, 0, 0, 811, 1719, 2470,
3187, 168, 0, 47, 0, 0, 0, 1702, 0, 276, 0, 0, 2942, 269, 1408, 1109,
1020, 2149, 0, 1810, 281, 1663, 1294, 0, 1304, 0, 0, 534, 2134, 0, 632, 620,
1181, 1586, 2561, 1681, 718, 0, 0, 0, 0, 0, 1049, 589, 8, 1329, 760, 147,
0, 2916, 1600, 1007, 0, 1572, 2167, 1161, 0, 304, 0, 1759, 1530, 43, 0, 207,
0, 322, 0, 0, 0, 0, 2181, 0, 0, 0, 251, 389, 0, 0, 109, 0,
496, 2428, 31, 0, 165, 1940, 0, 3173, 0, 16, 881, 1613, 0, 2547, 0, 0,
2944, 258, 3065, 644, 1585, 1030, 1277, 0, 0, 1161, 616, 1063, 2812, 1843, 151, 390,
1, 0, 1166, 0, 1544, 0, 485, 0, 1100, 0, 0, 0, 0, 296, 0, 2943,
1284, 637, 1340, 202, 0, 1730, 0, 18, 0, 843, 3070, 0, 0, 1011, 339, 1107,
114, 410, 2841, 1431, 231, 0, 0, 857, 251, 2917, 0, 445, 0, 275, 1307, 1994,
2059, 0, 1251, 120, 0, 2183, 1017, 1210, 2320, 1549, 2091, 294, 1902, 0, 277, 542,
0, 68, 0, 786, 0, 0, 736, 229, 3067, 187, 1826, 1654, 1553, 861, 2587, 191,
0, 2237, 0, 1600, 0, 873, 0, 0, 0, 504, 1296, 0, 0, 0, 1105, 691,
863, 361, 516, 669, 0, 0, 2036, 176, 2025, 1863, 427, 0, 0, 815, 232, 0,
0, 839, 3054, 2181, 2638, 0, 412, 2744, 0, 201, 748, 598, 0, 247, 2147, 0,
134, 1150, 0, 638, 0, 5, 842, 859, 0, 1223, 0, 0, 0, 887, 1288, 1440,
0, 0, 2050, 584, 93, 212, 255, 173, 712, 0, 2912, 219, 0, 1270, 43, 0,
775, 0, 623, 0, 0, 0, 2, 0, 482, 1457, 909, 360, 682, 0, 0, 435,
827, 749, 279, 0, 1012, 513, 456, 626, 1990, 730, 0, 429, 983, 0, 0, 1170,
0, 0, 78, 2859, 948, 0, 0, 2134, 2378, 568, 627, 501, 1556, 1303, 1098, 0,
298, 1729, 3109, 0, 3135, 0, 769, 954, 1128, 262, 0, 133, 1450, 2704, 2062, 1496,
1025, 0, 458, 2477, 0, 1732, 2859, 0, 772, 1111, 0, 0, 0, 1494, 0, 953,
333, 0, 1557, 2455, 0, 256, 761, 1769, 1504, 1302, 61, 878, 2909, 739, 1285, 0,
833, 1581, 2110, 0, 1382, 1114, 0, 3004, 1111, 520, 0, 0, 1199, 2651, 2555, 381,
0, 0, 2376, 0, 1, 1951, 125, 0, 343, 0, 793, 1629, 2834, 2490, 440, 0,
0, 0, 2897, 865, 0, 2591, 0, 1081, 1675, 2807, 0, 0, 589, 1114, 0, 1349,
0, 555, 2328, 936, 0, 0, 132, 1878, 1927, 0, 1195, 1273, 1125, 0, 0, 4,
0, 1103, 0, 1821, 0, 700, 558, 0, 0, 344, 0, 0, 1033, 2232, 1964, 1426,
1035, 657, 987, 370, 0, 0, 6, 0, 2941, 2027, 0, 832, 188, 1015, 0, 0,
797, 742, 663, 1048, 0, 417, 2076, 0, 1315, 0, 316, 0, 1026, 827, 0, 0,
0, 0, 1986, 2036, 1327, 0, 0, 0, 0, 254, 0, 741, 2906, 429, 287, 2856,
2547, 2361, 366, 2467, 0, 0, 0, 0, 0, 301, 0, 284, 942, 0, 0, 0,
0, 226, 0, 0, 0, 890, 3077, 326, 445, 0, 579, 0, 1427, 1357, 1539, 1813,
0, 0, 1298, 0, 1180, 2462, 2939, 0, 47, 0, 411, 141, 916, 319, 0, 1125,
689, 1300, 2907, 774, 1494, 0, 0, 0, 2813, 1313, 0, 2611, 993, 2977, 0, 1402,
0, 2293, 1271, 910, 355, 0, 0, 0, 1304, 729, 1662, 0, 0, 0, 0, 1307,
669, 0, 0, 566, 0};
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2758, 0, 332, 0, 0,
0, 0, 949, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1726, 0, 2569,
0, 0, 0, 0, 0, 0, 0, 0, 593, 0, 0, 1216, 0, 0, 222, 0,
0, 1645, 0, 0, 0, 0, 0, 0, 306, 27, 0, 0, 0, 2019, 0, 1761,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1160, 0, 0, 0, 1102, 0,
0, 0, 0, 0, 2775, 0, 0, 1256, 0, 0, 531, 0, 0, 0, 0, 668,
0, 0, 0, 2581, 0, 0, 0, 0, 0, 0, 0, 0, 0, 358, 2470, 0,
2361, 0, 0, 0, 0, 0, 1624, 390, 714, 0, 0, 2675, 0, 2669, 992, 0,
0, 0, 0, 0, 582, 930, 0, 1485, 0, 0, 0, 0, 0, 0, 96, 0,
36, 141, 0, 0, 0, 0, 0, 748, 0, 0, 0, 0, 308, 0, 327, 1950,
0, 92, 0, 606, 0, 0, 0, 0, 0, 0, 0, 1249, 0, 0, 1223, 0,
1011, 0, 1787, 261, 945, 1542, 329, 0, 0, 0, 0, 0, 0, 854, 0, 573,
99, 0, 0, 0, 948, 0, 163, 1271, 1567, 0, 2533, 688, 1223, 0, 0, 0,
0, 0, 0, 0, 0, 1111, 704, 693, 620, 1078, 0, 0, 0, 2539, 415, 1990,
0, 0, 2702, 0, 712, 0, 1829, 0, 0, 0, 2682, 0, 0, 2040, 1784, 0,
318, 0, 0, 0, 0, 0, 0, 0, 2243, 0, 0, 0, 2479, 0, 1494, 0,
0, 95, 406, 0, 126, 0, 0, 0, 0, 0, 0, 0, 0, 635, 2847, 2087,
0, 2798, 480, 1643, 0, 1670, 0, 1640, 303, 1196, 2443, 820, 133, 2201, 0, 0,
0, 0, 0, 1316, 746, 86, 0, 357, 375, 0, 0, 0, 0, 0, 0, 1901,
744, 0, 668, 2700, 1855, 0, 0, 0, 0, 0, 0, 0, 0, 875, 0, 679,
0, 0, 234, 1462, 0, 0, 0, 2409, 0, 1062, 2344, 0, 0, 0, 0, 0,
1350, 2254, 2320, 0, 0, 0, 0, 0, 1011, 0, 1010, 1068, 0, 0, 782, 848,
0, 1511, 0, 0, 0, 1452, 1417, 0, 0, 0, 0, 0, 959, 0, 0, 0,
0, 1250, 633, 696, 888, 1378, 1702, 1448, 1992, 348, 0, 0, 2513, 1441, 442, 0,
0, 849, 0, 0, 0, 0, 0, 1306, 0, 1080, 0, 2467, 0, 0, 1649, 0,
2363, 541, 0, 0, 0, 570, 0, 596, 298, 0, 1284, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1016, 0, 0, 0, 1056, 0, 2233, 0, 2691, 1230, 0, 0,
0, 645, 972, 0, 0, 335, 480, 0, 356, 0, 1995, 0, 0, 0, 1999, 0,
778, 0, 0, 952, 1066, 0, 0, 0, 2574, 0, 2263, 1932, 0, 1404, 305, 0,
0, 1049, 0, 0, 2546, 1758, 0, 2549, 2895, 2636, 2355, 0, 0, 0, 0, 2903,
0, 356, 0, 1530, 1844, 0, 0, 2867, 2741, 624, 0, 0, 0, 0, 2064, 2462,
0, 2671, 165, 1638, 0, 0, 1433, 0, 1292, 0, 0, 0, 0, 2192, 2069, 1260,
892, 0, 465, 828, 456, 0, 0, 1799, 258, 912, 0, 2480, 637, 0, 0, 0,
0, 0, 0, 782, 393, 2356, 141, 0, 2538, 0, 0, 0, 0, 0, 0, 2769,
0, 0, 0, 0, 0, 0, 0, 906, 2070, 0, 0, 232, 0, 0, 1735, 2806,
2365, 0, 0, 539, 264, 0, 0, 0, 0, 1652, 2611, 995, 1348, 1809, 879, 0,
0, 985, 2178, 164, 0, 0, 0, 0, 399, 0, 1216, 0, 0, 259, 1515, 0,
0, 0, 1556, 563, 497, 0, 0, 0, 0, 2844, 0, 0, 2154, 0, 476, 0,
0, 1303, 2622, 1249, 2251, 0, 0, 499, 0, 2296, 0, 0, 0, 2480, 0, 0,
2118, 1962, 387, 0, 2289, 1968, 0, 0, 0, 0, 1850, 0, 1266, 0, 1697, 0,
0, 1230, 0, 0, 0, 417, 0, 1935, 1588, 391, 1671, 0, 0, 0, 2028, 1993,
0, 0, 854, 0, 0, 0, 864, 33, 1934, 1611, 564, 0, 0, 2491, 191, 408,
1484, 672, 0, 0, 2333, 0, 939, 268, 0, 2804, 2158, 0, 437, 323, 0, 1218,
0, 0, 0, 0, 0, 0, 2922, 0, 699, 543, 2629, 0, 0, 0, 0, 0,
2726, 311, 0, 0, 0, 0, 0, 0, 2445, 0, 0, 0, 540, 272, 0, 594,
0, 2332, 0, 1352, 1196, 0, 694, 1313, 0, 0, 0, 678, 0, 0, 88, 0,
604, 0, 1083, 577, 1102, 718, 1169, 0, 2356, 0, 0, 1936, 141, 791, 653, 408,
1212, 388, 0, 0, 0, 212, 0, 0, 2042, 0, 1962, 2110, 2853, 0, 0, 525,
0, 0, 2413, 2515, 0, 0, 109, 2477, 160, 1539, 513, 1587, 559, 1521, 0, 691,
0, 662, 333, 0, 0, 2784, 358, 0, 0, 0, 1425, 1269, 0, 0, 0, 1033,
0, 0, 0, 0, 0, 1459, 0, 838, 1463, 291, 0, 0, 0, 402, 0, 0,
886, 2775, 78, 2270, 1172, 2869, 0, 1455, 0, 2192, 0, 1322, 0, 1341, 1179, 0,
0, 501, 0, 0, 122, 1301, 0, 1596, 2269, 490, 0, 0, 2736, 0, 2042, 0,
204, 2861, 346, 1291, 0, 225, 0, 527, 0, 0, 2190, 0, 0, 0, 1171, 2123,
0, 0, 1581, 1705, 2667, 0, 1118, 1298, 2313, 0, 0, 0, 299, 1191, 479, 0,
0, 2308, 0, 1239, 2703, 1632, 0, 0, 0, 500, 179, 0, 1460, 709, 0, 0,
727, 2664, 2693, 1698, 0, 0, 0, 0, 1860, 0, 0, 671, 2609, 1730, 987, 1715,
0, 2163, 0, 1107, 638, 0, 2195, 0, 0, 278, 398, 0, 0, 367, 1469, 2459,
0, 0, 57, 1141, 2722, 0, 0, 2751, 1920, 2740, 0, 1945, 2526, 0, 1231, 0,
1095, 2340, 2116, 0, 1137, 0, 0, 0, 0, 0, 1883, 0, 1145, 1308, 0, 170,
756, 2911, 0, 663, 234, 0, 0, 1956, 0, 705, 2731, 758, 0, 0, 0, 1931,
0, 0, 704, 0, 0, 948, 579, 1393, 1873, 0, 2580, 832, 0, 2904, 2096, 0,
1964, 0, 2167, 0, 0, 553, 0, 0, 0, 768, 0, 2794, 0, 2678, 1810, 1988,
0, 1432, 0, 0, 0, 1943, 875, 0, 1138, 1735, 1336, 170, 1525, 1967, 0, 197,
0, 0, 0, 2398, 666, 0, 344, 0, 210, 0, 325, 2555, 2817, 1383, 2913, 0,
2746, 919, 1448, 0, 0, 0, 0, 2909, 0, 1095, 1199, 2451, 0, 1155, 439, 2734,
1479, 2512, 504, 1344, 0, 0, 2572, 684, 1039, 799, 2047, 0, 0, 871, 0, 0,
908, 0, 0, 0, 2069, 53, 376, 0, 566, 0, 920, 0, 2207, 0, 0, 0,
1353, 0, 0, 978, 0, 252, 656, 0, 1541, 1990, 0, 273, 140, 1670, 0, 762,
0, 0, 0, 0, 1913, 95, 0, 198, 1718, 175, 0, 0, 0, 0, 0, 0,
1447, 0, 1080, 2764, 0, 2471, 1574, 1091, 775, 0, 0, 1897, 2375, 2556, 1669, 0,
2710, 277, 193, 0, 0, 0, 0, 0, 0, 0, 1597, 0, 1757, 0, 2718, 0,
680, 0, 0, 0, 56, 0, 2217, 0, 872, 0, 0, 1106, 2099, 2778, 0, 0,
0, 0, 2297, 0, 2797, 0, 0, 1577, 590, 0, 996, 1982, 2886, 0, 0, 51,
0, 0, 0, 249, 424, 219, 0, 405, 1261, 0, 0, 1249, 420, 0, 0, 0,
1551, 884, 2340, 2855, 547, 0, 1203, 352, 0, 2001, 0, 340, 0, 1831, 425, 0,
1925, 0, 1074, 630, 1613, 522, 0, 0, 575, 2656, 0, 1096, 2744, 1804, 0, 0,
1182, 453, 1540, 889, 163, 0, 0, 0, 702, 999, 0, 1454, 0, 2587, 0, 483,
1358, 1722, 0, 277, 827, 2790, 0, 2170, 0, 0, 0, 1156, 63, 333, 803, 0,
757, 1835, 0, 2770, 2321, 0, 392, 1769, 0, 1071, 754, 0, 2677, 0, 426, 0,
0, 2795, 0, 512, 0, 2340, 883, 545, 457, 726, 2809, 1035, 0, 1104, 1921, 0,
0, 1854, 1942, 0, 0, 2526, 0, 460, 1225, 0, 1115, 2108, 0, 2746, 0, 0,
0, 0, 500, 0, 0, 0, 0, 172, 1682, 1542, 2730, 0, 1849, 0, 0, 0,
0, 1421, 0, 0, 0, 2806, 675, 63, 1402, 0, 314, 871, 0, 0, 1565, 2378,
0, 0, 0, 2897, 0, 924, 412, 0, 397, 0, 0, 1537, 0, 35, 2833, 0,
2207, 0, 0, 129, 2201, 2921, 0, 1522, 804, 0, 0, 1302, 1478, 0, 0, 747,
646, 0, 1823, 607, 0, 2459, 0, 2921, 8, 1218, 966, 265, 64, 2413, 2042, 0,
0, 1576, 1330, 698, 751, 0, 835, 1317, 0, 0, 1038, 196, 2462, 0, 1124, 2699,
1482, 0, 122, 0, 0, 0, 0, 1698, 0, 0, 0, 411, 1017, 50, 0, 0,
0, 0, 2033, 0, 0, 0, 0, 1822, 0, 1165, 1203, 548, 2831, 0, 728, 0,
1484, 0, 1137, 0, 1489, 0, 143, 427, 1833, 975, 0, 1014, 1928, 0, 1506, 2439,
0, 0, 2724, 0, 821, 0, 2276, 2551, 1368, 1395, 461, 1905, 551, 1095, 2202, 0,
534, 1064, 340, 951, 315, 625, 234, 1185, 2638, 1569, 666, 535, 0, 0, 2315, 2875,
1404, 0, 935, 2776, 335, 0, 0, 0, 637, 0, 0, 2481, 269, 777, 965, 268,
0, 1359, 853, 2228, 1171, 2266, 0, 24, 2586, 2732, 2589, 117, 0, 143, 0, 1565,
2144, 1580, 2899, 0, 745, 1194, 16, 1427, 1263, 2871, 2613, 1374, 0, 1036, 0, 505,
214, 1547, 1103, 0, 883, 0, 0, 0, 962, 0, 2431, 2798, 1569, 0, 1110, 0,
2650, 861, 926, 1741, 896, 251, 0, 2468, 2507, 7, 354, 2749, 0, 1325, 0, 0,
0, 1963, 0, 370, 0, 1193, 0, 0, 2922, 0, 2815, 0, 263, 1196, 350, 689,
1887, 0, 903, 0, 2145, 1585, 97, 2301, 0, 0, 1209, 1915, 0, 2604, 314, 1566,
142, 0, 0, 1492, 1730, 0, 2700, 887, 0, 1214, 1603, 966, 0, 1840, 0, 641,
1369, 0, 2415, 668, 2219, 0, 0, 1922, 0, 0, 2325, 2036, 1129, 462, 2343, 1591,
0, 407, 322, 2439, 0, 0, 2368, 0, 0, 290, 414, 1473, 2108, 393, 1972, 2534,
2217, 0, 2615, 1059, 1140, 0, 659, 1602, 0, 2509, 1857, 1062, 183, 1039, 1999, 0,
400, 2072, 0, 1807, 0, 129, 0, 0, 0, 0, 1402, 0, 83, 886, 2619, 2827,
75, 2462, 264, 474, 0, 1375, 339, 2698, 1397, 0, 900, 2035, 0, 2459, 2664, 0,
0, 2598, 1144, 1161, 0, 0, 294, 0, 521, 2269, 102, 2744, 0, 301, 385, 904,
0, 0, 0, 1903, 0, 0, 809, 553, 0, 1477, 344, 1286, 0, 2782, 0, 382,
1623, 0, 137, 0, 897, 0, 1133, 0, 2175, 1129, 0, 1866, 2482, 2876, 251, 31,
997, 1146, 2270, 893, 0, 0, 0, 0, 1610, 0, 1042, 2815, 2916, 0, 0, 1239,
0, 892, 2751, 1570, 2596, 97, 134, 418, 1188, 2752, 2491, 318, 0, 278, 1272, 743,
2595, 0, 1127, 289, 0, 2032, 2331, 0, 0, 2675, 2061, 1020, 0, 678, 2033, 2532,
440, 437, 685, 1009, 0, 416, 1264, 0, 0, 1023, 2891, 0, 0, 0, 0, 1493,
867, 182, 2205, 1668, 1359, 1593, 246, 0, 0, 2890, 91, 1019, 0, 0, 2085, 2212,
2722, 1629, 856, 2883, 389, 693, 0, 2230, 0, 1585, 371, 0, 823, 2216, 0, 0,
0, 0, 0, 1022, 0, 1833, 0, 0, 17, 0, 317, 343, 0, 1012, 2470, 2785,
0, 0, 122, 0, 1254, 0, 173, 351, 0, 0, 0, 0, 892, 1773, 1940, 295,
0, 2708, 2635, 1470, 1736, 466, 206, 631, 1194, 300, 28, 1109, 1694, 0, 0, 2859,
0, 1031, 0, 0, 1587, 629, 927, 2421, 0, 550, 0, 1896, 0, 2776, 0, 2560,
1240, 165, 383, 2745, 788, 0, 0, 1025, 158, 2406, 2662, 2611, 2316, 0, 0, 666,
2174, 0, 817, 1273, 0, 0, 843, 0, 2140, 0, 1598, 2696, 0, 0, 0, 1311,
563, 1708, 871, 0, 2088, 0, 979, 2752, 0, 2057, 39, 2081, 448, 0, 1167, 20,
1287, 0, 0, 1401, 453, 369, 2286, 515, 0, 1174, 0, 1410, 0, 0, 874, 0,
0, 585, 2689, 526, 1538, 0, 2265, 0, 955, 0, 2702, 0, 0, 0, 0, 0,
0, 193, 0, 473, 1156, 2427, 532, 403, 0, 0, 0, 0, 2843, 206, 2302, 208,
0, 1358, 642, 0, 0, 1064, 0, 1577, 0, 1069, 2021, 2745, 2333, 0, 239, 1178,
1486, 2029, 2248, 0, 0, 0, 2688, 0, 0, 2086, 1231, 0, 237, 0, 714, 1336,
2573, 0, 2730, 0, 2120, 12, 0, 2082, 769, 0, 125, 0, 207, 1333, 1127, 396,
0, 672, 0, 1251, 0, 0, 0, 2312, 829, 1007, 544, 2041, 1143, 1332, 889, 0,
0, 2898, 0, 1491, 0, 0, 0, 0, 0, 167, 2923, 750, 0, 0, 0, 829,
770, 244, 0, 584, 429, 755, 1302, 0, 0, 85, 157, 122, 1071, 0, 1601, 0,
0, 1820, 0, 0, 344, 0, 0, 453, 1879, 0, 0, 0, 604, 1446, 452, 2722,
2875, 286, 0, 1183, 428, 0, 0, 175, 0, 0, 0, 0, 950, 2134, 0, 0,
1077, 1623, 1400, 13, 541, 0, 0, 0, 0, 0, 0, 672, 2057, 23, 1157, 1920,
0, 403, 0, 1927, 0, 0, 1101, 0, 329, 93, 2765, 0, 1213, 1450, 0, 0,
53, 996, 0, 2402, 0, 228, 407, 2001, 0, 0, 0, 2684, 1051, 0, 1926, 0,
0, 0, 0, 0, 0, 0, 1753, 0, 973, 2392, 605, 0, 1731, 979, 2853, 0,
309, 0, 1658, 238, 153, 2396, 0, 0, 1176, 482, 210, 1013, 0, 0, 1166, 115,
161, 0, 509, 282, 0, 0, 0, 1085, 287, 74, 780, 2243, 0, 1401, 1227, 444,
0, 266, 0, 973, 16, 1516, 834, 0, 1212, 2585, 2432, 1312, 0, 0, 0, 1204,
1587, 2654, 0, 619, 487, 603, 1128, 367, 1088, 0, 0, 0, 1309, 1099, 2806, 0,
0, 353, 2005, 2469, 0, 0, 0, 0, 264, 553, 441, 2219, 442, 0, 1192, 0,
1246, 0, 220, 432, 0, 0, 816, 879, 1241, 0, 1338, 476, 1029, 0, 271, 355,
0, 0, 262, 1988, 963, 1220, 2479, 2542, 44, 0, 1197, 592, 2476, 1451, 2668, 1895,
2531, 746, 0, 1483, 1389, 912, 1056, 0, 56, 0, 2077, 0, 1977, 1253, 2890, 2559,
0, 1363, 915, 2090, 0, 77, 0, 2222, 0, 1399, 2628, 0, 922, 379, 351, 472,
2504, 0, 0, 0, 1034, 802, 0, 0, 2529, 2202, 1575, 1724, 0, 0, 0, 24,
0, 1506, 0, 1380, 0, 218, 0, 1148, 1114, 0, 0, 1788, 0, 1648, 1646, 2151,
547, 0, 2099, 0, 0, 0, 2035, 1628, 0, 1359, 183, 991, 1251, 1202, 0, 1131,
0, 0, 1, 880, 625, 0, 0, 1412, 2082, 697, 0, 836, 195, 2063, 1266, 220,
0, 1508, 1454, 2484, 854, 0, 481, 2595, 1171, 1435, 0, 882, 1083, 0, 2616, 777,
741, 0, 934, 279, 2059, 574, 1626, 0, 2055, 1643, 0, 1859, 0, 0, 0, 957,
528, 0, 1411, 1579, 0, 850, 1618, 393, 0, 1277, 454, 62, 1159, 406, 1517, 138,
1092, 237, 0, 0, 1162, 2741, 0, 0, 0, 1494, 1048, 2051, 0, 1755, 2110, 98,
844, 324, 1435, 0, 1578, 2746, 1217, 0, 0, 0, 292, 2713, 2882, 1464, 2010, 740,
1476, 0, 0, 0, 0, 0, 0, 1248, 0, 0, 0, 1, 951, 814, 900, 2869,
2488, 0, 2070, 0, 715, 905, 1075, 367, 571, 0, 1210, 583, 676, 0, 2493, 72,
0, 0, 835, 2637, 896, 792, 80, 0, 1992, 0, 0, 0, 0, 1588, 1398, 319,
174, 545, 838, 382, 0, 0, 0, 0, 461, 554, 0, 571, 2846, 674, 961, 691,
894, 1216, 0, 0, 1347, 2631, 1696, 1778, 468, 1276, 1539, 0, 1518, 724, 1083, 593,
0, 970, 2017, 1025, 1122, 867, 2172, 521, 1582, 0, 1097, 425, 0, 0, 0, 0,
0, 1077, 1027, 0, 0, 0, 1077, 2615, 51, 1130, 1030, 579, 1457, 1450, 0, 0,
2500, 0, 0, 1125, 2482, 0, 1334, 77, 0, 1180, 1373, 2724, 0, 79, 141, 0,
586, 1323, 1366, 1528, 1566, 1680, 1761, 0, 1489, 0, 0, 2100, 0, 0, 1664, 933,
523, 1303, 1398, 2476, 0, 1356, 0, 2278, 114, 1793, 2510, 0, 517, 1932, 1218, 0,
0, 0, 0, 1488, 0, 0, 2321, 0, 710, 0, 0, 843, 0, 59, 1134, 1938,
2545, 2272, 81, 2714, 2266, 614, 305, 0, 456, 1104, 1170, 0, 0, 0, 587, 1379,
2323, 1709, 1344, 843, 2346, 1464, 0, 0, 0, 2622, 0, 0, 211, 0, 2888, 0,
0, 0, 457, 0, 0, 91, 455, 62, 2755, 569, 2817, 0, 1104, 2520, 1583, 0,
2755, 973, 329, 1110, 0, 0, 1136, 641, 439, 651, 1152, 479, 1622, 2271, 452, 668,
255, 0, 0, 488, 0, 2711, 1974, 846, 0, 789, 0, 0, 0, 2136, 131, 0,
0, 233, 2553, 2431, 2528, 0, 395, 0, 0, 408, 0, 70, 0, 0, 0, 412,
893, 0, 1450, 0, 0, 1844, 0, 2620, 1507, 1234, 2137, 0, 888, 2693, 0, 0,
0, 0, 0, 2372, 2603, 1635, 0, 909, 1575, 762, 2041, 409, 0, 1512, 267, 0,
0, 935, 0, 0, 2867, 901, 144, 74, 0, 0, 2884, 2638, 0, 0, 2813, 363,
203, 1609, 0, 1216, 0, 297, 1274, 117, 366, 491, 317, 530, 1050, 868, 1236, 0,
2780, 0, 1312, 1223, 797, 603, 0, 0, 1203, 0, 2548, 0, 1538, 0, 1241, 0,
0, 2775, 1719, 1399, 97, 0, 1082, 1731, 3, 0, 0, 387, 0, 1090, 1910, 32,
162, 0, 2922, 0, 0, 608, 347, 510, 1465, 0, 675, 0, 0, 770, 971, 1673,
1159, 0, 0, 496, 939, 0, 269, 314, 2776, 0, 1721, 1563, 1557, 0, 0, 665,
1436, 2506, 1641, 601, 2171, 0, 914, 0, 784, 1072, 0, 0, 0, 740, 1147, 0,
0, 714, 682, 2427, 0, 1071, 2550, 2169, 1146, 61, 1232, 816, 10, 1453, 0, 1117,
278, 559, 584, 1605, 0, 0, 2887, 990, 1101, 2030, 0, 0};
int MangledHashG(const char *key, const int *T)
{
@ -243,7 +224,7 @@ int MangledHashG(const char *key, const int *T)
for (int i = 0; key[i] != '\0'; i++)
{
sum += T[i] * key[i];
sum %= 3221;
sum %= 2924;
}
return mangledkG[sum];
}
@ -253,31 +234,28 @@ int MangledPerfectHash(const char *key)
if (strlen(key) > 40)
return 0;
return (MangledHashG(key, mangledkT1) + MangledHashG(key, mangledkT2)) % 3221;
return (MangledHashG(key, mangledkT1) + MangledHashG(key, mangledkT2)) % 2924;
}
constexpr int unmangledkT1[] = {202, 208, 9, 296, 56, 272, 36, 228, 4, 48, 70, 19, 29,
55, 232, 227, 54, 80, 69, 190, 185, 285, 268, 237, 143, 100};
constexpr int unmangledkT2[] = {261, 131, 142, 12, 76, 239, 150, 35, 289, 106, 40, 20, 117,
22, 36, 130, 142, 198, 16, 2, 109, 249, 53, 77, 44, 159};
constexpr int unmangledkT1[] = {117, 100, 175, 73, 62, 169, 79, 220, 4, 91, 224, 166, 55,
229, 227, 3, 24, 236, 181, 221, 15, 67, 197, 152, 35, 35};
constexpr int unmangledkT2[] = {189, 204, 50, 180, 250, 9, 42, 246, 97, 141, 38, 136, 163,
102, 48, 27, 254, 180, 50, 30, 105, 152, 194, 229, 33, 152};
constexpr int unmangledkG[] = {
0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 0, 0, 216, 0,
0, 0, 0, 0, 0, 0, 0, 287, 161, 0, 222, 246, 0, 94, 25, 139, 0, 228, 0,
170, 0, 190, 0, 304, 0, 0, 203, 0, 0, 0, 0, 0, 290, 110, 103, 260, 109, 0,
130, 0, 0, 0, 57, 295, 79, 162, 0, 114, 150, 257, 0, 0, 246, 71, 243, 0, 17,
0, 141, 87, 0, 0, 182, 0, 12, 290, 0, 67, 0, 217, 0, 35, 0, 70, 0, 0,
0, 150, 0, 165, 0, 65, 0, 130, 55, 0, 0, 0, 9, 149, 243, 0, 264, 0, 11,
0, 0, 0, 151, 0, 138, 58, 44, 278, 0, 0, 143, 0, 242, 0, 299, 72, 0, 15,
0, 107, 121, 275, 0, 0, 302, 0, 0, 137, 0, 263, 0, 70, 23, 20, 0, 224, 0,
1, 0, 306, 0, 0, 0, 132, 43, 0, 52, 274, 104, 0, 86, 94, 7, 41, 49, 141,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 286, 0, 0, 0, 17, 0, 216, 0,
0, 109, 117, 84, 0, 0, 95, 0, 9, 190, 0, 0, 66, 0, 142, 129, 0, 68, 136,
120, 29, 0, 0, 0, 144, 25, 67, 0, 276, 0, 20, 25, 0, 0, 81, 0, 238, 0,
122, 0, 10, 93, 2, 0, 127, 0, 0, 262, 0, 40, 3, 107, 0, 0, 227, 5, 300,
174, 5, 42, 97, 32, 85, 0, 269, 73, 154, 98, 0, 266, 0, 0, 61, 36, 283, 90,
42, 276, 68, 0, 7, 112, 114, 51, 113, 32, 0, 21, 192, 76, 115, 248, 0, 89, 63,
108, 45, 0, 58, 95, 0, 0, 33, 166, 226, 117, 71, 35, 117, 56, 66, 0, 0, 290,
0, 0, 0, 72};
0, 0, 27, 0, 57, 0, 170, 30, 35, 81, 0, 0, 115, 112, 204, 0, 154, 52, 7,
17, 79, 19, 0, 79, 0, 130, 0, 0, 223, 81, 198, 121, 0, 63, 0, 220, 0, 68,
0, 197, 0, 0, 0, 189, 0, 0, 0, 240, 6, 0, 95, 0, 68, 0, 0, 195, 0,
0, 98, 0, 237, 0, 0, 229, 86, 110, 0, 53, 170, 223, 11, 0, 0, 166, 0, 0,
18, 48, 54, 0, 232, 113, 96, 58, 0, 208, 254, 172, 243, 119, 0, 0, 58, 81, 196,
131, 0, 0, 106, 81, 0, 198, 0, 218, 0, 160, 197, 123, 0, 180, 152, 177, 187, 0,
0, 0, 0, 175, 91, 0, 140, 215, 0, 89, 0, 245, 0, 26, 0, 104, 62, 0, 141,
235, 220, 193, 0, 0, 175, 29, 28, 137, 45, 217, 0, 0, 193, 191, 246, 201, 0, 0,
183, 165, 32, 60, 221, 156, 103, 38, 174, 223, 0, 0, 0, 44, 180, 194, 244, 58, 242,
88, 0, 30, 227, 200, 15, 0, 141, 0, 37, 93, 171, 42, 207, 7, 143, 0, 0, 187,
19, 243, 191, 0, 0, 0, 16, 0, 190, 112, 125, 71, 0, 126, 130, 105, 0, 0, 0,
217, 154, 0, 37, 203, 0, 234, 0, 222, 0, 42, 0, 54, 39, 251, 0, 124, 149, 132,
0, 66, 47, 69, 146, 0, 68, 247, 0, 32, 33, 62, 208, 96, 130, 227, 18, 20, 233,
107, 0, 191, 0, 217, 50, 52, 96};
int UnmangledHashG(const char *key, const int *T)
{
@ -286,7 +264,7 @@ int UnmangledHashG(const char *key, const int *T)
for (int i = 0; key[i] != '\0'; i++)
{
sum += T[i] * key[i];
sum %= 308;
sum %= 255;
}
return unmangledkG[sum];
}
@ -296,7 +274,7 @@ int UnmangledPerfectHash(const char *key)
if (strlen(key) > 26)
return 0;
return (UnmangledHashG(key, unmangledkT1) + UnmangledHashG(key, unmangledkT2)) % 308;
return (UnmangledHashG(key, unmangledkT1) + UnmangledHashG(key, unmangledkT2)) % 255;
}
} // namespace

Просмотреть файл

@ -24,285 +24,260 @@ std::ostream &operator<<(std::ostream &os, const sh::ImmutableString &str)
namespace
{
constexpr int mangledkT1[] = {2743, 4229, 3268, 910, 860, 1581, 1730, 2644, 3296, 1182,
336, 1125, 2239, 1930, 1402, 1665, 93, 4278, 2298, 3429,
2058, 1912, 4086, 886, 2174, 306, 818, 938, 2318, 2482,
531, 792, 3207, 1068, 1949, 1129, 324, 3475, 1781, 797};
constexpr int mangledkT2[] = {680, 267, 2903, 1702, 3372, 949, 3371, 1697, 2772, 741,
844, 1764, 3151, 3565, 1630, 1762, 4174, 833, 2973, 2727,
4172, 1737, 419, 3540, 831, 2685, 2708, 801, 1970, 3933,
1222, 2659, 1843, 443, 3831, 3904, 1926, 2027, 2723, 1430};
constexpr int mangledkT1[] = {2216, 3725, 127, 2318, 200, 1655, 3038, 1689, 2145, 1506,
931, 595, 1212, 1467, 1988, 610, 3815, 2450, 2452, 3604,
3552, 1371, 613, 1288, 2483, 418, 3009, 2301, 3782, 2798,
1955, 2142, 2519, 1173, 1372, 3609, 2524, 3789, 1060, 2098};
constexpr int mangledkT2[] = {3633, 3177, 1005, 667, 2676, 2669, 443, 3890, 477, 2192,
2479, 2092, 1008, 1769, 3184, 765, 1399, 742, 3116, 2696,
89, 421, 2102, 3651, 1015, 3051, 3653, 425, 3015, 2859,
3777, 3823, 2021, 371, 855, 169, 2596, 1654, 2910, 1392};
constexpr int mangledkG[] = {
0, 0, 0, 0, 0, 0, 0, 2775, 0, 0, 0, 0, 0, 1401, 2314, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3539, 0, 0, 4069, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4147, 0, 0, 1434, 0,
0, 0, 0, 0, 0, 2775, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1918, 0, 0, 0, 0, 228, 0, 0, 1334, 2967, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1638, 1276, 0, 0, 0, 1307, 0, 1868, 0, 0,
0, 2373, 0, 0, 0, 0, 618, 0, 3041, 0, 0, 2542, 408, 0, 78, 3685,
0, 0, 0, 3895, 0, 0, 1445, 0, 0, 0, 0, 0, 0, 4125, 813, 0,
0, 410, 0, 367, 0, 0, 0, 0, 0, 0, 0, 4024, 0, 2429, 516, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4221, 139, 0, 0, 0, 0,
0, 0, 2307, 802, 0, 0, 2413, 0, 0, 0, 0, 949, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 4092, 0, 0, 0, 2452, 2441, 0, 0, 1984,
0, 0, 1700, 2464, 0, 0, 0, 3230, 0, 0, 2423, 0, 496, 0, 0, 0,
0, 0, 2875, 0, 0, 0, 0, 0, 1056, 1356, 525, 1334, 0, 0, 0, 3367,
0, 0, 0, 0, 0, 0, 0, 0, 0, 2057, 0, 0, 0, 0, 0, 0,
0, 0, 702, 662, 0, 887, 0, 0, 1976, 1347, 0, 0, 0, 2653, 0, 0,
2986, 0, 0, 0, 0, 0, 0, 3259, 0, 0, 3127, 0, 0, 3966, 0, 223,
0, 0, 603, 1374, 712, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2410,
0, 0, 389, 0, 0, 3676, 0, 0, 3460, 0, 0, 0, 0, 0, 1447, 0,
1441, 1653, 0, 0, 1112, 0, 0, 0, 0, 1091, 283, 0, 33, 0, 0, 0,
0, 0, 852, 0, 0, 0, 2908, 230, 0, 0, 0, 0, 2812, 0, 0, 0,
0, 0, 0, 4253, 0, 0, 0, 0, 626, 0, 1650, 0, 0, 1199, 0, 0,
0, 0, 0, 0, 3697, 3032, 0, 0, 0, 3754, 3747, 0, 0, 3586, 0, 968,
3907, 0, 0, 1607, 0, 0, 0, 0, 0, 3273, 0, 0, 3839, 0, 0, 0,
3159, 0, 504, 0, 0, 0, 0, 2337, 0, 430, 0, 0, 1902, 0, 0, 0,
0, 0, 2373, 0, 0, 546, 0, 0, 0, 0, 377, 0, 0, 0, 0, 0,
0, 538, 0, 0, 1078, 0, 695, 1910, 849, 208, 4063, 1145, 0, 0, 0, 0,
0, 2597, 0, 0, 0, 0, 0, 2164, 0, 0, 0, 3612, 0, 0, 0, 4103,
0, 0, 0, 0, 0, 1821, 766, 350, 400, 0, 0, 0, 0, 0, 0, 10,
3031, 2862, 2613, 0, 724, 0, 0, 0, 0, 0, 1006, 0, 3337, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1296, 0,
0, 2420, 0, 4277, 3458, 0, 0, 0, 0, 0, 0, 462, 0, 1491, 1720, 0,
0, 1690, 0, 0, 0, 2786, 1590, 3852, 3726, 0, 361, 1563, 0, 0, 3371, 4259,
1235, 0, 0, 783, 0, 0, 141, 164, 55, 0, 0, 2042, 3049, 0, 0, 0,
1188, 0, 0, 1262, 0, 0, 0, 0, 0, 329, 0, 0, 0, 0, 1059, 0,
0, 3895, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3802, 1272, 0, 0, 0,
0, 4279, 152, 0, 0, 1318, 0, 1103, 2001, 0, 2513, 0, 0, 0, 0, 524,
0, 0, 415, 0, 3081, 2569, 0, 0, 164, 0, 0, 0, 0, 0, 0, 3880,
0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 1271, 0, 0, 0, 0, 0,
0, 2663, 0, 2951, 3334, 2832, 1054, 945, 0, 1175, 2669, 3868, 0, 0, 3873, 0,
2252, 4012, 3870, 0, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 0,
461, 0, 962, 3875, 0, 0, 0, 1762, 665, 3951, 0, 0, 0, 2007, 3731, 1986,
0, 0, 0, 1690, 0, 1597, 0, 1082, 4280, 0, 1531, 0, 0, 33, 0, 0,
0, 0, 0, 0, 1273, 0, 0, 952, 0, 0, 0, 0, 1025, 174, 0, 0,
0, 0, 0, 1511, 220, 0, 0, 0, 0, 0, 0, 772, 2603, 363, 0, 0,
0, 0, 0, 0, 0, 1457, 0, 0, 1492, 3298, 0, 1015, 0, 0, 2516, 39,
0, 1621, 282, 3845, 4229, 0, 1841, 0, 0, 0, 0, 854, 2217, 0, 0, 4222,
0, 928, 0, 0, 0, 1497, 0, 87, 0, 1814, 0, 2009, 0, 0, 0, 1943,
3767, 2080, 0, 0, 0, 0, 890, 3718, 0, 0, 0, 0, 0, 122, 0, 557,
3246, 3879, 726, 2140, 0, 0, 0, 0, 0, 1342, 0, 0, 640, 0, 0, 0,
0, 3488, 75, 455, 1633, 3886, 0, 0, 450, 276, 635, 4303, 0, 902, 0, 4224,
3563, 0, 0, 0, 167, 0, 0, 0, 618, 0, 0, 0, 2264, 0, 1840, 0,
0, 0, 79, 0, 0, 0, 0, 1911, 0, 0, 1985, 2542, 0, 0, 0, 0,
629, 0, 1060, 4165, 3516, 1371, 294, 0, 0, 0, 0, 0, 3197, 3505, 0, 0,
0, 2496, 0, 0, 0, 577, 0, 129, 4201, 0, 0, 3032, 0, 1191, 0, 3255,
0, 1822, 0, 1759, 0, 0, 704, 0, 0, 0, 2693, 3956, 0, 976, 0, 0,
3146, 0, 661, 467, 295, 0, 0, 3930, 2685, 0, 1443, 0, 0, 1064, 799, 0,
0, 0, 0, 0, 313, 271, 1814, 0, 264, 1578, 0, 0, 0, 119, 0, 2704,
0, 0, 3846, 513, 0, 0, 0, 0, 0, 0, 0, 0, 3986, 2208, 989, 0,
1208, 3028, 0, 0, 3738, 0, 3933, 0, 0, 0, 160, 1689, 0, 4258, 0, 2732,
531, 0, 0, 179, 0, 0, 0, 2896, 2326, 0, 1124, 0, 4216, 2033, 0, 0,
1979, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 943, 0, 0, 586,
0, 1069, 980, 3259, 0, 598, 0, 0, 606, 1847, 0, 420, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 4289, 3572, 0, 669, 0, 0, 0, 2071, 0, 0,
0, 0, 1045, 2161, 0, 180, 0, 91, 0, 583, 0, 1210, 76, 0, 0, 0,
134, 0, 3808, 371, 0, 743, 0, 0, 0, 0, 0, 329, 1558, 0, 515, 0,
1897, 1517, 0, 0, 0, 4247, 1406, 3798, 2347, 1886, 1971, 0, 0, 0, 0, 0,
2150, 0, 357, 0, 0, 0, 127, 0, 0, 0, 889, 3318, 370, 0, 0, 4187,
0, 0, 311, 0, 0, 0, 0, 0, 3932, 0, 0, 3692, 0, 334, 0, 0,
0, 799, 0, 1774, 0, 3743, 3573, 0, 0, 0, 0, 0, 1790, 0, 4140, 0,
545, 0, 0, 683, 0, 649, 3684, 0, 0, 956, 0, 0, 0, 1454, 0, 0,
0, 0, 1294, 1350, 0, 1141, 0, 608, 0, 506, 0, 0, 1100, 879, 0, 0,
699, 459, 2256, 772, 690, 0, 0, 0, 2892, 0, 0, 1488, 219, 0, 848, 240,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 833, 1555, 0, 3696, 0,
0, 572, 0, 279, 0, 0, 0, 2668, 0, 2117, 0, 0, 0, 0, 0, 3401,
3933, 0, 1969, 0, 0, 0, 0, 70, 0, 0, 917, 0, 0, 0, 1109, 0,
0, 1708, 1459, 0, 1742, 0, 0, 0, 1246, 0, 0, 0, 0, 1565, 0, 0,
0, 0, 3489, 1923, 1587, 0, 0, 374, 0, 3728, 0, 0, 0, 1444, 2351, 0,
550, 184, 0, 0, 0, 0, 3176, 0, 0, 0, 1055, 0, 1051, 0, 1559, 0,
464, 3426, 0, 0, 4281, 0, 0, 0, 0, 0, 0, 1393, 0, 124, 0, 190,
0, 0, 3772, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 578, 1203,
0, 0, 2191, 0, 1564, 0, 0, 0, 0, 0, 2662, 0, 724, 0, 6, 203,
0, 1985, 0, 1418, 500, 0, 2216, 556, 2144, 763, 0, 0, 469, 594, 1664, 0,
607, 0, 3288, 2626, 0, 2427, 0, 0, 152, 0, 0, 3655, 3588, 0, 0, 0,
0, 0, 0, 3966, 0, 2408, 4227, 1093, 0, 1838, 0, 0, 0, 1278, 0, 0,
2130, 3949, 3123, 3627, 0, 1421, 0, 1926, 0, 0, 0, 0, 0, 0, 2859, 2609,
2102, 3973, 1993, 460, 0, 0, 0, 1613, 0, 734, 1302, 0, 0, 3084, 0, 0,
0, 377, 341, 0, 0, 1560, 0, 1127, 0, 542, 248, 3643, 145, 0, 0, 235,
1788, 1508, 0, 0, 0, 3445, 0, 1150, 0, 2063, 0, 0, 386, 2022, 0, 0,
236, 752, 3339, 57, 2534, 28, 0, 36, 0, 2881, 80, 556, 0, 0, 0, 2502,
0, 3590, 0, 0, 630, 0, 0, 611, 3695, 0, 3922, 1224, 458, 0, 542, 0,
0, 0, 64, 1038, 0, 0, 2993, 0, 0, 0, 2592, 0, 0, 0, 1376, 0,
0, 3490, 1289, 0, 106, 615, 3616, 0, 3083, 0, 4040, 0, 0, 0, 0, 0,
0, 1958, 1634, 2040, 3673, 1421, 0, 452, 1457, 1612, 0, 0, 1268, 2391, 0, 0,
0, 1398, 421, 0, 0, 0, 0, 0, 859, 0, 0, 1028, 3496, 3479, 0, 0,
0, 284, 0, 1885, 1043, 3591, 0, 0, 0, 0, 569, 0, 3251, 3152, 471, 3576,
0, 1808, 948, 1966, 0, 0, 0, 0, 0, 2466, 598, 183, 0, 0, 0, 1139,
0, 0, 0, 0, 0, 661, 0, 2060, 386, 3989, 3792, 601, 496, 1777, 1477, 1345,
1886, 0, 0, 0, 0, 1151, 0, 149, 0, 2055, 3801, 0, 2042, 1782, 0, 2089,
0, 0, 1047, 1198, 1234, 0, 0, 1082, 1408, 1500, 0, 0, 234, 2332, 3403, 3837,
1597, 0, 0, 1270, 1229, 1541, 89, 1344, 0, 0, 0, 3828, 908, 0, 0, 2408,
1442, 853, 0, 4093, 0, 759, 0, 0, 1446, 3811, 989, 0, 4191, 1960, 0, 495,
891, 0, 741, 3641, 0, 3372, 1267, 1758, 0, 0, 3830, 4222, 0, 606, 0, 0,
0, 2442, 0, 894, 1310, 963, 0, 0, 0, 2927, 1919, 356, 0, 18, 0, 0,
4293, 4149, 2320, 3203, 0, 3160, 3911, 0, 3697, 2012, 2705, 0, 0, 0, 4011, 0,
0, 0, 4157, 1717, 0, 0, 1080, 1400, 388, 471, 2098, 0, 133, 1369, 0, 0,
446, 592, 0, 0, 1761, 575, 1889, 0, 0, 0, 1489, 3050, 0, 0, 73, 3729,
493, 34, 328, 2899, 207, 550, 2305, 579, 0, 0, 3208, 1335, 1370, 4187, 263, 799,
0, 0, 3807, 1527, 0, 3046, 0, 385, 0, 93, 0, 539, 2492, 314, 2134, 949,
2393, 3700, 885, 20, 0, 0, 2856, 1153, 0, 0, 0, 0, 1063, 0, 0, 0,
2434, 4294, 0, 1034, 0, 0, 0, 0, 0, 0, 678, 1342, 2931, 1261, 0, 0,
1916, 0, 0, 1588, 0, 736, 37, 808, 1062, 846, 264, 1242, 3458, 0, 355, 678,
767, 0, 3953, 3897, 0, 0, 0, 0, 1979, 0, 0, 399, 0, 0, 0, 1169,
946, 0, 0, 0, 2265, 1354, 1237, 0, 0, 0, 0, 0, 2775, 0, 254, 2877,
0, 3765, 0, 0, 466, 3396, 0, 0, 1460, 171, 3031, 1337, 1691, 0, 0, 3662,
1601, 0, 2852, 3592, 373, 1115, 0, 588, 0, 0, 0, 1468, 0, 3886, 3674, 173,
3592, 0, 0, 1819, 0, 3991, 3633, 0, 0, 4153, 2986, 0, 0, 105, 2659, 0,
0, 1694, 0, 900, 0, 1200, 0, 0, 952, 1731, 0, 2963, 0, 1811, 0, 619,
0, 3951, 0, 453, 0, 555, 639, 2060, 3284, 1334, 0, 381, 3300, 0, 0, 0,
618, 263, 3996, 1189, 0, 0, 2500, 0, 394, 0, 0, 1740, 0, 3158, 3281, 975,
0, 421, 3933, 909, 801, 0, 0, 321, 0, 1526, 0, 1389, 0, 2195, 0, 4296,
734, 0, 0, 3984, 536, 752, 4213, 156, 134, 0, 3669, 0, 0, 3061, 0, 0,
0, 2245, 0, 0, 564, 3225, 3181, 448, 0, 0, 2997, 0, 0, 0, 0, 3188,
0, 1834, 0, 0, 2372, 0, 26, 358, 582, 1401, 0, 0, 0, 1540, 1424, 1865,
0, 4269, 673, 2536, 576, 1287, 899, 1174, 0, 0, 909, 0, 694, 0, 0, 3271,
3350, 211, 0, 0, 1798, 993, 0, 3216, 3503, 0, 1879, 0, 0, 158, 1817, 0,
0, 0, 582, 94, 1265, 4250, 0, 2486, 3792, 0, 0, 0, 0, 3992, 0, 4028,
3379, 0, 0, 252, 3874, 2446, 2284, 3556, 0, 0, 0, 1338, 0, 266, 0, 0,
0, 0, 571, 3464, 0, 0, 168, 0, 0, 1687, 1135, 0, 0, 551, 0, 1383,
1303, 340, 0, 1898, 1092, 0, 204, 0, 2128, 0, 1428, 773, 4245, 94, 874, 1329,
1970, 2420, 0, 0, 0, 500, 1751, 1884, 1152, 543, 0, 1708, 121, 994, 12, 0,
0, 2293, 0, 0, 0, 0, 0, 0, 611, 2119, 0, 0, 116, 0, 518, 0,
3599, 855, 0, 781, 0, 2049, 3285, 586, 0, 1034, 419, 965, 3050, 901, 954, 1303,
0, 102, 1162, 1405, 456, 1791, 0, 3778, 0, 0, 1864, 1773, 0, 1120, 0, 0,
2244, 3393, 3098, 4259, 0, 246, 0, 0, 131, 0, 3154, 0, 814, 0, 0, 1976,
0, 558, 0, 256, 0, 1932, 4240, 0, 398, 0, 2703, 1657, 0, 1863, 1210, 0,
1563, 1503, 0, 0, 2719, 2435, 3696, 273, 0, 2068, 0, 4168, 3922, 1757, 1108, 0,
1773, 18, 0, 3625, 495, 786, 0, 0, 1765, 0, 0, 0, 1664, 0, 783, 2591,
0, 43, 0, 1426, 1129, 559, 0, 0, 1296, 929, 283, 0, 0, 1092, 967, 137,
3824, 3951, 2101, 0, 1002, 0, 687, 1752, 2506, 0, 97, 0, 0, 2138, 0, 2856,
1556, 0, 0, 36, 1283, 0, 1356, 0, 1116, 1706, 0, 0, 3266, 2724, 196, 3946,
0, 31, 3972, 0, 0, 399, 4195, 2626, 0, 390, 0, 100, 812, 0, 1834, 1514,
0, 1360, 0, 0, 0, 631, 1102, 0, 4190, 149, 0, 1717, 1445, 0, 215, 0,
41, 0, 0, 243, 0, 0, 0, 1712, 0, 3405, 0, 1255, 518, 3794, 4279, 464,
810, 2146, 4134, 1040, 0, 0, 2320, 0, 0, 0, 1024, 0, 1536, 0, 710, 0,
0, 904, 0, 0, 932, 0, 1385, 3806, 0, 1486, 2431, 0, 0, 153, 0, 575,
0, 2156, 4178, 0, 4107, 228, 3780, 3356, 0, 1895, 818, 0, 1454, 0, 3604, 697,
0, 0, 1116, 1327, 1792, 3695, 2368, 1472, 0, 2007, 0, 456, 1883, 1732, 0, 1151,
1571, 0, 0, 0, 964, 797, 0, 1239, 3425, 0, 0, 63, 1750, 0, 0, 0,
0, 0, 3923, 0, 1131, 403, 1575, 1081, 871, 1825, 3911, 0, 746, 424, 0, 1,
0, 949, 4056, 0, 0, 1214, 0, 2429, 0, 0, 0, 1536, 3298, 1155, 1851, 1312,
0, 1795, 1906, 0, 0, 2993, 0, 82, 0, 0, 1967, 0, 0, 0, 1233, 363,
832, 1676, 0, 0, 3653, 1931, 879, 1213, 2048, 1714, 0, 1568, 0, 0, 1062, 4059,
0, 2404, 3069, 0, 0, 0, 0, 0, 0, 365, 0, 0, 184, 2028, 1337, 0,
0, 0, 4091, 950, 2053, 2042, 541, 2938, 1603, 1725, 0, 0, 2573, 0, 1086, 550,
1206, 934, 0, 0, 1613, 3691, 2023, 1393, 828, 149, 0, 2069, 0, 1326, 2605, 0,
0, 0, 1575, 0, 1113, 0, 0, 1071, 0, 1943, 3820, 0, 130, 0, 0, 891,
0, 3988, 0, 3287, 0, 0, 570, 0, 0, 1332, 1056, 0, 0, 3315, 983, 404,
5, 451, 686, 0, 0, 3542, 0, 563, 0, 0, 817, 4134, 2845, 3460, 0, 224,
2173, 428, 392, 3334, 181, 0, 0, 1453, 0, 0, 1152, 1431, 2287, 347, 0, 3980,
1299, 0, 0, 2965, 0, 2019, 0, 1995, 121, 925, 0, 0, 0, 1062, 4220, 838,
3388, 809, 0, 0, 0, 0, 1208, 1826, 0, 0, 503, 530, 0, 0, 1309, 0,
0, 742, 4201, 0, 0, 0, 709, 2651, 0, 803, 96, 0, 1112, 2573, 0, 0,
0, 1745, 1120, 2844, 0, 0, 2871, 0, 123, 0, 2104, 721, 0, 0, 0, 1657,
0, 3350, 110, 0, 2909, 623, 205, 0, 2817, 1711, 1864, 2706, 0, 0, 0, 0,
0, 3637, 0, 0, 0, 0, 0, 155, 1420, 1464, 0, 152, 0, 0, 0, 533,
1907, 181, 0, 217, 2325, 0, 0, 11, 3800, 1753, 0, 1744, 0, 2810, 2021, 0,
1009, 0, 0, 0, 0, 112, 0, 3071, 0, 2592, 574, 0, 0, 0, 603, 1789,
3165, 0, 3402, 0, 0, 0, 0, 911, 1100, 0, 261, 1635, 2047, 1373, 2499, 0,
0, 0, 160, 0, 11, 0, 0, 1815, 0, 0, 54, 711, 0, 109, 0, 0,
1184, 1834, 3799, 1985, 0, 0, 0, 1436, 4134, 1355, 2681, 1825, 0, 0, 0, 0,
127, 341, 112, 1999, 3801, 3414, 1290, 0, 0, 1548, 0, 0, 1134, 0, 0, 4206,
0, 86, 1445, 0, 0, 76, 0, 1789, 0, 0, 1611, 4189, 1153, 77, 3174, 0,
0, 1912, 0, 1406, 0, 0, 683, 936, 0, 0, 0, 0, 600, 0, 48, 726,
0, 0, 1258, 2024, 2882, 0, 1248, 0, 1617, 1898, 4193, 0, 1580, 837, 0, 0,
2826, 1033, 2523, 4226, 212, 0, 0, 3920, 126, 984, 116, 0, 0, 4082, 0, 814,
4214, 2603, 1042, 0, 24, 0, 229, 1210, 0, 0, 913, 3566, 3809, 1214, 0, 1500,
821, 770, 0, 0, 0, 0, 2348, 1482, 0, 104, 2014, 508, 3207, 2668, 409, 0,
1581, 0, 3900, 0, 1865, 1379, 1458, 0, 0, 0, 3955, 1462, 652, 2444, 4230, 0,
327, 885, 0, 1873, 90, 1198, 0, 637, 1553, 1027, 0, 913, 297, 0, 1914, 695,
0, 0, 2435, 2135, 983, 0, 0, 0, 0, 0, 3472, 1022, 0, 1748, 0, 3195,
0, 0, 1477, 0, 482, 0, 0, 0, 0, 0, 1396, 0, 0, 0, 0, 1157,
1780, 0, 1220, 3381, 0, 1534, 1115, 642, 1579, 1333, 0, 0, 2555, 0, 800, 3846,
0, 0, 4065, 1107, 0, 0, 0, 695, 0, 3889, 1542, 3897, 0, 1582, 0, 146,
0, 1380, 0, 2558, 0, 0, 1513, 0, 1458, 1704, 1709, 0, 4308, 1256, 898, 0,
0, 1177, 159, 0, 1792, 1773, 2254, 0, 0, 0, 1314, 2788, 0, 0, 0, 1454,
1776, 2574, 2011, 2056, 1519, 3731, 693, 0, 0, 791, 0, 929, 556, 2867, 1315, 0,
0, 914, 2817, 0, 0, 0, 1977, 932, 0, 3231, 0, 0, 0, 202, 2547, 1852,
1348, 4286, 0, 402, 0, 1319, 0, 3102, 0, 481, 875, 0, 0, 1450, 3973, 1379,
0, 0, 0, 638, 0, 573, 0, 2417, 1543, 0, 0, 0, 115, 171, 0, 0,
1505, 1218, 3571, 1759, 0, 3450, 1038, 198, 439, 0, 6, 3697, 906, 3460, 0, 120,
2175, 1919, 1653, 0, 1736, 2116, 121, 4147, 1391, 0, 30, 101, 106, 3753, 3957, 0,
378, 2410, 0, 1582, 0, 0, 0, 0, 0, 733, 0, 3453, 2651, 0, 3976, 0,
1899, 0, 2425, 616, 4127, 0, 1728, 3580, 2415, 0, 0, 0, 0, 1447, 1797, 1750,
0, 0, 0, 0, 385, 0, 0, 725, 1698, 0, 708, 855, 54, 874, 1500, 923,
2067, 3403, 0, 0, 4264, 239, 712, 2639, 3843, 0, 0, 897, 1294, 1849, 978, 3470,
0, 0, 1029, 0, 1209, 895, 0, 475, 0, 0, 0, 0, 810, 0, 2388, 922,
3241, 1745, 0, 3957, 0, 0, 13, 0, 0, 1087, 1774, 0, 1320, 409, 1804, 2883,
0, 532, 0, 1987, 2166, 0, 1126, 0, 4078, 0, 4147, 354, 3332, 0, 4114, 0,
3557, 0, 0, 0, 0, 1767, 79, 1666, 288, 2059, 0, 857, 2460, 2065, 0, 953,
259, 0, 390, 572, 0, 0, 0, 671, 232, 589, 0, 3712, 726, 1927, 0, 0,
0, 0, 0, 418, 0, 3536, 1547, 566, 1552, 191, 3836, 0, 0, 3494, 717, 0,
0, 0, 269, 0, 847, 0, 3519, 0, 651, 2459, 2031, 0, 647, 0, 1113, 4298,
511, 485, 0, 903, 1679, 3829, 3731, 0, 0, 3049, 415, 0, 1313, 2005, 813, 0,
2235, 0, 1523, 0, 1204, 0, 0, 534, 1171, 1195, 3966, 0, 3143, 0, 1656, 3888,
0, 1216, 2066, 966, 1769, 0, 0, 1361, 0, 1869, 0, 2110, 0, 0, 1057, 2581,
1270, 1978, 0, 4180, 888, 0, 1075, 4051, 4222, 1612, 2011, 1562, 0, 0, 0, 2377,
1292, 0, 4106, 954, 498, 4189, 1321, 783, 583, 0, 281, 1050, 0, 165, 0, 1096,
733, 0, 0, 1930, 0, 0, 0, 171, 2114, 2421, 2800, 1958, 1649, 0, 0, 1220,
1561, 614, 0, 242, 0, 66, 0, 2131, 0, 3670, 1563, 0, 0, 41, 0, 0,
4132, 0, 0, 0, 0, 0, 1225, 0, 0, 852, 1661, 0, 83, 2101, 1652, 3259,
4187, 1778, 0, 0, 607, 0, 4202, 4255, 3933, 205, 0, 4282, 0, 885, 0, 0,
950, 149, 1345, 1011, 0, 731, 1016, 0, 3807, 3912, 3512, 4196, 0, 894, 0, 319,
0, 0, 2032, 0, 687, 1949, 1117, 60, 0, 0, 1322, 0, 620, 243, 3314, 0,
0, 0, 827, 657, 1374, 0, 0, 1956, 716, 3273, 0, 3442, 599, 0, 187, 0,
0, 1721, 933, 2038, 0, 3807, 1061, 653, 0, 2464, 1614, 0, 0, 0, 634, 4054,
582, 4259, 0, 656, 4084, 1953, 0, 0, 533, 0, 0, 0, 1652, 3693, 1341, 1266,
4279, 1599, 0, 3614, 0, 0, 0, 0, 1608, 4177, 0, 4120, 0, 771, 724, 1672,
0, 3890, 0, 0, 0, 2234, 161, 0, 0, 3658, 1041, 371, 218, 0, 2103, 0,
1259, 1303, 3940, 501, 2086, 785, 0, 990, 0, 2736, 121, 0, 0, 182, 0, 2486,
3502, 4141, 1675, 1520, 0, 961, 0, 0, 2172, 1603, 0, 0, 199, 333, 1642, 1700,
0, 1688, 2881, 600, 0, 1131, 4, 4227, 0, 0, 0, 0, 1116, 1659, 1152, 4190,
3952, 0, 3301, 2348, 4073, 0, 343, 4040, 0, 0, 2533, 2896, 1917, 1258, 0, 0,
0, 4297, 0, 0, 0, 3057, 1546, 0, 427, 0, 2129, 0, 0, 1525, 0, 0,
0, 2299, 0, 828, 3382, 2657, 15, 3142, 308, 1332, 0, 1699, 1377, 0, 515, 0,
0, 1807, 0, 4225, 1516, 3476, 1537, 2385, 1755, 477, 0, 0, 0, 654, 2377, 958,
0, 3739, 9, 63, 0, 1161, 1706, 0, 604, 3941, 0, 108, 0, 764, 364, 2120,
4217, 3155, 2010, 3249, 460, 584, 1516, 3527, 4191, 998, 626, 3063, 0, 0, 1110, 3608,
379, 0, 4058, 0, 1449, 1229, 1344, 3075, 3088, 3487, 1018, 3992, 886, 0, 532, 0,
0, 2232, 0, 0, 1510, 0, 252, 4262, 0, 3431, 1407, 1897, 640, 153, 0, 3758,
39, 4194, 0, 0, 3878, 0, 4143, 1937, 3329, 3528, 3566, 4074, 499, 332, 1497, 1674,
4135, 854, 397, 3371, 0, 0, 594, 0, 2994, 776, 0, 1114, 1336, 3259, 0, 1338,
0, 3262, 78, 4238, 328, 3357, 2085, 0, 364, 3639, 0, 0, 534, 0, 566, 0,
1023, 0, 2973, 0, 2157, 0, 1667, 0, 356, 0, 147, 1916, 4087, 4095, 33, 1871,
0, 1130, 3091, 919, 1168, 1403, 370, 779, 4026, 0, 3401, 649, 0, 3426, 0, 0,
0, 0, 2282, 1654, 3177, 253, 4125, 0, 717, 4235, 146, 0, 1397, 445, 3074, 0,
0, 3320, 0, 1974, 0, 3775, 0, 1523, 0, 1637, 973, 1159, 0, 0, 1948, 3690,
0, 749, 0, 3830, 756, 389, 1412, 0, 900, 0, 0, 0, 0, 0, 842, 58,
3903, 0, 1200, 0, 0, 1148, 970, 1224, 1720, 1547, 0, 567, 0, 1840, 2084, 850,
0, 0, 3261, 0, 1154, 357, 0, 0, 0, 0, 0, 0, 2988, 3614, 2065, 471,
0, 3102, 1794, 0, 0, 792, 0, 492, 1613, 0, 807, 0, 1133, 0, 1658, 395,
2100, 2022, 3419, 352, 1853, 2082, 4251, 487, 378, 0, 0, 2534, 3014, 1501, 578, 3413,
0, 1424, 413, 4140, 402, 1854, 0, 1649, 944, 0, 3748, 0, 4137, 3167, 362, 998,
969, 2267, 0, 0, 107, 0, 278, 3416, 2542, 2436, 623, 796, 0, 0, 0, 3734,
1068, 0, 0, 0, 2253, 0, 4161, 451, 4260, 2544, 4101, 1914, 536, 866, 0, 1290,
1111, 0, 3321, 1045, 0, 801, 1869, 895, 3277, 671, 0, 0, 2523, 4145, 1950, 0,
1837, 1, 0, 0, 634, 0, 0, 0, 0, 1215, 1613, 0, 0, 0, 36, 0,
2200, 0, 427, 0, 2771, 856, 3304, 0, 0, 1699, 450, 3592, 4245, 0, 52, 792,
1431, 0, 0, 897, 1405, 969, 201, 2992, 0, 935, 0, 0, 2083, 0, 4158, 291,
1013, 732, 0, 0, 93, 3753, 0, 0, 0, 1615, 3887, 3705, 2000, 0, 2646, 0,
1703, 4046, 0, 1965, 867, 100, 722, 1757, 2783, 4024, 0, 691, 0, 0, 2646, 359,
198, 760, 0, 3956, 0, 4295, 1754, 1531, 361, 0, 0, 0, 0, 491, 0, 3482,
1652, 0, 0, 0, 9, 262, 570, 230, 1682, 0, 1364, 1465, 1639, 0, 188, 0,
138, 0, 0, 1911, 3323, 639, 0, 0, 1022, 435, 444, 3813, 1589, 3636, 2140, 3106,
0, 1463, 0, 1868, 0, 4180, 2094, 982, 0, 2259, 0, 2813, 3142, 1178, 3427, 0,
0, 3932, 1618, 913, 0, 0, 1401, 0, 0, 4111, 0, 0, 0, 3392, 0, 2559,
0, 1306, 2081, 1328, 2272, 0, 0, 0, 1270, 1085, 642, 0, 3915, 616, 92, 391,
0, 218, 330, 500, 0, 374, 3505, 1118, 331, 0, 3211, 2384, 0, 0, 186, 4045,
0, 4288, 623, 735, 0, 483, 0, 1130, 0, 2617, 1606, 747, 269, 3098, 539, 0,
2762, 0, 3536, 4142, 2917, 1039, 2460, 1049, 760, 0, 0, 0, 0, 0, 1435, 1369,
3828, 0, 0, 0, 0, 283, 0, 2020, 2046, 0, 3519, 1499, 1583, 0, 943, 778,
2064, 0, 3318, 2677, 4269, 0, 1681, 644, 613, 1768, 2877, 1392, 3590, 0, 0, 2035,
754, 671, 0, 0, 0, 0, 0, 3230, 494, 1690, 1577, 3604, 0, 321, 940, 111,
585, 0, 0, 1882, 0, 0, 1360, 0, 2888, 0, 0, 0, 2036, 4296, 1173, 3597,
4069, 536, 1616, 1528, 0, 801, 0, 0, 0, 1951, 869, 431, 3921, 223, 3411, 0,
320, 0, 2409, 745, 696, 478, 763, 0, 98, 1530, 1279, 1059, 1195, 2054, 0, 540,
1096, 2508, 0, 219, 1619, 0, 0, 2443, 0, 0, 1714, 1016, 1393, 1735, 0, 777,
132, 0, 0, 3372, 514, 370};
0, 0, 0, 0, 3391, 1306, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1177,
0, 0, 0, 0, 846, 0, 0, 0, 0, 0, 0, 0, 475, 0, 2916, 240,
0, 0, 0, 1114, 0, 2623, 0, 89, 0, 0, 0, 0, 0, 1865, 0, 0,
2128, 0, 0, 0, 2280, 0, 0, 0, 0, 0, 0, 1760, 0, 799, 1672, 0,
0, 0, 0, 550, 0, 2959, 0, 0, 0, 0, 0, 0, 3876, 3420, 0, 0,
0, 145, 0, 1504, 0, 0, 2322, 0, 0, 0, 0, 455, 806, 2991, 0, 0,
0, 0, 0, 0, 0, 0, 0, 3358, 1989, 0, 0, 1891, 0, 994, 384, 0,
0, 0, 0, 0, 0, 0, 0, 1165, 0, 0, 0, 3640, 2710, 337, 586, 0,
0, 0, 0, 0, 3856, 0, 0, 0, 0, 3471, 0, 0, 2587, 0, 0, 0,
3248, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2587, 0,
0, 0, 0, 0, 0, 0, 0, 1107, 395, 0, 0, 0, 0, 0, 3487, 0,
0, 0, 171, 1248, 534, 0, 2322, 0, 0, 1219, 0, 0, 0, 374, 0, 0,
0, 400, 0, 0, 0, 0, 0, 0, 0, 0, 2028, 0, 0, 0, 2861, 0,
1246, 0, 0, 0, 1827, 785, 1515, 2529, 396, 3160, 0, 0, 1536, 0, 130, 3124,
0, 0, 2640, 0, 0, 0, 0, 1078, 0, 0, 0, 0, 0, 0, 523, 0,
0, 710, 0, 2429, 0, 0, 469, 125, 0, 0, 0, 0, 0, 2539, 2295, 0,
2953, 2045, 1567, 1549, 0, 0, 1182, 0, 0, 0, 1189, 12, 0, 0, 825, 1610,
0, 2809, 2576, 0, 915, 0, 0, 3590, 0, 0, 957, 0, 2404, 0, 1210, 933,
0, 1055, 3237, 0, 82, 967, 0, 0, 886, 0, 0, 0, 0, 2060, 0, 0,
0, 866, 0, 1383, 2956, 0, 1533, 1265, 0, 1962, 1846, 0, 0, 60, 0, 0,
0, 282, 849, 0, 0, 0, 0, 0, 0, 3429, 1138, 3410, 0, 0, 0, 0,
1145, 0, 0, 1716, 2442, 1154, 1486, 0, 0, 0, 0, 0, 0, 3894, 0, 0,
0, 0, 0, 0, 0, 0, 35, 0, 0, 42, 0, 3799, 0, 0, 0, 3845,
0, 3148, 1307, 0, 1396, 0, 0, 662, 0, 2662, 3657, 0, 0, 1966, 0, 0,
1090, 605, 2805, 0, 0, 3323, 0, 833, 0, 116, 0, 531, 0, 915, 0, 0,
0, 0, 2450, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 888, 0, 835,
0, 0, 0, 439, 0, 0, 0, 1884, 0, 0, 0, 3296, 0, 0, 0, 2078,
0, 3622, 0, 1602, 0, 0, 0, 0, 0, 1352, 0, 0, 0, 0, 0, 0,
0, 0, 2097, 0, 0, 0, 2158, 3419, 683, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1746, 0, 616, 0, 451, 3665, 263, 2364, 1155, 0, 2320, 3516, 1442,
1230, 0, 2014, 0, 826, 792, 2332, 332, 2014, 822, 0, 0, 0, 3218, 0, 1285,
0, 1851, 3068, 0, 0, 0, 0, 2129, 178, 0, 12, 0, 3552, 0, 0, 435,
0, 1344, 2182, 0, 444, 1831, 0, 0, 3666, 1940, 0, 0, 0, 0, 0, 2070,
1024, 0, 0, 0, 0, 1397, 2174, 0, 0, 0, 1576, 3367, 1033, 1737, 0, 1869,
1474, 0, 0, 2978, 1675, 2971, 0, 0, 0, 0, 3822, 0, 1263, 2920, 1016, 0,
2321, 0, 3848, 0, 0, 0, 3654, 0, 0, 649, 0, 0, 0, 2961, 2504, 0,
763, 1491, 0, 1783, 0, 150, 0, 0, 0, 0, 132, 347, 0, 0, 3648, 1517,
570, 1928, 0, 1416, 1535, 0, 1674, 1325, 1531, 0, 3879, 1953, 0, 2763, 519, 3641,
0, 373, 687, 0, 0, 1754, 3304, 0, 2312, 3641, 0, 1430, 0, 0, 0, 0,
0, 814, 0, 0, 560, 0, 0, 0, 0, 1673, 0, 2735, 3468, 837, 0, 744,
1919, 0, 0, 0, 0, 0, 0, 0, 237, 3688, 1482, 0, 0, 0, 2447, 0,
0, 1899, 358, 0, 0, 0, 0, 0, 1699, 0, 3384, 3335, 1950, 0, 0, 0,
1481, 0, 209, 0, 0, 0, 31, 2969, 0, 0, 0, 0, 0, 0, 0, 0,
2301, 918, 633, 1216, 0, 78, 1375, 0, 3529, 0, 0, 0, 0, 486, 2797, 0,
1316, 159, 2470, 0, 1846, 0, 0, 3034, 1322, 0, 150, 0, 0, 2897, 197, 0,
0, 1945, 3802, 300, 0, 0, 0, 0, 0, 1653, 88, 0, 988, 2114, 0, 1029,
1887, 0, 1233, 936, 0, 0, 0, 317, 0, 0, 0, 0, 3054, 0, 0, 0,
2943, 862, 30, 0, 0, 304, 3108, 1846, 0, 45, 686, 0, 3588, 944, 0, 502,
804, 142, 1547, 3388, 3702, 0, 0, 0, 2383, 3204, 0, 0, 2694, 133, 3604, 1876,
138, 2994, 3423, 0, 0, 0, 0, 3378, 1939, 1675, 3244, 1325, 0, 0, 0, 0,
0, 0, 1574, 0, 0, 0, 2233, 565, 0, 1094, 1720, 0, 0, 13, 0, 1073,
1806, 0, 831, 708, 0, 0, 0, 0, 0, 0, 446, 0, 1472, 640, 688, 924,
3875, 1366, 0, 1812, 0, 888, 0, 763, 669, 0, 0, 493, 0, 856, 0, 2300,
0, 0, 0, 0, 3483, 0, 1729, 0, 0, 3295, 492, 0, 3128, 0, 0, 0,
0, 0, 0, 1076, 0, 0, 502, 269, 0, 0, 1464, 3203, 0, 0, 0, 1865,
0, 57, 0, 0, 0, 0, 1817, 0, 3330, 1292, 494, 234, 0, 0, 1843, 3460,
2059, 671, 1457, 875, 2926, 0, 1768, 3532, 283, 0, 3700, 3830, 3641, 3582, 2675, 0,
1138, 1750, 0, 0, 0, 864, 0, 0, 0, 0, 1967, 2092, 2014, 615, 466, 0,
2963, 1133, 3580, 1119, 0, 0, 0, 0, 0, 0, 0, 176, 1562, 156, 367, 0,
431, 3316, 1537, 0, 1553, 0, 0, 820, 1215, 882, 2182, 0, 3873, 0, 1992, 100,
0, 0, 0, 0, 0, 0, 3268, 1496, 1317, 548, 2767, 172, 0, 0, 0, 0,
0, 1173, 319, 0, 89, 0, 0, 0, 2950, 2161, 3020, 0, 0, 3061, 0, 2093,
0, 0, 0, 2358, 0, 0, 2039, 0, 2214, 1555, 863, 0, 0, 0, 0, 0,
1553, 2749, 630, 2152, 1082, 0, 1582, 521, 279, 798, 1141, 918, 0, 0, 0, 0,
0, 1144, 1905, 0, 2374, 0, 0, 0, 0, 2942, 531, 2238, 354, 0, 1803, 2068,
0, 0, 0, 53, 0, 0, 0, 0, 0, 569, 898, 0, 133, 1881, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 48, 3734, 0, 627, 2550, 0, 0, 3376,
2551, 0, 1529, 0, 0, 1591, 995, 0, 1519, 0, 0, 2050, 0, 3491, 0, 361,
372, 0, 609, 0, 0, 1369, 0, 0, 0, 1063, 0, 1528, 0, 0, 0, 2667,
0, 0, 0, 1650, 3655, 3302, 0, 0, 649, 1678, 0, 0, 0, 0, 0, 0,
0, 891, 0, 0, 0, 0, 0, 2550, 3579, 733, 730, 672, 1225, 0, 0, 3569,
0, 0, 0, 3534, 0, 2032, 0, 1025, 973, 0, 434, 1252, 1290, 0, 0, 0,
2243, 0, 0, 0, 1677, 0, 1659, 1203, 1764, 1843, 0, 737, 2377, 0, 2258, 0,
429, 1115, 0, 1813, 1582, 0, 0, 1125, 2136, 863, 275, 2434, 0, 3744, 0, 479,
2145, 0, 0, 1113, 2089, 0, 0, 929, 0, 0, 0, 0, 0, 701, 2469, 0,
0, 0, 648, 0, 0, 293, 501, 1667, 245, 0, 1600, 3431, 0, 0, 1356, 0,
2283, 2096, 2982, 0, 1189, 0, 0, 3484, 320, 0, 0, 666, 73, 692, 789, 2686,
0, 77, 1013, 2288, 3007, 0, 0, 0, 0, 1256, 3299, 0, 2504, 34, 1197, 0,
953, 0, 0, 1382, 0, 0, 0, 0, 3334, 404, 0, 1146, 1551, 1212, 334, 0,
0, 3375, 0, 748, 1483, 877, 0, 0, 3032, 3014, 0, 0, 2198, 2009, 0, 3597,
0, 453, 234, 882, 0, 3735, 0, 2022, 1329, 0, 0, 948, 1714, 759, 286, 0,
1268, 3284, 835, 857, 0, 248, 1125, 3626, 3055, 0, 0, 0, 570, 479, 3518, 0,
3526, 744, 1212, 0, 3426, 0, 0, 3612, 3703, 2133, 0, 0, 0, 1934, 288, 0,
1101, 0, 0, 1810, 0, 0, 2923, 0, 178, 0, 0, 1017, 234, 32, 0, 0,
3772, 369, 0, 1015, 1810, 1931, 0, 1187, 662, 0, 1441, 1282, 0, 0, 455, 3366,
620, 844, 0, 0, 1799, 0, 395, 0, 0, 3554, 0, 0, 3466, 0, 2691, 1933,
0, 0, 1117, 0, 0, 0, 0, 2473, 0, 0, 0, 0, 2173, 894, 0, 891,
0, 2982, 2134, 384, 899, 1011, 3139, 0, 0, 0, 0, 0, 0, 2962, 998, 958,
0, 3742, 1777, 1029, 87, 0, 2283, 728, 0, 1144, 0, 0, 1451, 1650, 0, 3404,
836, 198, 3684, 0, 0, 3483, 0, 0, 1318, 3051, 0, 112, 0, 3361, 3, 1446,
0, 0, 602, 987, 0, 0, 0, 0, 905, 0, 0, 0, 1326, 1508, 0, 1557,
1322, 0, 1261, 1495, 0, 337, 0, 939, 0, 1526, 1559, 181, 1783, 0, 0, 1639,
0, 1147, 0, 0, 0, 0, 0, 1167, 66, 904, 1856, 0, 454, 631, 3775, 1668,
94, 1757, 0, 689, 2982, 3466, 976, 1216, 3854, 0, 2377, 0, 0, 865, 0, 0,
0, 0, 1834, 1544, 0, 0, 523, 0, 1862, 2388, 0, 0, 444, 0, 0, 2131,
1766, 2611, 1968, 0, 676, 0, 0, 571, 3802, 0, 394, 0, 0, 395, 0, 1807,
206, 140, 467, 0, 1960, 0, 439, 0, 372, 1379, 0, 392, 614, 3228, 2190, 0,
1852, 790, 815, 295, 1100, 0, 0, 437, 0, 0, 2065, 0, 3110, 0, 1551, 240,
2833, 0, 0, 783, 219, 2919, 3659, 0, 1092, 370, 1740, 749, 0, 0, 0, 1186,
0, 2035, 0, 3129, 0, 0, 1125, 208, 643, 2802, 0, 1901, 2417, 1584, 3155, 0,
2143, 684, 1369, 2372, 0, 905, 1264, 694, 3693, 0, 0, 1647, 0, 2265, 0, 306,
403, 1095, 0, 556, 1057, 0, 0, 0, 0, 2737, 0, 294, 1681, 2958, 0, 0,
0, 659, 279, 0, 0, 0, 2303, 2042, 0, 0, 1338, 404, 814, 0, 2254, 735,
0, 2098, 0, 3055, 374, 0, 0, 0, 1879, 2332, 0, 1702, 0, 0, 1653, 3573,
0, 0, 1936, 2455, 3013, 0, 2443, 0, 0, 0, 0, 3457, 0, 3368, 3784, 2129,
3827, 534, 0, 3505, 2171, 464, 1698, 1015, 3634, 1350, 2007, 0, 1640, 0, 322, 0,
0, 2052, 3752, 2344, 0, 0, 2131, 0, 0, 0, 443, 2953, 1696, 124, 3021, 2295,
174, 1751, 0, 1432, 0, 0, 0, 2137, 1166, 0, 3334, 0, 3060, 0, 0, 2395,
1083, 2805, 0, 2161, 0, 984, 0, 24, 0, 798, 2121, 1488, 177, 0, 0, 0,
1740, 3843, 0, 1422, 0, 0, 160, 0, 3545, 3086, 2600, 0, 0, 1551, 1425, 0,
892, 1614, 0, 450, 3797, 0, 0, 0, 190, 1258, 0, 0, 923, 92, 0, 2608,
0, 1159, 0, 691, 0, 430, 447, 2959, 1019, 1392, 3731, 2892, 1246, 0, 14, 3426,
0, 0, 0, 0, 0, 0, 2445, 0, 3583, 0, 707, 228, 269, 1031, 0, 2077,
3006, 0, 0, 453, 1245, 1243, 0, 3677, 0, 0, 0, 0, 0, 0, 2332, 3703,
1757, 3669, 798, 37, 2389, 0, 1058, 293, 3167, 1460, 3552, 3717, 0, 0, 709, 341,
0, 416, 2469, 0, 0, 71, 0, 0, 1180, 1320, 1736, 3121, 0, 323, 0, 0,
531, 2456, 1489, 0, 0, 0, 0, 0, 3158, 559, 7, 1305, 1365, 159, 0, 0,
973, 0, 1790, 0, 0, 0, 0, 0, 930, 0, 1776, 199, 3698, 2103, 15, 0,
0, 3176, 580, 0, 0, 1924, 0, 0, 0, 0, 0, 322, 0, 0, 2656, 440,
194, 3668, 1921, 1746, 0, 0, 0, 0, 0, 1486, 1795, 1153, 0, 0, 0, 1605,
1321, 1098, 0, 3642, 0, 0, 86, 1292, 1062, 2897, 815, 0, 3606, 3230, 0, 0,
125, 0, 0, 2502, 0, 0, 0, 3641, 0, 11, 0, 80, 0, 987, 0, 0,
10, 0, 995, 3819, 850, 0, 912, 3273, 0, 0, 1834, 2063, 1701, 3169, 682, 0,
0, 1654, 2707, 3120, 13, 571, 0, 3219, 552, 0, 1384, 0, 3104, 0, 38, 0,
0, 0, 0, 44, 0, 2715, 0, 3863, 0, 1342, 0, 673, 0, 574, 1515, 429,
3140, 0, 3368, 2370, 218, 2676, 1996, 2804, 0, 1131, 3352, 738, 849, 372, 0, 194,
0, 0, 0, 0, 626, 0, 928, 0, 0, 0, 980, 3458, 3123, 333, 0, 0,
1090, 0, 0, 0, 1765, 749, 0, 0, 0, 0, 0, 2497, 1440, 3227, 689, 0,
533, 3786, 896, 3352, 1825, 3864, 3663, 1995, 0, 479, 0, 0, 2554, 967, 0, 200,
107, 0, 1362, 444, 3601, 2887, 754, 1526, 1267, 379, 0, 267, 2281, 2552, 0, 3877,
2682, 917, 0, 0, 0, 22, 0, 1580, 3833, 0, 2562, 767, 1254, 1523, 1861, 216,
2004, 0, 1687, 440, 1159, 897, 0, 0, 2839, 691, 0, 0, 817, 0, 938, 3690,
3454, 1735, 0, 0, 2229, 0, 212, 0, 1522, 0, 117, 0, 0, 0, 1354, 3818,
0, 66, 0, 0, 3581, 0, 1639, 1670, 1015, 0, 784, 0, 3650, 679, 603, 0,
0, 0, 0, 0, 250, 3845, 0, 3706, 1663, 0, 813, 1069, 3134, 18, 3433, 422,
1329, 0, 2484, 0, 0, 0, 157, 1976, 71, 3654, 944, 3742, 13, 3308, 2179, 0,
1399, 0, 0, 0, 643, 169, 0, 1390, 0, 79, 108, 0, 0, 1110, 0, 0,
2856, 0, 1756, 3388, 3890, 707, 2699, 0, 1293, 89, 0, 1686, 378, 0, 2559, 0,
2281, 0, 0, 3717, 0, 0, 0, 761, 731, 0, 0, 407, 0, 321, 2097, 0,
0, 3905, 0, 388, 0, 151, 3894, 0, 2739, 3375, 1036, 0, 2777, 0, 2457, 0,
2538, 1493, 3874, 4, 0, 0, 3853, 966, 1889, 554, 700, 1227, 975, 3594, 2959, 512,
0, 911, 3857, 354, 0, 605, 0, 3823, 460, 0, 2364, 0, 1587, 0, 623, 3520,
3137, 0, 0, 182, 488, 0, 0, 1325, 675, 3844, 0, 2975, 0, 798, 2109, 0,
1631, 952, 270, 1228, 1848, 0, 0, 2035, 0, 932, 247, 0, 1484, 291, 0, 146,
0, 1601, 922, 3217, 200, 2005, 1710, 680, 0, 2253, 1648, 0, 1310, 0, 0, 0,
1892, 0, 85, 2008, 661, 1972, 0, 2737, 1917, 0, 0, 974, 3607, 418, 3132, 0,
557, 1301, 3458, 3068, 0, 3143, 2785, 0, 0, 123, 720, 0, 0, 557, 0, 1980,
1639, 3075, 693, 1130, 911, 3673, 0, 0, 0, 2138, 0, 0, 0, 0, 0, 3190,
0, 0, 352, 0, 1032, 2589, 990, 22, 1028, 0, 199, 3867, 796, 692, 0, 794,
0, 0, 0, 1810, 0, 0, 3175, 0, 1271, 0, 0, 1528, 995, 525, 1926, 0,
3730, 830, 0, 400, 425, 387, 0, 2492, 0, 0, 2595, 1560, 1479, 2578, 0, 0,
0, 641, 0, 864, 2539, 1525, 0, 0, 0, 371, 0, 1205, 751, 2067, 1566, 0,
0, 3337, 1785, 0, 1949, 2144, 0, 493, 873, 0, 0, 0, 0, 1990, 2082, 2607,
0, 0, 1298, 0, 2159, 3583, 0, 1551, 1208, 0, 711, 0, 0, 576, 1511, 2719,
0, 3604, 668, 1071, 3841, 0, 702, 0, 2939, 0, 745, 1310, 0, 2292, 0, 1574,
2788, 321, 459, 0, 0, 1576, 0, 0, 983, 423, 0, 0, 1153, 1837, 0, 3788,
294, 0, 771, 0, 0, 764, 664, 332, 495, 0, 0, 0, 0, 2136, 1855, 285,
2979, 0, 126, 0, 617, 3189, 0, 877, 0, 0, 652, 896, 0, 0, 0, 646,
996, 2793, 0, 1034, 3862, 2814, 0, 0, 0, 0, 96, 461, 0, 3474, 432, 0,
1352, 902, 11, 0, 950, 551, 585, 2579, 158, 0, 1912, 1017, 1821, 0, 0, 0,
1799, 0, 0, 2467, 0, 1608, 0, 0, 3796, 0, 0, 3125, 0, 0, 126, 1028,
1669, 0, 1088, 769, 1048, 3307, 2537, 1315, 0, 0, 0, 0, 0, 0, 922, 1607,
128, 706, 1395, 0, 3108, 2853, 0, 0, 2915, 0, 597, 0, 1505, 3243, 0, 2860,
0, 0, 0, 1654, 0, 243, 1294, 0, 2489, 3349, 508, 3527, 6, 169, 347, 1959,
334, 0, 1347, 2786, 3, 3377, 0, 0, 79, 3860, 3442, 1789, 2940, 1737, 0, 336,
0, 446, 3849, 2011, 0, 0, 2973, 3676, 2196, 0, 0, 3291, 1007, 75, 0, 859,
0, 2101, 0, 0, 1625, 0, 3569, 317, 3582, 1168, 1593, 303, 0, 597, 286, 0,
583, 2809, 2137, 393, 3050, 2576, 0, 1691, 0, 1350, 3701, 794, 0, 2426, 811, 108,
1302, 826, 0, 660, 0, 0, 1659, 0, 0, 339, 0, 0, 2821, 0, 50, 2760,
0, 0, 0, 358, 3614, 131, 3073, 1083, 0, 748, 680, 3652, 153, 1584, 3340, 1111,
254, 656, 0, 0, 2256, 289, 171, 0, 1027, 0, 1377, 0, 0, 1490, 360, 1770,
1578, 839, 606, 0, 320, 2766, 36, 2745, 0, 3133, 1154, 3757, 492, 3404, 642, 0,
460, 723, 0, 0, 19, 1204, 893, 51, 0, 689, 0, 3374, 1826, 2646, 836, 2128,
2538, 0, 1319, 0, 0, 3070, 0, 1462, 1726, 3879, 0, 2913, 3324, 2851, 1708, 0,
3280, 1330, 1134, 0, 522, 989, 0, 3798, 0, 0, 1053, 1449, 3497, 0, 0, 3145,
1474, 1954, 1099, 0, 0, 3041, 3143, 0, 0, 3214, 1532, 0, 0, 0, 3519, 614,
3237, 951, 1988, 0, 563, 2058, 3426, 2867, 456, 2051, 93, 1073, 1450, 0, 2033, 158,
1270, 0, 237, 944, 1527, 3281, 0, 3313, 924, 1370, 1310, 1463, 761, 3886, 838, 0,
0, 1372, 0, 0, 2531, 0, 2864, 0, 527, 0, 0, 3261, 3329, 468, 190, 0,
769, 145, 0, 0, 0, 3230, 0, 1358, 3394, 2405, 805, 1132, 0, 0, 0, 0,
2009, 0, 1640, 1433, 3313, 3647, 0, 0, 1635, 0, 1499, 1873, 431, 301, 0, 2290,
0, 3550, 1788, 1125, 0, 0, 0, 403, 1488, 947, 2037, 0, 0, 0, 1472, 1415,
1235, 0, 0, 0, 3319, 3803, 461, 0, 746, 376, 1415, 2485, 0, 0, 572, 1259,
3748, 2452, 3305, 3544, 3370, 467, 1836, 1828, 0, 2322, 2149, 1070, 2067, 0, 2769, 3174,
0, 368, 536, 2620, 3887, 2104, 2837, 1482, 0, 3305, 2723, 446, 920, 0, 71, 1564,
3567, 83, 1342, 259, 0, 376, 0, 1410, 1078, 940, 35, 3291, 757, 0, 0, 3424,
2135, 1467, 946, 0, 0, 0, 0, 217, 0, 1943, 384, 1782, 2868, 0, 1266, 650,
0, 1640, 1926, 3332, 0, 1599, 1860, 0, 166, 2483, 1098, 0, 2708, 0, 3354, 1497,
0, 0, 1027, 1280, 3443, 0, 1224, 687, 32, 1668, 3768, 0, 3262, 0, 1649, 280,
1175, 2313, 0, 2155, 412, 1745, 1660, 308, 0, 371, 342, 1041, 0, 3862, 0, 0,
2988, 0, 0, 297, 0, 0, 3842, 0, 0, 206, 0, 1785, 1443, 0, 1753, 0,
0, 0, 2917, 0, 0, 366, 0, 523, 0, 0, 3554, 2061, 839, 269, 0, 160,
751, 0, 0, 3709, 1996, 1254, 0, 2189, 0, 28, 1046, 1002, 1481, 0, 483, 1364,
3192, 0, 0, 3279, 2812, 957, 0, 0, 0, 0, 0, 0, 0, 91, 45, 1186,
352, 2737, 0, 0, 0, 377, 1156, 2932, 264, 0, 967, 586, 2079, 1744, 1414, 0,
771, 1348, 3610, 14, 0, 2186, 2640, 1553, 2115, 0, 1213, 0, 304, 643, 0, 1284,
486, 0, 99, 3684, 0, 184, 2623, 1251, 0, 0, 1570, 2966, 1106, 3860, 0, 1221,
0, 2764, 1004, 206, 0, 1220, 79, 0, 0, 0, 0, 1166, 0, 24, 3827, 1690,
0, 3760, 938, 1291, 21, 1016, 3834, 0, 1281, 0, 0, 0, 3758, 3375, 1763, 0,
2543, 0, 0, 0, 2114, 1491, 0, 0, 105, 1234, 0, 2596, 1442, 2660, 0, 0,
521, 652, 1496, 743, 0, 0, 720, 0, 3809, 2064, 0, 3825, 0, 677, 1187, 607,
1060, 1102, 934, 718, 2076, 252, 0, 1707, 3220, 765, 396, 898, 1011, 3484, 3025, 3624,
2755, 2543, 188, 1468, 2213, 0, 3559, 1873, 0, 1515, 0, 0, 774, 1202, 0, 0,
3091, 29, 0, 0, 0, 1229, 1648, 1623, 606, 1621, 2589, 2061, 0, 0, 890, 2997,
3708, 0, 1662, 87, 0, 0, 1390, 1262, 1394, 0, 0, 2944, 2201, 579, 1073, 3890,
0, 0, 1816, 1140, 1939, 2173, 535, 1070, 0, 0, 1171, 2927, 1238, 2148, 3867, 3754,
3118, 697, 0, 1455, 649, 365, 1789, 0, 870, 2404, 543, 261, 0, 0, 111, 0,
0, 0, 217, 3663, 3677, 73, 1509, 614, 728, 969, 0, 1590, 0, 1410, 2526, 1478,
0, 4, 1543, 0, 233, 907, 0, 0, 0, 0, 593, 3806, 2697, 1130, 192, 3058,
0, 299, 2108, 117, 2001, 3883, 0, 0, 503, 1519, 0, 2387, 160, 486, 1665, 1754,
0, 2164, 0, 3345, 0, 1122, 0, 0, 0, 257, 812, 523, 66, 451, 1625, 0,
3235, 0, 718, 3372, 2427, 49, 3569, 2691, 1531, 1033, 244, 0, 1280, 641, 1502, 945,
1406, 2494, 3256, 315, 0, 90, 1054, 2028, 3693, 0, 799, 2365, 0, 121, 1915, 876,
0, 144, 834, 232, 2735, 1452, 1232, 519, 1506, 3456, 491, 0, 2711, 0, 0, 3152,
0, 3570, 698, 1904, 3864, 2356, 0, 3144, 0, 0, 2363, 614, 763, 482, 1885, 772,
0, 657, 0, 2827, 1391, 782, 0, 49, 800, 0, 667, 1419, 920, 0, 3185, 0,
832, 1628, 1649, 0, 0, 0, 0, 657, 0, 0, 1010, 332, 935, 0, 0, 720,
3754, 1881, 0, 1772, 1428, 1982, 0, 0, 871, 3167, 2168, 0, 3220, 622, 1635, 501,
0, 0, 3624, 3771, 1755, 0, 623, 1782, 1962, 0, 2629, 0, 295, 3201, 83, 295,
0, 1230, 0, 3167, 0, 0, 747, 1319, 600, 0, 0, 1055, 4, 1205, 0, 1948,
3363, 655, 0, 0, 3889, 0, 0, 0, 878, 0, 0, 480, 0, 0, 3440, 3360,
816, 39, 0, 0, 472, 1761, 350, 0, 0, 3439, 0, 493, 3901, 1129, 0, 0,
1578, 825, 0, 1773, 0, 0, 1082, 837, 0, 0, 0, 1379, 0, 2256, 3910, 0,
215, 814, 0, 0, 3282, 3014, 0, 141, 3481, 2554, 0, 0, 3818, 1851, 0, 1074,
2445, 2186, 683, 3714, 1357, 3871, 2758, 1624, 3480, 0, 0, 3654, 731, 1775, 0, 0,
0, 0, 0, 0, 0, 0, 821, 671, 0, 1527, 2020, 1556, 668, 0, 1121, 2127,
2878, 3777, 1337, 685, 3654, 1998, 218, 469, 1414, 1986, 2028, 0, 1096, 2937, 0, 3606,
0, 3548, 1330, 101, 618, 0, 3436, 526, 0, 0, 2079, 3220, 0, 3238, 0, 1439,
348, 651, 386, 1226, 706, 1945, 156, 509, 1161, 1501, 11, 0, 0, 2034, 818, 3836,
1679, 0, 0, 0, 0, 1801, 0, 0, 2720, 1320, 0, 3273, 867, 46, 0, 0,
530, 0, 0, 2276, 2329, 2849, 1027, 0, 0, 3231, 172, 3655, 3171, 413, 0, 434,
0, 1921, 687, 0, 0, 1067, 0, 0, 0, 2923, 489, 0, 0, 1886, 1816, 0,
0, 1127, 0, 0, 0, 0, 0, 0, 2741, 0, 0, 2025, 0, 1905, 0, 3489,
0, 1753, 0, 1240, 403, 1927, 1273, 2128, 1160, 3648, 524, 1467, 0, 3708, 0, 111,
0, 1058, 0, 693, 2454, 0, 0, 0, 1507, 2711, 0, 0, 3753, 1413, 3846, 3609,
552, 0, 1434, 1306, 0, 3063, 3646, 0, 0, 0, 2, 3399, 3173, 208, 0, 1868,
1225, 718, 1319, 0, 2118, 3026, 413, 1903, 84, 3709, 595, 155, 597, 3644, 1124, 0,
498, 0, 1177, 1289, 2100, 167, 3288, 3275, 3513, 0, 3695, 748, 316, 3462, 173, 0,
935, 0, 0, 113, 409, 433, 0, 3216, 2073, 2253, 0, 410, 0, 158, 0, 2633,
899, 769, 2622, 0, 3636, 1548, 678, 3406, 1585, 1941, 0, 1271, 356, 0, 1625, 0,
357, 0, 1522, 351, 0, 0, 0, 1856, 3435, 0, 1184, 203, 921, 2654, 0, 656,
285, 2574, 767, 0, 0, 2515, 0, 472, 0, 192, 0, 0, 0, 1529, 0, 0,
1881, 1638, 761, 1469, 2025, 0, 1175, 0, 2158, 2518, 0, 1151, 1336, 3649, 1907, 741,
1223, 0, 709, 0, 2711, 0, 2054, 661, 0, 2413, 0, 2409, 1814, 3709, 1891, 862,
0, 1229, 0, 1999, 149, 2623, 0, 0, 0};
int MangledHashG(const char *key, const int *T)
{
@ -311,7 +286,7 @@ int MangledHashG(const char *key, const int *T)
for (int i = 0; key[i] != '\0'; i++)
{
sum += T[i] * key[i];
sum %= 4310;
sum %= 3913;
}
return mangledkG[sum];
}
@ -321,34 +296,35 @@ int MangledPerfectHash(const char *key)
if (strlen(key) > 40)
return 0;
return (MangledHashG(key, mangledkT1) + MangledHashG(key, mangledkT2)) % 4310;
return (MangledHashG(key, mangledkT1) + MangledHashG(key, mangledkT2)) % 3913;
}
constexpr int unmangledkT1[] = {207, 155, 313, 341, 135, 9, 177, 167, 360, 307, 114, 9, 262,
85, 106, 135, 125, 176, 277, 193, 223, 149, 331, 274, 358, 54};
constexpr int unmangledkT2[] = {55, 288, 187, 350, 175, 265, 361, 369, 259, 121, 129, 161, 363,
266, 318, 176, 200, 164, 169, 340, 207, 119, 142, 43, 174, 235};
constexpr int unmangledkT1[] = {94, 139, 380, 124, 341, 44, 48, 261, 311, 16, 9, 43, 217,
67, 311, 39, 117, 290, 46, 267, 80, 308, 127, 71, 57, 156};
constexpr int unmangledkT2[] = {292, 97, 17, 155, 223, 131, 43, 377, 66, 341, 119, 361, 303,
381, 179, 105, 242, 114, 260, 237, 234, 191, 248, 258, 340, 364};
constexpr int unmangledkG[] = {
0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 69, 0, 13, 0, 0, 0, 0, 0,
0, 0, 328, 0, 0, 134, 0, 122, 0, 161, 0, 332, 0, 0, 0, 0, 0, 0, 177,
0, 138, 0, 0, 198, 0, 42, 157, 0, 0, 332, 0, 229, 248, 76, 238, 111, 0, 0,
104, 0, 0, 164, 369, 0, 57, 0, 0, 112, 0, 146, 141, 0, 0, 342, 0, 0, 209,
0, 0, 0, 314, 0, 185, 0, 218, 232, 302, 213, 0, 316, 268, 362, 23, 201, 0, 0,
29, 0, 0, 0, 182, 0, 0, 206, 0, 221, 367, 0, 0, 0, 0, 268, 127, 90, 211,
0, 137, 0, 0, 0, 140, 0, 0, 172, 0, 294, 0, 28, 0, 73, 0, 36, 69, 315,
308, 209, 0, 0, 0, 0, 0, 23, 112, 0, 0, 0, 0, 5, 19, 306, 153, 0, 361,
0, 188, 0, 349, 0, 101, 181, 323, 125, 156, 71, 0, 242, 20, 0, 0, 356, 152, 147,
301, 348, 0, 53, 254, 103, 0, 0, 134, 38, 0, 182, 0, 0, 0, 166, 37, 115, 16,
0, 0, 47, 15, 0, 30, 0, 0, 0, 248, 244, 145, 0, 31, 0, 0, 0, 6, 69,
281, 58, 20, 12, 164, 131, 33, 0, 346, 164, 19, 11, 120, 197, 247, 30, 153, 84, 137,
75, 343, 137, 5, 167, 74, 0, 193, 0, 358, 0, 5, 0, 164, 209, 0, 0, 102, 117,
183, 0, 0, 0, 0, 0, 0, 94, 128, 0, 114, 31, 0, 0, 0, 106, 283, 151, 0,
224, 91, 0, 369, 168, 195, 105, 53, 0, 0, 57, 47, 17, 0, 0, 0, 17, 155, 133,
279, 0, 277, 0, 328, 344, 0, 109, 204, 0, 146, 241, 149, 290, 159, 87, 0, 0, 0,
361, 240, 14, 353, 169, 213, 0, 0, 363, 176, 251, 342, 0, 99, 258, 0, 208, 291, 1,
79, 0, 0, 0, 66, 32, 0, 266, 191, 116, 0, 0, 150, 21, 0, 240, 163, 46, 0,
74, 96, 208, 0, 179, 0, 309, 193, 53, 24, 0, 58, 146, 0, 317, 126, 119, 135, 0,
0, 21, 0, 263, 179, 62, 302, 138, 0};
0, 0, 0, 0, 0, 0, 0, 169, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 364, 0, 0, 0, 0, 0, 0, 243, 188, 316, 68, 0, 34, 187, 25, 11, 0, 0,
0, 31, 110, 0, 0, 378, 129, 0, 0, 0, 387, 0, 130, 19, 196, 0, 172, 0, 0,
155, 0, 107, 221, 0, 0, 39, 26, 0, 0, 0, 73, 176, 14, 0, 0, 0, 0, 0,
343, 0, 0, 0, 248, 101, 7, 0, 294, 225, 0, 0, 0, 0, 0, 0, 14, 0, 0,
0, 12, 0, 45, 0, 281, 0, 0, 0, 105, 324, 91, 308, 29, 118, 0, 0, 75, 0,
362, 0, 0, 254, 128, 317, 247, 0, 0, 337, 0, 0, 0, 348, 0, 100, 0, 184, 0,
343, 0, 0, 192, 95, 0, 333, 125, 203, 0, 93, 0, 369, 373, 29, 0, 0, 137, 372,
94, 0, 0, 0, 0, 204, 0, 0, 224, 248, 106, 342, 145, 344, 140, 325, 0, 0, 192,
0, 109, 357, 368, 0, 0, 363, 0, 0, 0, 0, 157, 154, 0, 0, 194, 352, 0, 369,
244, 0, 0, 192, 363, 0, 44, 365, 0, 0, 277, 52, 0, 97, 0, 0, 117, 158, 0,
7, 227, 0, 167, 26, 238, 69, 0, 0, 37, 0, 0, 125, 0, 171, 209, 353, 134, 299,
0, 149, 79, 179, 0, 49, 0, 181, 195, 159, 141, 289, 0, 363, 0, 58, 146, 141, 187,
0, 0, 260, 62, 0, 189, 134, 0, 0, 301, 0, 0, 191, 195, 0, 0, 0, 194, 24,
379, 31, 45, 0, 51, 0, 0, 50, 0, 0, 88, 292, 0, 0, 300, 0, 0, 161, 244,
0, 191, 29, 161, 134, 202, 0, 0, 387, 382, 43, 102, 0, 24, 139, 328, 12, 167, 127,
185, 129, 371, 326, 0, 0, 101, 242, 0, 177, 341, 148, 0, 0, 0, 328, 0, 196, 145,
52, 0, 83, 108, 54, 232, 154, 90, 109, 228, 253, 0, 0, 0, 117, 201, 341, 0, 305,
305, 84, 163, 170, 275, 0, 0, 264, 128, 116, 152, 36, 148, 70, 15, 0, 0, 80, 0,
98, 0, 0, 102, 0, 225, 141, 111, 0, 183, 0, 266, 0, 223, 260, 0, 0, 0, 222,
0, 0, 0, 64, 0, 0, 0, 387};
int UnmangledHashG(const char *key, const int *T)
{
@ -357,7 +333,7 @@ int UnmangledHashG(const char *key, const int *T)
for (int i = 0; key[i] != '\0'; i++)
{
sum += T[i] * key[i];
sum %= 370;
sum %= 388;
}
return unmangledkG[sum];
}
@ -367,7 +343,7 @@ int UnmangledPerfectHash(const char *key)
if (strlen(key) > 26)
return 0;
return (UnmangledHashG(key, unmangledkT1) + UnmangledHashG(key, unmangledkT2)) % 370;
return (UnmangledHashG(key, unmangledkT1) + UnmangledHashG(key, unmangledkT2)) % 388;
}
} // namespace

Просмотреть файл

@ -45,6 +45,10 @@ void InitExtensionBehavior(const ShBuiltInResources &resources, TExtensionBehavi
{
extBehavior[TExtension::EXT_frag_depth] = EBhUndefined;
}
if (resources.EXT_primitive_bounding_box)
{
extBehavior[TExtension::EXT_primitive_bounding_box] = EBhUndefined;
}
if (resources.EXT_shader_texture_lod)
{
extBehavior[TExtension::EXT_shader_texture_lod] = EBhUndefined;

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -145,6 +145,8 @@ class TSymbolTableBase
TSymbol *m_gl_outTCSES3_2 = nullptr;
TSymbol *m_gl_PositionTCS = nullptr;
TSymbol *m_gl_PositionTCSES3_2 = nullptr;
TSymbol *m_gl_BoundingBoxEXTTCS = nullptr;
TSymbol *m_gl_BoundingBoxEXTTCSES3_2 = nullptr;
TSymbol *m_gl_TessLevelOuterTES = nullptr;
TSymbol *m_gl_TessLevelOuterTESES3_2 = nullptr;
TSymbol *m_gl_TessLevelInnerTES = nullptr;

Просмотреть файл

@ -273,6 +273,36 @@ ANGLE_NO_DISCARD bool ReplaceGLDepthRangeWithDriverUniform(TCompiler *compiler,
return ReplaceVariableWithTyped(compiler, root, depthRangeVar, angleEmulatedDepthRangeRef);
}
// Declares a new variable to replace gl_BoundingBoxEXT, its values are fed from a global temporary
// variable.
ANGLE_NO_DISCARD bool ReplaceGLBoundingBoxWithGlobal(TCompiler *compiler,
TIntermBlock *root,
TSymbolTable *symbolTable)
{
// Create a symbol reference to "gl_BoundingBoxEXT"
const TVariable *builtinBoundingBoxVar = static_cast<const TVariable *>(
symbolTable->findBuiltIn(ImmutableString("gl_BoundingBoxEXT"), 310));
if (builtinBoundingBoxVar != nullptr)
{
// Declare the replacement bounding box variable type
TType *emulatedBoundingBoxDeclType = new TType(builtinBoundingBoxVar->getType());
emulatedBoundingBoxDeclType->setQualifier(EvqGlobal);
TVariable *ANGLEBoundingBoxVar =
new TVariable(symbolTable->nextUniqueId(), ImmutableString("ANGLEBoundingBox"),
SymbolType::AngleInternal, TExtension::EXT_primitive_bounding_box,
emulatedBoundingBoxDeclType);
DeclareGlobalVariable(root, ANGLEBoundingBoxVar);
// Use the replacement variable instead of builtin gl_BoundingBoxEXT everywhere.
return ReplaceVariable(compiler, root, builtinBoundingBoxVar, ANGLEBoundingBoxVar);
}
return true;
}
TVariable *AddANGLEPositionVaryingDeclaration(TIntermBlock *root,
TSymbolTable *symbolTable,
TQualifier qualifier)
@ -1223,6 +1253,10 @@ bool TranslatorVulkan::translateImpl(TInfoSinkBase &sink,
case gl::ShaderType::TessControl:
{
if (!ReplaceGLBoundingBoxWithGlobal(this, root, &getSymbolTable()))
{
return false;
}
WriteTessControlShaderLayoutQualifiers(sink, getTessControlShaderOutputVertices());
break;
}

Просмотреть файл

@ -1386,6 +1386,17 @@
"initDynamicType":"TType *{type_name} = new TType(EbtFloat, EbpHigh, EvqPosition, 4); {type_name}->setInterfaceBlock(gl_PerVertexOutTcsBlock{ext_or_core_suffix});"
}
}
},
"EXTPrimitiveBoundingBox":{
"variables":{
"gl_BoundingBoxEXT":{
"suffix":"TCS",
"essl_level":"ESSL3_1_BUILTINS",
"essl_extension":"EXT_tessellation_shader",
"essl_extension_becomes_core_in":"ESSL3_2_BUILTINS",
"initDynamicType":"TType *{type_name} = new TType(EbtFloat, EbpHigh, EvqBoundingBoxEXT, 4); {type_name}->makeArray(4u);"
}
}
}
}
},

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -4887,26 +4887,28 @@ class BuiltInId
static constexpr const TSymbolUniqueId gl_PerVertexOutTcsBlockES3_2 = TSymbolUniqueId(3042);
static constexpr const TSymbolUniqueId gl_PositionTCS = TSymbolUniqueId(3043);
static constexpr const TSymbolUniqueId gl_PositionTCSES3_2 = TSymbolUniqueId(3044);
static constexpr const TSymbolUniqueId gl_PatchVerticesInTES = TSymbolUniqueId(3045);
static constexpr const TSymbolUniqueId gl_PatchVerticesInTESES3_2 = TSymbolUniqueId(3046);
static constexpr const TSymbolUniqueId gl_PrimitiveIDTES = TSymbolUniqueId(3047);
static constexpr const TSymbolUniqueId gl_PrimitiveIDTESES3_2 = TSymbolUniqueId(3048);
static constexpr const TSymbolUniqueId gl_TessCoord = TSymbolUniqueId(3049);
static constexpr const TSymbolUniqueId gl_TessLevelOuterTES = TSymbolUniqueId(3050);
static constexpr const TSymbolUniqueId gl_TessLevelOuterTESES3_2 = TSymbolUniqueId(3051);
static constexpr const TSymbolUniqueId gl_TessLevelInnerTES = TSymbolUniqueId(3052);
static constexpr const TSymbolUniqueId gl_TessLevelInnerTESES3_2 = TSymbolUniqueId(3053);
static constexpr const TSymbolUniqueId gl_PerVertexTES = TSymbolUniqueId(3054);
static constexpr const TSymbolUniqueId gl_PerVertexTESES3_2 = TSymbolUniqueId(3055);
static constexpr const TSymbolUniqueId gl_inTES = TSymbolUniqueId(3056);
static constexpr const TSymbolUniqueId gl_inTESES3_2 = TSymbolUniqueId(3057);
static constexpr const TSymbolUniqueId gl_outTES = TSymbolUniqueId(3058);
static constexpr const TSymbolUniqueId gl_outTESES3_2 = TSymbolUniqueId(3059);
static constexpr const TSymbolUniqueId gl_PerVertexOutTesBlock = TSymbolUniqueId(3060);
static constexpr const TSymbolUniqueId gl_PerVertexOutTesBlockES3_2 = TSymbolUniqueId(3061);
static constexpr const TSymbolUniqueId gl_PositionTES = TSymbolUniqueId(3062);
static constexpr const TSymbolUniqueId gl_PositionTESES3_2 = TSymbolUniqueId(3063);
static constexpr const TSymbolUniqueId gl_ViewID_OVR = TSymbolUniqueId(3064);
static constexpr const TSymbolUniqueId gl_BoundingBoxEXTTCS = TSymbolUniqueId(3045);
static constexpr const TSymbolUniqueId gl_BoundingBoxEXTTCSES3_2 = TSymbolUniqueId(3046);
static constexpr const TSymbolUniqueId gl_PatchVerticesInTES = TSymbolUniqueId(3047);
static constexpr const TSymbolUniqueId gl_PatchVerticesInTESES3_2 = TSymbolUniqueId(3048);
static constexpr const TSymbolUniqueId gl_PrimitiveIDTES = TSymbolUniqueId(3049);
static constexpr const TSymbolUniqueId gl_PrimitiveIDTESES3_2 = TSymbolUniqueId(3050);
static constexpr const TSymbolUniqueId gl_TessCoord = TSymbolUniqueId(3051);
static constexpr const TSymbolUniqueId gl_TessLevelOuterTES = TSymbolUniqueId(3052);
static constexpr const TSymbolUniqueId gl_TessLevelOuterTESES3_2 = TSymbolUniqueId(3053);
static constexpr const TSymbolUniqueId gl_TessLevelInnerTES = TSymbolUniqueId(3054);
static constexpr const TSymbolUniqueId gl_TessLevelInnerTESES3_2 = TSymbolUniqueId(3055);
static constexpr const TSymbolUniqueId gl_PerVertexTES = TSymbolUniqueId(3056);
static constexpr const TSymbolUniqueId gl_PerVertexTESES3_2 = TSymbolUniqueId(3057);
static constexpr const TSymbolUniqueId gl_inTES = TSymbolUniqueId(3058);
static constexpr const TSymbolUniqueId gl_inTESES3_2 = TSymbolUniqueId(3059);
static constexpr const TSymbolUniqueId gl_outTES = TSymbolUniqueId(3060);
static constexpr const TSymbolUniqueId gl_outTESES3_2 = TSymbolUniqueId(3061);
static constexpr const TSymbolUniqueId gl_PerVertexOutTesBlock = TSymbolUniqueId(3062);
static constexpr const TSymbolUniqueId gl_PerVertexOutTesBlockES3_2 = TSymbolUniqueId(3063);
static constexpr const TSymbolUniqueId gl_PositionTES = TSymbolUniqueId(3064);
static constexpr const TSymbolUniqueId gl_PositionTESES3_2 = TSymbolUniqueId(3065);
static constexpr const TSymbolUniqueId gl_ViewID_OVR = TSymbolUniqueId(3066);
}; // class BuiltInId

Просмотреть файл

@ -157,6 +157,9 @@ Compiler::Compiler(rx::GLImplFactory *implFactory, const State &state, egl::Disp
// GL_EXT_clip_cull_distance
mResources.EXT_clip_cull_distance = extensions.clipCullDistanceEXT;
// GL_EXT_primitive_bounding_box
mResources.EXT_primitive_bounding_box = extensions.primitiveBoundingBoxEXT;
// GLSL ES 3.0 constants
mResources.MaxVertexOutputVectors = caps.maxVertexOutputComponents / 4;
mResources.MaxFragmentInputVectors = caps.maxFragmentInputComponents / 4;

Просмотреть файл

@ -1528,6 +1528,16 @@ void Context::getFloatvImpl(GLenum pname, GLfloat *params) const
case GL_MAX_FRAGMENT_INTERPOLATION_OFFSET:
*params = mState.mCaps.maxInterpolationOffset;
break;
case GL_PRIMITIVE_BOUNDING_BOX:
params[0] = mState.mBoundingBoxMinX;
params[1] = mState.mBoundingBoxMinY;
params[2] = mState.mBoundingBoxMinZ;
params[3] = mState.mBoundingBoxMinW;
params[4] = mState.mBoundingBoxMaxX;
params[5] = mState.mBoundingBoxMaxY;
params[6] = mState.mBoundingBoxMaxZ;
params[7] = mState.mBoundingBoxMaxW;
break;
default:
mState.getFloatv(pname, params);
break;
@ -5915,7 +5925,14 @@ void Context::primitiveBoundingBox(GLfloat minX,
GLfloat maxZ,
GLfloat maxW)
{
UNIMPLEMENTED();
mState.mBoundingBoxMinX = minX;
mState.mBoundingBoxMinY = minY;
mState.mBoundingBoxMinZ = minZ;
mState.mBoundingBoxMinW = minW;
mState.mBoundingBoxMaxX = maxX;
mState.mBoundingBoxMaxY = maxY;
mState.mBoundingBoxMaxZ = maxZ;
mState.mBoundingBoxMaxW = maxW;
}
void Context::bufferStorage(BufferBinding target,

Просмотреть файл

@ -360,7 +360,15 @@ State::State(const State *shareContextState,
mMaxShaderCompilerThreads(std::numeric_limits<GLuint>::max()),
mPatchVertices(3),
mOverlay(overlay),
mNoSimultaneousConstantColorAndAlphaBlendFunc(false)
mNoSimultaneousConstantColorAndAlphaBlendFunc(false),
mBoundingBoxMinX(-1.0f),
mBoundingBoxMinY(-1.0f),
mBoundingBoxMinZ(-1.0f),
mBoundingBoxMinW(1.0f),
mBoundingBoxMaxX(1.0f),
mBoundingBoxMaxY(1.0f),
mBoundingBoxMaxZ(1.0f),
mBoundingBoxMaxW(1.0f)
{}
State::~State() {}

Просмотреть файл

@ -1161,6 +1161,16 @@ class State : angle::NonCopyable
DrawBufferMask mBlendFuncConstantAlphaDrawBuffers;
DrawBufferMask mBlendFuncConstantColorDrawBuffers;
bool mNoSimultaneousConstantColorAndAlphaBlendFunc;
// GL_EXT_primitive_bounding_box
GLfloat mBoundingBoxMinX;
GLfloat mBoundingBoxMinY;
GLfloat mBoundingBoxMinZ;
GLfloat mBoundingBoxMinW;
GLfloat mBoundingBoxMaxX;
GLfloat mBoundingBoxMaxY;
GLfloat mBoundingBoxMaxZ;
GLfloat mBoundingBoxMaxW;
};
ANGLE_INLINE angle::Result State::syncDirtyObjects(const Context *context,

Просмотреть файл

@ -3292,6 +3292,14 @@ bool GetQueryParameterInfo(const State &glState,
*type = GL_INT;
*numParams = 1;
return true;
case GL_PRIMITIVE_BOUNDING_BOX:
if (!extensions.primitiveBoundingBoxEXT)
{
return false;
}
*type = GL_FLOAT;
*numParams = 8;
return true;
}
if (glState.getClientType() == EGL_OPENGL_API)

Просмотреть файл

@ -1072,6 +1072,9 @@ void RendererVk::ensureCapsInitialized() const
// GL_ANGLE_yuv_internal_format
mNativeExtensions.yuvInternalFormatANGLE =
getFeatures().supportsYUVSamplerConversion.enabled && vk::CanSupportYuvInternalFormat(this);
// GL_EXT_primitive_bounding_box
mNativeExtensions.primitiveBoundingBoxEXT = true;
}
namespace vk

Просмотреть файл

@ -2755,6 +2755,14 @@ bool ValidateStateQuery(const Context *context,
}
break;
case GL_PRIMITIVE_BOUNDING_BOX:
if (!context->getExtensions().primitiveBoundingBoxEXT)
{
context->validationError(GL_INVALID_ENUM, kExtensionNotEnabled);
return false;
}
break;
default:
break;
}

Просмотреть файл

@ -1514,8 +1514,13 @@ bool ValidatePrimitiveBoundingBoxEXT(const Context *context,
GLfloat maxZ,
GLfloat maxW)
{
if (!context->getExtensions().primitiveBoundingBoxEXT)
{
context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled);
return false;
}
return true;
}
// GL_EXT_separate_shader_objects

Просмотреть файл

@ -1681,8 +1681,9 @@ TEST(ImmutableStringTest, ScriptGeneratedHashesMatch)
ASSERT_EQ(0x0000065au, ImmutableString("gl_TessLevelOuter").mangledNameHash());
ASSERT_EQ(0x0000065bu, ImmutableString("gl_TessLevelInner").mangledNameHash());
ASSERT_EQ(0x0000065cu, ImmutableString("gl_out").mangledNameHash());
ASSERT_EQ(0x0000065du, ImmutableString("gl_TessCoord").mangledNameHash());
ASSERT_EQ(0x0000065eu, ImmutableString("gl_ViewID_OVR").mangledNameHash());
ASSERT_EQ(0x0000065du, ImmutableString("gl_BoundingBoxEXT").mangledNameHash());
ASSERT_EQ(0x0000065eu, ImmutableString("gl_TessCoord").mangledNameHash());
ASSERT_EQ(0x0000065fu, ImmutableString("gl_ViewID_OVR").mangledNameHash());
ASSERT_EQ(0x00000000u, ImmutableString("radians").unmangledNameHash());
ASSERT_EQ(0x00000001u, ImmutableString("degrees").unmangledNameHash());
ASSERT_EQ(0x00000002u, ImmutableString("sin").unmangledNameHash());

Просмотреть файл

@ -2248,8 +2248,9 @@ TEST(ImmutableStringTest, ScriptGeneratedHashesMatch)
ASSERT_EQ(0x0000087fu, ImmutableString("gl_TessLevelOuter").mangledNameHash());
ASSERT_EQ(0x00000880u, ImmutableString("gl_TessLevelInner").mangledNameHash());
ASSERT_EQ(0x00000881u, ImmutableString("gl_out").mangledNameHash());
ASSERT_EQ(0x00000882u, ImmutableString("gl_TessCoord").mangledNameHash());
ASSERT_EQ(0x00000883u, ImmutableString("gl_ViewID_OVR").mangledNameHash());
ASSERT_EQ(0x00000882u, ImmutableString("gl_BoundingBoxEXT").mangledNameHash());
ASSERT_EQ(0x00000883u, ImmutableString("gl_TessCoord").mangledNameHash());
ASSERT_EQ(0x00000884u, ImmutableString("gl_ViewID_OVR").mangledNameHash());
ASSERT_EQ(0x00000000u, ImmutableString("radians").unmangledNameHash());
ASSERT_EQ(0x00000001u, ImmutableString("degrees").unmangledNameHash());
ASSERT_EQ(0x00000002u, ImmutableString("sin").unmangledNameHash());

Просмотреть файл

@ -11,3 +11,7 @@
3589 VULKAN : dEQP-GLES31.functional.shaders.multisample_interpolation.interpolate_at_offset.centroid_qualifier.default_framebuffer = FAIL
3589 VULKAN : dEQP-GLES31.functional.shaders.multisample_interpolation.interpolate_at_offset.sample_qualifier.default_framebuffer = FAIL
3589 VULKAN : dEQP-GLES31.functional.shaders.multisample_interpolation.interpolate_at_offset.array_element.default_framebuffer = FAIL
3576 VULKAN : dEQP-GLES31.functional.primitive_bounding_box.lines.global_state.vertex_fragment.default_framebuffer_bbox_equal = FAIL
3576 VULKAN : dEQP-GLES31.functional.primitive_bounding_box.lines.global_state.vertex_fragment.default_framebuffer_bbox_larger = FAIL
3576 VULKAN : dEQP-GLES31.functional.primitive_bounding_box.lines.global_state.vertex_fragment.default_framebuffer_bbox_smaller = FAIL

Просмотреть файл

@ -6936,6 +6936,19 @@ void main()
// Ensure correct rendering.
EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::cyan);
}
// Negative test for EXT_primitive_bounding_box
TEST_P(SimpleStateChangeTestES31, PrimitiveBoundingBoxNegativeTest)
{
ANGLE_SKIP_TEST_IF(IsGLExtensionEnabled("GL_EXT_primitive_bounding_box"));
glPrimitiveBoundingBoxEXT(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
EXPECT_GL_ERROR(GL_INVALID_OPERATION);
GLfloat boundingBox[8] = {0};
glGetFloatv(GL_PRIMITIVE_BOUNDING_BOX_EXT, boundingBox);
EXPECT_GL_ERROR(GL_INVALID_ENUM);
}
} // anonymous namespace
ANGLE_INSTANTIATE_TEST_ES2(StateChangeTest);