Proving that your Dafny code is correct under concurrency
Correctness of code with threads or shared memory: absence of data races, deadlock freedom, linearizability of concurrent data structures.
Change the question
Ranked by: support for this property, stage, coverage of the features you pick, and trust. Tools that work on compiled code rank lower. Ranking as JSON.
- Gobra on compiled code: Go
Add specifications as comments to Go code; Gobra translates it to the Viper verifier, which proves memory safety, race freedom and your contracts.
Partial.Proves freedom from data races and properties of messages sent over channels and data guarded by locks. The tutorial does not cover deadlock freedom.
Source Partial — Proves freedom from data races and properties of messages sent over channels and data guarded by locks. The tutorial does not cover deadlock freedom.- Effort
- Auto-active
- Covers
- 6 of 10 common features
- Relies on
- Viper's symbolic execution engine and the Z3 SMT solver decide; no proof certificates. Go model built into Gobra; ignores integer overflow unless --overflow is set.
Stage 1 · Usable 0/5 strong
No option matches this effort level.
Verify Dafny, but not this property
- Dafny — Dafny is a sequential language.
- KeY — Multithreading is not supported; KeY reasons about sequential Java only.
- s2n-bignum — The machine model is sequential and single-core.
- Islaris — The paper states Islaris assumes single-threaded execution.
- LNSym — The machine state is a single sequential processor.
Ask something else about Dafny
- Everything
- No undefined behavior
- Functional correctness
- Equivalence
- Information flow
- Termination and liveness
New to this? Start with the glossary: auto-activeAuto-active verification. You write specifications and hints in the code; an automatic solver does the proving., interactiveInteractive theorem prover. A proof assistant where you write proofs step by step and the system checks each step., trusted computing baseTrusted computing base (TCB). Everything that must be correct for a proof to mean what it says..