{"id":443744,"date":"2025-01-01T09:00:32","date_gmt":"2025-01-01T09:00:32","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=443744"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=443744","title":{"rendered":"<span>\u0421\u0443\u0434\u043d\u044b\u0439 \u0434\u0435\u043d\u044c: \u0442\u043e\u043f-10 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 C \u0438 C++ \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0437\u0430 2024 \u0433\u043e\u0434<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0433\u043e\u0434 \u043c\u044b \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443: \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u0440\u0442\u044f\u0442 \u043d\u0430\u043c \u043a\u043e\u0434, \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0437\u0434\u0435\u0441\u044c \u0433\u043b\u0430\u0432\u043d\u044b\u0435. \u041d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0430\u0441\u0442\u0430\u043b \u0434\u0435\u043d\u044c \u0440\u0430\u0441\u043f\u0440\u0430\u0432\u044b. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a\u0438\u0435 \u0441\u0430\u043c\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u0432 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443&#8230;<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/32a\/bab\/600\/32abab600db14b3dac7412d7648b27ea.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/32a\/bab\/600\/32abab600db14b3dac7412d7648b27ea.png\"\/><\/figure>\n<h3>\u0412\u0441\u0435\u043c \u0432\u0441\u0442\u0430\u0442\u044c!<\/h3>\n<p>\u0412 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u043c\u044b \u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438\u0437 Open Source \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u044f\u0437\u044b\u043a\u0430\u0445 C \u0438 C++. \u041a\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0439 \u0438 \u0441\u043f\u043e\u0440\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u0432\u0438\u043d\u043e\u0432\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0436\u0443\u0447\u043a\u0430. \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0443\u0434\u0430 \u043d\u0430\u0434 \u043d\u0438\u043c\u0438!<\/p>\n<p>\u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c 10 \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445. \u0410 \u0434\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u0443\u0432\u043b\u0435\u0447\u0451\u043d\u043d\u044b\u0445 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e C \u0438 C++ \u0437\u0430 \u044d\u0442\u043e\u0442 \u0433\u043e\u0434:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1106\/\">\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c Blender<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1112\/\">\u041a\u0430\u043a \u043d\u0435 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 \u0421++<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1186\/\">\u0414\u044e\u0436\u0438\u043d\u0430 \u043e\u0448\u0438\u0431\u043e\u043a \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 Telegram<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1141\/\">\u041d\u0430\u0441\u0435\u043a\u043e\u043c\u043e\u0435 13 \u043b\u0435\u0442 \u0441\u0438\u0434\u0438\u0442 \u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435 \u0438 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u044b\u043b\u0435\u0437\u0430\u0442\u044c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1167\/\">PPSSPP \u0438\u043b\u0438 \u0432\u0441\u0451 \u0436\u0435 psp? \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0431\u0430\u0433\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0438\u0437 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043b\u043e\u0433\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<h3>\u041e\u0431\u0432\u0438\u043d\u044f\u0435\u043c\u044b\u0435 \u0431\u0430\u0433\u0438<\/h3>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N10<\/strong><\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u043d\u0442\u0440\u0438\u0433\u0443 \u0438 \u043d\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0430, \u043c\u044b \u043d\u0430\u0447\u043d\u0451\u043c \u0441 \u043a\u043e\u043d\u0446\u0430. \u0412\u044b\u0432\u043e\u0434\u0438\u0442\u0435 \u0434\u0435\u0441\u044f\u0442\u043e\u0433\u043e! \u041d\u0443 \u0434\u0430, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043a\u0430\u043a \u0436\u0435 \u0431\u0435\u0437 \u0442\u0435\u0431\u044f, \u0443\u0442\u0435\u0447\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u0430\u0432\u0430\u0439, \u043f\u043e\u043a\u0430\u0436\u0438, \u0433\u0434\u0435 \u0442\u044b \u043f\u0440\u044f\u0447\u0435\u0448\u044c\u0441\u044f:<\/p>\n<pre><code class=\"cpp\">int sceNetAdhocMatchingSetHelloOpt(int matchingId,                                    int optLenAddr, u32 optDataAddr) {   ....   if (optLenAddr &gt; context-&gt;hellolen)   {     hello = realloc(hello, optLenAddr);   }   .... } <\/code><\/pre>\n<p>\u0421 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430 \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435 \u0432\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0438 \u0432 99% \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u0414\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 <code>realloc<\/code> \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430. \u041e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a <a href=\"https:\/\/en.cppreference.com\/w\/c\/memory\/realloc\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>realloc<\/code>:<\/p>\n<p><em>If there is not enough memory, the old memory block is not freed and null pointer is returned.<\/em><\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043f\u0440\u0438 \u0440\u0435\u0430\u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442 \u043f\u0430\u043c\u044f\u0442\u0438, \u043c\u044b \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0432 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c <code>hello<\/code> \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0443\u0442\u0435\u0447\u043a\u0430. \u041e\u0431 \u044d\u0442\u043e\u043c \u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440:<\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v701\/\">V701<\/a> realloc() possible leak: when realloc() fails in allocating memory, original pointer &#8216;hello&#8217; is lost. Consider assigning realloc() to a temporary pointer. <a href=\"https:\/\/github.com\/hrydgard\/ppsspp\/blob\/d479b74ed9c3e321bc3735da29bc125a2ac3b9b2\/Core\/HLE\/sceNetAdhoc.cpp#L5407\">sceNetAdhoc.cpp 5407<\/a><\/p>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 PPSSPP, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1167\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N9<\/strong><\/p>\n<p>\u0422\u0430\u043a, \u0441 \u043e\u0434\u043d\u0438\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439. \u0412 \u0441\u043c\u044b\u0441\u043b\u0435 \u043e\u043d \u043d\u0435 \u043e\u0434\u0438\u043d? \u0410 \u043a\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u043e\u0431\u0432\u0438\u043d\u044f\u0435\u043c\u044b\u0439?<\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u0441\u044b\u0433\u0440\u0430\u0435\u043c \u0432 \u043c\u0438\u043d\u0438-\u0438\u0433\u0440\u0443: \u043d\u0430\u0434\u043e \u043d\u0430\u0439\u0442\u0438 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 OpenVINO. \u041a\u0442\u043e \u043d\u0430\u0448\u0451\u043b, \u0442\u043e\u0442 \u043c\u043e\u043b\u043e\u0434\u0435\u0446! \u041a\u0442\u043e \u043d\u0435 \u043d\u0430\u0448\u0451\u043b, \u0442\u043e\u0436\u0435 \u043c\u043e\u043b\u043e\u0434\u0446\u044b! \u041e\u0434\u043d\u0430\u043a\u043e, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u0441\u0435\u043c \u0441\u0442\u0430\u043b\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u2014 \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440.<\/p>\n<details class=\"spoiler\">\n<summary>\u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438:<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">template &lt;class Key, class Value&gt; using caseless_unordered_map = std::unordered_map&lt;Key, Value,                                     CaselessHash&lt;Key&gt;, CaselessEq&lt;Key&gt;&gt;; using TypeToNameMap = ov::intel_cpu::                           caseless_unordered_map&lt;std::string, Type&gt;;  static const TypeToNameMap&amp; get_type_to_name_tbl() {     static const TypeToNameMap type_to_name_tbl = {         {\"Constant\", Type::Input},         {\"Parameter\", Type::Input},         {\"Result\", Type::Output},         {\"Eye\", Type::Eye},         {\"Convolution\", Type::Convolution},         {\"GroupConvolution\", Type::Convolution},         {\"MatMul\", Type::MatMul},         {\"FullyConnected\", Type::FullyConnected},         {\"MaxPool\", Type::Pooling},         {\"AvgPool\", Type::Pooling},         {\"AdaptiveMaxPool\", Type::AdaptivePooling},         {\"AdaptiveAvgPool\", Type::AdaptivePooling},         {\"Add\", Type::Eltwise},         {\"IsFinite\", Type::Eltwise},         {\"IsInf\", Type::Eltwise},         {\"IsNaN\", Type::Eltwise},         {\"Subtract\", Type::Eltwise},         {\"Multiply\", Type::Eltwise},         {\"Divide\", Type::Eltwise},         {\"SquaredDifference\", Type::Eltwise},         {\"Maximum\", Type::Eltwise},         {\"Minimum\", Type::Eltwise},         {\"Mod\", Type::Eltwise},         {\"FloorMod\", Type::Eltwise},         {\"Power\", Type::Eltwise},         {\"PowerStatic\", Type::Eltwise},         {\"Equal\", Type::Eltwise},         {\"NotEqual\", Type::Eltwise},         {\"Greater\", Type::Eltwise},         {\"GreaterEqual\", Type::Eltwise},         {\"Less\", Type::Eltwise},         {\"LessEqual\", Type::Eltwise},         {\"LogicalAnd\", Type::Eltwise},         {\"LogicalOr\", Type::Eltwise},         {\"LogicalXor\", Type::Eltwise},         {\"LogicalNot\", Type::Eltwise},         {\"Relu\", Type::Eltwise},         {\"LeakyRelu\", Type::Eltwise},         {\"Gelu\", Type::Eltwise},         {\"Elu\", Type::Eltwise},         {\"Tanh\", Type::Eltwise},         {\"Sigmoid\", Type::Eltwise},         {\"Abs\", Type::Eltwise},         {\"Sqrt\", Type::Eltwise},         {\"Clamp\", Type::Eltwise},         {\"Exp\", Type::Eltwise},         {\"SwishCPU\", Type::Eltwise},         {\"HSwish\", Type::Eltwise},         {\"Mish\", Type::Eltwise},         {\"HSigmoid\", Type::Eltwise},         {\"Round\", Type::Eltwise},         {\"PRelu\", Type::Eltwise},         {\"Erf\", Type::Eltwise},         {\"SoftPlus\", Type::Eltwise},         {\"SoftSign\", Type::Eltwise},         {\"Select\", Type::Eltwise},         {\"Log\", Type::Eltwise},         {\"BitwiseAnd\", Type::Eltwise},         {\"BitwiseNot\", Type::Eltwise},         {\"BitwiseOr\", Type::Eltwise},         {\"BitwiseXor\", Type::Eltwise},         {\"Reshape\", Type::Reshape},         {\"Squeeze\", Type::Reshape},         {\"Unsqueeze\", Type::Reshape},         {\"ShapeOf\", Type::ShapeOf},         {\"NonZero\", Type::NonZero},         {\"Softmax\", Type::Softmax},         {\"Reorder\", Type::Reorder},         {\"BatchToSpace\", Type::BatchToSpace},         {\"SpaceToBatch\", Type::SpaceToBatch},         {\"DepthToSpace\", Type::DepthToSpace},         {\"SpaceToDepth\", Type::SpaceToDepth},         {\"Roll\", Type::Roll},         {\"LRN\", Type::Lrn},         {\"Split\", Type::Split},         {\"VariadicSplit\", Type::Split},         {\"Concat\", Type::Concatenation},         {\"ConvolutionBackpropData\", Type::Deconvolution},         {\"GroupConvolutionBackpropData\", Type::Deconvolution},         {\"StridedSlice\", Type::StridedSlice},         {\"Slice\", Type::StridedSlice},         {\"Tile\", Type::Tile},         {\"ROIAlign\", Type::ROIAlign},         {\"ROIPooling\", Type::ROIPooling},         {\"PSROIPooling\", Type::PSROIPooling},         {\"DeformablePSROIPooling\", Type::PSROIPooling},         {\"Pad\", Type::Pad},         {\"Transpose\", Type::Transpose},         {\"LSTMCell\", Type::RNNCell},         {\"GRUCell\", Type::RNNCell},         {\"AUGRUCell\", Type::RNNCell},         {\"RNNCell\", Type::RNNCell},         {\"LSTMSequence\", Type::RNNSeq},         {\"GRUSequence\", Type::RNNSeq},         {\"AUGRUSequence\", Type::RNNSeq},         {\"RNNSequence\", Type::RNNSeq},         {\"FakeQuantize\", Type::FakeQuantize},         {\"BinaryConvolution\", Type::BinaryConvolution},         {\"DeformableConvolution\", Type::DeformableConvolution},         {\"TensorIterator\", Type::TensorIterator},         {\"Loop\", Type::TensorIterator},         {\"ReadValue\", Type::MemoryInput},  \/\/ for construction from name                                            \/\/ ctor, arbitrary name is used         {\"Assign\", Type::MemoryOutput},    \/\/ for construction from layer ctor         {\"Convert\", Type::Convert},         {\"NV12toRGB\", Type::ColorConvert},         {\"NV12toBGR\", Type::ColorConvert},         {\"I420toRGB\", Type::ColorConvert},         {\"I420toBGR\", Type::ColorConvert},         {\"MVN\", Type::MVN},         {\"NormalizeL2\", Type::NormalizeL2},         {\"ScatterUpdate\", Type::ScatterUpdate},         {\"ScatterElementsUpdate\", Type::ScatterElementsUpdate},         {\"ScatterNDUpdate\", Type::ScatterNDUpdate},         {\"Interpolate\", Type::Interpolate},         {\"RandomUniform\", Type::RandomUniform},         {\"ReduceL1\", Type::Reduce},         {\"ReduceL2\", Type::Reduce},         {\"ReduceLogicalAnd\", Type::Reduce},         {\"ReduceLogicalOr\", Type::Reduce},         {\"ReduceMax\", Type::Reduce},         {\"ReduceMean\", Type::Reduce},         {\"ReduceMin\", Type::Reduce},         {\"ReduceProd\", Type::Reduce},         {\"ReduceSum\", Type::Reduce},           {\"ReduceLogSum\", Type::Reduce},         {\"ReduceLogSumExp\", Type::Reduce},         {\"ReduceSumSquare\", Type::Reduce},         {\"Broadcast\", Type::Broadcast},           {\"EmbeddingSegmentsSum\", Type::EmbeddingSegmentsSum},         {\"EmbeddingBagPackedSum\", Type::EmbeddingBagPackedSum},         {\"EmbeddingBagOffsetsSum\", Type::EmbeddingBagOffsetsSum},         {\"Gather\", Type::Gather},         {\"GatherElements\", Type::GatherElements},         {\"GatherND\", Type::GatherND},         {\"GridSample\", Type::GridSample},         {\"OneHot\", Type::OneHot},         {\"RegionYolo\", Type::RegionYolo},         {\"ShuffleChannels\", Type::ShuffleChannels},         {\"DFT\", Type::DFT},         {\"IDFT\", Type::DFT},         {\"RDFT\", Type::RDFT},         {\"IRDFT\", Type::RDFT},         {\"Abs\", Type::Math},         {\"Acos\", Type::Math},         {\"Acosh\", Type::Math},           {\"Asin\", Type::Math},         {\"Asinh\", Type::Math},         {\"Atan\", Type::Math},         {\"Atanh\", Type::Math},         {\"Ceil\", Type::Math},         {\"Ceiling\", Type::Math},         {\"Cos\", Type::Math},         {\"Cosh\", Type::Math},         {\"Floor\", Type::Math},         {\"HardSigmoid\", Type::Math},         {\"If\", Type::If},         {\"Neg\", Type::Math},         {\"Reciprocal\", Type::Math},         {\"Selu\", Type::Math},         {\"Sign\", Type::Math},         {\"Sin\", Type::Math},         {\"Sinh\", Type::Math},         {\"SoftPlus\", Type::Math},         {\"Softsign\", Type::Math},         {\"Tan\", Type::Math},         {\"CTCLoss\", Type::CTCLoss},         {\"Bucketize\", Type::Bucketize},         {\"CTCGreedyDecoder\", Type::CTCGreedyDecoder},         {\"CTCGreedyDecoderSeqLen\", Type::CTCGreedyDecoderSeqLen},         {\"CumSum\", Type::CumSum},         {\"DetectionOutput\", Type::DetectionOutput},         {\"ExperimentalDetectronDetectionOutput\",                       Type::ExperimentalDetectronDetectionOutput},         {\"LogSoftmax\", Type::LogSoftmax},         {\"TopK\", Type::TopK},         {\"GatherTree\", Type::GatherTree},         {\"GRN\", Type::GRN},         {\"Range\", Type::Range},         {\"Proposal\", Type::Proposal},         {\"ReorgYolo\", Type::ReorgYolo},         {\"ReverseSequence\", Type::ReverseSequence},         {\"ExperimentalDetectronTopKROIs\",                        Type::ExperimentalDetectronTopKROIs},         {\"ExperimentalDetectronROIFeatureExtractor\",                       Type::ExperimentalDetectronROIFeatureExtractor},         {\"ExperimentalDetectronPriorGridGenerator\",                       Type::ExperimentalDetectronPriorGridGenerator},         {\"ExperimentalDetectronGenerateProposalsSingleImage\",                       Type::ExperimentalDetectronGenerateProposalsSingleImage},         {\"ExtractImagePatches\", Type::ExtractImagePatches},         {\"GenerateProposals\", Type::GenerateProposals},         {\"Inverse\", Type::Inverse},         {\"NonMaxSuppression\", Type::NonMaxSuppression},         {\"NonMaxSuppressionIEInternal\", Type::NonMaxSuppression},         {\"NMSRotated\", Type::NonMaxSuppression},         {\"MatrixNms\", Type::MatrixNms},         {\"MulticlassNms\", Type::MulticlassNms},         {\"MulticlassNmsIEInternal\", Type::MulticlassNms},         {\"Multinomial\", Type::Multinomial},         {\"Reference\", Type::Reference},         {\"Subgraph\", Type::Subgraph},         {\"PriorBox\", Type::PriorBox},         {\"PriorBoxClustered\", Type::PriorBoxClustered},         {\"Interaction\", Type::Interaction},         {\"MHA\", Type::MHA},         {\"Unique\", Type::Unique},         {\"Ngram\", Type::Ngram},         {\"ScaledDotProductAttention\", Type::ScaledDotProductAttention},         {\"ScaledDotProductAttentionWithKVCache\",                            Type::ScaledDotProductAttention},         {\"PagedAttentionExtension\", Type::ScaledDotProductAttention},         {\"RoPE\", Type::RoPE},         {\"GatherCompressed\", Type::Gather},         {\"CausalMaskPreprocess\", Type::CausalMaskPreprocess},     };     return type_to_name_tbl; } <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0417\u0430\u0431\u0430\u0432\u043d\u043e, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u0438\u0435, \u0443\u0432\u0438\u0434\u0435\u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043a\u043e\u0434, \u0441\u043e\u0447\u0442\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u043e \u043f\u043e\u0438\u0441\u043a\u0443 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043d\u0451\u043c \u043d\u0435\u0440\u0430\u0437\u0443\u043c\u043d\u043e\u0439 \u043f\u043e\u0442\u0435\u0440\u0435\u0439 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041a\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u043b\u0438\u0441\u0442\u0430\u044e\u0442 \u0441\u044e\u0434\u0430, \u0434\u0430\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442.<\/p>\n<p>\u0421\u0430\u043c\u043e\u0435 \u0437\u0430\u0431\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e, \u043f\u043e\u043d\u0438\u043c\u0430\u044f \u0432\u0441\u044e \u043d\u0435\u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0432\u0441\u0435 \u0442\u0440\u0443\u0434\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u044b, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>\u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0449\u0435: \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0430\u043d\u0430\u043b\u0438\u0437 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0441 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043e\u0448\u0438\u0431\u043e\u043a. \u041d\u0435 \u043d\u0430\u0434\u043e \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0445 \u043c\u0435\u0441\u0442 \u2014 \u043e\u043d\u0438 \u0443\u0436\u0435 \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0435\u043d\u044b. \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c.<\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430:<\/p>\n<ol>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v766\/\">V766<\/a> An item with the same key &#8216;&#187;Abs&#187;&#8216; has already been added. <a href=\"https:\/\/github.com\/openvinotoolkit\/openvino\/blob\/2d8ac08bf1f87f8ac455eae381213b52e781fe8c\/src\/plugins\/intel_cpu\/src\/cpu_types.cpp\">cpu_types.cpp<\/a> 178<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v766\/\">V766<\/a> An item with the same key &#8216;&#187;SoftPlus&#187;&#8216; has already been added. <a href=\"https:\/\/github.com\/openvinotoolkit\/openvino\/blob\/2d8ac08bf1f87f8ac455eae381213b52e781fe8c\/src\/plugins\/intel_cpu\/src\/cpu_types.cpp\">cpu_types.cpp<\/a> 198<\/p>\n<\/li>\n<\/ol>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e \u0438 \u043f\u043e \u0434\u0435\u043b\u0443, \u0442\u043e \u0432\u043e\u0442 \u043e\u043d\u0438 \u2014 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438:<\/p>\n<pre><code class=\"cpp\">static const TypeToNameMap&amp; get_type_to_name_tbl() {   static const TypeToNameMap type_to_name_tbl = {     ....,     {\"Abs\", Type::Eltwise},                   \/\/ &lt;=     ....,     {\"SoftPlus\", Type::Eltwise},              \/\/ &lt;=     ....,     {\"Abs\", Type::Math},                      \/\/ &lt;=     ....,     {\"SoftPlus\", Type::Math},                 \/\/ &lt;=     ....,    };   return type_to_name_tbl; } <\/code><\/pre>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0431\u044b\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e, \u0438 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b.<\/p>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 OpenVINO, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1137\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N8<\/strong><\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c. \u041b\u0430\u0434\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449&#8230; \u0430 \u0442\u044b \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0435!? \u0414\u0430 \u0443\u0436, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u043f\u043e-\u0441\u0432\u043e\u0435\u043c\u0443 \u0443\u0436\u0430\u0441\u0435\u043d. \u0421\u0435\u0439\u0447\u0430\u0441 \u0443\u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0442\u0432\u043e\u0440\u0438\u043b \u044d\u0442\u043e\u0442 \u0436\u0443\u043a.<\/p>\n<p>\u041d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043b\u0443\u0447\u0430\u0439 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0439, \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430:<\/p>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v762\/\">V762<\/a> It is possible a virtual function was overridden incorrectly. See first argument of function &#8216;preferred_domain&#8217; in derived class &#8216;HandlePositionFieldInput&#8217; and base class &#8216;CurvesFieldInput&#8217;. node_geo_input_curve_handles.cc 95<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0443 \u043d\u0430\u0441 \u0432 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430\u0445. \u0427\u0442\u043e \u043d\u0435 \u0442\u0430\u043a? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430:<\/p>\n<pre><code class=\"cpp\">typedef struct CurvesGeometry { .... };  namespace bke {   ....   class CurvesGeometry : public ::CurvesGeometry { .... };    class CurvesFieldInput : public fn::FieldInput    {     ....     virtual std::optional&lt;AttrDomain&gt; preferred_domain(       const CurvesGeometry &amp;curves) const;   };   .... } <\/code><\/pre>\n<p>\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>preferred_domain<\/code> \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0442\u0438\u043f\u0430 <code>bke::CurvesGeometry<\/code>. \u0417\u0430\u043f\u043e\u043c\u043d\u0438\u043c.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430:<\/p>\n<pre><code class=\"cpp\">namespace blender::nodes::node_geo_input_curve_handles_cc {   class HandlePositionFieldInput final : public bke::CurvesFieldInput    {     ....     std::optional&lt;AttrDomain&gt; preferred_domain(       const CurvesGeometry &amp; \/*curves*\/) const;   }; } <\/code><\/pre>\n<p>\u041d\u0430\u0448\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443? \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u043d\u0435 \u0440\u0430\u0441\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c, \u044f \u0442\u043e\u0436\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435 \u043f\u043e\u043d\u044f\u043b :). \u0411\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441 \u043d\u0435\u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c <code>CurvesGeometry<\/code>. \u041a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u043e\u043d \u043d\u0430\u0447\u043d\u0451\u0442 \u0441 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 <code>CurvesFieldInput<\/code> \u0438 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u0442\u044c \u0432\u043e \u0432\u0441\u0435 \u043e\u0431\u0440\u0430\u043c\u043b\u044f\u044e\u0449\u0438\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442 \u044d\u0442\u043e\u0442 \u0442\u0438\u043f. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0439\u0434\u0435\u043d \u0442\u0438\u043f <code>bke::CurvesGeometry<\/code>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b. \u041e\u043d\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438\u043c\u0451\u043d, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u043c \u043e\u0442 \u0442\u043e\u0433\u043e, \u0433\u0434\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0447\u043d\u0451\u0442 \u043f\u043e\u0438\u0441\u043a \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0438\u043c\u0435\u043d\u0438 <code>CurvesGeometry<\/code>, \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442 \u0435\u0433\u043e \u0432 \u043e\u0431\u0440\u0430\u043c\u043b\u044f\u044e\u0449\u0438\u0445 \u043e\u0431\u043b\u0430\u0441\u0442\u044f\u0445 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438 \u0434\u043e\u0439\u0434\u0451\u0442 \u0434\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e. \u0410 \u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438\u043c\u0451\u043d \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c <code>CurvesGeometry<\/code>, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0442\u043e\u0442, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \ud83d\ude42<\/p>\n<p>\u0414\u043b\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0434\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0442\u0438\u043f\u0430. \u041d\u0443 \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 C++11 (<code>override<\/code>), \u0437\u0430\u0449\u0438\u0442\u0438\u0432 \u0431\u0443\u0434\u0443\u0449\u0438\u0435 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f \u043e\u0442 \u043e\u0448\u0438\u0431\u043e\u043a:<\/p>\n<pre><code class=\"cpp\">namespace blender::nodes::node_geo_input_curve_handles_cc {   class HandlePositionFieldInput final : public bke::CurvesFieldInput    {     ....     std::optional&lt;AttrDomain&gt; preferred_domain(       const bke::CurvesGeometry &amp; \/*curves*\/) const override;   }; } <\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Blender, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1106\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N7<\/strong><\/p>\n<p>\u041d\u043e\u043c\u0435\u0440 \u0441\u0435\u043c\u044c, \u0442\u044b \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u0440\u044f\u0447\u0435\u0448\u044c? \u041d\u0443-\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0439, \u0447\u0442\u043e \u0443 \u0442\u0435\u0431\u044f \u0437\u0430 \u0441\u043f\u0438\u043d\u043e\u0439. \u0412\u043e\u0442 \u043e\u043d, \u0432\u043e\u0440\u0438\u0448\u043a\u0430. \u0420\u0435\u0448\u0438\u043b \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u0441\u043b\u0430\u0434\u043a\u0438\u0439 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u0441\u0435\u0431\u0435. \u041d\u0443 \u0443\u0436 \u043d\u0435\u0442, \u043c\u044b \u0441\u0435\u0439\u0447\u0430\u0441 \u0442\u0435\u0431\u044f \u0432\u044b\u0432\u0435\u0434\u0435\u043c \u043d\u0430 \u0447\u0438\u0441\u0442\u0443\u044e \u0432\u043e\u0434\u0443.<\/p>\n<p>\u0427\u0435\u0441\u0442\u043d\u043e, \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u044e\u0434\u0430 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u2014 \u043f\u043e\u0447\u0442\u0438 400 \u0441\u0442\u0440\u043e\u0447\u0435\u043a, \u2014 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443. \u041d\u043e \u043f\u043e\u0431\u0435\u0440\u0435\u0433\u0443 \u0432\u0430\u0448\u0435 \u043a\u043e\u043b\u0451\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u0438 \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c\u0443\u044e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c.<\/p>\n<p>\u0424\u0430\u0439\u043b <a href=\"https:\/\/github.com\/qt-creator\/qt-creator\/blob\/27055e4c3904b09385c96a2ac336aef87f3a4f8e\/src\/libs\/qtcreatorcdbext\/symbolgroupvalue.cpp#L1196\">symbolgroupvalue.cpp:1196<\/a><\/p>\n<pre><code class=\"cpp\">static KnownType knownClassTypeHelper(const std::string &amp;type,                                       std::string::size_type pos,                                       std::string::size_type endPos) {   ....   \/\/ Remaining non-template types   switch (endPos - qPos)   {     ....   case 30:     if (!type.compare(qPos, 30, \"QPatternist::SequenceType::Ptr\"))       return KT_QPatternist_SequenceType_Ptr;     if (!type.compare(qPos, 30, \"QXmlStreamNamespaceDeclaration\"))       return KT_QXmlStreamNamespaceDeclaration;     break;   case 32:     break;                                                                \/\/ &lt;=     if (!type.compare(qPos, 32, \"QPatternist::Item::Iterator::Ptr\"))       return KT_QPatternist_Item_Iterator_Ptr;   case 34:     break;                                                                \/\/ &lt;=     if (!type.compare(qPos, 34, \"QPatternist::ItemSequenceCacheCell\"))       return KT_QPatternist_ItemSequenceCacheCell;   case 37:     break;                                                                \/\/ &lt;=     if (!type.compare(qPos, 37, \"QNetworkHeadersPrivate::RawHeaderPair\"))       return KT_QNetworkHeadersPrivate_RawHeaderPair;     if (!type.compare(qPos, 37, \"QPatternist::AccelTree::BasicNodeData\"))       return KT_QPatternist_AccelTree_BasicNodeData;     break;   }    return KT_Unknown; } <\/code><\/pre>\n<p>\u041f\u0440\u043e\u0448\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u0435\u0442\u043a\u0438 32, 34 \u0438 37 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0432\u044b\u0448\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 <code>switch<\/code>. \u0427\u0435\u0441\u0442\u043d\u043e, \u044f \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <code>break;<\/code> \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c \u043a\u043e\u0434\u043e\u043c.<\/p>\n<p>\u0411\u044b\u043b\u0438 \u043c\u044b\u0441\u043b\u0438 \u043d\u0430\u0441\u0447\u0451\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438, \u043d\u043e \u043d\u0435\u0442, \u043e\u043d\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u043c \u043a\u043e\u0434\u043e\u043c, \u0434\u0430 \u0438 \u043f\u0440\u043e\u0436\u0438\u043b\u0438 \u0442\u0430\u043c, \u0441\u0443\u0434\u044f \u043f\u043e <a href=\"https:\/\/github.com\/qt-creator\/qt-creator\/blame\/27055e4c3904b09385c96a2ac336aef87f3a4f8e\/src\/libs\/qtcreatorcdbext\/symbolgroupvalue.cpp#L1572\">\u0438\u0441\u0442\u043e\u0440\u0438\u0438<\/a>, \u0443\u0436\u0435 \u043e\u043a\u043e\u043b\u043e 14 \u043b\u0435\u0442. \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u0437 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0442\u043e \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438.<\/p>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f:<\/p>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v779\/\">V779<\/a> [CWE-561, CERT-MSC12-C] Unreachable code detected. It is possible that an error is present. symbolgroupvalue.cpp 1565<\/p>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Qt Creator, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1099\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 (\u043f\u043b\u0430\u0433\u0438\u043d) PVS-Studio \u0434\u043b\u044f Qt Creator. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e \u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 &#171;<a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/manual\/6648\/\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f PVS-Studio \u0434\u043b\u044f Qt Creator<\/a>&#171;.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N6<\/strong><\/p>\n<p>\u0423\u0445\u0430-\u0445\u0430-\u0445\u0430! \u041e\u0448\u0438\u0431\u043a\u0438 copy-paste, \u043c\u044b \u0432\u0430\u0441 \u0436\u0434\u0430\u043b\u0438. \u0422\u0430\u043a\u0438\u0435 \u0436\u0443\u043a\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u0434, \u0430 \u043d\u0430\u0439\u0442\u0438 \u0438\u0445 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043b\u0435\u0433\u043a\u043e. \u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u043b \u043f\u0435\u0440\u0435\u0434 \u0441\u0443\u0434\u043e\u043c. \u041f\u043e\u043a\u0430\u0436\u0438 \u0436\u0435, \u0433\u0434\u0435 \u0442\u044b \u0441\u043a\u0440\u044b\u0432\u0430\u043b\u0441\u044f!<\/p>\n<pre><code class=\"cpp\">void WebViewInstance::show(const QString &amp;url, uint64 queryId)  {   ....   const auto allowClipboardRead = v::is&lt;WebViewSourceAttachMenu&gt;(_source)        || v::is&lt;WebViewSourceAttachMenu&gt;(_source)        || (attached != end(bots)          &amp;&amp; (attached-&gt;inAttachMenu || attached-&gt;inMainMenu));   .... } <\/code><\/pre>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430:<\/p>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v501\/\">V501<\/a> There are identical sub-expressions &#8216;v::is&lt;WebViewSourceAttachMenu &gt; (_source)&#8217; to the left and to the right of the &#8216;||&#8217; operator. <a href=\"https:\/\/github.com\/telegramdesktop\/tdesktop\/blob\/v5.6.3\/Telegram\/SourceFiles\/inline_bots\/bot_attach_web_view.cpp#L1129\">bot_attach_web_view.cpp<\/a> 1129<\/p>\n<p>\u0418\u0437 \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f <code>v::is&lt;WebViewSourceAttachMenu&gt;(_source)<\/code>. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u0434\u043d\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435, \u043d\u043e \u043d\u0430 \u0447\u0442\u043e?..<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u043e\u0431\u0440\u0430\u0442\u0438\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438, \u0442\u043e \u0443\u0432\u0438\u0434\u0438\u043c, \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"cpp\">(attached-&gt;inAttachMenu || attached-&gt;inMainMenu) <\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0442\u0435\u0445 \u0441\u0430\u043c\u044b\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u0442\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"cpp\">const auto allowClipboardRead =        v::is&lt;WebViewSourceMainMenu&gt;(_source)    || v::is&lt;WebViewSourceAttachMenu&gt;(_source)    .... <\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Telegram, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1186\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N5<\/strong><\/p>\n<p>\u0423\u0436\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u043e\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438 \u043d\u0430\u043c \u0441\u0432\u043e\u0438 \u0443\u0441\u0438\u043a\u0438. \u041d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0447\u043d\u0451\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u0436\u0430\u0440\u0430. \u0414\u0430-\u0434\u0430, \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0432\u0438\u043d\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0436\u0438\u0433\u0430\u0442\u044c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0440\u0435\u043b\u0438\u0437\u0430\u0445. \u0418 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0442\u0435\u0445, \u043d\u0430 \u043a\u043e\u0433\u043e \u043c\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>\u0412\u043e\u0442 \u0438 \u043d\u043e\u043c\u0435\u0440 \u043f\u044f\u0442\u044c: \u0442\u0430\u043a\u043e\u0439 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0436\u0443\u0447\u043e\u043a, \u043d\u043e \u0447\u0442\u043e \u0436\u0435 \u043e\u043d \u0442\u0432\u043e\u0440\u0438\u0442! \u0422\u0430\u043a\u043e\u043c\u0443 \u0442\u043e\u0447\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0435\u0441\u0442\u044c \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043a\u0443.<\/p>\n<pre><code class=\"cpp\">const qdGameObjectStateWalk* qdGameObjectMoving::current_walk_state() const {   const qdGameObjectState* st = get_cur_state();   if(!st || st -&gt; state_type() != qdGameObjectState::STATE_WALK){ #ifndef _QUEST_EDITOR     st = last_walk_state_;     if(!st || st -&gt; state_type() != qdGameObjectState::STATE_WALK)       st = get_default_state(); else     st = get_default_state();     if(!st) st = get_state(0); #endif   }   .... } <\/code><\/pre>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v523\/\">V523<\/a> The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. qd_game_object_moving.cpp 2781<\/p>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e, \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435:<\/p>\n<pre><code class=\"cpp\">  if(!st || st -&gt; state_type() != qdGameObjectState::STATE_WALK)     st = get_default_state(); else   st = get_default_state(); <\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043a\u043e\u0434 \u043a\u0430\u043a-\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d. \u042f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <code>else<\/code> \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043a\u043e\u0434 \u0440\u044f\u0434\u043e\u043c \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c, \u0442\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u044f\u0441\u043d\u043e, \u0447\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <code>else<\/code>, \u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 <code>#else<\/code>. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u043e\u043f\u0435\u0447\u0430\u0442\u0430\u043b\u0441\u044f \u0438 \u0437\u0430\u0431\u044b\u043b \u0441\u0438\u043c\u0432\u043e\u043b \u0440\u0435\u0448\u0451\u0442\u043a\u0438 (<code>#<\/code>).<\/p>\n<p>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"cpp\">const qdGameObjectState* st = get_cur_state(); if(!st || st -&gt; state_type() != qdGameObjectState::STATE_WALK){ #ifndef _QUEST_EDITOR   st = last_walk_state_;   if(!st || st -&gt; state_type() != qdGameObjectState::STATE_WALK)     st = get_default_state(); #else   st = get_default_state();   if(!st) st = get_state(0); #endif <\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 qdEngine, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1119\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N4<\/strong><\/p>\n<p>\u0422\u0430\u043a, \u0430 \u0433\u0434\u0435 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u044b\u0439, \u0435\u0433\u043e \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0432\u0438\u0434\u0438\u0442? \u041a\u0443\u0434\u0430 \u0436\u0435 \u043f\u0440\u043e\u043f\u0430\u043b \u044d\u0442\u043e\u0442 \u0436\u0443\u043a? \u041b\u0430\u0434\u043d\u043e, \u043f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f, \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0439\u0434\u0451\u043c.<\/p>\n<pre><code class=\"cpp\">static const char *script_list[][2] = {   ....   { \"Myanmar \/ Burmese\", \"Mymr\" },   { \"\u200bNag Mundari\", \"Nagm\" },   { \"Nandinagari\", \"Nand\" },   .... } <\/code><\/pre>\n<p>\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c: &#171;\u0418 \u0447\u0442\u043e \u0436\u0435 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0442\u0430\u043a?&#187; \u041c\u044b \u0431\u044b \u0438 \u0441\u0430\u043c\u0438 \u043d\u0435 \u043f\u043e\u043d\u044f\u043b\u0438, \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 <a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v1076\/\">V1076<\/a>. \u0427\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u044b\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0430\u043c\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435. \u0414\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u0422\u0430\u043a\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u2014 \u044d\u0442\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0432\u0438\u0434\u0435\u0442\u044c \u0438\u0437-\u0437\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0441\u0440\u0435\u0434\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0437\u0430\u0442\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0438\u0445 \u0432\u0438\u0434\u0438\u0442 \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442.<\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430:<\/p>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v1076\/\">V1076<\/a> Code contains invisible characters that may alter its logic. Consider enabling the display of invisible characters in the code editor. <a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/15073afe3856abd2aa1622492fe50026c7d63dc1\/core\/string\/locales.h#L1114\">locales.h<\/a> 1114<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"cpp\">{ \"\u200bNag Mundari\", \"Nagm\" }, <\/code><\/pre>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u043d\u0435\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0430 \u0441 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c. \u0415\u0441\u043b\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f hex-\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/794\/e1d\/b48\/794e1db48a04294cf99b339674c991eb.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/794\/e1d\/b48\/794e1db48a04294cf99b339674c991eb.png\"\/><\/figure>\n<p>\u041c\u0435\u0436\u0434\u0443 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u0430\u0432\u044b\u0447\u043a\u043e\u0439 \u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c <code>N<\/code> \u0437\u0430\u0442\u0435\u0441\u0430\u043b\u0438\u0441\u044c 3 \u0431\u0430\u0439\u0442\u0430: <code>E2<\/code>, <code>80<\/code> \u0438 <code>8B<\/code>. \u041e\u043d\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 Unicode-\u0441\u0438\u043c\u0432\u043e\u043b\u0443 <a href=\"https:\/\/www.utf8-chartable.de\/unicode-utf8-table.pl?start=8192&amp;number=128\"><strong>ZERO WIDTH SPACE<\/strong><\/a> (U+200B).<\/p>\n<details class=\"spoiler\">\n<summary>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u043c \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u0435 \u043d\u0435 \u043f\u043e\u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043b\u043e\u0433\u0438\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <code>script_list<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f &#171;\u0437\u0430\u0440\u0430\u0436\u0451\u043d\u043d\u044b\u0439&#187; \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b, <a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/core\/string\/translation.cpp#L276\">\u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442<\/a> \u0432 \u0445\u044d\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 <code>TranslationServer::script_map<\/code>. \u041a\u043b\u044e\u0447\u043e\u043c \u0442\u0430\u043a\u043e\u0439 \u0445\u044d\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0431\u0443\u0434\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u0438\u0437 \u043f\u0430\u0440\u044b, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u2014 \u043f\u0435\u0440\u0432\u044b\u0439. \u0417\u043d\u0430\u0447\u0438\u0442, \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u0441 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u043e\u0439 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 \u0445\u044d\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0445\u044d\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043d\u0435 \u043d\u0430\u0440\u0443\u0448\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0443\u0447\u0438\u0442\u044c, \u0430 \u043a\u0443\u0434\u0430 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0445\u044d\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u042f \u043d\u0430\u0448\u0451\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u0442:<\/p>\n<ol>\n<li>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/core\/string\/translation.cpp#L470\"><code>TranslationServer::get_locale_name<\/code><\/a>. \u041f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0432 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 GUI (<a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/editor\/localization_editor.cpp#L207\">[1]<\/a>, <a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/editor\/localization_editor.cpp#L560\">[2]<\/a>, <a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/editor\/plugins\/font_config_plugin.cpp#L292\">[3]<\/a>, <a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/editor\/project_manager.cpp#L3074\">[4]<\/a>).<\/p>\n<\/li>\n<li>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/core\/string\/translation.cpp#L503\"><code>TranslationServer::get_script_name<\/code><\/a>. \u041f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0432 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 GUI (<a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/editor\/plugins\/font_config_plugin.cpp#L290\">[1]<\/a>, <a href=\"https:\/\/github.com\/godotengine\/godot\/blob\/4.2.2-stable\/editor\/plugins\/font_config_plugin.cpp#L370\">[2]<\/a>).<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/details>\n<p>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0430 <a href=\"https:\/\/github.com\/godotengine\/godot\/commit\/ec8084d87f273266c5d79d06c421b5167dd97f94\">\u0432\u043d\u0435\u0441\u043b\u0430\u0441\u044c<\/a> \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441 \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0430\u0439\u0442\u0430. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0433\u043e \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u0430.<\/p>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Godot Engine, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1150\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N3<\/strong><\/p>\n<p>\u0422\u0440\u043e\u0439\u043a\u0430 \u043b\u0438\u0434\u0435\u0440\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u0433\u043e\u0434\u0430. \u041a\u0442\u043e \u0436\u0435 \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0438\u0437 \u0432\u0430\u0441 \u0441\u0430\u043c\u044b\u0439 \u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a?<\/p>\n<p>\u0416\u0443\u043a \u043d\u043e\u043c\u0435\u0440 \u0442\u0440\u0438, \u0442\u044b \u0442\u0438\u043f\u0430 \u0443\u043c\u043d\u044b\u043c \u043f\u0440\u0438\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0448\u044c\u0441\u044f? \u0412\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0448\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u0432\u0430\u0436\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435? \u041f\u0440\u0438\u0437\u043d\u0430\u0439\u0441\u044f, \u044d\u0442\u043e \u0442\u044b \u0432\u0441\u0451 \u0441\u043b\u043e\u043c\u0430\u043b.<\/p>\n<pre><code class=\"cpp\">void StfsContainerDevice::BlockToOffsetSVOD(size_t block, ....) {   ....   const size_t BLOCK_SIZE = 0x800;   const size_t HASH_BLOCK_SIZE = 0x1000;   const size_t BLOCKS_PER_L0_HASH = 0x198;   const size_t HASHES_PER_L1_HASH = 0xA1C4;   const size_t BLOCKS_PER_FILE = 0x14388;   const size_t MAX_FILE_SIZE = 0xA290000;   const size_t BLOCK_OFFSET =       header_.metadata.volume_descriptor.svod.start_data_block();   ....    \/\/ Resolve the true block address and file index   size_t true_block = block - (BLOCK_OFFSET * 2);   ....   size_t file_block = true_block % BLOCKS_PER_FILE;   size_t file_index = true_block \/ BLOCKS_PER_FILE;   size_t offset = 0;    \/\/ Calculate offset caused by Level0 Hash Tables   size_t level0_table_count = (file_block \/ BLOCKS_PER_L0_HASH) + 1;   offset += level0_table_count * HASH_BLOCK_SIZE;    \/\/ Calculate offset caused by Level1 Hash Tables   size_t level1_table_count = (level0_table_count \/ HASHES_PER_L1_HASH) + 1;   offset += level1_table_count * HASH_BLOCK_SIZE;   .... } <\/code><\/pre>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio:<\/p>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v1064\/\">V1064<\/a> The &#8216;level0_table_count&#8217; operand of integer division is less than the &#8216;HASHES_PER_L1_HASH&#8217; one. The result will always be zero. <a href=\"https:\/\/github.com\/xenia-project\/xenia\/blob\/3d30b2eec3ab1f83140b09745bee881fb5d5dde2\/src\/xenia\/vfs\/devices\/stfs_container_device.cc#L500\">stfs_container_device.cc 500<\/a><\/p>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u0451\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>level1_table_count<\/code> \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0432\u043d\u043e 0, \u0442.\u043a. \u043f\u0440\u0438 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u043c \u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043b\u0435\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u043d\u0434 <code>level0_table_count<\/code> \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u0440\u0430\u0432\u044b\u0439 <code>HASHES_PER_L1_HASH<\/code>. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f <code>41412<\/code>, \u0430 \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e, \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u043c\u0441\u044f \u0447\u0443\u0442\u044c \u0432\u044b\u0448\u0435.<\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <code>file_block<\/code> \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <code>true_block<\/code> \u043d\u0430 <code>BLOCKS_PER_FILE<\/code> \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0435\u0436\u0438\u0442 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 <code>[0 .. 82823]<\/code>.<\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <code>BLOCKS_PER_L0_HASH<\/code> \u0434\u0435\u043b\u0438\u0442 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 <code>408<\/code>, \u0438 \u0437\u0430\u0442\u0435\u043c \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f <code>1<\/code>. \u041f\u0440\u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 <code>file_block<\/code> \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f <code>202<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <code>level0_table_count<\/code> \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 <code>[1 .. 203]<\/code>.<\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <code>level1_table_count<\/code> \u043f\u043e \u0438\u0442\u043e\u0433\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u043a <code>203\/41412+1<\/code>, \u0438 \u043f\u0440\u0438 \u043b\u044e\u0431\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <code>true_block<\/code> \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u0430 <code>1<\/code>.<\/p>\n<p>\u041c\u043e\u0436\u0435\u0442, \u043c\u044b \u0433\u0434\u0435-\u0442\u043e \u043e\u0448\u0438\u0431\u043b\u0438\u0441\u044c? \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e <a href=\"https:\/\/godbolt.org\/z\/79ereYfnj\">\u043d\u0435\u0442<\/a>, \u0442\u0430\u043a \u0434\u0443\u043c\u0430\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0448 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440.<\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440, \u0433\u0434\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430 \u0433\u043b\u0430\u0437\u0443. \u0414\u0430 \u0438 \u0440\u0435\u0432\u044c\u044e\u0432\u0435\u0440 \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0443, \u0442.\u043a. \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u043a\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u0434\u043e\u043b\u0433\u043e \u0438 \u0441\u043a\u0443\u0447\u043d\u043e.<\/p>\n<p>\u0412 \u043a\u043e\u0434\u0435 \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/xenia-project\/xenia\/blob\/3d30b2eec3ab1f83140b09745bee881fb5d5dde2\/src\/xenia\/vfs\/devices\/stfs_container_device.cc#L462-L473\">\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u0437\u0430\u0433\u0430\u0434\u043a\u0438. \u041c\u043e\u0436\u0435\u0442, \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0438\u0434\u0435\u0438?<\/p>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Xenia, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1177\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N2<\/strong><\/p>\n<p>\u042d\u0442\u043e \u0447\u0442\u043e? \u0420\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f? \u041a\u0430\u0436\u0434\u044b\u0439 \u0433\u043e\u0434 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435&#8230; \u041d\u0438 \u043e\u0434\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0435 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u0442\u0432\u043e\u0435\u0433\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u044f. \u0422\u0432\u043e\u0438 \u043a\u0440\u043e\u0445\u043e\u0442\u043d\u044b\u0435 \u043b\u0430\u043f\u043a\u0438 \u0431\u044b\u043b\u0438 \u043f\u043e\u0447\u0442\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043a\u043e\u0434\u0435. \u0416\u0434\u0438 \u0441\u0443\u0440\u043e\u0432\u043e\u0435 \u043d\u0430\u043a\u0430\u0437\u0430\u043d\u0438\u0435. \u0410 \u043f\u043e\u043a\u0430 \u043f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f!<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<pre><code class=\"cpp\">struct ForceCodegenLinking {     ForceCodegenLinking() {       \/\/ We must reference the passes in such a way that compilers will not       \/\/ delete it all as dead code, even with whole program optimization,       \/\/ yet is effectively a NO-OP. As the compiler isn't smart enough       \/\/ to know that getenv() never returns -1, this will do the job.       \/\/ This is so that globals in the translation units where these functions       \/\/ are defined are forced to be initialized, populating various       \/\/ registries.       if (std::getenv(\"bar\") != (char*) -1)         return;        (void) llvm::createFastRegisterAllocator();       (void) llvm::createBasicRegisterAllocator();       (void) llvm::createGreedyRegisterAllocator();       (void) llvm::createDefaultPBQPRegisterAllocator();        (void)llvm::createBURRListDAGScheduler(nullptr,                                              llvm::CodeGenOptLevel::Default);       (void)llvm::createSourceListDAGScheduler(nullptr,                                                llvm::CodeGenOptLevel::Default);       (void)llvm::createHybridListDAGScheduler(nullptr,                                                llvm::CodeGenOptLevel::Default);       (void)llvm::createFastDAGScheduler(nullptr,                                          llvm::CodeGenOptLevel::Default);       (void)llvm::createDefaultScheduler(nullptr,                                          llvm::CodeGenOptLevel::Default);       (void)llvm::createVLIWDAGScheduler(nullptr,                                          llvm::CodeGenOptLevel::Default);     }   } ForceCodegenLinking; \/\/ Force link by creating a global definition. } <\/code><\/pre>\n<p>\u0412 \u0435\u0451 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u044f\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043d\u0435\u043a\u0438\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439. \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b (\u0438\u0445 \u0448\u0435\u0441\u0442\u044c \u0448\u0442\u0443\u043a). \u0412\u043e\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445:<\/p>\n<pre><code class=\"cpp\">ScheduleDAGSDNodes *llvm::createBURRListDAGScheduler(SelectionDAGISel *IS,                                                     CodeGenOptLevel OptLevel) {   const TargetSubtargetInfo &amp;STI = IS-&gt;MF-&gt;getSubtarget();   .... } <\/code><\/pre>\n<p>\u0418\u043b\u0438<\/p>\n<pre><code class=\"cpp\">ScheduleDAGSDNodes* createDefaultScheduler(SelectionDAGISel *IS,                                            CodeGenOpt::Level OptLevel)  {   const TargetLowering *TLI = IS-&gt;TLI;   const TargetSubtargetInfo &amp;ST = IS-&gt;MF-&gt;getSubtarget();   .... } <\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435, \u0442\u043e \u0443\u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0435\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f <code>nullptr<\/code>. \u0410 \u044d\u0442\u043e \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>IS<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>\u0421\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 LLVM \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0437\u043d\u0430\u044e\u0442 \u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c UB.<\/p>\n<p>\u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u0430\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441 \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0435\u0433\u043e \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430:<\/p>\n<ul>\n<li>\n<p>V522 Dereferencing of the null pointer might take place. The null pointer is passed into &#8216;createBURRListDAGScheduler&#8217; function. Inspect the first argument. Check lines: &#8216;ScheduleDAGRRList.cpp:<a href=\"https:\/\/github.com\/llvm\/llvm-project\/blob\/461274b81d8641eab64d494accddc81d7db8a09e\/llvm\/lib\/CodeGen\/SelectionDAG\/ScheduleDAGRRList.cpp#L3147\">3147&#8242;<\/a>, &#8216;LinkAllCodegenComponents.h:<a href=\"https:\/\/github.com\/llvm\/llvm-project\/blob\/461274b81d8641eab64d494accddc81d7db8a09e\/llvm\/include\/llvm\/CodeGen\/LinkAllCodegenComponents.h#L40\">40&#8242;<\/a>.<\/p>\n<\/li>\n<li>\n<p>V522 Dereferencing of the null pointer might take place. The null pointer is passed into &#8216;createSourceListDAGScheduler&#8217; function. Inspect the first argument. Check lines: &#8216;ScheduleDAGRRList.cpp:<a href=\"https:\/\/github.com\/llvm\/llvm-project\/blob\/461274b81d8641eab64d494accddc81d7db8a09e\/llvm\/lib\/CodeGen\/SelectionDAG\/ScheduleDAGRRList.cpp#L3161\">3161&#8242;<\/a>, &#8216;LinkAllCodegenComponents.h:<a href=\"https:\/\/github.com\/llvm\/llvm-project\/blob\/461274b81d8641eab64d494accddc81d7db8a09e\/llvm\/include\/llvm\/CodeGen\/LinkAllCodegenComponents.h#L42\">42&#8242;<\/a>.<\/p>\n<\/li>\n<li>\n<p>V522 Dereferencing of the null pointer might take place. The null pointer is passed into &#8216;createHybridListDAGScheduler&#8217; function. Inspect the first argument. Check lines: &#8216;ScheduleDAGRRList.cpp:<a href=\"https:\/\/github.com\/llvm\/llvm-project\/blob\/461274b81d8641eab64d494accddc81d7db8a09e\/llvm\/lib\/CodeGen\/SelectionDAG\/ScheduleDAGRRList.cpp#L3175\">3175&#8242;<\/a>, &#8216;LinkAllCodegenComponents.h:<a href=\"https:\/\/github.com\/llvm\/llvm-project\/blob\/461274b81d8641eab64d494accddc81d7db8a09e\/llvm\/include\/llvm\/CodeGen\/LinkAllCodegenComponents.h#L44\">44&#8242;<\/a>.<\/p>\n<\/li>\n<li>\n<p>&#8230; (\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435)<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 LLVM, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1130\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N1<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u0442\u043e, \u0447\u0435\u0433\u043e \u043c\u044b \u0442\u0430\u043a \u0434\u043e\u043b\u0433\u043e \u0436\u0434\u0430\u043b\u0438! \u0412\u043e\u0442 \u043e\u043d, \u0433\u043b\u0430\u0432\u0430 \u0431\u0430\u043d\u0434\u044b \u0431\u0430\u0433\u043e\u0432. \u041d\u0430\u0441\u0442\u0430\u043b \u0434\u0435\u043d\u044c \u0440\u0430\u0441\u043f\u0440\u0430\u0432\u044b! \u041c\u044b \u0432\u0435\u0441\u044c \u0433\u043e\u0434 \u0436\u0434\u0430\u043b\u0438 \u0442\u0432\u043e\u0435\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f. \u041f\u0440\u0438\u0437\u043d\u0430\u0439\u0441\u044f, \u043a\u0442\u043e \u0442\u044b \u0442\u0430\u043a\u043e\u0439?<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0437\u0443\u0447\u0438\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442:<\/p>\n<details class=\"spoiler\">\n<summary>enum dbg_status<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">enum dbg_status {   DBG_STATUS_OK,   DBG_STATUS_APP_VERSION_NOT_SET,   DBG_STATUS_UNSUPPORTED_APP_VERSION,   DBG_STATUS_DBG_BLOCK_NOT_RESET,   DBG_STATUS_INVALID_ARGS,   DBG_STATUS_OUTPUT_ALREADY_SET,   DBG_STATUS_INVALID_PCI_BUF_SIZE,   DBG_STATUS_PCI_BUF_ALLOC_FAILED,   DBG_STATUS_PCI_BUF_NOT_ALLOCATED,   DBG_STATUS_INVALID_FILTER_TRIGGER_DWORDS,   DBG_STATUS_NO_MATCHING_FRAMING_MODE,   DBG_STATUS_VFC_READ_ERROR,   DBG_STATUS_STORM_ALREADY_ENABLED,   DBG_STATUS_STORM_NOT_ENABLED,   DBG_STATUS_BLOCK_ALREADY_ENABLED,   DBG_STATUS_BLOCK_NOT_ENABLED,   DBG_STATUS_NO_INPUT_ENABLED,   DBG_STATUS_NO_FILTER_TRIGGER_256B,   DBG_STATUS_FILTER_ALREADY_ENABLED,   DBG_STATUS_TRIGGER_ALREADY_ENABLED,   DBG_STATUS_TRIGGER_NOT_ENABLED,   DBG_STATUS_CANT_ADD_CONSTRAINT,   DBG_STATUS_TOO_MANY_TRIGGER_STATES,   DBG_STATUS_TOO_MANY_CONSTRAINTS,   DBG_STATUS_RECORDING_NOT_STARTED,   DBG_STATUS_DATA_DIDNT_TRIGGER,   DBG_STATUS_NO_DATA_RECORDED,   DBG_STATUS_DUMP_BUF_TOO_SMALL,   DBG_STATUS_DUMP_NOT_CHUNK_ALIGNED,   DBG_STATUS_UNKNOWN_CHIP,   DBG_STATUS_VIRT_MEM_ALLOC_FAILED,   DBG_STATUS_BLOCK_IN_RESET,   DBG_STATUS_INVALID_TRACE_SIGNATURE,   DBG_STATUS_INVALID_NVRAM_BUNDLE,   DBG_STATUS_NVRAM_GET_IMAGE_FAILED,   DBG_STATUS_NON_ALIGNED_NVRAM_IMAGE,   DBG_STATUS_NVRAM_READ_FAILED,   DBG_STATUS_IDLE_CHK_PARSE_FAILED,   DBG_STATUS_MCP_TRACE_BAD_DATA,   DBG_STATUS_MCP_TRACE_NO_META,   DBG_STATUS_MCP_COULD_NOT_HALT,   DBG_STATUS_MCP_COULD_NOT_RESUME,   DBG_STATUS_RESERVED0,   DBG_STATUS_SEMI_FIFO_NOT_EMPTY,   DBG_STATUS_IGU_FIFO_BAD_DATA,   DBG_STATUS_MCP_COULD_NOT_MASK_PRTY,   DBG_STATUS_FW_ASSERTS_PARSE_FAILED,   DBG_STATUS_REG_FIFO_BAD_DATA,   DBG_STATUS_PROTECTION_OVERRIDE_BAD_DATA,   DBG_STATUS_DBG_ARRAY_NOT_SET,   DBG_STATUS_RESERVED1,   DBG_STATUS_NON_MATCHING_LINES,   DBG_STATUS_INSUFFICIENT_HW_IDS,   DBG_STATUS_DBG_BUS_IN_USE,   DBG_STATUS_INVALID_STORM_DBG_MODE,   DBG_STATUS_OTHER_ENGINE_BB_ONLY,   DBG_STATUS_FILTER_SINGLE_HW_ID,   DBG_STATUS_TRIGGER_SINGLE_HW_ID,   DBG_STATUS_MISSING_TRIGGER_STATE_STORM,   MAX_DBG_STATUS }; <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0437\u0443\u0447\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0442\u0440\u043e\u043a:<\/p>\n<details class=\"spoiler\">\n<summary>static const char * const s_status_str[] = &#8230;.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">static const char * const s_status_str[] = {   \/* DBG_STATUS_OK *\/   \"Operation completed successfully\",    \/* DBG_STATUS_APP_VERSION_NOT_SET *\/   \"Debug application version wasn't set\",    \/* DBG_STATUS_UNSUPPORTED_APP_VERSION *\/   \"Unsupported debug application version\",    \/* DBG_STATUS_DBG_BLOCK_NOT_RESET *\/   \"The debug block wasn't reset since the last recording\",    \/* DBG_STATUS_INVALID_ARGS *\/   \"Invalid arguments\",    \/* DBG_STATUS_OUTPUT_ALREADY_SET *\/   \"The debug output was already set\",    \/* DBG_STATUS_INVALID_PCI_BUF_SIZE *\/   \"Invalid PCI buffer size\",    \/* DBG_STATUS_PCI_BUF_ALLOC_FAILED *\/   \"PCI buffer allocation failed\",    \/* DBG_STATUS_PCI_BUF_NOT_ALLOCATED *\/   \"A PCI buffer wasn't allocated\",    \/* DBG_STATUS_INVALID_FILTER_TRIGGER_DWORDS *\/   \"The filter\/trigger constraint dword offsets are not \"   \"enabled for recording\",     \/* DBG_STATUS_VFC_READ_ERROR *\/   \"Error reading from VFC\",    \/* DBG_STATUS_STORM_ALREADY_ENABLED *\/   \"The Storm was already enabled\",    \/* DBG_STATUS_STORM_NOT_ENABLED *\/   \"The specified Storm wasn't enabled\",    \/* DBG_STATUS_BLOCK_ALREADY_ENABLED *\/   \"The block was already enabled\",    \/* DBG_STATUS_BLOCK_NOT_ENABLED *\/   \"The specified block wasn't enabled\",    \/* DBG_STATUS_NO_INPUT_ENABLED *\/   \"No input was enabled for recording\",    \/* DBG_STATUS_NO_FILTER_TRIGGER_256B *\/   \"Filters and triggers are not allowed in E4 256-bit mode\",    \/* DBG_STATUS_FILTER_ALREADY_ENABLED *\/   \"The filter was already enabled\",    \/* DBG_STATUS_TRIGGER_ALREADY_ENABLED *\/   \"The trigger was already enabled\",    \/* DBG_STATUS_TRIGGER_NOT_ENABLED *\/   \"The trigger wasn't enabled\",    \/* DBG_STATUS_CANT_ADD_CONSTRAINT *\/   \"A constraint can be added only after a filter was \"   \"enabled or a trigger state was added\",    \/* DBG_STATUS_TOO_MANY_TRIGGER_STATES *\/   \"Cannot add more than 3 trigger states\",    \/* DBG_STATUS_TOO_MANY_CONSTRAINTS *\/   \"Cannot add more than 4 constraints per filter or trigger state\",    \/* DBG_STATUS_RECORDING_NOT_STARTED *\/   \"The recording wasn't started\",    \/* DBG_STATUS_DATA_DID_NOT_TRIGGER *\/   \"A trigger was configured, but it didn't trigger\",    \/* DBG_STATUS_NO_DATA_RECORDED *\/   \"No data was recorded\",    \/* DBG_STATUS_DUMP_BUF_TOO_SMALL *\/   \"Dump buffer is too small\",    \/* DBG_STATUS_DUMP_NOT_CHUNK_ALIGNED *\/   \"Dumped data is not aligned to chunks\",    \/* DBG_STATUS_UNKNOWN_CHIP *\/   \"Unknown chip\",    \/* DBG_STATUS_VIRT_MEM_ALLOC_FAILED *\/   \"Failed allocating virtual memory\",    \/* DBG_STATUS_BLOCK_IN_RESET *\/   \"The input block is in reset\",    \/* DBG_STATUS_INVALID_TRACE_SIGNATURE *\/   \"Invalid MCP trace signature found in NVRAM\",    \/* DBG_STATUS_INVALID_NVRAM_BUNDLE *\/   \"Invalid bundle ID found in NVRAM\",    \/* DBG_STATUS_NVRAM_GET_IMAGE_FAILED *\/   \"Failed getting NVRAM image\",    \/* DBG_STATUS_NON_ALIGNED_NVRAM_IMAGE *\/   \"NVRAM image is not dword-aligned\",    \/* DBG_STATUS_NVRAM_READ_FAILED *\/   \"Failed reading from NVRAM\",    \/* DBG_STATUS_IDLE_CHK_PARSE_FAILED *\/   \"Idle check parsing failed\",    \/* DBG_STATUS_MCP_TRACE_BAD_DATA *\/   \"MCP Trace data is corrupt\",    \/* DBG_STATUS_MCP_TRACE_NO_META *\/   \"Dump doesn't contain meta data - it must be provided in image file\",    \/* DBG_STATUS_MCP_COULD_NOT_HALT *\/   \"Failed to halt MCP\",    \/* DBG_STATUS_MCP_COULD_NOT_RESUME *\/   \"Failed to resume MCP after halt\",    \/* DBG_STATUS_RESERVED0 *\/   \"\",    \/* DBG_STATUS_SEMI_FIFO_NOT_EMPTY *\/   \"Failed to empty SEMI sync FIFO\",    \/* DBG_STATUS_IGU_FIFO_BAD_DATA *\/   \"IGU FIFO data is corrupt\",    \/* DBG_STATUS_MCP_COULD_NOT_MASK_PRTY *\/   \"MCP failed to mask parities\",    \/* DBG_STATUS_FW_ASSERTS_PARSE_FAILED *\/   \"FW Asserts parsing failed\",    \/* DBG_STATUS_REG_FIFO_BAD_DATA *\/   \"GRC FIFO data is corrupt\",    \/* DBG_STATUS_PROTECTION_OVERRIDE_BAD_DATA *\/   \"Protection Override data is corrupt\",    \/* DBG_STATUS_DBG_ARRAY_NOT_SET *\/   \"Debug arrays were not set \"   \"(when using binary files, dbg_set_bin_ptr must be called)\",    \/* DBG_STATUS_RESERVED1 *\/   \"\",    \/* DBG_STATUS_NON_MATCHING_LINES *\/   \"Non-matching debug lines - in E4, all lines must be of \"   \"the same type (either 128b or 256b)\",    \/* DBG_STATUS_INSUFFICIENT_HW_IDS *\/   \"Insufficient HW IDs. Try to record less Storms\/blocks\",    \/* DBG_STATUS_DBG_BUS_IN_USE *\/   \"The debug bus is in use\",    \/* DBG_STATUS_INVALID_STORM_DBG_MODE *\/   \"The storm debug mode is not supported in the current chip\",    \/* DBG_STATUS_OTHER_ENGINE_BB_ONLY *\/   \"Other engine is supported only in BB\",    \/* DBG_STATUS_FILTER_SINGLE_HW_ID *\/   \"The configured filter mode requires a single Storm\/block input\",    \/* DBG_STATUS_TRIGGER_SINGLE_HW_ID *\/   \"The configured filter mode requires that all the constraints of a \"   \"single trigger state will be defined on a single Storm\/block input\",    \/* DBG_STATUS_MISSING_TRIGGER_STATE_STORM *\/   \"When triggering on Storm data, the Storm to trigger on must be specified\" }; <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u2014 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u0432 \u0441\u0442\u0440\u043e\u0447\u043a\u0443:<\/p>\n<pre><code class=\"cpp\">const char *qed_dbg_get_status_str(enum dbg_status status) {   return (status &lt; MAX_DBG_STATUS) ?     s_status_str[status] : \"Invalid debug status\"; } <\/code><\/pre>\n<p><strong>\u0413\u0434\u0435 \u043e\u0448\u0438\u0431\u043a\u0430?<\/strong><\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/739\/22d\/c81\/73922dc811748c0193cbea4b763f91cf.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/739\/22d\/c81\/73922dc811748c0193cbea4b763f91cf.png\"\/><\/figure>\n<p>\u041d\u0430\u0448\u043b\u0438?<\/p>\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0435\u0441\u0442\u044c \u043d\u0430\u043c\u0451\u043a, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0446\u0435\u043f\u0438\u0442\u044c\u0441\u044f. \u0412 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u043a\u0440\u043e\u043c\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430. \u041d\u043e \u043d\u0430\u0447\u043d\u0451\u043c \u043c\u044b \u0441 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043a\u043e\u0434\u0430 PVS-Studio:<\/p>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v557\/\">V557<\/a> Array overrun is possible. The value of &#8216;status&#8217; index could reach 58. qede_debug.c 7149<\/p>\n<p>\u041e\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"cpp\">return (status &lt; MAX_DBG_STATUS) ?   s_status_str[status] : \"Invalid debug status\"; <\/code><\/pre>\n<p>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0443\u0447\u043d\u044b\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0437. \u041f\u043e \u043d\u0435\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u043e \u043c\u043d\u043e\u0439 <a href=\"https:\/\/cwe.mitre.org\/data\/definitions\/193.html\">off-by-one error<\/a>. \u0423\u0436 \u043e\u0447\u0435\u043d\u044c \u044d\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0442\u0438\u043f\u043e\u0432\u0443\u044e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445.<\/p>\n<p>\u0421\u0443\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0442\u0438\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430. \u0415\u0441\u0442\u044c <code>enum<\/code>, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043d\u0451\u043c.<\/p>\n<pre><code class=\"cpp\">enum Efoo {   A,   B,   C,   COUNT }; <\/code><\/pre>\n<p>\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c \u0432 <code>enum<\/code> \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 0. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <code>COUNT<\/code> \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u0430 3, \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442:<\/p>\n<pre><code class=\"cpp\">char Cfoo[] = { 'A', 'B', 'C' }; <\/code><\/pre>\n<p>\u0427\u0430\u0441\u0442\u043e \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0431\u0430\u0433, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442, \u0447\u0442\u043e \u0438\u043d\u0434\u0435\u043a\u0441 \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430:<\/p>\n<pre><code class=\"cpp\">char Convert(unsigned id) {   return (id &gt; COUNT) ? 0 : Cfoo[id]; } <\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e: \u0435\u0441\u043b\u0438 <code>id<\/code> \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0440\u0430\u0432\u0435\u043d <code>COUNT<\/code>, \u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0432\u044b\u0445\u043e\u0434 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 PVS-Studio \u0432\u044b\u0434\u0430\u0451\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u043e\u043c\u0443 \u0440\u0430\u043d\u0435\u0435.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432:<\/p>\n<pre><code class=\"cpp\">return (id &gt;= COUNT) ? 0 : Cfoo[id];  \/\/ OK return (id &lt; COUNT) ? Cfoo[id] : 0;   \/\/ OK <\/code><\/pre>\n<p>\u041d\u0438\u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e. \u0420\u0430\u0441\u0445\u043e\u0434\u0438\u043c\u0441\u044f. \u0412 \u0441\u0442\u0430\u0442\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0440\u044f\u0434\u043e\u043c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0432\u044b\u0445\u043e\u0434\u0430 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443, \u043d\u043e \u0441\u0430\u043c \u0431\u0430\u0433 \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 DPDK.<\/p>\n<p><strong>\u0418 \u0442\u0443\u0442 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u2014 \u0421\u0422\u041e\u041f!<\/strong><\/p>\n<p><strong>\u0417\u0414\u0415\u0421\u042c \u0416\u0415 \u0412\u0415\u0414\u042c \u041f\u0420\u0410\u0412\u0418\u041b\u042c\u041d\u0410\u042f \u041f\u0420\u041e\u0412\u0415\u0420\u041a\u0410 \u041d\u0410\u041f\u0418\u0421\u0410\u041d\u0410!<\/strong><\/p>\n<pre><code class=\"cpp\">return (status &lt; MAX_DBG_STATUS) ?   s_status_str[status] : \"Invalid debug status\"; <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e! \u041f\u043e\u0447\u0435\u043c\u0443 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u043b \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435? \u041b\u043e\u0436\u043d\u043e\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435? \u042d\u0442\u043e \u0432\u0440\u044f\u0434 \u043b\u0438, \u0442\u0443\u0442 \u0435\u043c\u0443 \u043d\u0435\u0433\u0434\u0435 \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0417\u0430\u0441\u0443\u0447\u0438\u0432 \u0440\u0443\u043a\u0430\u0432\u0430, \u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u043a\u043e\u0434. \u0412\u043e\u0442 \u043e\u043d\u043e!<\/p>\n<p>\u041f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <code>DBG_STATUS_NO_MATCHING_FRAMING_MODE<\/code>.<\/p>\n<p>\u0412 <code>enum<\/code>:<\/p>\n<pre><code class=\"cpp\">DBG_STATUS_INVALID_FILTER_TRIGGER_DWORDS, DBG_STATUS_NO_MATCHING_FRAMING_MODE, DBG_STATUS_VFC_READ_ERROR, <\/code><\/pre>\n<p>\u0412 \u043c\u0430\u0441\u0441\u0438\u0432\u0435:<\/p>\n<pre><code class=\"cpp\">\/* DBG_STATUS_INVALID_FILTER_TRIGGER_DWORDS *\/ \"The filter\/trigger constraint dword offsets are not \" \"enabled for recording\",   \/* DBG_STATUS_VFC_READ_ERROR *\/ \"Error reading from VFC\", <\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 \u0434\u0432\u0443\u0445 \u043f\u0443\u0441\u0442\u044b\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a. \u0417\u0434\u0435\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0451\u043b \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0441\u0431\u043e\u0439 \u043f\u0440\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u043b\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0439 \u043c\u0451\u0440\u0436 \u0432\u0435\u0442\u043e\u043a, \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0451.<\/p>\n<p>\u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u044d\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0439\u0434\u0435\u043d \u0431\u0430\u0433, \u0434\u0432\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u041f\u0440\u0438 \u043e\u0431\u0437\u043e\u0440\u0435 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442 \u043d\u0430 \u043d\u0438\u0445 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u0410 \u0434\u0430\u0436\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0432, \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u044f\u0442 \u043e\u0434\u043d\u0443 \u0438\u0437 \u043d\u0438\u0445 \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b. \u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0441\u043a\u0430\u0436\u0435\u0442, &#171;\u0434\u0430 \u0442\u0443\u0442 \u043d\u0435\u0431\u043e\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438, \u043f\u043e\u0439\u0434\u0451\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c&#187; \ud83d\ude42<\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u044d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>\u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d \u0432\u044b\u0445\u043e\u0434 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <code>DBG_STATUS_NO_MATCHING_FRAMING_MODE<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 DPDK, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1176\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0422\u0438\u0448\u0438\u043d\u0430 \u0432 \u0437\u0430\u043b\u0435. \u0418 \u0434\u0430\u0436\u0435 \u0441\u0443\u0434 \u043c\u043e\u043b\u0447\u0438\u0442. \u0421\u0430\u043c\u044b\u0435 \u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0431\u044b\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b. \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0438\u0442\u044c \u0438\u0445, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f&#8230; \u041e\u0434\u043d\u0430\u043a\u043e \u043c\u044b \u0431\u044b \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u0438 \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u043c\u043e\u0433 \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0432 \u2014 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 <a href=\"https:\/\/pvs-studio.ru\/ru\/pvs-studio\/\">PVS-Studio<\/a>.<\/p>\n<p>\u0417\u0430 2024 \u0433\u043e\u0434 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043d\u0435\u043c\u0430\u043b\u043e \u0431\u0430\u0433\u043e\u0432, \u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c. \u041d\u0430\u0448 \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0432 \u0433\u043e\u0442\u043e\u0432 \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u043d\u0430\u0439\u0442\u0438 \u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0443\u0447\u0430\u0441\u0442\u043a\u0438 \u043a\u043e\u0434\u0430 \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u0434\u043b\u044f <a href=\"https:\/\/pvs-studio.ru\/ru\/order\/open-source-license\/\">\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c<\/a>;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043b\u044f <a href=\"https:\/\/pvs-studio.ru\/ru\/order\/for-students\/\">\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/pvs-studio\/try-free\/\">30-\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f<\/a>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u043d\u0430\u0442\u044c \u043e\u0431\u043e \u0432\u0441\u0435\u0445 \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0431\u0430\u0433\u0430\u0445 \u0437\u0430 \u044d\u0442\u043e\u0442 \u0433\u043e\u0434, \u0442\u043e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u043e\u043f-10 \u043e\u0448\u0438\u0431\u043e\u043a \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 Java \u0438 C#:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/java\/1207\/\">10 \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 Java \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0437\u0430 2024 \u0433\u043e\u0434<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/csharp\/1203\/\">\u0422\u043e\u043f-10 \u043e\u0448\u0438\u0431\u043e\u043a, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432 C# \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0437\u0430 2024 \u0433\u043e\u0434<\/a>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0441 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0435\u0439, \u0442\u043e \u043f\u0440\u043e\u0448\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434: Aleksandra Uvarova. <a href=\"https:\/\/pvs-studio.com\/en\/blog\/posts\/cpp\/1208\/\">Court is in session: Top 10 most notorious C and C++ errors in 2024<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/870566\/\"> https:\/\/habr.com\/ru\/articles\/870566\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0433\u043e\u0434 \u043c\u044b \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443: \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u0440\u0442\u044f\u0442 \u043d\u0430\u043c \u043a\u043e\u0434, \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0437\u0434\u0435\u0441\u044c \u0433\u043b\u0430\u0432\u043d\u044b\u0435. \u041d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0430\u0441\u0442\u0430\u043b \u0434\u0435\u043d\u044c \u0440\u0430\u0441\u043f\u0440\u0430\u0432\u044b. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a\u0438\u0435 \u0441\u0430\u043c\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u0432 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443&#8230;<\/p>\n<figure class=\"\"><\/figure>\n<h3>\u0412\u0441\u0435\u043c \u0432\u0441\u0442\u0430\u0442\u044c!<\/h3>\n<p>\u0412 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u043c\u044b \u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438\u0437 Open Source \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u044f\u0437\u044b\u043a\u0430\u0445 C \u0438 C++. \u041a\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0439 \u0438 \u0441\u043f\u043e\u0440\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u0432\u0438\u043d\u043e\u0432\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0436\u0443\u0447\u043a\u0430. \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0443\u0434\u0430 \u043d\u0430\u0434 \u043d\u0438\u043c\u0438!<\/p>\n<p>\u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c 10 \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445. \u0410 \u0434\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u0443\u0432\u043b\u0435\u0447\u0451\u043d\u043d\u044b\u0445 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e C \u0438 C++ \u0437\u0430 \u044d\u0442\u043e\u0442 \u0433\u043e\u0434:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1106\/\">\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c Blender<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1112\/\">\u041a\u0430\u043a \u043d\u0435 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 \u0421++<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1186\/\">\u0414\u044e\u0436\u0438\u043d\u0430 \u043e\u0448\u0438\u0431\u043e\u043a \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 Telegram<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1141\/\">\u041d\u0430\u0441\u0435\u043a\u043e\u043c\u043e\u0435 13 \u043b\u0435\u0442 \u0441\u0438\u0434\u0438\u0442 \u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435 \u0438 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u044b\u043b\u0435\u0437\u0430\u0442\u044c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1167\/\">PPSSPP \u0438\u043b\u0438 \u0432\u0441\u0451 \u0436\u0435 psp? \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0431\u0430\u0433\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0438\u0437 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043b\u043e\u0433\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<h3>\u041e\u0431\u0432\u0438\u043d\u044f\u0435\u043c\u044b\u0435 \u0431\u0430\u0433\u0438<\/h3>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N10<\/strong><\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u043d\u0442\u0440\u0438\u0433\u0443 \u0438 \u043d\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0430, \u043c\u044b \u043d\u0430\u0447\u043d\u0451\u043c \u0441 \u043a\u043e\u043d\u0446\u0430. \u0412\u044b\u0432\u043e\u0434\u0438\u0442\u0435 \u0434\u0435\u0441\u044f\u0442\u043e\u0433\u043e! \u041d\u0443 \u0434\u0430, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043a\u0430\u043a \u0436\u0435 \u0431\u0435\u0437 \u0442\u0435\u0431\u044f, \u0443\u0442\u0435\u0447\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u0430\u0432\u0430\u0439, \u043f\u043e\u043a\u0430\u0436\u0438, \u0433\u0434\u0435 \u0442\u044b \u043f\u0440\u044f\u0447\u0435\u0448\u044c\u0441\u044f:<\/p>\n<pre><code class=\"cpp\">int sceNetAdhocMatchingSetHelloOpt(int matchingId,                                    int optLenAddr, u32 optDataAddr) {   ....   if (optLenAddr &gt; context-&gt;hellolen)   {     hello = realloc(hello, optLenAddr);   }   .... } <\/code><\/pre>\n<p>\u0421 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430 \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435 \u0432\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0438 \u0432 99% \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u0414\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 <code>realloc<\/code> \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430. \u041e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a <a href=\"https:\/\/en.cppreference.com\/w\/c\/memory\/realloc\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>realloc<\/code>:<\/p>\n<p><em>If there is not enough memory, the old memory block is not freed and null pointer is returned.<\/em><\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043f\u0440\u0438 \u0440\u0435\u0430\u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442 \u043f\u0430\u043c\u044f\u0442\u0438, \u043c\u044b \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0432 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c <code>hello<\/code> \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0443\u0442\u0435\u0447\u043a\u0430. \u041e\u0431 \u044d\u0442\u043e\u043c \u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440:<\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.ru\/ru\/docs\/warnings\/v701\/\">V701<\/a> realloc() possible leak: when realloc() fails in allocating memory, original pointer &#8216;hello&#8217; is lost. Consider assigning realloc() to a temporary pointer. <a href=\"https:\/\/github.com\/hrydgard\/ppsspp\/blob\/d479b74ed9c3e321bc3735da29bc125a2ac3b9b2\/Core\/HLE\/sceNetAdhoc.cpp#L5407\">sceNetAdhoc.cpp 5407<\/a><\/p>\n<p>\u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 PPSSPP, \u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"https:\/\/pvs-studio.ru\/ru\/blog\/posts\/cpp\/1167\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p><strong>\u041f\u043e\u0434\u0441\u0443\u0434\u0438\u043c\u044b\u0439 N9<\/strong><\/p>\n<p>\u0422\u0430\u043a, \u0441 \u043e\u0434\u043d\u0438\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439. \u0412 \u0441\u043c\u044b\u0441\u043b\u0435 \u043e\u043d \u043d\u0435 \u043e\u0434\u0438\u043d? \u0410 \u043a\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u043e\u0431\u0432\u0438\u043d\u044f\u0435\u043c\u044b\u0439?<\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u0441\u044b\u0433\u0440\u0430\u0435\u043c \u0432 \u043c\u0438\u043d\u0438-\u0438\u0433\u0440\u0443: \u043d\u0430\u0434\u043e \u043d\u0430\u0439\u0442\u0438 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 OpenVINO. \u041a\u0442\u043e \u043d\u0430\u0448\u0451\u043b, \u0442\u043e\u0442 \u043c\u043e\u043b\u043e\u0434\u0435\u0446! \u041a\u0442\u043e \u043d\u0435 \u043d\u0430\u0448\u0451\u043b, \u0442\u043e\u0436\u0435 \u043c\u043e\u043b\u043e\u0434\u0446\u044b! \u041e\u0434\u043d\u0430\u043a\u043e, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u0441\u0435\u043c \u0441\u0442\u0430\u043b\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u2014 \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440.<\/p>\n<details class=\"spoiler\">\n<summary>\u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438:<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">template &lt;class Key, class Value&gt; using caseless_unordered_map = std::unordered_map&lt;Key, Value,                                     CaselessHash&lt;Key&gt;, CaselessEq&lt;Key&gt;&gt;; using TypeToNameMap = ov::intel_cpu::                           caseless_unordered_map&lt;std::string, Type&gt;;  static const TypeToNameMap&amp; get_type_to_name_tbl() {     static const TypeToNameMap type_to_name_tbl = {         {\"Constant\", Type::Input},         {\"Parameter\", Type::Input},         {\"Result\", Type::Output},         {\"Eye\", Type::Eye},         {\"Convolution\", Type::Convolution},         {\"GroupConvolution\", Type::Convolution},         {\"MatMul\", Type::MatMul},         {\"FullyConnected\", Type::FullyConnected},         {\"MaxPool\", Type::Pooling},         {\"AvgPool\", Type::Pooling},         {\"AdaptiveMaxPool\", Type::AdaptivePooling},         {\"AdaptiveAvgPool\", Type::AdaptivePooling},         {\"Add\", Type::Eltwise},         {\"IsFinite\", Type::Eltwise},         {\"IsInf\", Type::Eltwise},         {\"IsNaN\", Type::Eltwise},         {\"Subtract\", Type::Eltwise},         {\"Multiply\", Type::Eltwise},         {\"Divide\", Type::Eltwise},         {\"SquaredDifference\", Type::Eltwise},         {\"Maximum\", Type::Eltwise},         {\"Minimum\", Type::Eltwise},         {\"Mod\", Type::Eltwise},         {\"FloorMod\", Type::Eltwise},         {\"Power\", Type::Eltwise},         {\"PowerStatic\", Type::Eltwise},         {\"Equal\", Type::Eltwise},         {\"NotEqual\", Type::Eltwise},         {\"Greater\", Type::Eltwise},         {\"GreaterEqual\", Type::Eltwise},         {\"Less\", Type::Eltwise},         {\"LessEqual\", Type::Eltwise},         {\"LogicalAnd\", Type::Eltwise},         {\"LogicalOr\", Type::Eltwise},         {\"LogicalXor\", Type::Eltwise},         {\"LogicalNot\", Type::Eltwise},         {\"Relu\", Type::Eltwise},         {\"LeakyRelu\", Type::Eltwise},         {\"Gelu\", Type::Eltwise},         {\"Elu\", Type::Eltwise},         {\"Tanh\", Type::Eltwise},         {\"Sigmoid\", Type::Eltwise},         {\"Abs\", Type::Eltwise},         {\"Sqrt\", Type::Eltwise},         {\"Clamp\", Type::Eltwise},         {\"Exp\", Type::Eltwise},         {\"SwishCPU\", Type::Eltwise},         {\"HSwish\", Type::Eltwise},         {\"Mish\", Type::Eltwise},         {\"HSigmoid\", Type::Eltwise},         {\"Round\", Type::Eltwise},         {\"PRelu\", Type::Eltwise},         {\"Erf\", Type::Eltwise},         {\"SoftPlus\", Type::Eltwise},         {\"SoftSign\", Type::Eltwise},         {\"Select\", Type::Eltwise},         {\"Log\", Type::Eltwise},         {\"BitwiseAnd\", Type::Eltwise},         {\"BitwiseNot\", Type::Eltwise},         {\"BitwiseOr\", Type::Eltwise},         {\"BitwiseXor\", Type::Eltwise},         {\"Reshape\", Type::Reshape},         {\"Squeeze\", Type::Reshape},         {\"Unsqueeze\", Type::Reshape},         {\"ShapeOf\", Type::ShapeOf},         {\"NonZero\", Type::NonZero},         {\"Softmax\", Type::Softmax},         {\"Reorder\", Type::Reorder},         {\"BatchToSpace\", Type::BatchToSpace},         {\"SpaceToBatch\", Type::SpaceToBatch},         {\"DepthToSpace\", Type::DepthToSpace},         {\"SpaceToDepth\", Type::SpaceToDepth},         {\"Roll\", Type::Roll},         {\"LRN\", Type::Lrn},         {\"Split\", Type::Split},         {\"VariadicSplit\", Type::Split},         {\"Concat\", Type::Concatenation},         {\"ConvolutionBackpropData\", Type::Deconvolution},         {\"GroupConvolutionBackpropData\", Type::Deconvolution},         {\"StridedSlice\", Type::StridedSlice},         {\"Slice\", Type::StridedSlice},         {\"Tile\", Type::Tile},         {\"ROIAlign\", Type::ROIAlign},         {\"ROIPooling\", Type::ROIPooling},         {\"PSROIPooling\", Type::PSROIPooling},         {\"DeformablePSROIPooling\", Type::PSROIPooling},         {\"Pad\", Type::Pad},         {\"Transpose\", Type::Transpose},         {\"LSTMCell\", Type::RNNCell},         {\"GRUCell\", Type::RNNCell},         {\"AUGRUCell\", Type::RNNCell},         {\"RNNCell\", Type::RNNCell},         {\"LSTMSequence\", Type::RNNSeq},         {\"GRUSequence\", Type::RNNSeq},         {\"AUGRUSequence\", Type::RNNSeq},         {\"RNNSequence\", Type::RNNSeq},         {\"FakeQuantize\", Type::FakeQuantize},         {\"BinaryConvolution\", Type::BinaryConvolution},         {\"DeformableConvolution\", Type::DeformableConvolution},         {\"TensorIterator\", Type::TensorIterator},         {\"Loop\", Type::TensorIterator},         {\"ReadValue\", Type::MemoryInput},  \/\/ for construction from name                                            \/\/ ctor, arbitrary name is used         {\"Assign\", Type::MemoryOutput},    \/\/ for construction from layer ctor         {\"Convert\", Type::Convert},         {\"NV12toRGB\", Type::ColorConvert},         {\"NV12toBGR\", Type::ColorConvert},         {\"I420toRGB\", Type::ColorConvert},         {\"I420toBGR\", Type::ColorConvert},         {\"MVN\", Type::MVN},         {\"NormalizeL2\", Type::NormalizeL2},         {\"ScatterUpdate\", Type::ScatterUpdate},         {\"ScatterElementsUpdate\", Type::ScatterElementsUpdate},         {\"ScatterNDUpdate\", Type::ScatterNDUpdate},         {\"Interpolate\", Type::Interpolate},         {\"RandomUniform\", Type::RandomUniform},         {\"ReduceL1\", Type::Reduce},         {\"ReduceL2\", Type::Reduce},         {\"ReduceLogicalAnd\", Type::Reduce},         {\"ReduceLogicalOr\", Type::Reduce},         {\"ReduceMax\", Type::Reduce},         {\"ReduceMean\", Type::Reduce},         {\"ReduceMin\", Type::Reduce},         {\"ReduceProd\", Type::Reduce},         {\"ReduceSum\", Type::Reduce},           {\"ReduceLogSum\", Type::Reduce},         {\"ReduceLogSumExp\", Type::Reduce},         {\"ReduceSumSquare\", Type::Reduce},         {\"Broadcast\", Type::Broadcast},           {\"EmbeddingSegmentsSum\", Type::EmbeddingSegmentsSum},         {\"EmbeddingBagPackedSum\", Type::EmbeddingBagPackedSum},         {\"EmbeddingBagOffsetsSum\", Type::EmbeddingBagOffsetsSum},         {\"Gather\", Type::Gather},         {\"GatherElements\", Type::GatherElements},         {\"GatherND\", Type::GatherND},         {\"GridSample\", Type::GridSample},         {\"OneHot\", Type::OneHot},         {\"RegionYolo\", Type::RegionYolo},         {\"ShuffleChannels\", Type::ShuffleChannels},         {\"DFT\", Type::DFT},         {\"IDFT\", Type::DFT},         {\"RDFT\", Type::RDFT},         {\"IRDFT\", Type::RDFT},         {\"Abs\", Type::Math},         {\"Acos\", Type::Math},         {\"Acosh\", Type::Math},           {\"Asin\", Type::Math},         {\"Asinh\", Type::Math},         {\"Atan\", Type::Math},         {\"Atanh\", Type::Math},         {\"Ceil\", Type::Math},         {\"Ceiling\", Type::Math},         {\"Cos\", Type::Math},         {\"Cosh\", Type::Math},         {\"Floor\", Type::Math},         {\"HardSigmoid\", Type::Math},         {\"If\", Type::If},         {\"Neg\", Type::Math},         {\"Reciprocal\", Type::Math},         {\"Selu\", Type::Math},         {\"Sign\", Type::Math},         {\"Sin\", Type::Math},         {\"Sinh\", Type::Math},         {\"SoftPlus\", Type::Math},         {\"Softsign\", Type::Math},         {\"Tan\", Type::Math},         {\"CTCLoss\", Type::CTCLoss},         {\"Bucketize\", Type::Bucketize},         {\"CTCGreedyDecoder\", Type::CTCGreedyDecoder},         {\"CTCGreedyDecoderSeqLen\", Type::CTCGreedyDecoderSeqLen},         {\"CumSum\", Type::CumSum},         {\"DetectionOutput\", Type::DetectionOutput},         {\"ExperimentalDetectronDetectionOutput\",                       Type::ExperimentalDetectronDetectionOutput},         {\"LogSoftmax\", Type::LogSoftmax},         {\"TopK\", Type::TopK},         {\"GatherTree\", Type::GatherTree},         {\"GRN\", Type::GRN},         {\"Range\", Type::Range},         {\"Proposal\", Type::Proposal},         {\"ReorgYolo\", Type::ReorgYolo},         {\"ReverseSequence\",<\/code><\/pre>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-443744","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=443744"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443744\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=443744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=443744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=443744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}