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

Add new floating point literal constructor using IEEE754 bitpattern #364

Merged
merged 7 commits into from
Mar 24, 2024

Conversation

leventeBajczi
Copy link
Contributor

As discussed in #360, currently, floating point literals cannot be directly created if the user has access to the bit pattern of the value. Therefore, this PR adds support for this using the new makeNumber(BigInteger exponent, BigInteger mantissa, boolean signBit, FloatingPointType type) method.

I added a test to verify that no trivial mistakes were made. Let me know if I should add more.

@kfriedberger kfriedberger merged commit e7a161a into sosy-lab:master Mar 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants