Hierarchical Shape Abstraction for Analysis of Free-List Memory Allocators
Authors:
Preprint
Abstract
We propose a hierarchical abstract domain for the analysis of free-list memory allocators that tracks shape and numerical properties about both the heap and the free lists. Our domain is based on Separation Logic extended with predicates that capture the pointer arithmetics constraints for the heap-list and the shape of the free-list. These predicates are combined using a hierarchical composition operator to specify the overlapping of the heap-list by the free-list. In addition to expressiveness, this operator leads to a compositional and compact representation of abstract values and simplifies the implementation of the abstract domain. The shape constraints are combined with numerical constraints over integer arrays to track properties about the allocation policies (best-fit, first-fit, etc). Such properties are out of the scope of the existing analyzers. We implemented this domain and we show its effectiveness on several implementations of free-list allocators.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- On Automated Lemma Generation for Separation Logic with Inductive Definitions2015
- Accurate Invariant Checking for Programs Manipulating Lists and Arrays with Infinite DataLecture Notes in Computer Science, 2012
- Program Analysis for Overlaid Data Structures2011
- Apron: A Library of Numerical Abstract Domains for Static Analysis2009
- Shape Analysis with Structural Invariant CheckersLecture Notes in Computer Science, 2007
- A Local Shape Analysis Based on Separation Logic2006
- Recency-Abstraction for Heap-Allocated Storage2006
- Beyond Reachability: Shape Abstraction in the Presence of Pointer ArithmeticLecture Notes in Computer Science, 2006
- Local Reasoning about Programs that Alter Data Structures2001
- Dynamic storage allocation: A survey and critical review1995