diff --git a/test/llvm_multi_state.cpp b/test/llvm_multi_state.cpp index f35035672..074805c7a 100644 --- a/test/llvm_multi_state.cpp +++ b/test/llvm_multi_state.cpp @@ -14,6 +14,9 @@ #include #include +#include +#include + #include "catch.hpp" using namespace heyoka; @@ -324,6 +327,22 @@ TEST_CASE("cfunc") || s2.get_ir().substr(0, 100) == ms.get_ir()[1].substr(0, 100) || s2.get_ir().substr(0, 100) == ms.get_ir()[2].substr(0, 100))); + std::cout << "orig:" << std::endl << std::endl; + fmt::print("{}\n\n\n", + s1.get_bc().substr(0, 25) | std::views::transform([](auto c) { return static_cast(c); })); + + std::cout << "pos0:" << std::endl << std::endl; + fmt::print("{}\n\n\n", + ms.get_bc()[0].substr(0, 25) | std::views::transform([](auto c) { return static_cast(c); })); + + std::cout << "pos1:" << std::endl << std::endl; + fmt::print("{}\n\n\n", + ms.get_bc()[1].substr(0, 25) | std::views::transform([](auto c) { return static_cast(c); })); + + std::cout << "pos2:" << std::endl << std::endl; + fmt::print("{}\n\n\n", + ms.get_bc()[2].substr(0, 25) | std::views::transform([](auto c) { return static_cast(c); })); + REQUIRE((s1.get_bc().substr(0, 25) == ms.get_bc()[0].substr(0, 25) || s1.get_bc().substr(0, 25) == ms.get_bc()[1].substr(0, 25) || s1.get_bc().substr(0, 25) == ms.get_bc()[2].substr(0, 25)));