lets-prove-leftpad
lets-prove-leftpad copied to clipboard
Rust example
I proved leftpad in rust, using creusot: https://github.com/suhr/leftpad
How to verify:
-
cargo creusot --span-mode=absolute -- --features=contracts
-
«creusot repo»/ide target/debug/leftpad-rlib.mlcfg
NB: you need to apply “Split VC” on the leftpad VC to avoid CVC5 timeout.
Creusot is a research software, so I'm not sure if I should make a PR yet.
Oooh! I tried with MIRAI in #43 and couldn’t get it to do even very simple things; I’m glad there’s another Rust solution now.
Known experience, a year ago I tried to prove leftpad using prusti, with no success. Creusot seems to be the first actually usable tool for deductive verification in rust.
Make the PR!