Skip to content

CONTRACTS: do not rely on replace_symbol for bound variables [blocks: #6827] #6828

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

tautschnig
Copy link
Collaborator

replace_symbolt will cease to support bound variables, which presently
is not well documented behaviour. See #6827 for upcoming changes.

  • 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.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

replace_symbolt will cease to support bound variables, which presently
is not well documented behaviour. See diffblue#6827 for upcoming changes.
@codecov
Copy link

codecov bot commented Apr 24, 2022

Codecov Report

Merging #6828 (ed4b77f) into develop (55f3861) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #6828      +/-   ##
===========================================
- Coverage    77.01%   77.01%   -0.01%     
===========================================
  Files         1594     1594              
  Lines       184417   184415       -2     
===========================================
- Hits        142021   142019       -2     
  Misses       42396    42396              
Impacted Files Coverage Δ
src/goto-instrument/contracts/contracts.h 100.00% <ø> (ø)
src/goto-instrument/contracts/contracts.cpp 94.48% <100.00%> (-0.01%) ⬇️
src/solvers/flattening/boolbv.cpp 80.33% <100.00%> (-0.06%) ⬇️

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 40f6d43...ed4b77f. Read the comment docs.

Copy link
Collaborator

@feliperodri feliperodri left a comment

Choose a reason for hiding this comment

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

LGTM

@kroening kroening merged commit ba7ad3d into diffblue:develop Apr 25, 2022
@kroening
Copy link
Member

The use of the .instantiate() API is certainly an improvement. It's not clear to me why a fresh symbol is needed, though.

@tautschnig tautschnig deleted the cleanup/contracts-use-instantiate branch April 25, 2022 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants