Skip to content

Conversation

@yumibagge
Copy link
Contributor

@yumibagge yumibagge commented Jul 23, 2019

This PR addresses

  • regression folder rename

  • add regression test for models-library

  • add regression test for Character

  • n/a Each commit message has a non-empty body, explaining why the change was made.

  • n/a 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.

@danpoe danpoe self-assigned this Jul 23, 2019
@yumibagge yumibagge force-pushed the yb/jbmc-regression-tg-8284 branch from ddf0358 to 0557ee5 Compare July 23, 2019 12:18
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: 5ef594d).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/120229016

@codecov-io
Copy link

codecov-io commented Jul 23, 2019

Codecov Report

Merging #4939 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #4939   +/-   ##
========================================
  Coverage    69.27%   69.27%           
========================================
  Files         1307     1307           
  Lines       108145   108145           
========================================
  Hits         74918    74918           
  Misses       33227    33227

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 455e8f9...5352996. Read the comment docs.

@yumibagge yumibagge force-pushed the yb/jbmc-regression-tg-8284 branch from 5ef594d to 723312f Compare July 24, 2019 15:14
@danpoe danpoe removed their assignment Jul 24, 2019
assert s1.indexOf(b) == 1;
assert s1.indexOf(b, -10) == 1;
assert s1.indexOf(b, 3) == 4;
assert s1.indexOf(b, 10) == -1;
Copy link
Contributor

Choose a reason for hiding this comment

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

In cbmc, it's generally not enough to check for assertion success. After all, cbmc's job is to violate assertions, so if there's nothing to violate, we can't tell if cbmc did anything at all.
I recommend looking at the tests in https://github.com/diffblue/cbmc/tree/develop/jbmc/regression/jbmc-strings/CompareToConstantEvaluation that exercise failing assertions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the great advice and reference. Indeed, I had a test.desc for this test that does not use models-library, which is verification is expected to be failed. Is it better to add the test? The detailed verification failure is https://diffblue.atlassian.net/browse/TG-8284?focusedCommentId=23418&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-23418

Copy link
Contributor

Choose a reason for hiding this comment

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

That test you link doesn't look like one you would want to add. It fails on a NullPointerException, which is not what you're looking for. Happy to discuss in person.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@allredj , I added a test to check assertion failure. Could you re-review?

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: 723312f).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/120479078

@yumibagge yumibagge force-pushed the yb/jbmc-regression-tg-8284 branch from 723312f to 9cddf5d Compare July 25, 2019 17:49
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: 9cddf5d).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/120755220

Main.class
--function Main.constantIndexOf
^Generated [0-9]+ VCC\(s\), 1 remaining after simplification$
^VERIFICATION FAILED$
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you should specify which assertion you want to fail. It's probably good to use the --property option too, as you don't want to analyse the assertions that you expect to be successful.
Look at the tests in https://github.com/diffblue/cbmc/tree/develop/jbmc/regression/jbmc-strings/CompareToConstantEvaluation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes ... it was pointed out by @danpoe when he explained to me about regression tests. I was just being lazy 😅 property added.

@yumibagge yumibagge force-pushed the yb/jbmc-regression-tg-8284 branch from 9cddf5d to 5352996 Compare July 26, 2019 09:45
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: 5352996).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/120836927

@danpoe danpoe merged commit 103b2dc into diffblue:develop Jul 26, 2019
@yumibagge yumibagge deleted the yb/jbmc-regression-tg-8284 branch July 26, 2019 11:14
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.

4 participants