Skip to content

Fix switch values that need an implicit upcast to find a struct member #158

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
Jul 1, 2016
Merged

Fix switch values that need an implicit upcast to find a struct member #158

merged 1 commit into from
Jul 1, 2016

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Jun 30, 2016

Upcasts might happen in the immediate argument to a switch statement (e.g. switch(((A*)x)->y) needing to become switch(x->superclass.y)). The Java bytecode typechecker already looked at some contexts for possible implicit casts like this; this adds switch arguments to the list. Fixes #154.

@kroening kroening merged commit 0b63cb2 into diffblue:master Jul 1, 2016
romainbrenguier pushed a commit to romainbrenguier/cbmc that referenced this pull request Apr 13, 2017
peterschrammel added a commit that referenced this pull request May 11, 2017
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.

2 participants