Structure Break Statement
- You have a jump inside a loop to a label immediately succeeding the loop.
Replace the jump by a break statement.
while(...) { ... goto stop; ... } stop:
⇓
while(...) { ... break; ... }
Motivation
Break statements are also translated by compilers as simple jumps. This refactoring recovers the original statement. It requires that the refactoring corresponding to the loop structure is previously applied.
Mechanics
Replace the jump by a break statement.
- Remove the label, if no longer used.