Skip to content

Add smtFloatMode option to VerifierOptions. Refs #79. #81

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

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

RyanGlScott
Copy link
Collaborator

This allows users to switch between FloatUninterpreted (the default setting, where all floating-point operations are treated as uninterpreted functions) and FloatIEEE (where floating-point values are treated as IEEE-754 floats). While FloatIEEE is unable to handle floating-point operations that are not native to SMT-LIB (sin, cos, tan, etc.), it can handle more specifications in which a C compiler optimizes the floating-point expressions found in the generated C code. An example of where this is crucible can be found in the newly added FPNegation example, which was inspired by Ogma.

Fixes #79.

This allows users to switch between `FloatUninterpreted` (the default setting,
where all floating-point operations are treated as uninterpreted functions) and
`FloatIEEE` (where floating-point values are treated as IEEE-754 floats). While
`FloatIEEE` is unable to handle floating-point operations that are not native
to SMT-LIB (`sin`, `cos`, `tan`, etc.), it can handle more specifications in
which a C compiler optimizes the floating-point expressions found in the
generated C code. An example of where this is crucible can be found in the
newly added `FPNegation` example, which was inspired by Ogma.
@RyanGlScott RyanGlScott merged commit 62f2d9d into master Feb 3, 2025
3 checks passed
@RyanGlScott RyanGlScott deleted the T79-IEEE-option branch February 3, 2025 17:49
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.

Allow opting in to IEEE floating-point mode (with limited support)
1 participant