OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[core] Re-organize common utils (#36822)
Pawel Raaszd96c770c2925
diff --git a/src/common/snippets/include/snippets/utils/debug_caps_config.hpp b/src/common/snippets/include/snippets/utils/debug_caps_config.hppindex 4371e1238ac..368bb31fe1e 100644--- a/src/common/snippets/include/snippets/utils/debug_caps_config.hpp+++ b/src/common/snippets/include/snippets/utils/debug_caps_config.hpp@@ -6,6 +6,7 @@# pragma once+# include <algorithm># include <bitset># include <memory># include <utility>diff --git a/src/common/transformations/src/ov_ops/dynamic_quantize.cpp b/src/common/transformations/src/ov_ops/dynamic_quantize.cppindex 6798b4c2d06..93b1ad1711c 100644--- a/src/common/transformations/src/ov_ops/dynamic_quantize.cpp+++ b/src/common/transformations/src/ov_ops/dynamic_quantize.cpp@@ -8,7 +8,7 @@#include "openvino/core/partial_shape.hpp"#include "openvino/core/validation_util.hpp"#include "openvino/op/variadic_split.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"namespace ov {namespace op {diff --git a/src/common/transformations/src/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.cpp b/src/common/transformations/src/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.cppindex 3a933e49ee3..49399a17ffe 100644--- a/src/common/transformations/src/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.cpp+++ b/src/common/transformations/src/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.cpp@@ -11,7 +11,7 @@#include "openvino/op/tensor_iterator.hpp"#include "openvino/op/util/multi_subgraph_base.hpp"#include "openvino/pass/pattern/op/wrap_type.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "transformations/utils/utils.hpp"using namespace ov::op::util;diff --git a/src/common/transformations/src/transformations/convert_precision.cpp b/src/common/transformations/src/transformations/convert_precision.cppindex 254971650fa..59b1a07814f 100644--- a/src/common/transformations/src/transformations/convert_precision.cpp+++ b/src/common/transformations/src/transformations/convert_precision.cpp@@ -16,7 +16,7 @@#include "openvino/pass/constant_folding.hpp"#include "openvino/pass/manager.hpp"#include "openvino/reference/convert.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "ov_ops/rms.hpp"#include "ov_ops/type_relaxed.hpp"#include "transformations/fp16_compression/align_mixed_fp32_fp16_types.hpp"diff --git a/src/common/transformations/tests/control_flow/unroll_if_test.cpp b/src/common/transformations/tests/control_flow/unroll_if_test.cppindex 99e14810674..8551c295914 100644--- a/src/common/transformations/tests/control_flow/unroll_if_test.cpp+++ b/src/common/transformations/tests/control_flow/unroll_if_test.cpp@@ -26,7 +26,7 @@#include "openvino/op/variadic_split.hpp"#include "openvino/pass/constant_folding.hpp"#include "openvino/pass/manager.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "transformations/common_optimizations/push_constant_to_subgraph.hpp"#include "transformations/init_node_info.hpp"#include "transformations/rt_info/fused_names_attribute.hpp"diff --git a/src/common/transformations/tests/hash_tests.cpp b/src/common/transformations/tests/hash_tests.cppindex ecd7845323d..e37c5b81828 100644--- a/src/common/transformations/tests/hash_tests.cpp+++ b/src/common/transformations/tests/hash_tests.cpp@@ -8,7 +8,7 @@#include "openvino/op/add.hpp"#include "openvino/op/constant.hpp"#include "openvino/op/parameter.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "transformations/hash.hpp"namespace v0 = ov::op::v0;diff --git a/src/common/util/include/openvino/util/common_util.hpp b/src/common/util/include/openvino/util/common_util.hppindex c766e7ce2bd..54940b4b8eb 100644--- a/src/common/util/include/openvino/util/common_util.hpp+++ b/src/common/util/include/openvino/util/common_util.hpp@@ -4,20 +4,48 @@#pragma once-#include <algorithm>-#include <array>-#include <cctype>#include <charconv>-#include <cstdint>-#include <cstring>-#include <filesystem>-#include <numeric>-#include <optional>+#include <iterator>#include <sstream>#include <string>+#include <string_view>+#include <type_traits>#include <vector>+#include "openvino/util/string_view_streambuf.hpp"+namespace ov::util {++/**+ * @brief Return a string view with leading whitespace removed.+ *+ * @param s A string view to trim.+ * @return A string view with leading whitespace removed.+ */+constexpr std::string_view ltrim(std::string_view s) {+ const auto not_ws_pos = s.find_first_not_of(" \t\n\r\f\v");+ return not_ws_pos == std::string_view::npos ? std::string_view() : s.substr(not_ws_pos);+}++/**+ * @brief Return a string view with trailing whitespace removed.+ * @param s A string view to trim.+ * @return A string view with trailing whitespace removed.+ */+constexpr std::string_view rtrim(std::string_view s) {+ const auto not_ws_pos = s.find_last_not_of(" \t\n\r\f\v");+ return not_ws_pos == std::string_view::npos ? std::string_view() : s.substr(0, not_ws_pos + 1);+}++/**+ * @brief Return a string view with leading and trailing whitespace removed.+ * @param s A string view to trim.+ * @return A string view with leading and trailing whitespace removed.+ */+constexpr std::string_view trim(std::string_view s) {+ return ltrim(rtrim(s));+}+/*** @brief Helper struct to join container's elements to string using user string as separator.* The output string is generated in operator<< and can be used in any context where std::string is expected.@@ -84,84 +112,7 @@ auto join(const Container& c, std::string_view sep = ", ") {*/template <typename T, typename A>std::string vector_to_string(const std::vector<T, A>& v) {- return "[ " + ov::util::join(v) + " ]";-}--std::string to_lower(std::string_view s);--std::string to_upper(std::string_view s);--inline size_t hash_combine(size_t val, const size_t seed) {- return seed ^ (val + 0x9e3779b9 + (seed << 6) + (seed >> 2));-}--inline size_t hash_combine(const std::vector<size_t>& list) {- size_t seed = 0;- for (size_t v : list) {- seed ^= hash_combine(v, seed);- }- return seed;-}--inline size_t hash_combine(std::initializer_list<size_t>&& list) {- size_t seed = 0;- for (size_t v : list) {- seed ^= hash_combine(v, seed);- }- return seed;-}--constexpr uint64_t u64_hash_combine(uint64_t h, uint64_t k) {- // Hash combine formula from boost for uint64_t.- constexpr uint64_t m = 0xc6a4a7935bd1e995;- constexpr int r = 47;-- k *= m;- k ^= k >> r;- k *= m;-- h ^= k;- h *= m;-- return h + 0xe6546b64;-}--constexpr uint64_t u64_hash_combine(uint64_t seed, std::initializer_list<uint64_t>&& values) {- uint64_t h = seed;- for (uint64_t k : values) {- h = u64_hash_combine(h, k);- }- return h;-}--/**- * @brief Return a string view with leading whitespace removed.- *- * @param s A string view to trim.- * @return A string view with leading whitespace removed.- */-constexpr std::string_view ltrim(std::string_view s) {- const auto not_ws_pos = s.find_first_not_of(" \t\n\r\f\v");- return not_ws_pos == std::string_view::npos ? std::string_view() : s.substr(not_ws_pos);-}--/**- * @brief Return a string view with trailing whitespace removed.- * @param s A string view to trim.- * @return A string view with trailing whitespace removed.- */-constexpr std::string_view rtrim(std::string_view s) {- const auto not_ws_pos = s.find_last_not_of(" \t\n\r\f\v");- return not_ws_pos == std::string_view::npos ? std::string_view() : s.substr(0, not_ws_pos + 1);-}--/**- * @brief Return a string view with leading and trailing whitespace removed.- * @param s A string view to trim.- * @return A string view with leading and trailing whitespace removed.- */-constexpr std::string_view trim(std::string_view s) {- return ltrim(rtrim(s));+ return "[ " + join(v) + " ]";}/**@@ -181,50 +132,9 @@ constexpr bool ends_with(std::basic_string_view<T> src, std::basic_string_view<T}/** @} */-template <typename T>-constexpr T ceil_div(const T& x, const T& y) {- return (x == 0 ? 0 : (1 + (x - 1) / y));-}--/**- * @brief Checks if container contains the specific value.- *- * @param container The container of elements to examine.- * @param value Value to compare the elements to.- * @return True if value found in the container, false otherwise.- */-template <typename R, typename V>-constexpr bool contains(const R& container, const V& value) {- return std::find(std::begin(container), std::end(container), value) != std::end(container);-}--/**- * @brief multiply vector's values- * @param vec - vector with values- * @return result of multiplication- */-template <typename Container>-auto product(const Container& container) {- using T = typename Container::value_type;- return container.empty() ? T{0} : std::accumulate(container.begin(), container.end(), T{1}, std::multiplies<T>());-}+std::string to_lower(std::string_view s);-/**- * @brief Removes elements from the container that satisfy the given predicate.- *- * @param data The container from which to remove elements.- * @param predicate A callable that check element and return true if the element should be removed, or false otherwise.- */-template <typename Container, typename PredicateT>-inline void erase_if(Container& data, const PredicateT& predicate) {- for (auto it = std::begin(data); it != std::end(data);) {- if (predicate(*it)) {- it = data.erase(it);- } else {- ++it;- }- }-}+std::string to_upper(std::string_view s);/*** @brief Filters lines in a string view based on a given prefix.@@ -238,131 +148,6 @@ inline void erase_if(Container& data, const PredicateT& predicate) {*/std::string filter_lines_by_prefix(std::string_view sv, std::string_view prefix);-template <class T = void, class... Args>-constexpr std::array<std::conditional_t<std::is_void_v<T>, std::common_type_t<Args...>, T>, sizeof...(Args)> make_array(- Args&&... args) {- return {std::forward<Args>(args)...};-}--/**- * @brief A custom stream buffer that provides read-only access to a string view.- *- * This class inherits from `std::streambuf` and is designed to facilitate- * input operations directly on a `std::string_view` without copying the- * underlying string data. It allows for efficient reading and seeking- * operations within the string view.- *- * @note This stream buffer is intended for input operations only.- * @see pyopenvino/utils/utils.hpp for a similar implementation- */-class StringViewStreamBuf : public std::streambuf {-public:- explicit StringViewStreamBuf(std::string_view sv) {- char* begin = const_cast<char*>(sv.data());- setg(begin, begin, begin + sv.size());- }--protected:- pos_type seekoff(off_type off,- std::ios_base::seekdir dir,- std::ios_base::openmode which = std::ios_base::in) override {- if (which != std::ios_base::in) {- return off_type(-1);- }-- switch (dir) {- case std::ios_base::beg:- setg(eback(), eback() + off, egptr());- break;- case std::ios_base::end:- setg(eback(), egptr() + off, egptr());- break;- case std::ios_base::cur:- setg(eback(), gptr() + off, egptr());- break;- default:- return off_type(-1);- }- if (gptr() < eback() || gptr() > egptr())- return off_type(-1);-- return gptr() - eback();- }-- pos_type seekpos(pos_type pos, std::ios_base::openmode which) override {- return seekoff(pos, std::ios_base::beg, which);- }-};--/**- * @brief Adds two integral values- *- * The result value is not valid if overflow detected.- *- * @param T Type of values to add. Must be an integral type.- * @param x First value to add.- * @param y Second value to add.- * @param result Reference to store result value.- * @return True if overflow occurs, false otherwise- */-template <class T>-constexpr bool add_overflow(T x, T y, T& result) {- static_assert(std::is_integral_v<T>, "T must be an integral type");-#if defined(__GNUC__) || defined(__clang__)- return __builtin_add_overflow(x, y, &result);-#else- constexpr auto max = std::numeric_limits<T>::max();-- if constexpr (std::is_unsigned_v<T>) {- if (x > max - y) {- return true;- }- } else {- constexpr auto min = std::numeric_limits<T>::lowest();- if ((y > 0 && x > max - y) || (y < 0 && x < min - y)) {- return true;- }- }- result = x + y;- return false;-#endif-}--/**- * @brief Multiplies two integral values- *- * The result value is not valid if overflow detected.- *- * @param T Type of values to multiply. Must be an integral type.- * @param x First value to multiply.- * @param y Second value to multiply.- * @param result Reference to store result value.- * @return True if overflow occurs, false otherwise- */-template <class T>-constexpr bool mul_overflow(T x, T y, T& result) {- static_assert(std::is_integral_v<T>, "T must be an integral type");-#if defined(__GNUC__) || defined(__clang__)- return __builtin_mul_overflow(x, y, &result);-#else- constexpr auto max = std::numeric_limits<T>::max();-- if constexpr (std::is_unsigned_v<T>) {- if (y > 0 && x > max / y) {- return true;- }- } else {- constexpr auto min = std::numeric_limits<T>::lowest();- if ((x > 0 && y > 0 && x > max / y) || (x > 0 && y < 0 && y < min / x) || (x < 0 && y > 0 && x < min / y) ||- (x < 0 && y < 0 && x < max / y)) {- return true;- }- }- result = x * y;- return false;-#endif-}-/*** @brief This function attempts to parse the input string view `sv` into a number of type `T`.*@@ -394,7 +179,6 @@ std::optional<T> view_to_number(std::string_view sv) noexcept {}}}-/*** @brief Transforms a string view into a container.*diff --git a/src/common/util/include/openvino/util/container_util.hpp b/src/common/util/include/openvino/util/container_util.hppnew file mode 100644index 00000000000..737a585f20d--- /dev/null+++ b/src/common/util/include/openvino/util/container_util.hpp@@ -0,0 +1,70 @@+// Copyright (C) 2018-2026 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#pragma once++#include <algorithm>+#include <array>+#include <functional>+#include <iterator>+#include <numeric>+#include <type_traits>+#include <utility>++namespace ov::util {++/**+ * @brief Checks if container contains the specific value.+ *+ * @param container The container of elements to examine.+ * @param value Value to compare the elements to.+ * @return True if value found in the container, false otherwise.+ */+template <typename R, typename V>+constexpr bool contains(const R& container, const V& value) {+ return std::find(std::begin(container), std::end(container), value) != std::end(container);+}++/**+ * @brief multiply vector's values+ * @param vec - vector with values+ * @return result of multiplication+ */+template <typename Container>+auto product(const Container& container) {+ using T = typename Container::value_type;+ return container.empty() ? T{0} : std::accumulate(container.begin(), container.end(), T{1}, std::multiplies<T>());+}++/**+ * @brief Removes elements from the container that satisfy the given predicate.+ *+ * @param data The container from which to remove elements.+ * @param predicate A callable that check element and return true if the element should be removed, or false otherwise.+ */+template <typename Container, typename PredicateT>+inline void erase_if(Container& data, const PredicateT& predicate) {+ for (auto it = std::begin(data); it != std::end(data);) {+ if (predicate(*it)) {+ it = data.erase(it);+ } else {+ ++it;+ }+ }+}++/**+ * @brief Creates a std::array from a parameter pack.+ * @tparam T Optional explicit element type; deduced from args if void.+ * @param args Elements to store in the array.+ * @return std::array holding the provided arguments.+ */+template <class T = void, class... Args>+constexpr std::array<std::conditional_t<std::is_void_v<T>, std::common_type_t<Args...>, T>, sizeof...(Args)> make_array(+ Args&&... args) {+ using CommonT = std::conditional_t<std::is_void_v<T>, std::common_type_t<Args...>, T>;+ return {static_cast<CommonT>(std::forward<Args>(args))...};+}++} // namespace ov::utildiff --git a/src/common/util/include/openvino/util/file_util.hpp b/src/common/util/include/openvino/util/file_util.hppindex eda6ad8a0e1..31b8d47d3dc 100644--- a/src/common/util/include/openvino/util/file_util.hpp+++ b/src/common/util/include/openvino/util/file_util.hpp@@ -12,8 +12,8 @@#include <string>#include <vector>-#include "openvino/util/common_util.hpp"#include "openvino/util/file_path.hpp"+#include "openvino/util/hash_util.hpp"#include "openvino/util/util.hpp"#include "openvino/util/wstring_convert_util.hpp"diff --git a/src/common/util/include/openvino/util/hash_util.hpp b/src/common/util/include/openvino/util/hash_util.hppnew file mode 100644index 00000000000..ba9abd15348--- /dev/null+++ b/src/common/util/include/openvino/util/hash_util.hpp@@ -0,0 +1,84 @@+// Copyright (C) 2018-2026 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#pragma once++#include <cstdint>+#include <initializer_list>+#include <vector>++namespace ov::util {++/**+ * @brief Combines two hash values.+ * @param val New hash value to combine.+ * @param seed Existing hash seed.+ * @return Combined hash value.+ */+inline size_t hash_combine(size_t val, const size_t seed) {+ return seed ^ (val + 0x9e3779b9 + (seed << 6) + (seed >> 2));+}++/**+ * @brief Combines a vector of hash values into a single hash.+ * @param list Vector of hash values.+ * @return Combined hash value.+ */+inline size_t hash_combine(const std::vector<size_t>& list) {+ size_t seed = 0;+ for (size_t v : list) {+ seed ^= hash_combine(v, seed);+ }+ return seed;+}++/**+ * @brief Combines an initializer list of hash values into a single hash.+ * @param list Initializer list of hash values.+ * @return Combined hash value.+ */+inline size_t hash_combine(std::initializer_list<size_t>&& list) {+ size_t seed = 0;+ for (size_t v : list) {+ seed ^= hash_combine(v, seed);+ }+ return seed;+}++/**+ * @brief Combines two 64-bit hash values using Murmur-inspired mixing.+ * @param h Existing hash seed.+ * @param k New value to mix in.+ * @return Combined 64-bit hash.+ */+constexpr uint64_t u64_hash_combine(uint64_t h, uint64_t k) {+ // Hash combine formula from boost for uint64_t.+ constexpr uint64_t m = 0xc6a4a7935bd1e995;+ constexpr int r = 47;++ k *= m;+ k ^= k >> r;+ k *= m;++ h ^= k;+ h *= m;++ return h + 0xe6546b64;+}++/**+ * @brief Combines a seed with a list of 64-bit hash values.+ * @param seed Initial seed.+ * @param values Values to combine.+ * @return Combined 64-bit hash.+ */+constexpr uint64_t u64_hash_combine(uint64_t seed, std::initializer_list<uint64_t>&& values) {+ uint64_t h = seed;+ for (uint64_t k : values) {+ h = u64_hash_combine(h, k);+ }+ return h;+}++} // namespace ov::utildiff --git a/src/common/util/include/openvino/util/math_util.hpp b/src/common/util/include/openvino/util/math_util.hppnew file mode 100644index 00000000000..23eac48d5e6--- /dev/null+++ b/src/common/util/include/openvino/util/math_util.hpp@@ -0,0 +1,92 @@+// Copyright (C) 2018-2026 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#pragma once++#include <limits>+#include <type_traits>++namespace ov::util {++/**+ * @brief Ceiling integer division.+ * @param x Dividend.+ * @param y Divisor.+ * @return Ceil(x / y).+ */+template <typename T>+constexpr T ceil_div(const T& x, const T& y) {+ return (x == 0 ? 0 : (1 + (x - 1) / y));+}++/**+ * @brief Multiplies two integral values+ *+ * The result value is not valid if overflow detected.+ *+ * @param T Type of values to multiply. Must be an integral type.+ * @param x First value to multiply.+ * @param y Second value to multiply.+ * @param result Reference to store result value.+ * @return True if overflow occurs, false otherwise+ */+template <class T>+constexpr bool mul_overflow(T x, T y, T& result) {+ static_assert(std::is_integral_v<T>, "T must be an integral type");+#if defined(__GNUC__) || defined(__clang__)+ return __builtin_mul_overflow(x, y, &result);+#else+ constexpr auto max = std::numeric_limits<T>::max();++ if constexpr (std::is_unsigned_v<T>) {+ if (y > 0 && x > max / y) {+ return true;+ }+ } else {+ constexpr auto min = std::numeric_limits<T>::lowest();+ if ((x > 0 && y > 0 && x > max / y) || (x > 0 && y < 0 && y < min / x) || (x < 0 && y > 0 && x < min / y) ||+ (x < 0 && y < 0 && x < max / y)) {+ return true;+ }+ }+ result = x * y;+ return false;+#endif+}++/**+ * @brief Adds two integral values+ *+ * The result value is not valid if overflow detected.+ *+ * @param T Type of values to add. Must be an integral type.+ * @param x First value to add.+ * @param y Second value to add.+ * @param result Reference to store result value.+ * @return True if overflow occurs, false otherwise+ */+template <class T>+constexpr bool add_overflow(T x, T y, T& result) {+ static_assert(std::is_integral_v<T>, "T must be an integral type");+#if defined(__GNUC__) || defined(__clang__)+ return __builtin_add_overflow(x, y, &result);+#else+ constexpr auto max = std::numeric_limits<T>::max();++ if constexpr (std::is_unsigned_v<T>) {+ if (x > max - y) {+ return true;+ }+ } else {+ constexpr auto min = std::numeric_limits<T>::lowest();+ if ((y > 0 && x > max - y) || (y < 0 && x < min - y)) {+ return true;+ }+ }+ result = x + y;+ return false;+#endif+}++} // namespace ov::utildiff --git a/src/common/util/include/openvino/util/string_view_streambuf.hpp b/src/common/util/include/openvino/util/string_view_streambuf.hppnew file mode 100644index 00000000000..23984076dd7--- /dev/null+++ b/src/common/util/include/openvino/util/string_view_streambuf.hpp@@ -0,0 +1,65 @@+// Copyright (C) 2018-2026 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#pragma once+++#include <istream>+#include <limits>+#include <locale>+#include <optional>+#include <streambuf>+#include <string_view>+#include <type_traits>++namespace ov::util {++/**+ * @brief A custom stream buffer that provides read-only access to a string view.+ *+ * This class inherits from `std::streambuf` and is designed to facilitate input operations directly+ * on a `std::string_view` without copying the underlying string data. It allows for efficient reading and seeking+ * operations within the string view.+ *+ * @note This stream buffer is intended for input operations only.+ */+class StringViewStreamBuf : public std::streambuf {+public:+ explicit StringViewStreamBuf(std::string_view sv) {+ char* begin = const_cast<char*>(sv.data());+ setg(begin, begin, begin + sv.size());+ }++protected:+ pos_type seekoff(off_type off,+ std::ios_base::seekdir dir,+ std::ios_base::openmode which = std::ios_base::in) override {+ if (which != std::ios_base::in) {+ return off_type(-1);+ }++ switch (dir) {+ case std::ios_base::beg:+ setg(eback(), eback() + off, egptr());+ break;+ case std::ios_base::end:+ setg(eback(), egptr() + off, egptr());+ break;+ case std::ios_base::cur:+ setg(eback(), gptr() + off, egptr());+ break;+ default:+ return off_type(-1);+ }+ if (gptr() < eback() || gptr() > egptr())+ return off_type(-1);++ return gptr() - eback();+ }++ pos_type seekpos(pos_type pos, std::ios_base::openmode which) override {+ return seekoff(pos, std::ios_base::beg, which);+ }+};+} // namespace ov::utildiff --git a/src/common/util/src/memory.cpp b/src/common/util/src/memory.cppindex 8ad385947e0..612945e5a86 100644--- a/src/common/util/src/memory.cpp+++ b/src/common/util/src/memory.cpp@@ -10,7 +10,7 @@#include <thread>#include <vector>-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"#include "openvino/util/mmap_object.hpp"namespace ov::util {diff --git a/src/common/util/src/os/lin/lin_mmap_object.cpp b/src/common/util/src/os/lin/lin_mmap_object.cppindex 6ce1185a13c..763c01175fb 100644--- a/src/common/util/src/os/lin/lin_mmap_object.cpp+++ b/src/common/util/src/os/lin/lin_mmap_object.cpp@@ -13,8 +13,8 @@#include <thread>#include <tuple>-#include "openvino/util/common_util.hpp"#include "openvino/util/file_util.hpp"+#include "openvino/util/hash_util.hpp"#include "openvino/util/memory.hpp"#include "openvino/util/mmap_object.hpp"diff --git a/src/common/util/src/os/win/win_mmap_object.cpp b/src/common/util/src/os/win/win_mmap_object.cppindex 12f854d89a0..c1f637968aa 100644--- a/src/common/util/src/os/win/win_mmap_object.cpp+++ b/src/common/util/src/os/win/win_mmap_object.cpp@@ -11,8 +11,8 @@#include <thread>#include <vector>-#include "openvino/util/common_util.hpp"#include "openvino/util/file_util.hpp"+#include "openvino/util/hash_util.hpp"#include "openvino/util/memory.hpp"#include "openvino/util/mmap_object.hpp"diff --git a/src/core/dev_api/openvino/runtime/shared_buffer.hpp b/src/core/dev_api/openvino/runtime/shared_buffer.hppindex 895689ee17f..94c2ce69130 100644--- a/src/core/dev_api/openvino/runtime/shared_buffer.hpp+++ b/src/core/dev_api/openvino/runtime/shared_buffer.hpp@@ -7,7 +7,7 @@#include <type_traits>#include "openvino/runtime/aligned_buffer.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"#include "openvino/util/mmap_object.hpp"namespace ov {diff --git a/src/core/reference/include/openvino/reference/scatter_update.hpp b/src/core/reference/include/openvino/reference/scatter_update.hppindex 87fa11beac9..b6850c5448d 100644--- a/src/core/reference/include/openvino/reference/scatter_update.hpp+++ b/src/core/reference/include/openvino/reference/scatter_update.hpp@@ -8,7 +8,7 @@#include "openvino/core/shape.hpp"#include "openvino/reference/utils/coordinate_transform.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"namespace ov {namespace reference {diff --git a/src/core/reference/src/op/slice.cpp b/src/core/reference/src/op/slice.cppindex 22f3a729137..16b6a74b6a5 100644--- a/src/core/reference/src/op/slice.cpp+++ b/src/core/reference/src/op/slice.cpp@@ -8,7 +8,7 @@#include "openvino/core/except.hpp"#include "openvino/reference/utils/coordinate_range.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"namespace ov {namespace reference {diff --git a/src/core/shape_inference/include/dimension_util.hpp b/src/core/shape_inference/include/dimension_util.hppindex 003f72b0563..0a56f6f4ed2 100644--- a/src/core/shape_inference/include/dimension_util.hpp+++ b/src/core/shape_inference/include/dimension_util.hpp@@ -6,7 +6,7 @@#include <cstdint>#include "openvino/core/dimension.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"namespace ov {namespace util {diff --git a/src/core/src/any.cpp b/src/core/src/any.cppindex d82a8688237..3df9f65b937 100644--- a/src/core/src/any.cpp+++ b/src/core/src/any.cpp@@ -4,6 +4,7 @@#include "openvino/core/any.hpp"+#include <algorithm>#include <array>#include <limits>#include <string>diff --git a/src/core/src/memory_util.cpp b/src/core/src/memory_util.cppindex 6ded091cfc5..9d11c9d9210 100644--- a/src/core/src/memory_util.cpp+++ b/src/core/src/memory_util.cpp@@ -6,7 +6,7 @@#include "openvino/core/shape_util.hpp"#include "openvino/core/type/element_iterator.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"namespace ov::util {namespace {diff --git a/src/core/src/op/fake_convert.cpp b/src/core/src/op/fake_convert.cppindex c13c1df7b63..ccb339cf0a0 100644--- a/src/core/src/op/fake_convert.cpp+++ b/src/core/src/op/fake_convert.cpp@@ -9,7 +9,7 @@#include "itt.hpp"#include "openvino/reference/convert.hpp"#include "openvino/reference/fake_convert.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"namespace ov::op::v13 {namespace {diff --git a/src/core/src/op/gated_delta_net.cpp b/src/core/src/op/gated_delta_net.cppindex 32d19b176df..d636d83e7f7 100644--- a/src/core/src/op/gated_delta_net.cpp+++ b/src/core/src/op/gated_delta_net.cpp@@ -9,6 +9,7 @@#include "itt.hpp"#include "openvino/core/validation_util.hpp"#include "openvino/op/op.hpp"+#include "openvino/util/common_util.hpp"namespace {diff --git a/src/core/src/op/paged_attention.cpp b/src/core/src/op/paged_attention.cppindex c524154ea69..c73456ff353 100644--- a/src/core/src/op/paged_attention.cpp+++ b/src/core/src/op/paged_attention.cpp@@ -8,6 +8,7 @@#include "itt.hpp"#include "openvino/core/validation_util.hpp"#include "openvino/op/op.hpp"+#include "openvino/util/common_util.hpp"#include "paged_attention_shape_inference.hpp"namespace {diff --git a/src/core/src/pass/serialize.cpp b/src/core/src/pass/serialize.cppindex 4fae5226d28..945def8effb 100644--- a/src/core/src/pass/serialize.cpp+++ b/src/core/src/pass/serialize.cpp@@ -21,8 +21,8 @@#include "openvino/runtime/aligned_buffer.hpp"#include "openvino/runtime/compute_hash.hpp"#include "openvino/runtime/string_aligned_buffer.hpp"-#include "openvino/util/common_util.hpp"#include "openvino/util/file_util.hpp"+#include "openvino/util/hash_util.hpp"#include "openvino/xml_util/constant_writer.hpp"#include "openvino/xml_util/xml_serialize_util.hpp"#include "pugixml.hpp"diff --git a/src/core/src/runtime/string_aligned_buffer.cpp b/src/core/src/runtime/string_aligned_buffer.cppindex 78f35a7e96d..e675f6c83c6 100644--- a/src/core/src/runtime/string_aligned_buffer.cpp+++ b/src/core/src/runtime/string_aligned_buffer.cpp@@ -9,7 +9,7 @@#include "openvino/core/type/element_type.hpp"#include "openvino/runtime/aligned_buffer.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"namespace {void aux_unpack_string_tensor(const char* const data,diff --git a/src/core/src/shape.cpp b/src/core/src/shape.cppindex 7eb0b56ceb3..edc6aba19bd 100644--- a/src/core/src/shape.cpp+++ b/src/core/src/shape.cpp@@ -7,6 +7,7 @@#include "openvino/core/shape_util.hpp"#include "openvino/core/validation_util.hpp"#include "openvino/util/common_util.hpp"+#include "openvino/util/string_view_streambuf.hpp"std::ostream& ov::operator<<(std::ostream& s, const Shape& shape) {return s << "[" << ov::util::join<std::ostream>(shape, ",") << "]";diff --git a/src/core/src/shape_util.cpp b/src/core/src/shape_util.cppindex ebfaf602a61..69d0bc42ebb 100644--- a/src/core/src/shape_util.cpp+++ b/src/core/src/shape_util.cpp@@ -8,7 +8,7 @@#include "openvino/core/partial_shape.hpp"#include "openvino/core/validation_util.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"namespace ov {template <class TContainer, class TAxes>diff --git a/src/core/src/type.cpp b/src/core/src/type.cppindex c478bf2d7a5..06ddadce33d 100644--- a/src/core/src/type.cpp+++ b/src/core/src/type.cpp@@ -4,7 +4,7 @@#include "openvino/core/type.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/hash_util.hpp"namespace std {size_t std::hash<ov::DiscreteTypeInfo>::operator()(const ov::DiscreteTypeInfo& k) const {diff --git a/src/core/src/type/element_type.cpp b/src/core/src/type/element_type.cppindex aacd3f33441..8911b6f35bd 100644--- a/src/core/src/type/element_type.cpp+++ b/src/core/src/type/element_type.cpp@@ -12,7 +12,7 @@#include "openvino/core/type/element_type_info.hpp"#include "openvino/core/type/element_type_traits.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"namespace ov::element {namespace {diff --git a/src/core/src/xml_util/constant_writer.cpp b/src/core/src/xml_util/constant_writer.cppindex 86b10b9c6b1..818c41ace3d 100644--- a/src/core/src/xml_util/constant_writer.cpp+++ b/src/core/src/xml_util/constant_writer.cpp@@ -7,7 +7,7 @@#include "openvino/core/except.hpp"#include "openvino/reference/convert.hpp"#include "openvino/runtime/compute_hash.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/hash_util.hpp"namespace ov::util {diff --git a/src/core/tests/element_type.cpp b/src/core/tests/element_type.cppindex ea573942c42..800e68f3afd 100644--- a/src/core/tests/element_type.cpp+++ b/src/core/tests/element_type.cpp@@ -9,7 +9,7 @@#include "common_test_utils/test_assertions.hpp"#include "gtest/gtest.h"#include "openvino/core/except.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"using namespace ov;diff --git a/src/core/tests/pass/serialization/deterministicity.cpp b/src/core/tests/pass/serialization/deterministicity.cppindex fd03657c85e..544266143e5 100644--- a/src/core/tests/pass/serialization/deterministicity.cpp+++ b/src/core/tests/pass/serialization/deterministicity.cpp@@ -12,7 +12,7 @@#include "common_test_utils/test_common.hpp"#include "openvino/op/add.hpp"#include "openvino/pass/serialize.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "openvino/util/file_util.hpp"#include "read_ir.hpp"diff --git a/src/core/tests/type_info.cpp b/src/core/tests/type_info.cppindex 58394b19640..4ec3c68c6e0 100644--- a/src/core/tests/type_info.cpp+++ b/src/core/tests/type_info.cpp@@ -6,7 +6,7 @@#include "openvino/core/type.hpp"#include "openvino/opsets/opset.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/hash_util.hpp"TEST(type_info, compare_old_type) {ov::DiscreteTypeInfo type1("type1");diff --git a/src/core/tests/type_prop/batch_to_space.cpp b/src/core/tests/type_prop/batch_to_space.cppindex 390e3b20809..d142b27166b 100644--- a/src/core/tests/type_prop/batch_to_space.cpp+++ b/src/core/tests/type_prop/batch_to_space.cpp@@ -11,7 +11,7 @@#include "common_test_utils/type_prop.hpp"#include "openvino/op/constant.hpp"#include "openvino/op/space_to_batch.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"using namespace std;using namespace testing;diff --git a/src/core/tests/type_prop/depth_to_space.cpp b/src/core/tests/type_prop/depth_to_space.cppindex de3f1f23156..c670ab2431a 100644--- a/src/core/tests/type_prop/depth_to_space.cpp+++ b/src/core/tests/type_prop/depth_to_space.cpp@@ -7,7 +7,7 @@#include <gtest/gtest.h>#include "common_test_utils/type_prop.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"using namespace std;using namespace ov;diff --git a/src/core/xml_util/include/openvino/xml_util/xml_deserialize_util.hpp b/src/core/xml_util/include/openvino/xml_util/xml_deserialize_util.hppindex 72bbf9a3f9f..d81c9c844df 100644--- a/src/core/xml_util/include/openvino/xml_util/xml_deserialize_util.hpp+++ b/src/core/xml_util/include/openvino/xml_util/xml_deserialize_util.hpp@@ -18,6 +18,7 @@#include "openvino/opsets/opset.hpp"#include "openvino/runtime/aligned_buffer.hpp"#include "openvino/util/common_util.hpp"+#include "openvino/util/string_view_streambuf.hpp"namespace ov::util {struct GenericLayerParams;diff --git a/src/frontends/common/src/plugin_loader.cpp b/src/frontends/common/src/plugin_loader.cppindex a820d14af50..4ed9a3a9528 100644--- a/src/frontends/common/src/plugin_loader.cpp+++ b/src/frontends/common/src/plugin_loader.cpp@@ -20,6 +20,7 @@#include <string_view>#include <vector>+#include "openvino/util/common_util.hpp"#include "openvino/util/file_util.hpp"#include "openvino/util/log.hpp"#include "openvino/util/shared_object.hpp"diff --git a/src/inference/src/dev/core_impl.cpp b/src/inference/src/dev/core_impl.cppindex a280a0c60e2..c961028b82f 100644--- a/src/inference/src/dev/core_impl.cpp+++ b/src/inference/src/dev/core_impl.cpp@@ -30,7 +30,7 @@#include "openvino/runtime/shared_buffer.hpp"#include "openvino/runtime/single_file_storage.hpp"#include "openvino/runtime/threading/executor_manager.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "openvino/util/file_util.hpp"#include "openvino/util/log.hpp"#include "openvino/util/ov_version.hpp"diff --git a/src/inference/src/dev/iplugin.cpp b/src/inference/src/dev/iplugin.cppindex ae34d432203..ee36f18d076 100644--- a/src/inference/src/dev/iplugin.cpp+++ b/src/inference/src/dev/iplugin.cpp@@ -10,7 +10,7 @@#include "openvino/op/util/shape_of_base.hpp"#include "openvino/pass/manager.hpp"#include "openvino/runtime/properties.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "transformations/common_optimizations/fused_names_cleanup.hpp"#include "transformations/rt_info/fused_names_attribute.hpp"diff --git a/src/inference/src/dev/isync_infer_request.cpp b/src/inference/src/dev/isync_infer_request.cppindex 31c4f995414..0d00f3d9436 100644--- a/src/inference/src/dev/isync_infer_request.cpp+++ b/src/inference/src/dev/isync_infer_request.cpp@@ -18,7 +18,7 @@#include "openvino/runtime/make_tensor.hpp"#include "openvino/runtime/plugin_itt.hpp"#include "openvino/runtime/tensor.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/hash_util.hpp"namespace {void check_batched_tensors(const ov::Output<const ov::Node>& input,diff --git a/src/inference/src/dev/plugin.cpp b/src/inference/src/dev/plugin.cppindex e1ec6f83607..5702f371211 100644--- a/src/inference/src/dev/plugin.cpp+++ b/src/inference/src/dev/plugin.cpp@@ -8,7 +8,7 @@#include "openvino/runtime/internal_properties.hpp"#include "openvino/runtime/properties.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "openvino/util/file_util.hpp"#define OV_PLUGIN_CALL_STATEMENT(...) \diff --git a/src/inference/src/model_reader.cpp b/src/inference/src/model_reader.cppindex 73e2d4f961a..7d7e6b34a7c 100644--- a/src/inference/src/model_reader.cpp+++ b/src/inference/src/model_reader.cpp@@ -12,6 +12,7 @@#include "openvino/runtime/shared_buffer.hpp"#include "openvino/util/common_util.hpp"#include "openvino/util/file_util.hpp"+#include "openvino/util/string_view_streambuf.hpp"namespace {// Legacy tensor name format for IR v10 compatibility (uses '.' separator instead of ':')diff --git a/src/inference/src/shared_context_manager.cpp b/src/inference/src/shared_context_manager.cppindex bcf6e961b1b..2a8d38b7c3e 100644--- a/src/inference/src/shared_context_manager.cpp+++ b/src/inference/src/shared_context_manager.cpp@@ -5,7 +5,7 @@#include "shared_context_manager.hpp"#include "openvino/runtime/icache_manager.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"namespace ov {diff --git a/src/plugins/auto_batch/src/plugin.cpp b/src/plugins/auto_batch/src/plugin.cppindex 712af7556ac..c4e1cbac77e 100644--- a/src/plugins/auto_batch/src/plugin.cpp+++ b/src/plugins/auto_batch/src/plugin.cpp@@ -11,7 +11,7 @@#include "openvino/pass/manager.hpp"#include "openvino/runtime/intel_gpu/properties.hpp"#include "openvino/runtime/internal_properties.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "transformations/common_optimizations/dimension_tracking.hpp"#include "transformations/init_node_info.hpp"#include "transformations/utils/utils.hpp"diff --git a/src/plugins/hetero/src/plugin.cpp b/src/plugins/hetero/src/plugin.cppindex 973ffe2982a..6703610d7cb 100644--- a/src/plugins/hetero/src/plugin.cpp+++ b/src/plugins/hetero/src/plugin.cpp@@ -23,7 +23,7 @@#include "openvino/runtime/internal_properties.hpp"#include "openvino/runtime/properties.hpp"#include "openvino/runtime/shared_buffer.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "properties.hpp"#include "remote_context.hpp"diff --git a/src/plugins/hetero/src/subgraph_collector.cpp b/src/plugins/hetero/src/subgraph_collector.cppindex 23218c2d305..6f944176fe7 100644--- a/src/plugins/hetero/src/subgraph_collector.cpp+++ b/src/plugins/hetero/src/subgraph_collector.cpp@@ -26,7 +26,7 @@#include "openvino/op/paged_attention.hpp"#include "openvino/op/reshape.hpp"#include "openvino/op/util/op_types.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "transformations/utils/utils.hpp"namespace {diff --git a/src/plugins/intel_cpu/src/memory_desc/cpu_blocked_memory_desc.cpp b/src/plugins/intel_cpu/src/memory_desc/cpu_blocked_memory_desc.cppindex f78e812b840..f5317806f3f 100644--- a/src/plugins/intel_cpu/src/memory_desc/cpu_blocked_memory_desc.cpp+++ b/src/plugins/intel_cpu/src/memory_desc/cpu_blocked_memory_desc.cpp@@ -20,7 +20,7 @@#include "openvino/core/memory_util.hpp"#include "openvino/core/shape_util.hpp"#include "openvino/core/type/element_type.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/math_util.hpp"#include "utils/general_utils.h"namespace ov::intel_cpu {diff --git a/src/plugins/intel_cpu/src/nodes/memory.cpp b/src/plugins/intel_cpu/src/nodes/memory.cppindex 07cb9059dec..2d8d4f9f320 100644--- a/src/plugins/intel_cpu/src/nodes/memory.cpp+++ b/src/plugins/intel_cpu/src/nodes/memory.cpp@@ -42,7 +42,7 @@#include "openvino/op/assign.hpp"#include "openvino/op/read_value.hpp"#include "openvino/runtime/internal_properties.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "proxy_mem_blk.h"#include "scaled_attn.h"#include "shape_inference/shape_inference_cpu.hpp"diff --git a/src/plugins/intel_npu/src/backend/src/zero_infer_request.cpp b/src/plugins/intel_npu/src/backend/src/zero_infer_request.cppindex f1490d060bf..c97794f7451 100644--- a/src/plugins/intel_npu/src/backend/src/zero_infer_request.cpp+++ b/src/plugins/intel_npu/src/backend/src/zero_infer_request.cpp@@ -15,7 +15,7 @@#include "openvino/runtime/intel_npu/remote_properties.hpp"#include "openvino/runtime/make_tensor.hpp"#include "openvino/runtime/plugin_itt.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/hash_util.hpp"#include "transformations/utils/utils.hpp"#include "zero_variable_state.hpp"diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cppindex 639c9c2d03f..e15ca823ab6 100644--- a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp@@ -9,6 +9,7 @@#include "common/utils.hpp"#include "intel_npu/config/options.hpp"#include "intel_npu/npu_private_properties.hpp"+#include "openvino/util/common_util.hpp"namespace {diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.hppindex 52918a8dc8c..da621424fba 100644--- a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.hpp+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.hpp@@ -9,8 +9,8 @@#include "common_test_utils/test_assertions.hpp"#include "common_test_utils/unicode_utils.hpp"#include "openvino/runtime/properties.hpp"-#include "openvino/util/common_util.hpp"#include "shared_test_classes/base/ov_behavior_test_utils.hpp"+#include "openvino/util/container_util.hpp"namespace ov::test::behavior {diff --git a/src/plugins/proxy/src/plugin.cpp b/src/plugins/proxy/src/plugin.cppindex 711703b7a3a..f673e13f3a5 100644--- a/src/plugins/proxy/src/plugin.cpp+++ b/src/plugins/proxy/src/plugin.cpp@@ -19,6 +19,7 @@#include "openvino/runtime/shared_buffer.hpp"#include "openvino/runtime/so_ptr.hpp"#include "openvino/util/common_util.hpp"+#include "openvino/util/string_view_streambuf.hpp"#include "plugin.hpp"#include "remote_context.hpp"diff --git a/src/plugins/template/tests/functional/specific_properties_test.cpp b/src/plugins/template/tests/functional/specific_properties_test.cppindex 88732cb7415..c4f580a7b4b 100644--- a/src/plugins/template/tests/functional/specific_properties_test.cpp+++ b/src/plugins/template/tests/functional/specific_properties_test.cpp@@ -9,7 +9,7 @@#include "openvino/op/relu.hpp"#include "openvino/op/result.hpp"#include "openvino/runtime/properties.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"namespace ov::test {diff --git a/src/tests/functional/base_func_tests/include/behavior/compiled_model/properties.hpp b/src/tests/functional/base_func_tests/include/behavior/compiled_model/properties.hppindex 6eee7cb07cd..061f29f5b92 100644--- a/src/tests/functional/base_func_tests/include/behavior/compiled_model/properties.hpp+++ b/src/tests/functional/base_func_tests/include/behavior/compiled_model/properties.hpp@@ -6,7 +6,7 @@#include "shared_test_classes/base/ov_behavior_test_utils.hpp"#include "openvino/runtime/properties.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "common_test_utils/test_assertions.hpp"#include "common_test_utils/file_utils.hpp"diff --git a/src/tests/functional/base_func_tests/include/behavior/ov_plugin/caching_tests.hpp b/src/tests/functional/base_func_tests/include/behavior/ov_plugin/caching_tests.hppindex e3e1d22735f..d630c122a2f 100644--- a/src/tests/functional/base_func_tests/include/behavior/ov_plugin/caching_tests.hpp+++ b/src/tests/functional/base_func_tests/include/behavior/ov_plugin/caching_tests.hpp@@ -9,7 +9,7 @@#include "shared_test_classes/base/ov_subgraph.hpp"#include "common_test_utils/unicode_utils.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#include "openvino/util/codec_xor.hpp"#include "shared_test_classes/base/ov_behavior_test_utils.hpp"diff --git a/src/tests/functional/base_func_tests/include/behavior/ov_plugin/properties_tests.hpp b/src/tests/functional/base_func_tests/include/behavior/ov_plugin/properties_tests.hppindex 2727139740a..e7475559d71 100644--- a/src/tests/functional/base_func_tests/include/behavior/ov_plugin/properties_tests.hpp+++ b/src/tests/functional/base_func_tests/include/behavior/ov_plugin/properties_tests.hpp@@ -9,7 +9,7 @@#include "common_test_utils/test_assertions.hpp"#include "common_test_utils/unicode_utils.hpp"#include "openvino/runtime/properties.hpp"-#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"namespace ov {namespace test {diff --git a/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp b/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cppindex 2e2d7918348..9ca55296c36 100644--- a/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp+++ b/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp@@ -11,6 +11,7 @@#include "common_test_utils/subgraph_builders/conv_pool_relu.hpp"#include "openvino/op/relu.hpp"#include "openvino/runtime/properties.hpp"+#include "openvino/util/common_util.hpp"namespace ov {namespace test {diff --git a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/caching_tests.cpp b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/caching_tests.cppindex 0a1a0075b8f..cb07a659576 100644--- a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/caching_tests.cpp+++ b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/caching_tests.cpp@@ -28,6 +28,8 @@#include "common_test_utils/subgraph_builders/matmul_bias.hpp"#include "openvino/op/multiply.hpp"#include "openvino/op/relu.hpp"+#include "openvino/util/common_util.hpp"+#include "openvino/util/container_util.hpp"#define GTEST_COUT std::cout << "[ ] [ INFO ] "diff --git a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/properties_tests.cpp b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/properties_tests.cppindex beef27855e7..cf371be3f26 100644--- a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/properties_tests.cpp+++ b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/properties_tests.cpp@@ -7,6 +7,7 @@#include "behavior/ov_plugin/properties_tests.hpp"#include "openvino/runtime/properties.hpp"#include "common_test_utils/subgraph_builders/split_concat.hpp"+#include "openvino/util/common_util.hpp"namespace ov {namespace test {diff --git a/src/tests/test_utils/common_test_utils/tests/common_util_test.cpp b/src/tests/test_utils/common_test_utils/tests/common_util_test.cppindex 04399c5ace3..674eef08127 100644--- a/src/tests/test_utils/common_test_utils/tests/common_util_test.cpp+++ b/src/tests/test_utils/common_test_utils/tests/common_util_test.cpp@@ -6,6 +6,7 @@#include "common_test_utils/common_utils.hpp"#include "openvino/util/common_util.hpp"+#include "openvino/util/string_view_streambuf.hpp"namespace ov::test {using CommonUtilsTest = testing::Test;diff --git a/src/tests/test_utils/common_test_utils/tests/utils_tests.cpp b/src/tests/test_utils/common_test_utils/tests/utils_tests.cppindex 3a91fa7310d..0af2c4163db 100644--- a/src/tests/test_utils/common_test_utils/tests/utils_tests.cpp+++ b/src/tests/test_utils/common_test_utils/tests/utils_tests.cpp@@ -7,6 +7,7 @@#include "openvino/util/common_util.hpp"#include "openvino/util/file_util.hpp"#include "openvino/util/env_util.hpp"+#include "openvino/util/math_util.hpp"using namespace testing;using namespace ov::util;