-
Notifications
You must be signed in to change notification settings - Fork 274
Add example of translated goto function #4079
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
src/goto-programs/README.md
Outdated
``` | ||
unsigned mult(unsigned a, unsigned b) | ||
{ | ||
int acc, i; |
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.
Surely you should initialise acc
to 0, to make this program make more sense?
I think this would fit in better together with the goto conversion section http://cprover.diffblue.com/group__goto-programs.html#goto-conversion . |
END_FUNCTION | ||
``` | ||
|
||
(The above result was produced using `cbmc version 5.11`) |
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.
Of course our documentation will always be up-to-date so that isn't needed :-)
@johnnonweiler @NlightNFotis I have no opinion on this |
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 15c6b55).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99762376
Add an example C program and its equivalent goto-functions as produced by cbmc in the goto-programs folder documentation.
15c6b55
to
1ee9696
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 1ee9696).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99784681
Add an example C program and its equivalent goto-functions as produced by cbmc in the
goto-programs folder documentation.