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

计算机工程

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

基于隔离逻辑的并行程序可靠性验证方法

万 良1a,1b,2   

  1. (1. 中国人民大学 a. 信息学院;b. 数据工程与知识工程教育部重点实验室,北京 100872; 2. 贵州大学计算机科学与技术学院,贵阳 550025)
  • 收稿日期:2012-12-28 出版日期:2014-02-15 发布日期:2014-02-13
  • 作者简介:万 良(1974-),男,副教授、博士,主研方向:形式化验证,信息安全
  • 基金资助:
    贵州省自然科学基金资助项目(J[2011]2328);中央高校基本科研业务费专项基金资助项目(12XNLF06)

Reliability Verification Method for Concurrent Program Based on Separation Logic

WAN Liang 1a,1b,2   

  1. (1a. School of Information; 1b. Key Laboratory of Data Engineering and Knowledge Engineering, Ministry of Education, Renmin University of China, Beijing 100872, China;2. College of Computer Science & Technology, Guizhou University, Guiyang 550025, China)
  • Received:2012-12-28 Online:2014-02-15 Published:2014-02-13

摘要: 并行程序验证的复杂性在于执行流程的不确定性以及由此导致的执行规模变大,使得验证的内容和目标之间的关系不明确。为解决该问题,提出一种基于隔离逻辑的并行程序可靠性验证方法。通过变量的执行关系图,描述变量相关的语句及执行关系,将所需验证的程序性质逻辑式转换为变量并行语句序列的逻辑组合式,使得性质表达式与并发程序的语句相关联。根据逻辑组合式确定语句执行序列和前后件逻辑表达式,基于并发隔离逻辑的公理系统对语句执行序列进行验证,并根据验证结果对并发程序进行修改和完善。通过对银行柜台业务办理的功能模块验证结果表明该方法是有效的。

关键词: 霍尔逻辑, 隔离逻辑, 并行程序, 逻辑组合式, 可靠性验证

Abstract: The complexity of concurrent program verification is uncertain in running, therefore it is difficult to make clear the relation- ship of the verification contents and the verification aim. To resolve the problem, this paper proposes a reliability verification method for concurrent program based on separation logic. It describes an execution diagram about the relation and its statements, turns the logic expression of program property into the logic combination expression of variable concurrent statements sequence, and makes property expression associated with concurrent program statements. It confirms statement execution sequence and logic expression according to logic combination expression, verifies programs according to the expression based on separation logic and temporary logic, and modifies concurrent program by verification result. The Bank counter business function module is implemented based on the proposed verification method, and it shows that the method is effective.

Key words: Hoare logic, separation logic, concurrent program, logic combination expression, reliability verification

中图分类号: