C++ for loop tests being incorrectly optimized out [duplicate]
This question already has answers here: Accessing an array out of bounds gives no error, why? (19 answers) Why is the phrase: “undefined behavior means the compiler can do anything it wants” true? (2 answers) Consistency of undefined behavior for a fixed compiler (2 answers) Closed 15 days ago. Inside the constructor for an overloaded, […]
How does this assembly code perform the source code b = a/3 when a = 2?
I’m trying to trace this C source code (when a = 2):