Presentation is loading. Please wait.

Presentation is loading. Please wait.

K. Rustan M. Leino RiSE, Microsoft Research 17 July 2009 JML seminar Dagstuhl, Germany.

Similar presentations


Presentation on theme: "K. Rustan M. Leino RiSE, Microsoft Research 17 July 2009 JML seminar Dagstuhl, Germany."— Presentation transcript:

1 K. Rustan M. Leino RiSE, Microsoft Research 17 July 2009 JML seminar Dagstuhl, Germany

2 experimental language sequential, object based (no subclassing) specifications in the style of dynamic frames coarse-grained frames (at the level of whole objects, not individual memory locations)

3 queue linked list with head/tail pointers in-situ list reversal integer set binary tree Schorr-Waite marking algorithm

4 Program ::= Class* Class ::= class C { Member* } Member ::= Field Method Function

5 A frame is a set of locations A dynamic frame (in the sense of Dafny) is an expression that denotes a frame Methods have modifies clauses Functions have reads clauses

6

7 Dynamic-frame specifications are useful and flexible A language design around dynamic frames can be simple Thus good in teaching? Specifications are verbose, but perhaps simplification techniques can be applied (like in Spec# or Chalice) Currently missing in Dafny: scopes for axioms

8 Pure methods are hard, functions are easy SMT solvers work better with ghost fields than with functions Reachability is not always necessary in specifications Sets and sequences are nice as value types Generics are a cinch Decreases bound checks can be more liberal than naïve translation

9 SMT solvers can be used for functional- correctness verification Inductive predicates seem useful cases fit nicely with matching triggers take us in the direction of the input languages of interactive theorem provers Need: better views/visualizations of program states to clarify error messages and, generally, what’s going on

10 Dafny is available as open source: http://boogie.codeplex.com http://boogie.codeplex.com


Download ppt "K. Rustan M. Leino RiSE, Microsoft Research 17 July 2009 JML seminar Dagstuhl, Germany."

Similar presentations


Ads by Google