-
Notifications
You must be signed in to change notification settings - Fork 277
goto-harness: create goto binary or C output #5821
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #5821 +/- ##
===========================================
- Coverage 75.12% 74.04% -1.08%
===========================================
Files 1435 1444 +9
Lines 156301 157310 +1009
===========================================
- Hits 117416 116485 -931
- Misses 38885 40825 +1940
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks to be an improvement.
Unhelpful suggestion : should it only ever generate goto binaries? If you want C then you can goto-instrument --dump-c output.gb
. That would make the functionality more orthogonal. (But less user-friendly and would involve throwing away useful, working code, so, maybe not).
Would probably be the better route forward, but we'd need to figure out a way of not breaking any customer's workflows. That seems hard to accomplish, I fear. |
37ab065
to
ecdd251
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, and I'm happy for this to go in - with a personal-preference suggestion that you are totally free to ignore.
It is not always necessary or desirable to produce C output. An ability to produce goto binaries also avoids possible limitations of C and/or dump-c (such as goto-harness creating initialisers for structs with bit fields, which yield functions that take bit fields as parameters, which isn't possible in C). While at it, also clean up the help output to fix confusing language about goto binaries when the output was actually C code. Fixes: diffblue#5351
ecdd251
to
af01532
Compare
It is not always necessary or desirable to produce C output. An ability
to produce goto binaries also avoids possible limitations of C and/or
dump-c (such as goto-harness creating initialisers for structs with bit
fields, which yield functions that take bit fields as parameters, which
isn't possible in C).
While at it, also clean up the help output to fix confusing language
about goto binaries when the output was actually C code.