Skip to content

Commit

Permalink
More tests (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Evstyukhin authored Aug 15, 2021
1 parent 743de12 commit 285f007
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions labs/memory_bound/loop_interchange_1/validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ int main() {
return 1;
}
}
{
multiply(*b, *a, *a);
*c = power(*a, 2);
if (!equals(*b, *c)) {
std::cerr << "Validation Failed. a^2" << std::endl;
return 1;
}
}
*b = power(*a, k);
*c = power(*a, k1);
*d = power(*a, k - k1);
Expand Down

0 comments on commit 285f007

Please sign in to comment.