Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Automated remover of C goto statements #4

Open
yegor256 opened this issue Aug 31, 2022 · 2 comments
Open

Automated remover of C goto statements #4

yegor256 opened this issue Aug 31, 2022 · 2 comments
Labels
HSE Suggested to HSE students taken This idea is already taken by someone, but he/she mail fail and the idea will be available soon :)

Comments

@yegor256
Copy link
Member

yegor256 commented Aug 31, 2022

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.

This may be relevant: https://www.researchgate.net/publication/2644650_A_Goto-Elimination_Method_And_Its_Implementation_For_The_McCat_C_Compiler

@yegor256 yegor256 added the taken This idea is already taken by someone, but he/she mail fail and the idea will be available soon :) label Sep 6, 2022
@yegor256 yegor256 added the HSE Suggested to HSE students label Oct 30, 2022
@yegor256 yegor256 removed the taken This idea is already taken by someone, but he/she mail fail and the idea will be available soon :) label Nov 6, 2022
@idlozhkin
Copy link

Our team (HSE) will do this task

@yegor256
Copy link
Member Author

@idlozhkin great, find me in Telegram to discuss details

@yegor256 yegor256 added the taken This idea is already taken by someone, but he/she mail fail and the idea will be available soon :) label Nov 28, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
HSE Suggested to HSE students taken This idea is already taken by someone, but he/she mail fail and the idea will be available soon :)
Projects
None yet
Development

No branches or pull requests

2 participants