Skip to content

Commit

Permalink
Tentative test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Aug 3, 2024
1 parent f859621 commit 6e1e0f6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/llvm_multi_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ TEST_CASE("cfunc")

// Check the first few characters of the optimised ir/bc match.
// Cannot check the entire ir/bc because of the difference in trigger name.
REQUIRE((s1.get_ir().substr(0, 200) == ms.get_ir()[0].substr(0, 200)
|| s1.get_ir().substr(0, 200) == ms.get_ir()[1].substr(0, 200)
|| s1.get_ir().substr(0, 200) == ms.get_ir()[2].substr(0, 200)));
REQUIRE((s2.get_ir().substr(0, 200) == ms.get_ir()[0].substr(0, 200)
|| s2.get_ir().substr(0, 200) == ms.get_ir()[1].substr(0, 200)
|| s2.get_ir().substr(0, 200) == ms.get_ir()[2].substr(0, 200)));

REQUIRE((s1.get_bc().substr(0, 200) == ms.get_bc()[0].substr(0, 200)
|| s1.get_bc().substr(0, 200) == ms.get_bc()[1].substr(0, 200)
|| s1.get_bc().substr(0, 200) == ms.get_bc()[2].substr(0, 200)));
REQUIRE((s2.get_bc().substr(0, 200) == ms.get_bc()[0].substr(0, 200)
|| s2.get_bc().substr(0, 200) == ms.get_bc()[1].substr(0, 200)
|| s2.get_bc().substr(0, 200) == ms.get_bc()[2].substr(0, 200)));
REQUIRE((s1.get_ir().substr(0, 100) == ms.get_ir()[0].substr(0, 100)
|| s1.get_ir().substr(0, 100) == ms.get_ir()[1].substr(0, 100)
|| s1.get_ir().substr(0, 100) == ms.get_ir()[2].substr(0, 100)));
REQUIRE((s2.get_ir().substr(0, 100) == ms.get_ir()[0].substr(0, 100)
|| 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)));

REQUIRE((s1.get_bc().substr(0, 100) == ms.get_bc()[0].substr(0, 100)
|| s1.get_bc().substr(0, 100) == ms.get_bc()[1].substr(0, 100)
|| s1.get_bc().substr(0, 100) == ms.get_bc()[2].substr(0, 100)));
REQUIRE((s2.get_bc().substr(0, 100) == ms.get_bc()[0].substr(0, 100)
|| s2.get_bc().substr(0, 100) == ms.get_bc()[1].substr(0, 100)
|| s2.get_bc().substr(0, 100) == ms.get_bc()[2].substr(0, 100)));

auto *cf1_ptr
= reinterpret_cast<void (*)(double *, const double *, const double *, const double *)>(ms.jit_lookup("f1"));
Expand Down

0 comments on commit 6e1e0f6

Please sign in to comment.