
R0=5, R3=10, R4=1, R5=1 (but we never set R5 – oops! we forgot to backup R3). We must add a first instruction to backup R3 into R5. But that uses a cycle.
Example: MOV R5, R0 sets R0 to R5. If it's skipped, R0 stays whatever it was – not good. But ADD R0, R0 twice in a row – if one is skipped, the other still doubles.
Better: Use R5 as a permanent target copy. Initially R5=1 (bad). So first, copy R3 to R5:
Revised script (still 12 cycles):
Final battle-tested solution for all seeds:


