Skip to content

Replace Object.getClass preprocessing by a CProver.classIdentifier method #4513

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

Merged
merged 3 commits into from
Apr 11, 2019

Conversation

romainbrenguier
Copy link
Contributor

This simplifies the preprocessing and leave it to the model to handle
the complexity, which is less error-prone.

  • Each commit message has a non-empty body, explaining why the change was made.
  • [na] Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • 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).
  • [na] My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • [na] White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@romainbrenguier
Copy link
Contributor Author

There is a test for getClass in jbmc/regression/jbmc-strings/ClassName but I will add others for the new CProver.classIdentifier.

@romainbrenguier romainbrenguier force-pushed the bugfix/get-class branch 2 times, most recently from 3ef4482 to d4079e6 Compare April 11, 2019 08:48
@romainbrenguier
Copy link
Contributor Author

There is a test for getClass in jbmc/regression/jbmc-strings/ClassName but I will add others for the new CProver.classIdentifier.

Test added

Copy link
Contributor

@allredj allredj left a 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: d4079e6).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/107932717

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@allredj
Copy link
Contributor

allredj commented Apr 11, 2019

java-models-library PR needs to be merged first, then the pointer updated, then this can go in.

Update the models for a version of getClass which uses
CProver.classIdentifier.
This is necessary for getting rid of the preprocessing of getClass which
is error-prone.
diffblue/java-models-library#21
This simplifies the preprocessing and leave it to the model to handle
the complexity, which is less error-prone (writing safe java program is
easier than write c++ that generates safe goto-program).
This tests that the new builtin cprover function is working.
@romainbrenguier
Copy link
Contributor Author

java-models-library update now pointing to master

Copy link
Contributor

@allredj allredj left a 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: d841712).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/107948360

@romainbrenguier romainbrenguier merged commit 0f68971 into diffblue:develop Apr 11, 2019
@romainbrenguier romainbrenguier deleted the bugfix/get-class branch April 11, 2019 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants