Skip to content

Bugfix: store VCC counters per-path #3220

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

Conversation

karkhaz
Copy link
Collaborator

@karkhaz karkhaz commented Oct 23, 2018

Prior to this commit, total_vccs and remaining_vccs had been members of
goto_symext, meaning that they would be reset to zero every time a path
was resumed. This would make CBMC incorrectly report safety for the
included test program when running in path exploration mode, even though
the program is reported as unsafe when CBMC runs in model-checking mode.

This commit moves those members to goto_symex_statet, with goto_symext
retaining cached versions so that its clients can read their values
after the state has been torn down.

@karkhaz karkhaz force-pushed the kk-bugfix-per-path-vcc-counters branch 4 times, most recently from 5d9b9c1 to 30424f7 Compare October 23, 2018 13:59
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: c013212).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/88959178

Prior to this commit, total_vccs and remaining_vccs had been members of
goto_symext, meaning that they would be reset to zero every time a path
was resumed. This would make CBMC incorrectly report safety for the
included test program when running in path exploration mode, even though
the program is reported as unsafe when CBMC runs in model-checking mode.

This commit moves those members to goto_symex_statet, with goto_symext
retaining cached versions so that its clients can read their values
after the state has been torn down.
@karkhaz karkhaz force-pushed the kk-bugfix-per-path-vcc-counters branch from c013212 to 7a897a5 Compare October 25, 2018 09:40
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: 7a897a5).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/89136345

@karkhaz
Copy link
Collaborator Author

karkhaz commented Oct 29, 2018

@smowton any chance I could get a review for this at some point please? I need this PR and #3237 for SV-COMP, I'm currently working on a few more patches but I'm hoping to get #3237 stabilized before I commit to working on top of it...

@tautschnig tautschnig merged commit 83b655a into diffblue:develop Oct 29, 2018
@karkhaz karkhaz deleted the kk-bugfix-per-path-vcc-counters branch October 29, 2018 21: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.

3 participants