Skip to content

Commit

Permalink
More CI debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Aug 3, 2024
1 parent f39fcb0 commit 6d21964
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/llvm_multi_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#include <heyoka/llvm_state.hpp>
#include <heyoka/s11n.hpp>

#include <fmt/ranges.h>
#include <ranges>

#include "catch.hpp"

using namespace heyoka;
Expand Down Expand Up @@ -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<int>(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<int>(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<int>(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<int>(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)));
Expand Down

0 comments on commit 6d21964

Please sign in to comment.