1 / 6

Dynamic Frame Idioms in Program Verification

Demonstrating the concept of dynamic frames in program verification using Dafny, with examples and exercises from RockBand and RockBand2. Includes links to resources for further exploration.

eve-alford
Télécharger la présentation

Dynamic Frame Idioms in Program Verification

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using and Building an Automatic Program Verifier K. Rustan M. Leino Research in Software Engineering (RiSE) Microsoft Research, Redmond Lecture 4 LASER Summer School 2011 Elba, Italy 8 September 2011

  2. Abstraction, frames demo Counter

  3. Dynamic frames, recap • Conceptually:class C {invariantJ; … } • Explicitly in Dafny:class C {function Valid(): bool … { J }ghostvarRepr: set<object>;constructorInit()modifiesthis;ensures Valid() && fresh(Repr – {this});method Mutate()requires Valid();modifiesRepr;ensures Valid() && fresh(Repr– old(Repr)); }

  4. Dynamic frames idiom demo RockBand, RockBand2

  5. Exercises • List • http://rise4fun.com/Dafny/nAW

  6. Links • Dafny • research.microsoft.com/dafny • rise4fun.com/Dafny/tutorial/guide • rise4fun • rise4fun.com • Verification Corner • research.microsoft.com/verificationcorner

More Related