A Contract says more than a Verdict
Rust’s memory model, litmus tests, and concurrency tools — towards code patterns correct by design
In a post following up from the introduction of the Relaxed Memory Model Zoo, I run the litmus tests from the Zoo’s corpus through Rust the common concurrency tools Miri and loom. The search yields a gap between the tooling and the “memory model” as documented. This may be fine today, as neither the compiler frontend as implemented today nor common target architectures will produce the bug, but any layer of the stack exhausting its liberties will make the gap bite.