Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

KCC builtins to make program stuck #544

Open
h0nzZik opened this issue Aug 1, 2019 · 0 comments
Open

KCC builtins to make program stuck #544

h0nzZik opened this issue Aug 1, 2019 · 0 comments

Comments

@h0nzZik
Copy link
Contributor

h0nzZik commented Aug 1, 2019

Sometimes I want to examine the configuration in a particular point of translation/execution of a program, and currently, the only way of doing so I am aware of is to guess the right value of the parameter -ftranslation-depth or the environment variable DEPTH. It would be nice if I could write something like

int main() {
  int x = 1;
  __builtin_kcc_execution_stuck();
}

and the execution (or translation for builtin_kcc_translation_stuck()) would simply get stuck there. It would also be helpful if both kcc and the resulting executable reported the number of steps to stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant