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

模型驱动的Dafny程序形式化生成与自动验证
引用本文:王昌晶,贺江飞,罗海梅,左正康,许帆.模型驱动的Dafny程序形式化生成与自动验证[J].江西师范大学学报(自然科学版),2020,44(4):378-384.
作者姓名:王昌晶  贺江飞  罗海梅  左正康  许帆
作者单位:1.江西师范大学计算机信息工程学院,江西 南昌 330022; 2.江西师范大学物理与通信电子学院,江西 南昌 330022; 3.江西师范大学江西省光电子与通信重点实验室,江西 南昌 330022
基金项目:国家自然科学基金;江西省科技厅项目
摘    要:Dafny是一种内置规范结构的编程语言和静态程序证明器,它能验证程序的功能正确性以及将证明过程自动化,这既提高了软件开发的效率,又极大增强了软件开发的可靠性.该文探索了一种模型驱动的Dafny程序形式化生成的方法.首先,从问题的Radl规约出发,根据规约变换技术得到其Radl算法; 然后,根据PAR方法中循环不变式开发新策略得到问题的循环不变式; 最后,在Radl算法和循环不变式基础上利用模型等价转换规则生成Dafny程序,并由Dafny证明器自动验证其功能正确性.用该方法解决了2个典型问题的算法程序开发与验证,证实了该方法能够有效地提高Dafny程序的生成效率和可靠性.

关 键 词:模型驱动  Dafny程序  循环不变式  形式化生成  自动验证

The Model-Driven Dafny Program Generation and Automatic Verification
WANG Changjing,HE Jiangfei,LUO Haimei,' target="_blank" rel="external">,ZUO Zhengkang,XU Fan.The Model-Driven Dafny Program Generation and Automatic Verification[J].Journal of Jiangxi Normal University (Natural Sciences Edition),2020,44(4):378-384.
Authors:WANG Changjing  HE Jiangfei  LUO Haimei  " target="_blank">' target="_blank" rel="external">  ZUO Zhengkang  XU Fan
Institution:1.College of Computer Information Engineering,Jiangxi Normal University,Nanchang Jiangxi 330022,China; 2.College of Physics and Communication Electronics,Jiangxi Normal University,Nanchang Jiangxi 330022,China; 3.Key Laboratory of Photoelectronics and Telecommunication of Jiangxi Province,Jiangxi Normal University,Nanchang Jiangxi 330022,China
Abstract:Dafny is a programming language with built-in specification structure and a static program prover.It can verify the program's functional correctness and automate the certification process.This not only improves the efficiency of software development,but also greatly enhances the reliability of software development.A model-driven method for the formal generation of Dafny programs is explored in the paper.Firstly,the Radl algorithm is derived from the Radl specification of the problem according to the protocol transformation technology.Then,a new strategy is developed based on the loop invariant of the PAR method to obtain the loop invariance of the problem.Finally,based on Radl algorithm and loop invariant,Dafny program is generated using model equivalent transformation rules,and its functional correctness is automatically verified by Dafny prover.The method proposed in this paper solves two typical problems of algorithm program development and verification,and it is proved that this method can effectively improve the generation efficiency and reliability of Dafny programs.
Keywords:model driven  Dafny program  loop invariant  formal generation  automatic verification
本文献已被 万方数据 等数据库收录!
点击此处可从《江西师范大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《江西师范大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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