There is goto statement in C programming language, which can be used freely in any place of the code. For example, this code is valid:
goto a;
while (x < 10) {
if (y > 4) {
a:
i += 1;
}
}
This code is impossible to translate to EO goto object "as is" (correct me if I'm wrong). I would be nice to have an automated tool, which would take C code as an input and generate a new C code without goto statements.
There is
goto
statement in C programming language, which can be used freely in any place of the code. For example, this code is valid:This code is impossible to translate to EO
goto
object "as is" (correct me if I'm wrong). I would be nice to have an automated tool, which would take C code as an input and generate a new C code withoutgoto
statements.This may be relevant: https://www.researchgate.net/publication/2644650_A_Goto-Elimination_Method_And_Its_Implementation_For_The_McCat_C_Compiler