Title of article :
Modular invariants for layered object structures
Author/Authors :
Peter Müller، نويسنده , , Arnd Poetzsch-Heffter ، نويسنده , , Gary T. Leavens، نويسنده ,
Issue Information :
دوهفته نامه با شماره پیاپی سال 2006
Abstract :
Classical specification and verification techniques support invariants for individual objects whose fields are primitive values, but do not allow sound modular reasoning about invariants involving more complex object structures. Such non-trivial object structures are common, and occur in lists, hash tables, and whenever systems are built in layers. A sound and modular verification technique for layered object structures has to deal with the well-known problem of representation exposure and the problem that invariants of higher layers are potentially violated by methods in lower layers; such methods cannot be modularly shown to preserve these invariants.
We generalize classical techniques to cover layered object structures using a refined semantics for invariants based on an ownership model for alias control. This semantics enables sound and modular reasoning. We further extend this ownership technique to even more expressive invariants that gain their modularity by imposing certain visibility requirements.
Keywords :
invariant , Object-oriented programming , Modular verification , Ownership , Visibility , JML
Journal title :
Science of Computer Programming
Journal title :
Science of Computer Programming