Skip to content

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)

2 participants