Resource Contracts for Java

Author:

Kersten Rody1,Schäf Martin2,Kahsai Temesghen3

Affiliation:

1. CMU Silicon Valley

2. SRI International

3. CMU Silicon Valley / NASA Ames

Abstract

Writing specifications about program behavior is hard. Writing specifications about non-functional effects such as resource usage is often even harder. If manually instrumenting the program is not an option, programmers have to rely on comment-based specification languages like JML to introduce ghost variables and other fairly abstract concepts that are complicated and hard to maintain. Even worse, most static analysis tools nowadays operate on bit- or bytecode and cannot process those type of specifications To address this problem, we propose a library-based specification formalism for time complexity in Java. The approach is inspired by the success of assertion libraries like CodeContracts and Guava. Our library provides a set of methods and enumerated types that allow the user to write complexity assertions in a 'human' readable form and without instrumenting the code. On the backend, we provide a bytecode rewriting tool that uses these assertions to automatically instrument the program with counter variables. The transformed program can then be checked via testing or off-the-shelf automated static analyzers

Publisher

Association for Computing Machinery (ACM)

Reference29 articles.

1. Verified resource guarantees using COSTA and KeY

2. P. Baudin P. Cuoq J.-C. Filliâtre C. Marché B. Monate Y. Moy and V. Prevosto. ACSL: ANSI/ISO C Specification Language ver. 1.5 2010. P. Baudin P. Cuoq J.-C. Filliâtre C. Marché B. Monate Y. Moy and V. Prevosto. ACSL: ANSI/ISO C Specification Language ver. 1.5 2010.

3. Linear Ranking with Reachability

4. Synthesis of Linear Ranking Functions

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3