首页 | 本学科首页   官方微博 | 高级检索  
     

基于QBF的循环不变式构造技术
引用本文:陈石坤,李舟军.基于QBF的循环不变式构造技术[J].计算机工程与科学,2010,32(9):76-80.
作者姓名:陈石坤  李舟军
作者单位:1. 国防科学技术大学计算机学院,湖南,长沙,410073
2. 北京航空航天大学计算机学院,北京,100191
基金项目:国家自然科学基金资助项目,教育部高等学校博士学科点专项基金资助项目 
摘    要:构造循环不变式是程序验证的核心问题之一。主流的循环不变式构造方法通常假设程序中的变量在无限数域上取值,然而程序执行过程中变量都是用有限长度的位向量来表示,无限数域上的循环不变式在有限数域的程序中可能不再是不变式,反之亦然。针对这一问题,本文给出一种基于QBF求解的构造有限数域上循环不变式的方法。该方法可用于构造类型丰富的不变式,包括线性(或多项式)等式(或不等式)不变式,支持加、减、乘、除、移位、位操作等,允许不变式中出现量词。本文也例证了该方法在程序终止性证明、循环上界分析、程序正确性证明等方面的应用价值。

关 键 词:程序验证  循环不变式  带量词的布尔公式
收稿时间:2010-03-10
修稿时间:2010-06-20

Constructing Program Invariants Based on QBF
CHEN Shi-kun,LI Zhou-jun.Constructing Program Invariants Based on QBF[J].Computer Engineering & Science,2010,32(9):76-80.
Authors:CHEN Shi-kun  LI Zhou-jun
Affiliation:(1.School of Computer Science,National University of Defense Technology,Changsha 410073; 2.School of Computer Science,Beihang University,Beijing 100083,China)
Abstract:Constructing loop invariants is one of the key problems of program verification. State of the art approaches to invariant generation usually assume that program variables are evaluated over infinite domains such as rational or integer. Actually,during the execution of a program,all variables are expressed using bit vectors with a limited width and evaluated over finite domains. Many invariants suitable for infinite domains may be invalid in finite domains,and vice versa. This paper proposes an approach based on QBF (Quantified Boolean Formula) to construct invariants for programs whose variables are evaluated over finite domains. It can be used to discover a rich class of invariants including linear (or polynomial) equality (or inequality) invariants involving such operations as addition,multiplication,division,shift,bitwise operation,even quantifiers. And we also exemplify the usefulness of this approach in the termination analysis,the bound analysis and the  verification of correctness.
Keywords:program verification  loop Invariant  QBF
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号