Skip to content

bv_pointerst: else case is just for byte updates #6138

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 1 commit into from
Aug 13, 2021

Conversation

tautschnig
Copy link
Collaborator

We should not treat all other expressions as byte updates. Expressions
other than those handled in the if/else if chain should result in
failing conversion.

  • 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.

@codecov
Copy link

codecov bot commented May 24, 2021

Codecov Report

Merging #6138 (d73135a) into develop (74e4365) will decrease coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6138      +/-   ##
===========================================
- Coverage    75.96%   75.96%   -0.01%     
===========================================
  Files         1508     1508              
  Lines       163292   163295       +3     
===========================================
+ Hits        124052   124054       +2     
- Misses       39240    39241       +1     
Impacted Files Coverage Δ
src/solvers/flattening/bv_pointers.cpp 82.56% <66.66%> (-0.11%) ⬇️

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 f917b98...d73135a. Read the comment docs.

Copy link
Contributor

@TGWDB TGWDB left a comment

Choose a reason for hiding this comment

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

This looks nice and a good way to catch errors. Is it possible to actually reach this code path? If so can you create a regression test that catches it?

@martin-cs
Copy link
Collaborator

I think @TGWDB is correct to request a test but I think this is a rare code path and may only be taken by other things that also need to be fixed so I am willing to merge without one if @tautschnig says that adding one would be testing for incorrect or buggy behaviour.

@tautschnig tautschnig self-assigned this Aug 11, 2021
We should not treat all other expressions as byte updates. Expressions
other than those handled in the if/else if chain should result in
failing conversion.
@tautschnig tautschnig merged commit f0a4e75 into diffblue:develop Aug 13, 2021
@tautschnig tautschnig deleted the bv-pointers-else branch August 13, 2021 10:54
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.

4 participants