Skip to content

Fix mode of java if_exprt not being set #2140

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

romainbrenguier
Copy link
Contributor

This fixes some problems where traces could not be output in json because of the mode of some tmp_if_expr were not set.

goto_convert may create temporary symbols for if-expression, these
symbols need to have a mode set, so setting them at the creation of the
if_exprt ensures the mode is correct.
This ensures goto_convert does not create symbols with empty mode, which
could create issues in the later steps of cbmc analysis.
@tautschnig
Copy link
Collaborator

tautschnig commented May 1, 2018

This looks horrible. Can't we instead fix the original bug by inferring the mode from the function symbol being converted?

Edit: #2130 (review) spells out where the mode would need to be routed to. Is there a reason this suggestion is wrong or infeasible?

@romainbrenguier
Copy link
Contributor Author

@tautschnig here is an alternative to this PR which should be cleaner but involves bigger changes #2141

@romainbrenguier
Copy link
Contributor Author

replaced by #2141

@romainbrenguier romainbrenguier deleted the bugfix/mode-of-java-if-expr branch May 2, 2018 06:38
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