Authors
Wei-Ngan Chin, Huu Hai Nguyen, Shengchao Qin, Martin Rinard
Publication date
2005/9/7
Book
International Static Analysis Symposium
Pages
70-86
Publisher
Springer Berlin Heidelberg
Description
We present a new type system for an object-oriented (OO) language that characterizes the sizes of data structures and the amount of heap memory required to successfully execute methods that operate on these data structures. Key components of this type system include type assertions that use symbolic Presburger arithmetic expressions to capture data structure sizes, the effect of methods on the data structures that they manipulate, and the amount of memory that methods allocate and deallocate. For each method, we conservatively capture the amount of memory required to execute the method as a function of the sizes of the method’s inputs. The safety guarantee is that the method will never attempt to use more memory than its type expressions specify. We have implemented a type checker to verify memory usages of OO programs. Our experience is that the type system can precisely and effectively …
Total citations
20052006200720082009201020112012201320142015201620172018201920202021202220232024455919511851424511221
Scholar articles
WN Chin, HH Nguyen, S Qin, M Rinard - International Static Analysis Symposium, 2005