Skip to content

Conversation

@baierd
Copy link
Contributor

@baierd baierd commented Sep 2, 2025

This PR changes the implementation of CVC4 and 5 to use their built-in version of fromIeeeBitvector().

@baierd
Copy link
Contributor Author

baierd commented Sep 3, 2025

@kfriedberger i think this branch is ready to be reviewed. The CI fails for some timeout reason and needs to be restarted.

@baierd baierd added this to the Release 6.0.0 milestone Sep 3, 2025
kfriedberger
kfriedberger previously approved these changes Sep 3, 2025
Copy link
Member

@kfriedberger kfriedberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, a good catch. We seem to have missed this simple operation in CVC4/CVC5 some years ago.

@baierd
Copy link
Contributor Author

baierd commented Sep 5, 2025

Overall, a good catch. We seem to have missed this simple operation in CVC4/CVC5 some years ago.

Their naming (especially in CVC4) seems a little counter-intuitive at first. I only noticed because i had the SMTLib2 standard and the CVC5 API documentation open while working on FP stuff.

Actually, we could add your implementation as a default implementation, then we would not have to worry about any future solvers not supporting this.

@baierd
Copy link
Contributor Author

baierd commented Sep 5, 2025

Actually, we could add your implementation as a default implementation, then we would not have to worry about any future solvers not supporting this.

OK, that's not possible in general. The solvers generally do not allow the creation of new FP numbers from 3 BV terms like CVC4/5. And since all solver support the BV to IEEE FP operation, i won't bother.

…d add more info about CVC5 exception for the same method
@baierd baierd merged commit 49d5c8e into master Nov 9, 2025
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants