-
Notifications
You must be signed in to change notification settings - Fork 85
Panic while compiling libm
#1252
Comments
Fixes issues with integer binary operations with floating point numbers transmuted to integers. Fixes facebookexperimental#1252 (comment)
I'm not really sure the above fix is the right way---at least it fixed the above issue, which happened while analyzing However, MIRAI panics shortly after making more progress while analyzing the |
The issue while analyzing the
The following is what happens:
Not quite sure how to fix this though. |
I have created a PR that fixes these issues. |
* Treat numeric transmute specially Fixes issues with integer binary operations with floating point numbers transmuted to integers. Fixes #1252 (comment) * Fix the return type of `bv_overflows` to be of sort BitVector Resolves #1252 (comment)
Issue
MIRAI panics while compiling
libm
.I encountered this issue while trying to analyze multiple crates that have
libm
as one of their dependencies.Steps to Reproduce
MIRAI_LOG=debug
works as well (with a much longer log), butMIRAI_LOG=trace
does not reproduce this issue probably due to the timeout.Expected Behavior
Should emit some diagnostics without panicking.
Actual Results
I get
assertion failed: !(lf || rf)
inchecker/src/z3_solver.rs:1621:9
.The full log:
Environment
OS: macOS Sonoma 14.0
CPU: Apple M1 Pro
Rust version (rustc 1.74.0-nightly (8ed4537d7 2023-09-09))
MIRAI: a23ff7e (the most recent version)
The text was updated successfully, but these errors were encountered: