It's funny how people struggle so much to write branchless code.
The code is clearly not branchless as written, and relies on non-trivial optimizations for it to happen.
Just write it correctly to begin with.
replies(1):
The code is clearly not branchless as written, and relies on non-trivial optimizations for it to happen.
Just write it correctly to begin with.
It's easy, just run all the instructions from all branches, and select the output you want based on conditionals.
https://en.wikipedia.org/wiki/Branch_(computer_science)
a jump is one kind of branch, but branch describes more things than just jumps