Skip to content

Do not assign a non-ssa expression to object accessed via an ssa_exprt reference#4725

Merged
tautschnig merged 1 commit intodiffblue:developfrom
danpoe:refactor/renaming
May 31, 2019
Merged

Do not assign a non-ssa expression to object accessed via an ssa_exprt reference#4725
tautschnig merged 1 commit intodiffblue:developfrom
danpoe:refactor/renaming

Conversation

@danpoe
Copy link
Contributor

@danpoe danpoe commented May 29, 2019

Previously a variable expr of type exprt & was cast to ssa_exprt & and assigned to variable ssa. Later the object was modified via assigning a non-ssa expression to expr, violating the invariants of ssa_exprt.

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

@tautschnig
Copy link
Collaborator

@danpoe Please rebase now that #4729 is in to make CI happy.

@tautschnig tautschnig force-pushed the refactor/renaming branch from 5878800 to 6b37154 Compare May 30, 2019 11:13
@tautschnig tautschnig force-pushed the refactor/renaming branch 2 times, most recently from 963bced to c9244d9 Compare May 31, 2019 21:43
…_exprt ref

Previously a variable `expr` of type `exprt &` was cast to `ssa_exprt &` and
assigned to variable `ssa`. Later the object was modified via assigning a
non-ssa expression to `expr`, violating the invariants of `ssa_exprt`.
@tautschnig tautschnig force-pushed the refactor/renaming branch from c9244d9 to 862aa15 Compare May 31, 2019 22:30
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (develop@e366841). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #4725   +/-   ##
==========================================
  Coverage           ?   68.45%           
==========================================
  Files              ?     1270           
  Lines              ?   104748           
  Branches           ?        0           
==========================================
  Hits               ?    71705           
  Misses             ?    33043           
  Partials           ?        0
Impacted Files Coverage Δ
src/goto-symex/goto_symex_state.cpp 93.81% <100%> (ø)

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 e366841...862aa15. Read the comment docs.

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.

⚠️
This PR failed Diffblue compatibility checks (cbmc commit: 862aa15).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/113955224
Status will be re-evaluated on next push.
Common spurious failures include: the cbmc commit has disappeared in the mean time (e.g. in a force-push); the author is not in the list of contributors (e.g. first-time contributors); compatibility was already broken by an earlier merge.

@tautschnig tautschnig merged commit 1631ec4 into diffblue:develop May 31, 2019
@danpoe danpoe deleted the refactor/renaming branch June 2, 2020 17:08
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.

5 participants