期刊文献+
共找到1篇文章
< 1 >
每页显示 20 50 100
A Method to Deduce and Synthesize the Dafny Programs
1
作者 WANG Changjing DING Xilong +4 位作者 HE Jiangfei CHEN Xi HUANG Qing LUO Haimei ZUO Zhengkang 《Wuhan University Journal of Natural Sciences》 CAS CSCD 2021年第6期481-488,共8页
We propose a systematic method to deduce and synthesize the Dafny programs.First,the specification of problem is described in strict mathematical language.Then,the derivation process uses program specification transfo... We propose a systematic method to deduce and synthesize the Dafny programs.First,the specification of problem is described in strict mathematical language.Then,the derivation process uses program specification transformation technology to perform equivalent transformation.Furthermore,Dafny program is synthesized through the obtained recursive relationship and loop invariants.Finally,the functional correctness of Dafny program is automatically verified by Dafny verifier or online tool.Through this method,we deduce and synthesize Dafny programs for many typical problems such as the cube sum problem,the minimum(or maximum)contiguous subarray problems,several searching problems,several sorting problems,and so on.Due to space limitation,we only illustrate the development process of Dafny programs for two typical problems:the minimum contiguous subarray problem and the new local bubble sorting problem.It proves that our method can effectively improve the correctness and reliability of Dafny program developed.What’s more,we demonstrate the potential of the deductive synthesis method by developing a new local bubble Sorting program. 展开更多
关键词 Dafny deductive synthesis specification transformation technology recursive relationships loop invariants
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部