-
Notifications
You must be signed in to change notification settings - Fork 274
Improve documentation in gen_nondet_array_init #3868
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
As suggested here: #3827 |
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: 06c0d34).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/98028295
// as bytes, so each cell must be initialized in a particular way (see | ||
// gen_nondet_init). | ||
// Arrays of primitive type can be initialized with a single instruction. | ||
// We don't do this for arrays of primitive boolean, because the latter |
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.
because they are...
(the latter
only makes sense when we have just referred to a pair of things ("we deal with apples and oranges, the latter being a citrus fruit..."))
// gen_nondet_init). | ||
// Arrays of primitive type can be initialized with a single instruction. | ||
// We don't do this for arrays of primitive boolean, because the latter | ||
// are represented as bytes, so each cell must be initialized in a |
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.
"as an unsigned byte", to make clear it's one byte per cell?
// Arrays of primitive type can be initialized with a single instruction. | ||
// We don't do this for arrays of primitive boolean, because the latter | ||
// are represented as bytes, so each cell must be initialized in a | ||
// particular way (see gen_nondet_init). |
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.
Might as well be clear they have to be 0 or 1, not a general nondet
06c0d34
to
d6e233b
Compare
@smowton Thanks. updated. |
Remove ambiguity between primitive boolean and Boolean objects.
d6e233b
to
aeef996
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: aeef996).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/98062044
Remove ambiguity between primitive boolean and Boolean objects.