Projects per year
Abstract
Type-based amortised resource analysis following Hofmann and Jost—where resources are associated with individual elements of data structures and doled out to the programmer under a linear typing discipline—have been successful in providing concrete resource bounds for functional programs, with good support for inference. In this work we translate the idea of amortised resource analysis to imperative pointer-manipulating languages by embedding a logic of resources, based on the affine intuitionistic Logic of Bunched Implications, within Separation Logic. The Separation Logic component allows us to assert the presence and shape of mutable data structures on the heap, while the resource component allows us to state the consumable resources associated with each member of the structure. We present the logic on a small imperative language, based on Java bytecode, with procedures and mutable heap. We have formalised the logic and its soundness property within the Coq proof assistant and extracted a certified verification condition generator. We also describe an proof search procedure that allows generated verification conditions to be discharged while using linear programming to infer consumable resource annotations. We demonstrate the logic on some examples, including proving the termination of in-place list reversal on lists with cyclic tails.
Original language | English |
---|---|
Article number | 17 |
Journal | Logical Methods in Computer Science |
Volume | 7 |
Issue number | 2 |
DOIs | |
Publication status | Published - 23 Jun 2011 |
Keywords
- separation logic
- resource analysis
- consumable resources
Fingerprint
Dive into the research topics of 'Amortised resource analysis with separation logic'. Together they form a unique fingerprint.Projects
- 1 Finished
-
Categorical Foundations of Indexed Programming
Johann, P. (Principal Investigator) & Ghani, N. (Co-investigator)
EPSRC (Engineering and Physical Sciences Research Council)
1/07/09 → 31/12/12
Project: Research
Research output
- 39 Citations
- 1 Conference contribution book
-
Amortised resource analysis with separation logic
Atkey, R., 2010, Proceedings of 19th European Symposium on Programming, ESOP 2010. Gordon, A. (ed.). Springer, Vol. 6012. p. 85-103 (Lecture Notes in Computer Science; vol. 6012).Research output: Chapter in Book/Report/Conference proceeding › Conference contribution book
Open AccessFile116 Downloads (Pure)