作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2013, Vol. 39 ›› Issue (6): 76-81. doi: 10.3969/j.issn.1000-3428.2013.06.015

• 体系结构与软件技术 • 上一篇    下一篇

一种自适应的循环不变式生成方法

刘自恒a,曾庆凯a,b   

  1. (南京大学 a. 计算机科学与技术系;b. 计算机软件新技术国家重点实验室,南京 210093)
  • 收稿日期:2012-04-23 出版日期:2013-06-15 发布日期:2013-06-14
  • 作者简介:刘自恒(1987-),男,硕士研究生,主研方向:程序分析,信息安全;曾庆凯,教授、博士生导师
  • 基金资助:
    国家自然科学基金资助项目(61170070);国家科技支撑计划基金资助项目(2012BAK26B01);江苏省科技支撑计划基金资助项目(BE2010032)

An Adaptive Loop Invariant Generation Approach

LIU Zi-heng a, ZENG Qing-kai a,b   

  1. (a. Department of Computer Science and Technology; b. State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing 210093, China)
  • Received:2012-04-23 Online:2013-06-15 Published:2013-06-14

摘要: 基于条件赋值转换和自适应模板生成技术,提出一种自适应的的循环不变式生成方法。该方法在生成过程中综合考虑函数规范、循环本身、循环后操作等信息,有针对性地发现潜在的循环不变式,并在Frama-C平台上实现一个插件loopInv。实验结果表明,与invGen和gin-pink工具相比,loopInv的应用更加有效,可较好地完成多数程序的验证过程。

关键词: 验证程序, 循环不变式, 条件赋值转换, 模板, 插件

Abstract: This paper proposes an improved approach to infer loop invariants which is based on conditional assignment conversion and adaptive template. Many semantic factors are considered during the generation which makes it more automatic and adaptive. A plugin named loopInv is designed and implemented. Experimental results show that the analysis is more effective, compared with other selected tools, such as invGen and gin-pink, which makes most of the procedures verified successfully.

Key words: verification procedure, loop invariant, conditional assignment conversion, template, plugin

中图分类号: