Skip to content

Commit 3aecc7e

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ 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 validity
203+
(e.g., they must be initialized and not carry pointer provenance) as part of
204+
enforcing validity invariants. This has no effect when
205+
`-Zmiri-disable-validation` is present.
202206
* `-Zmiri-compare-exchange-weak-failure-rate=<rate>` changes the failure rate of
203207
`compare_exchange_weak` operations. The default is `0.8` (so 4 out of 5 weak ops will fail).
204208
You can change it to any value between `0.0` and `1.0`, where `1.0` means it

0 commit comments

Comments
 (0)