Compiler Arcade

Thirty puzzles about what the optimiser actually does to your code. Pick an answer, then flip the card for the real output.

answers verified against clang 18.1.3 · x86-64 · -O2
score0
streak0
best0
played0
undefined behaviour 1 / 30

What does clang -O2 emit for this?

int f(int x) { return x + 1 > x; }
press 1–4 to answer
—

or press Enter
Built by Aditi Medhane — compiler engineer and architecture enthusiast. Every assembly listing here is real compiler output.