-
Notifications
You must be signed in to change notification settings - Fork 52
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
[c-parser] remove continue statement #85
Conversation
Signed-off-by: isubasinghe <[email protected]>
Signed-off-by: isubasinghe <[email protected]>
I'd like to understand why |
Yeah sounds good, I think @lsf37 might know the answer to this, I'll leave this as it is until Gerwin returns from leave and addresses this. |
It would be helpful to see how it "blew up". The C parser itself does support |
Ah thanks for the comment, not entirely sure what caused it to error out, I just bisected through the code until I found out that rewriting the continue statement makes the C parser accept the C code. I will try and get more helpful output next week and update here, got a bunch of deadlines to worry about this week. |
Did we find out what the problem was? |
|
Sorry this is on my (fairly large) todo list. When all the debug related functions and statements were stripped out, the C parser did end up working. |
That makes more sense -- I don't know how
Ok, no hurry. |
This statement was incorrect, apologies, it was a while since I looked at this, the issue isn't actually with the C parser but the translation to GraphLang. I've added the program here: https://gist.github.com/isubasinghe/b8fb5abb5db9b6c769ad97c3e2b63866 Here is the export script: https://gist.github.com/isubasinghe/0a568ff2060443b8b43bf23474c37c55 |
Closing because @isubasinghe won't be pursuing this anymore and we are likely looking at a change to verification tooling that would not need this patch. If we do need it we can always re-open. |
I needed to make this change to make the C-parser accept the code.
Not entirely sure why the C-parser blew up when it saw the continue statement, I am unsure if this is a bug in the C-parser or just not supported by it.