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

Fix Bitwuzla VARIABLE_NODE translation #1289

Merged

Conversation

cnheitman
Copy link
Collaborator

This PR fix an issue with the in the Triton to Bitwuzla translation for VARIABLE_NODE. If a variable node appears more that once in an expression, different term for that node will be created. That means, bitwuzla_mk_const will return different BitwuzlaTerms for the same symbol. The fix checks whether the term was already created and returns it, otherwise creates a new one.

@JonathanSalwan
Copy link
Owner

Is it an old bug or is it due to the new bitwuzla version?

@cnheitman
Copy link
Collaborator Author

I think this also happens in the old version of Bitwuzla but I haven't checked.

@JonathanSalwan JonathanSalwan merged commit adbc863 into JonathanSalwan:dev-v1.0 Sep 30, 2023
28 of 30 checks passed
@cnheitman cnheitman deleted the fix/fix-bitwuzla-translation branch October 1, 2023 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants