CMU-CS-13-132
Computer Science Department
School of Computer Science, Carnegie Mellon University



CMU-CS-13-132

Object Propositions

Ligia Nistor, Jonathan Aldrich, Stephanie Balzer, Hannes Mehnert*

November 2013

CMU-CS-13-132.pdf


Keywords: Formal verification, object-oriented programming languages, Boogie, logic, abstract predicates, permissions

The presence of aliasing makes modular verification of object-oriented code difficult. If multiple clients depend on the properties of an object, one client may break a property that others depend on. We have developed a modular verification approach based on the novel abstraction of object propositions, which combine predicates and information about object aliasing. In our methodology, even if shared data is modified, we know that an object invariant specified by a client holds. Our permission system allows verification using a mixture of linear and nonlinear reasoning. This allows it to provide more modularity in some cases than competing separation logic approaches, because it can more effectively hide the exact aliasing relationships within a module. We validate our approach on an instance of the composite pattern that illustrates our system’s practicality. We implement our methodology in the intermediate verification language Boogie (of Microsoft Research), for the composite pattern example.

84 pages

*IT University of Copenhagen



Return to: SCS Technical Report Collection
School of Computer Science

This page maintained by reports@cs.cmu.edu