You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Introduce rmc::any and rmc::any_raw and deprecate rmc::nondet
We decided to replace the old method rmc::nondet because its behavior
wasn't clear. For some types it would respect the type invariants but
not for others. Additionally, there was no way for the user to specify
how to create safe non-deterministic values.
Users will be able to control how RMC generate symbolic values to their
variables.
- `rmc::any::<T>()` will provide a safe way to generate values
that respect any invariant specified to type T (Given by the
implementation of Arbitrary trait.)
- `rmc::any_raw::<T>()` will provide any possible bit value for the
memory layout of the type. This is an unsafe method and users must
ensure correctness after this call.
Co-authored-by: Zyad Hassan <[email protected]>
Co-authored-by: Adrian Palacios <[email protected]>
Copy file name to clipboardExpand all lines: rmc-docs/src/tutorial-first-steps.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ The second command opens that report in your default browser (on mac, on linux d
71
71
From this report, we can find the trace of the failure and filter through it to find the relevant line (at present time, an unfortunate amount of generated code is present in the trace):
0 commit comments