摘要
随着多核多线程并行执行方式的普及,并行程序形式化验证的需求日显突出。并行程序验证中执行流程的不确定性使验证的内容与目标的关系难以确定,且从并行程序直接进行性质验证会导致验证规模大。为此,提出一种基于分离逻辑的新的验证方法。该方法根据分离逻辑的程序语义描述兼有解释语义和公理语义的特点,从验证的性质出发,把要验证的性质式转换成并行语句序列的逻辑组合式,并进行整理和化简;然后,利用分离逻辑公理系统对语句序列进行验证,用验证了的断言集来求出性质的真值。实例进一步说明,此方法更有效,同时也简化了验证的规模。
With the popularity of multi-core, multi-thread and parallel execution, there is an increasing demand for for-real verification of parallel programs. The uncertainty of execution flows in parallel program verification makes it diffi-cult to determine the relation between verification contents and targets. Verifying directly from the parallel programs will lead to large-scale verification. To this end, we proposed a new verification method based on separation logic. On the basis of the feature that the semantics of separation logic' s programming language are both interpretive and axiomatic, our method transforms the property formulae to be verified into logical composition expression, and reforms and simpli- fies them. Then separation logic's axiom system is used to verify the expression and calculate the value of property for-mulae with verified assertions. Case studies further illustrate that the proposed method is effective and can reduce verifi-cation scales.
出处
《计算机科学》
CSCD
北大核心
2013年第10期148-154,共7页
Computer Science
基金
国家自然科学基金项目(61070192
91018008
61170240)
北京自然科学基金(4122041)
国家高技术研究发展计划(2007AA01Z414)
中国人民大学科学研究基金(中央高校基本科研业务费专项资金)项目成果(+12XNLF06)
贵州自然科学基金项目(J[2011]2328)资助
关键词
霍尔逻辑
分离逻辑
并行程序
逻辑组合式
性质验证
Hoare logic, Separation logic,Concurrent program,Combination expression,Property checking