计算机科学 > 软件工程
[提交于 2014年1月7日]
标题:On Verifying Resource Contracts using Code Contracts
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this paper we present an approach to check resource consumption contracts using an off-the-shelf static analyzer. We propose a set of annotations to support resource usage specifications, in particular, dynamic memory consumption constraints. Since dynamic memory may be recycled by a memory manager, the consumption of this resource is not monotone. The specification language can express both memory consumption and lifetime properties in a modular fashion. We develop a proof-of-concept implementation by extending Code Contracts' specification language. To verify the correctness of these annotations we rely on the Code Contracts static verifier and a points-to analysis. We also briefly discuss possible extensions of our approach to deal with non-linear expressions.
提交历史
来自:EPTCS[v1] 2014年1月7日 星期二 00:00:00 UTC