### Abstract

Verification of large programs is impossible without proof techniques that allow local reasoning and information hiding. In this paper, we take the approach of modeling the heap as a collection of partial functions with disjoint domains. We call each such partial function a linear map. Programmers may select objects from linear maps, update linear maps or transfer addresses and their contents from one linear map to another. Programmers may also declare new linear map variables and pass linear maps as arguments to procedures. The program logic prevents any of these operations from duplicating locations and thereby breaking the key heap representation invariant: the domains of all linear maps remain disjoint. Linear maps facilitate modular reasoning because programs that use them are also able to use simple, classical frame rules to preserve information about heap state across procedure calls. We illustrate our approach through examples, prove that our verification rules are sound, and show that operations on linear maps may be erased and replaced by equivalent operations on a single, global heap.

Original language | English (US) |
---|---|

Title of host publication | PLPV'11 - Proceedings of the 5th ACM Workshop on Programming Languages Meets Program Verification |

Pages | 3-14 |

Number of pages | 12 |

DOIs | |

State | Published - Mar 7 2011 |

Event | 5th ACM Workshop on Programming Languages Meets Program Verification, PLPV 2011 - Austin, TX, United States Duration: Jan 29 2011 → Jan 29 2011 |

### Publication series

Name | PLPV'11 - Proceedings of the 5th ACM Workshop on Programming Languages Meets Program Verification |
---|

### Other

Other | 5th ACM Workshop on Programming Languages Meets Program Verification, PLPV 2011 |
---|---|

Country | United States |

City | Austin, TX |

Period | 1/29/11 → 1/29/11 |

### All Science Journal Classification (ASJC) codes

- Computational Theory and Mathematics
- Computer Science Applications

## Fingerprint Dive into the research topics of 'Linear maps'. Together they form a unique fingerprint.

## Cite this

*PLPV'11 - Proceedings of the 5th ACM Workshop on Programming Languages Meets Program Verification*(pp. 3-14). (PLPV'11 - Proceedings of the 5th ACM Workshop on Programming Languages Meets Program Verification). https://doi.org/10.1145/1929529.1929531