Skip to content

A static verifier for Rust, based on the Viper verification infrastructure.

License

Notifications You must be signed in to change notification settings

mlimbeck/prusti-dev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prusti

Test Test on crates Deploy Test coverage Project chat

Prusti is a prototype verifier for Rust, built upon the Viper verification infrastructure.

By default Prusti verifies absence of integer overflows and panics by proving that statements such as unreachable!() and panic!() are unreachable. Overflow checking can be disabled with a configuration flag, treating all integers as unbounded. In Prusti, the functional behaviour of a function can be specified by using annotations, among which are preconditions, postconditions, and loop invariants. The tool checks them, reporting error messages when the code does not adhere to the provided specification.

For a tutorial and more information, check out the user guide.

Using Prusti

The easiest way to try out Prusti is by using the "Prusti Assistant" extension for VS Code.

Alternatively, if you wish to use Prusti from the command line there are three options:

  • Download the precompiled binaries for Ubuntu, Windows, or MacOS from a GitHub release.
  • Compile from the source code, by installing rustup, running ./x.py setup and then ./x.py build --release.
  • Build a Docker image from Dockerfile.

All three options provide the prusti-rustc and cargo-prusti programs that can be used analogously to, respectively, rustc and cargo check. For more detailed instructions, refer to the user guide and to the developer guide.

Do you still have questions? Open an issue or contact us on Zulip.

About

A static verifier for Rust, based on the Viper verification infrastructure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 94.8%
  • Shell 4.4%
  • Other 0.8%