Skip to content

Add non-determinism to algebraic intrinsics. #4289

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

Open
bjoernager opened this issue Apr 23, 2025 · 0 comments
Open

Add non-determinism to algebraic intrinsics. #4289

bjoernager opened this issue Apr 23, 2025 · 0 comments
Labels
A-intrinsics Area: Affects out implementation of Rust intrinsics C-enhancement Category: a PR with an enhancement or an issue tracking an accepted enhancement

Comments

@bjoernager
Copy link
Contributor

bjoernager commented Apr 23, 2025

Tracking issue: rust-lang/rust#136469

Since rust-lang/rust#140172, the result of a call to any of the algebraic_add, algebraic_sub, algebraic_mul, algebraic_div, or algebraic_rem intrinsics has been deterministic in Miri.

Valid programmes do not depend on these computations being exact, thus Miri should add some non-determinism so that any such dependence is more likely to be caught.

@RalfJung RalfJung added C-enhancement Category: a PR with an enhancement or an issue tracking an accepted enhancement A-intrinsics Area: Affects out implementation of Rust intrinsics labels Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-intrinsics Area: Affects out implementation of Rust intrinsics C-enhancement Category: a PR with an enhancement or an issue tracking an accepted enhancement
Projects
None yet
Development

No branches or pull requests

2 participants