1 / 6

Using and Building an Automatic Program Verifier

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. Abstraction, frames. demo. Counter. Dynamic frames, recap.

elon
Télécharger la présentation

Using and Building an Automatic Program Verifier

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