{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,30]],"date-time":"2026-11-30T21:07:48Z","timestamp":1796072868583,"version":"4.11.3"},"reference-count":25,"publisher":"Centre pour la Communication Scientifique Directe (CCSD)","license":[{"start":{"date-parts":[[2011,6,23]],"date-time":"2011-06-23T00:00:00Z","timestamp":1308787200000},"content-version":"am","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"},{"start":{"date-parts":[[2011,6,23]],"date-time":"2011-06-23T00:00:00Z","timestamp":1308787200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"},{"start":{"date-parts":[[2011,6,23]],"date-time":"2011-06-23T00:00:00Z","timestamp":1308787200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"}],"funder":[{"DOI":"10.13039\/100014013","name":"UK Research and Innovation","doi-asserted-by":"publisher","award":["EP\/G068917\/1"],"award-info":[{"award-number":["EP\/G068917\/1"]}],"id":[{"id":"10.13039\/100014013","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2015,6,25]]},"abstract":"<jats:p>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.<\/jats:p>","DOI":"10.2168\/lmcs-7(2:17)2011","type":"journal-article","created":{"date-parts":[[2011,9,23]],"date-time":"2011-09-23T08:17:26Z","timestamp":1316765846000},"source":"Crossref","is-referenced-by-count":29,"title":["Amortised Resource Analysis with Separation Logic"],"prefix":"10.46298","volume":"Volume 7, Issue 2","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-4414-5047","authenticated-orcid":false,"given":"Robert","family":"Atkey","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"25203","published-online":{"date-parts":[[2011,6,23]]},"reference":[{"key":"10.2168\/LMCS-7(2:17)2011_albert07costa","unstructured":"Elvira Albert, Puri Arenas, Samir Genaim, German Puebla, and Damiano Zanardini. COSTA: Design and Implementation of a Cost and Termination Analyzer for Java Bytecode. In Frank S. de Boer, Marcello M. Bonsangue, Susanne Graf, and Willem P. de Roever, editors,\n                      Formal Methods for Components and Objects, 6th International Symposium, FMCO 2007, Amsterdam, The Netherlands, October 24-26, 2007, Revised Lectures\n                      , volume 5382 of\n                      Lecture Notes in Computer Science\n                      , pages 113-132. Springer, 2007."},{"key":"10.2168\/LMCS-7(2:17)2011_aspinall10tgc","doi-asserted-by":"crossref","unstructured":"David Aspinall, Robert Atkey, Kenneth MacKenzie, and Donald Sannella. Symbolic and Analytic Techniques for Resource Analysis of Java Bytecode. In Martin Wirsing, Martin Hofmann, and Axel Rauschmayer, editors,\n                      Proceedings of 5th International Symposium on Trustworthy Global Computing (TGC 2010)\n                      , volume 6084 of\n                      Lecture Notes in Computer Science\n                      , pages 1-22. Springer, 2010.","DOI":"10.1007\/978-3-642-15640-3_1"},{"issue":"3","key":"10.2168\/LMCS-7(2:17)2011_aspinall07program","doi-asserted-by":"crossref","first-page":"411","DOI":"10.1016\/j.tcs.2007.09.003","volume":"389","author":"David Aspinall, Lennart Beringer, Martin","year":"2007","journal-title":"Theor. Comput. Sci."},{"key":"10.2168\/LMCS-7(2:17)2011_DBLP:conf\/fmco\/AspinallMS07","unstructured":"David Aspinall, Patrick Maier, and Ian Stark. Safety guarantees from explicit resource management. In Frank S. de Boer, Marcello M. Bonsangue, Susanne Graf, and Willem P. de Roever, editors,\n                      Formal Methods for Components and Objects, 6th International Symposium, FMCO 2007, Amsterdam, The Netherlands, October 24-26, 2007, Revised Lectures\n                      , volume 5382 of\n                      Lecture Notes in Computer Science\n                      , pages 52-71. Springer, 2007."},{"key":"10.2168\/LMCS-7(2:17)2011_atkey10amortised","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-11957-6_6"},{"key":"10.2168\/LMCS-7(2:17)2011_berdine05symbolic","doi-asserted-by":"crossref","unstructured":"Josh Berdine, Cristiano Calcagno, and Peter W. O'Hearn. Symbolic execution with separation logic. In Kwangkeun Yi, editor,\n                      Programming Languages and Systems, Third Asian Symposium, APLAS 2005, Tsukuba, Japan, November 2-5, 2005, Proceedings\n                      , volume 3780 of\n                      Lecture Notes in Computer Science\n                      , pages 52-68. Springer, 2005.","DOI":"10.1007\/11575467_5"},{"key":"10.2168\/LMCS-7(2:17)2011_brotherston08cyclic","doi-asserted-by":"crossref","unstructured":"James Brotherston, Richard Bornat, and Cristiano Calcagno. Cyclic proofs of program termination in separation logic. In George C. Necula and Philip Wadler, editors,\n                      Proceedings of the 35th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2008, San Francisco, California, USA, January 7-12, 2008\n                      , pages 101-112. ACM, 2008.","DOI":"10.1145\/1328438.1328453"},{"issue":"5","key":"10.2168\/LMCS-7(2:17)2011_burton82","doi-asserted-by":"crossref","first-page":"205","DOI":"10.1016\/0020-0190(82)90015-1","volume":"14","author":"F. Warren Burton","year":"1982","journal-title":"Information Processing Letters"},{"issue":"1-2","key":"10.2168\/LMCS-7(2:17)2011_cervesato00resource","doi-asserted-by":"crossref","first-page":"133","DOI":"10.1016\/S0304-3975(99)00173-5","volume":"232","author":"Iliano Cervesato, Joshua S. Hodas, and F","year":"2000","journal-title":"Theor. Comput. Sci."},{"key":"10.2168\/LMCS-7(2:17)2011_chin08analysing","doi-asserted-by":"crossref","unstructured":"Wei-Ngan Chin, Huu Hai Nguyen, Corneliu Popeea, and Shengchao Qin. Analysing memory resource bounds for low-level programs. In Richard Jones and Stephen M. Blackburn, editors,\n                      Proceedings of the 7th International Symposium on Memory Management, ISMM 2008, Tucson, AZ, USA, June 7-8, 2008\n                      , pages 151-160. ACM, 2008.","DOI":"10.1145\/1375634.1375656"},{"key":"10.2168\/LMCS-7(2:17)2011_chin05memory","doi-asserted-by":"crossref","unstructured":"Wei-Ngan Chin, Huu Hai Nguyen, Shengchao Qin, and Martin C. Rinard. Memory usage verification for oo programs. In Chris Hankin and Igor Siveroni, editors,\n                      Static Analysis, 12th International Symposium, SAS 2005, London, UK, September 7-9, 2005, Proceedings\n                      , volume 3672 of\n                      Lecture Notes in Computer Science\n                      , pages 70-86. Springer, 2005.","DOI":"10.1007\/11547662_7"},{"key":"10.2168\/LMCS-7(2:17)2011_DBLP:conf\/tphol\/Chrzaszcz03","unstructured":"Jacek Chrzaszcz. Implementing Modules in the Coq System. In David A. Basin and Burkhart Wolff, editors,\n                      Theorem Proving in Higher Order Logics, 16th International Conference, TPHOLs 2003, Rom, Italy, September 8-12, 2003, Proceedings\n                      , volume 2758 of\n                      Lecture Notes in Computer Science\n                      , pages 270-286. Springer, 2003."},{"key":"10.2168\/LMCS-7(2:17)2011_gulwani09speed","doi-asserted-by":"crossref","unstructured":"Sumit Gulwani, Krishna K. Mehra, and Trishul M. Chilimbi. Speed: precise and efficient static estimation of program computational complexity. In Zhong Shao and Benjamin C. Pierce, editors,\n                      Proceedings of the 36th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2009, Savannah, GA, USA, January 21-23, 2009\n                      , pages 127-139. ACM, 2009.","DOI":"10.1145\/1480881.1480898"},{"key":"10.2168\/LMCS-7(2:17)2011_hoffmann10amortized","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-11957-6_16"},{"key":"10.2168\/LMCS-7(2:17)2011_hofmann-jost","doi-asserted-by":"publisher","DOI":"10.1145\/604131.604148"},{"key":"10.2168\/LMCS-7(2:17)2011_raja1","doi-asserted-by":"crossref","unstructured":"Martin Hofmann and Steffen Jost. Type-Based Amortised Heap-Space Analysis. In Peter Sestoft, editor,\n                      Programming Languages and Systems, 15th European Symposium on Programming, ESOP 2006, Held as Part of the Joint European Conferences on Theory and Practice of Software, ETAPS 2006, Vienna, Austria, March 27-28, 2006, Proceedings\n                      , volume 3924 of\n                      Lecture Notes in Computer Science\n                      , pages 22-37. Springer, 2006.","DOI":"10.1007\/11693024_3"},{"key":"10.2168\/LMCS-7(2:17)2011_raja2","unstructured":"Martin Hofmann and Dulma Rodriguez. Efficient Type-Checking for Amortised Heap-Space Analysis. In Erich Gr\u00e4del and Reinhard Kahle, editors,\n                      Computer Science Logic, 23rd international Workshop, CSL 2009, 18th Annual Conference of the EACSL, Coimbra, Portugal, September 7-11, 2009. Proceedings\n                      , volume 5771 of\n                      Lecture Notes in Computer Science\n                      , pages 317-331. Springer, 2009."},{"issue":"2","key":"10.2168\/LMCS-7(2:17)2011_hood-melville81","doi-asserted-by":"crossref","first-page":"50","DOI":"10.1016\/0020-0190(81)90030-2","volume":"13","author":"Robert Hood and Robert Melville","year":"1981","journal-title":"Information Processing Letters"},{"key":"10.2168\/LMCS-7(2:17)2011_ishtiaq01biassertion","doi-asserted-by":"publisher","DOI":"10.1145\/360204.375719"},{"issue":"2","key":"10.2168\/LMCS-7(2:17)2011_o'hearn99logic","doi-asserted-by":"crossref","first-page":"215","DOI":"10.2307\/421090","volume":"5","author":"P. O'Hearn and D. Pym","year":"1999","journal-title":"Bulletin of Symbolic Logic"},{"key":"10.2168\/LMCS-7(2:17)2011_okasaki98","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511530104"},{"key":"10.2168\/LMCS-7(2:17)2011_pym:ptsbi:2002","doi-asserted-by":"crossref","unstructured":"D. J. Pym.\n                      The Semantics and Proof Theory of the Logic of Bunched Implications\n                      , volume 26 of\n                      Applied Logic Series\n                      . Kluwer Academic Publishers, 2002.","DOI":"10.1007\/978-94-017-0091-7"},{"key":"10.2168\/LMCS-7(2:17)2011_restall","unstructured":"Greg Restall.\n                      An Introduction to Substructural Logics\n                      . Routledge, 2000."},{"key":"10.2168\/LMCS-7(2:17)2011_reynolds02separation","doi-asserted-by":"crossref","unstructured":"John C. Reynolds. Separation Logic: A Logic for Shared Mutable Data Structures. In\n                      17th IEEE Symposium on Logic in Computer Science (LICS 2002), 22-25 July 2002, Copenhagen, Denmark, Proceedings\n                      , pages 55-74. IEEE Computer Society, 2002.","DOI":"10.1109\/LICS.2002.1029817"},{"issue":"2","key":"10.2168\/LMCS-7(2:17)2011_tarjan85","doi-asserted-by":"crossref","first-page":"306","DOI":"10.1137\/0606031","volume":"6","author":"Robert Endre Tarjan","year":"1985","journal-title":"SIAM Journal on Algebraic and Discrete Methods 1985"}],"container-title":["Logical Methods in Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/arxiv.org\/pdf\/1104.1998v2","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/arxiv.org\/pdf\/1104.1998v2","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,11,30]],"date-time":"2026-11-30T20:23:59Z","timestamp":1796070239000},"score":1,"resource":{"primary":{"URL":"http:\/\/lmcs.episciences.org\/685"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2011,6,23]]},"references-count":25,"URL":"https:\/\/doi.org\/10.2168\/lmcs-7(2:17)2011","relation":{"is-same-as":[{"id-type":"arxiv","id":"1104.1998","asserted-by":"subject"},{"id-type":"doi","id":"10.48550\/arXiv.1104.1998","asserted-by":"subject"}]},"ISSN":["1860-5974"],"issn-type":[{"value":"1860-5974","type":"electronic"}],"subject":[],"published":{"date-parts":[[2011,6,23]]},"article-number":"685"}}