摘要
函数不变量检测是提高软件质量的一种有效方法.针对检测方法可能带来无效的函数不变量的缺陷,提出一种以抽象解释理论为基础的函数不变量的正确性验证方法.首先将函数不变量转化成多项式关系;其次结合多项式程序与最弱前置条件抽象解释分析多项式关系正确性的判断依据;最后构造多项式关系算法,凭借得到的结果验证函数不变量正确与否.同时通过一个C程序中的函数不变量为例对该验证方法进行说明.
The discovery of function invariant is an effective method for improving software quality. As the detecting may contain invalid invariant defects, this paper proposes an abstract interpretation based correct verification for functional invariant. Firstly functional invariants transfer foundation of the correctness of polynomial relations with to polynomial relations. Secondly we abstract analysis the polynomial program and the weakest precondition. Finally we construct polynomial algorithm and verify the function invariant is correct or not with the results obtained. As the same time we state this verification with functional invariant of an C program.
出处
《微电子学与计算机》
CSCD
北大核心
2012年第10期161-165,共5页
Microelectronics & Computer
基金
国家自然科学基金项目(60674100)
关键词
函数不变量
抽象解释
正确性验证
多项式关系
functional invariant
abstract interpretation
correct verification~ polynomial relations