摘要
构造不变式是程序验证的重要组成部分,而开源工具Interproc能对简单的程序设计语言构造线性不变式。基于Interproc和C程序编译工具CIL,针对简化的C程序设计并实现了自动构造数值型程序变量线性不变式的工具CILinear,并与Interproc进行了比较。实验表明CILinear能有效地构造线性不变式,并且比Interproc支持的语法更多。通过实例讨论了CILinear在程序验证中的实际应用。
Constructing program invariants is an important part of program verification and Interproc is an open-source tool capable of constructing linear invariant of a simple language.This paper designed and implemented a tool CILinear for automatic generation of linear invariant among numeric variables of simplified C programs based on Interproc and C compiler tool,and it is showed that CILinear can construct linear invariant effectively and deal with more syntax units.The application of CILinear in program verification was also discussed by program codes.
出处
《计算机科学》
CSCD
北大核心
2010年第12期91-95,共5页
Computer Science
基金
国家自然科学基金(60703075
90718017)
国家教育部博士点基金(20070006055)资助
关键词
线性不变式
程序验证
数值变量
抽象域
超图
Linear invariant
Program verification
Numeric variable
Abstract domain
Hypergraph