## Existential heap abstraction entailment is undecidable (2003)

### Cached

### Download Links

- [lara.epfl.ch]
- [lara.epfl.ch]
- [www.cag.lcs.mit.edu]
- [www.cag.csail.mit.edu]
- [people.csail.mit.edu]
- [people.csail.mit.edu]
- [www.mit.edu]
- DBLP

### Other Repositories/Bibliography

Venue: | In 10th Annual International Static Analysis Symposium (SAS 2003 |

Citations: | 14 - 7 self |

### BibTeX

@INPROCEEDINGS{Kuncak03existentialheap,

author = {Viktor Kuncak and Martin Rinard},

title = {Existential heap abstraction entailment is undecidable},

booktitle = {In 10th Annual International Static Analysis Symposium (SAS 2003},

year = {2003},

pages = {11--13}

}

### Years of Citing Articles

### OpenURL

### Abstract

Abstract. In this paper we study constraints for specifying properties of data structures consisting of linked objects allocated in the heap. Motivated by heap summary graphs in role analysis and shape analysis we introduce the notion of regular graph constraints. A regular graph constraint is a graph representing the heap summary; a heap satisfies a constraint if and only if the heap can be homomorphically mapped to the summary. Regular graph constraints form a very simple and natural fragment of the existential monadic second-order logic over graphs. One of the key problems in a compositional static analysis is proving that procedure preconditions are satisfied at every call site. For role analysis, precondition checking requires determining the validity of implication, i.e., entailment of regular graph constraints. The central result of this paper is the undecidability of regular graph constraint entailment. The undecidability of the entailment problem is surprising because of the simplicity of regular graph constraints: in particular, the satisfiability of regular graph constraints is decidable. Our undecidability result implies that there is no complete algorithm for statically checking procedure preconditions or postconditions, simplifying static analysis results, or checking that given analysis results are correct. While incomplete conservative algorithms for regular graph constraint entailment checking are possible, we argue that heap specification languages should avoid second-order existential quantification in favor of explicitly specifying a criterion for summarizing objects.