-
Notifications
You must be signed in to change notification settings - Fork 273
Simplify lhs before passing to symex_assign #34
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
Conversation
c88863d
to
4ee6d72
Compare
src/goto-symex/symex_assign.cpp
Outdated
@@ -36,6 +36,14 @@ void goto_symext::symex_assign_rec( | |||
code_assignt deref_code=code; | |||
|
|||
clean_expr(deref_code.lhs(), state, true); | |||
// make the structure of the lhs as simple as possible to avoid, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment may be better placed in the Purpose section function since this might not be the only place it would get called
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, just a brief question about your comment: what do you refer to as "it" when saying "it would get called?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the delay in responding. It refers to the function do_simplify
. I believe this comment to be explaining this function (all the way down to line 45).
The one risk tied to this proposed commit is that there is a strict requirement that the simplifier must not introduce dereference operations. |
@tautschnig, can we add an assertion so that we notice when the simplifier might be doing that (in future)? |
4ee6d72
to
c20a7aa
Compare
@tautschnig What is the status of this PR, are you planning to add an assertion as suggested by @peterschrammel? |
My apologies for keeping this one on the backlog: yes, I do intend to add this assertion as suggested. I'll try to get this done as soon as possible. |
@peterschrammel @forejtv Assertion added as suggested - apologies for taking forever to implement a 1-line (plus comments) change. |
8d33efa
to
9c2f68b
Compare
9c2f68b
to
9b9b82b
Compare
Added missing .gitmodules file
I have rebased this again as it seemed like Travis had been using a vastly outdated configuration. |
This can help avoid some uses of byte_update, as the regression test shows.
@smowton @peterschrammel sorry to be a pain, but could you please re-review this PR in #2230, and also point the TG bump over there? I couldn't find any way to make Travis use an up-to-date configuration, it seems to be stuck back in 2016... |
No description provided.