-
Notifications
You must be signed in to change notification settings - Fork 274
Clone reference array #3992
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
Clone reference array #3992
Conversation
I think c521ec9 is a better fix (the type of a reference array is an |
ee92c07
to
e45ff42
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.
🚫
This PR failed Diffblue compatibility checks (cbmc commit: ee92c07).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99131354
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
e45ff42
to
2a5df74
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.
🚫
This PR failed Diffblue compatibility checks (cbmc commit: e45ff42).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99137005
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
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: 2a5df74).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99145971
@@ -209,7 +209,7 @@ typet java_type_from_char(char t) | |||
case 'f': return java_float_type(); | |||
case 'd': return java_double_type(); | |||
case 'z': return java_boolean_type(); | |||
case 'a': return java_reference_type(void_typet()); | |||
case 'a': return java_lang_object_type(); |
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.
I suppose you want to squash this commit with the last one?
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.
Yes was hoping illicit some comments on the original plan - but will squash down and create a fresh PR fixing this would be better. (will wait for TG to pass first).
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.
Done.
TG bump passing. |
This can happen when processing the clone method which sets its return type to be a void*
2a5df74
to
f775c75
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.
I'd block if this was test-gen, but just realized it's not D:
if(element_type.id() == ID_pointer) | ||
if( | ||
element_type.id() == ID_pointer && | ||
element_type.subtype().id() != ID_empty) |
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.
⛏ What about try_type_dynamic_cast<>
?
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: f775c75).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99166627
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: 5aae3a7).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99174896
5aae3a7
to
4e919f3
Compare
@LAJW comments addressed (will do the try dynamic cast in a separate PR. |
4e919f3
to
1e0d861
Compare
Each commit message has a non-empty body, explaining why the change was made.
Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
[n/a] The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
[n/a] My commit message includes data points confirming performance improvements (if claimed).
My PR is restricted to a single feature or bugfix.
White-space or formatting changes outside the feature-related changed lines are in commits of their own.
Add descs for all combinations