Repository logo
Log in(current)
Repository logoMIT Open ScholarshipDSpace@MIT
  1. Home
  2. Computer Science and Artificial Intelligence Lab (CSAIL)
  3. CSAIL Digital Archive
  4. CSAIL Technical Reports (July 1, 2003 - present)
  5. Set Interfaces for Generalized Typestate and Data Structure Consistency Verification

Set Interfaces for Generalized Typestate and Data Structure Consistency Verification

Thumbnail Image
Download
Name

MIT-CSAIL-TR-2007-049.pdf

Size

1.2 MB

Format

Adobe PDF

Checksum (MD5)

72cef87a24f76d7d6e37689909b3d4b4

Thumbnail Image
Download
Name

MIT-CSAIL-TR-2007-049.ps

Size

35.12 MB

Format

PostScript

Checksum (MD5)

e0ca98298ea7d85763acc730ca0cef40

Author(s)
Lam, Patrick
•
Zee, Karen
•
Kuncak, Viktor
•
Rinard, Martin
Advisor(s)
Martin Rinard
Date Issued
October 31, 2007
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.
Persistent DSpace Link
http://hdl.handle.net/1721.1/39419
Repository logo
PrivacyPermissionsAccessibilityContact us
Repository logo
Notify us about copyright concerns.