[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / llvm / test / tools / llvm-cov / Inputs / multithreaded_report / bytes.cc
blob7df13d8d95d26ec2ab14cbd87f1dd20aa6dafff1
1 #include "abs.h"
2 #include "bytes.h"
3 #include "pow.h"
5 bool loopBytes() {
6 uint64_t totalInt = 0;
7 double totalFloat = 0;
8 for (uint8_t i = 1; i != 0; ++i) {
9 double a = logarithm(i);
10 a = abs(a);
11 totalInt += abs(pow(i, static_cast<uint8_t>(a)));
12 totalFloat += pow(static_cast<decltype(a)>(i), a);
14 return totalInt > totalFloat;