Interprocedural Shape Analysis for Recursive Programs [chapter]

Noam Rinetzky, Mooly Sagiv
2001 Lecture Notes in Computer Science  
A shape-analysis algorithm statically analyzes a program to determine information about the heap-allocated data structures that the program manipulates. The results can be used to optimize, understand, debug, or verify programs. Existing algorithms are quite imprecise in the presence of recursive procedure calls. This is unfortunate, since recursion provides a natural way to manipulate linked data structures. We present a novel technique for shape analysis of recursive programs. An algorithm
more » ... ed on our technique has been implemented. It handles programs manipulating linked lists written in a subset of C. The algorithm is significantly more precise than existing algorithms. For example, it can verify the absence of memory leaks in many recursive programs; this is beyond the capabilities of existing algorithms.
doi:10.1007/3-540-45306-7_10 fatcat:ky2oosu4dve5be6ytjjlgvuzya