-
Notifications
You must be signed in to change notification settings - Fork 54
Use Solver Native Implementation of Bitvector to IEEE FP for CVC4 and CVC5 #514
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
…ative implementation
…ative implementation
|
@kfriedberger i think this branch is ready to be reviewed. The CI fails for some timeout reason and needs to be restarted. |
kfriedberger
left a comment
There was a problem hiding this 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.
src/org/sosy_lab/java_smt/solvers/cvc5/CVC5FloatingPointFormulaManager.java
Show resolved
Hide resolved
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. |
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
…umentException, as it fits better
This PR changes the implementation of CVC4 and 5 to use their built-in version of
fromIeeeBitvector().