Skip to content
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

ITE iftrue and iffalse constructor parameters should be swapped #269

Open
mborgerson opened this issue Dec 16, 2024 · 0 comments
Open

ITE iftrue and iffalse constructor parameters should be swapped #269

mborgerson opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@mborgerson
Copy link
Member

mborgerson commented Dec 16, 2024

Description

Confusingly, the AILment ITE constructor takes the iffalse expression before the iftrue expression. ITE::__str__ however prints them out like a C expression, with the true expression preceding the false expression.

This seems to be because pyvex does the same, which is also confused by the _pp_str function which prints them true expression before the false expression.

angr's CITE type constructor does take iftrue first.

Steps to reproduce the bug

No response

Environment

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant