From Low-Level Pointers to High-Level Containers
Kamil Dudka, Lukáš Holík, Petr Peringer et al. · arXiv (Cornell University) · 2015
We propose a method that transforms a C program manipulating containers using low-level pointer statements into an equivalent program where the containers are manipulated via calls of standard high-level container operations like push_back or pop_front. The input of our method is a C program annotated by a special form of shape invariants which can be obtained from current automatic shape analysers after a slight modification. The resulting program where the low-level pointer statements are summarized into high-level container operations is more understandable and (among other possible benefits) better suitable for program analysis. We have implemented our approach and successfully tested it through a number of experiments with list-based containers, including experiments with simplification of program analysis by separating shape analysis from analysing data-related properties.
Cited by 1 works. doi:10.48550/arxiv.1510.07995 Open-access PDF
Authors
References
- Abstract interpretation
- Parallelizing programs with recursive data structures
- Parametric shape analysis via 3-valued logic
- Local Reasoning about Programs that Alter Data Structures
- Cache-conscious structure layout
- Digging for data structures
- SLAyer: Memory Safety for Systems-Level Code
- On effectiveness of GC in Java
- Automatic Parallelization with Separation Logic
- Dynamic Data Structure Analysis for Java Programs