dc.contributor.advisor | Martin Rinard | en_US |
dc.contributor.author | Lam, Patrick | en_US |
dc.contributor.author | Zee, Karen | en_US |
dc.contributor.author | Kuncak, Viktor | en_US |
dc.contributor.author | Rinard, Martin | en_US |
dc.contributor.other | Computer Architecture | en_US |
dc.date.accessioned | 2007-11-02T18:45:31Z | |
dc.date.available | 2007-11-02T18:45:31Z | |
dc.date.issued | 2007-10-31 | en_US |
dc.identifier.other | MIT-CSAIL-TR-2007-049 | en_US |
dc.identifier.uri | http://hdl.handle.net/1721.1/39419 | |
dc.description.abstract | Typestate systems allow the type of an object to change during its lifetime in the computation. Unlike standard type systems, they can enforce safety properties that depend on changing object states. We present a new, generalized formulation of typestate that models the typestate of an object through membership in abstract sets. This abstract set formulation enables developers to reason about cardinalities of sets, and in particular to state and verify the condition that certain sets are empty. We support hierarchical typestate classifications by specifying subset and disjointness properties over the typestate sets.We present our formulation of typestate in the context of the Hob program specification and verification framework. The Hob framework allows the combination of typestate analysis with powerful independently developed analyses such as shape analyses or theorem proving techniques. We implemented our analysis and annotated several programs (75-2500 lines of code) with set specifications. Our implementation includes several optimizations that improve the scalability of the analysis and a novel loop invariant inferencealgorithm that eliminates the need to specify loop invariants. We present experimental data demonstrating the effectiveness of our techniques. | en_US |
dc.format.extent | 30 p. | en_US |
dc.relation | Massachusetts Institute of Technology Computer Science and Artificial Intelligence Laboratory | en_US |
dc.relation | | en_US |
dc.title | Set Interfaces for Generalized Typestate and Data Structure Consistency Verification | en_US |