Kani Rust Verifier – a bit-precise model-checker for Rust
model-checking.github.io
model-checking.github.io
The model checking approach seems to be a bit limited regarding loops. There are also abstract interpreters, such as https://github.com/facebookexperimental/MIRAI, and symbolic executers, such as https://github.com/dwrensha/seer or https://github.com/GaloisInc/crucible.
Overall I believe this space would benefit from more coordination and focus on developing something that has the theoretical foundations to cover as many needs as possible and then make a user-friendly tool out of it that is endorsed by the Rust project similar to how Rust analyzer is the one language server to come.
The Ferrocene project is a coordinated effort I believe: https://ferrous-systems.com/ferrocene/
note that formal model checkers cannot prove termination, only memory and type safeties.
Excerpt from Kani doc : Kani is especially useful for verifying unsafe code in Rust.
and regarding loom and shuttle : Excerpt from The Rustonomicon : Safe Rust guarantees an absence of data races, which are defined as: 1) two or more threads concurrently accessing a location of memory 2) one or more of them is a write 3) one or more of them is unsynchronized However Rust does not prevent general race conditions. This is pretty fundamentally impossible, and probably honestly undesirable.
What safe mean is not that easy to define. From the Pony FAQ: Pony prevents data races. It can’t stop you from writing race conditions into your program.
Also keep in mind that Rust is not garbage collected, the guarantees Rust provide regarding safety are a huge step forward but of course a lot need to be done.
Those guarantees are not promises, they are formally proven : https://www.ralfj.de/research/thesis.html (https://www.eurekalert.org/news-releases/610682)
remember how eBPF was formally proven to be safe also? until meltdown came along and all those proofs fell down.
There is no safe language, as that would imply the solution of Rice’s theorem, Halting problem, etc.