[MLIR] Apply clang-tidy fixes for modernize-loop-convert in BarvinokTest.cpp (NFC)

This commit is contained in:
Mehdi Amini 2025-08-21 13:15:54 -07:00
parent e2585583ae
commit b5c01029ed

View File

@ -231,10 +231,10 @@ TEST(BarvinokTest, computeNumTermsCone) {
// We expect the answer to be
// (⌊M⌋ + 1)(⌊N⌋ + 1)(⌊P⌋ + 1) =
// ⌊M⌋⌊N⌋⌊P⌋ + ⌊M⌋⌊N⌋ + ⌊N⌋⌊P⌋ + ⌊M⌋⌊P⌋ + ⌊M⌋ + ⌊N⌋ + ⌊P⌋ + 1.
for (unsigned i = 0; i < 2; i++)
for (auto &i : count)
for (unsigned j = 0; j < 2; j++)
for (unsigned k = 0; k < 2; k++)
EXPECT_EQ(count[i][j][k], 1);
EXPECT_EQ(i[j][k], 1);
}
/// We define some simple polyhedra with unimodular tangent cones and verify