Closed blattm closed 10 months ago
This fix prevents the ForLoopVariableRenamer from generating wrong For Loop declarations.
ForLoopVariableRenamer
E.g. this code (where b is e.g. an argument or defined earlier)
b
b = foo(b); while(b <= 5){ ... b = b + 1 }
will no longer be changed to
for(i = foo(i); i <= 5; i = i + 1) ... }
Instead, the correct for loop declaration i = foo(b) will be created.
i = foo(b)
This fix prevents the
ForLoopVariableRenamer
from generating wrong For Loop declarations.E.g. this code (where
b
is e.g. an argument or defined earlier)will no longer be changed to
Instead, the correct for loop declaration
i = foo(b)
will be created.