3 ms·
Modelling Rust's unsafe code seems pretty hard to me as afaik there are no formal semantics for Rust.
by adrianN 9y ago
Modelling Rust's unsafe code seems pretty hard to me as afaik there are no formal semantics for Rust.
- nickpsecurity 9y agoIn that case, one could just go with the semantics of the SPARK-like tool with equivalent algorithm, turn that to C or assembly, and use it with Rust's FFI. That's similar to my proposal for Rust + x86 Proved or TALC. This is also an area where formal specifications can have benefit showing intent for unsafe Rust and the proven replacement.
- touisteur 9y agoI guess people will try anyway : https://kha.github.io/2016/07/22/formally-verifying-rusts-binary-search.html https://kha.github.io/2016/07/22/formally-verifying-rusts-bi... There's some great work on this front coming from the Rustbelt lab : https://www.mpi-sws.org/~dreyer/papers/rustbelt/paper.pdf https://www.mpi-sws.org/~dreyer/papers/rustbelt/paper.pdf and http://plv.mpi-sws.org/rustbelt/ http://plv.mpi-sws.org/rustbelt/