Skip to content

Commit e95f489

Browse files
committed
Add docs for -Zmiri-check-number-validity
1 parent 9eba187 commit e95f489

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ up the sysroot. If you are using `miri` (the Miri driver) directly, see the
199199
Miri adds its own set of `-Z` flags, which are usually set via the `MIRIFLAGS`
200200
environment variable:
201201

202+
* `-Zmiri-check-number-validity` enables checking of integer and float
203+
validity (e.g., initialization) as part of enforcing validity invariants.
202204
* `-Zmiri-compare-exchange-weak-failure-rate=<rate>` changes the failure rate of
203205
`compare_exchange_weak` operations. The default is `0.8` (so 4 out of 5 weak ops will fail).
204206
You can change it to any value between `0.0` and `1.0`, where `1.0` means it

0 commit comments

Comments
 (0)