Replies: 1 comment
-
That is because LLVM optimized the code. You can ignore such case. I will ask TAs not to have such test cases this class. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We know that a division by a variable could be converted into a division by a constant by llvm for some reasons. We also know that this can make the "Division by 0" problem more trickier.
For example,
Line 8 is an unreachable line. However, since the checker in our skeleton checks "division by 0" by evaluating each node, it will print a false alarm. Should I consider cases like this?
Beta Was this translation helpful? Give feedback.
All reactions