Skip to content

Alt matching on float literals is broken #1046

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

Closed
marijnh opened this issue Oct 18, 2011 · 0 comments
Closed

Alt matching on float literals is broken #1046

marijnh opened this issue Oct 18, 2011 · 0 comments

Comments

@marijnh
Copy link
Contributor

marijnh commented Oct 18, 2011

The compiler tries to use floats as the cases in an LLVM switch, which does not work.

celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
…nly (rust-lang#1117)

rustc reasonably translates if statements at end of a loop body to
backwards jumps to the loop head. This, however, causes CBMC's symbolic
execution to spuriously treat these as nested loops. This commit now
enables a rewrite step that had previously been built for exactly such
cases.

This treatment as nested loops implied that seemingly lower unwinding
bounds were sufficient (as the loop unwinding counter got reset). Three
of the tests exhibited this behaviour, which now makes larger unwinding
bounds necessary.

Fixes: rust-lang#1046

Co-authored-by: Daniel Schwartz-Narbonne <dsn@amazon.com>

Co-authored-by: Michael Tautschnig <tautschn@amazon.com>
Co-authored-by: Daniel Schwartz-Narbonne <dsn@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant