武汉大学自然科学学报(英文版)2023,Vol.28Issue(3) :246-256.DOI:10.1051/wujns/2023283246

Nonlinear Program Construction and Verification Method Based on Partition Recursion and Morgan's Refinement Rules

WANG Changjing CAO Zhongxiong YU Chuling WANG Changchang HUANG Qing ZUO Zhengkang
武汉大学自然科学学报(英文版)2023,Vol.28Issue(3) :246-256.DOI:10.1051/wujns/2023283246

Nonlinear Program Construction and Verification Method Based on Partition Recursion and Morgan's Refinement Rules

WANG Changjing 1CAO Zhongxiong 2YU Chuling 2WANG Changchang 1HUANG Qing 2ZUO Zhengkang1
扫码查看

作者信息

  • 1. College of Computer Information Engineering,Jiangxi Normal University,Nanchang 330022,Jiangxi,China;College of Digital Industry Academy,Jiangxi Normal University,Shangrao 334000,Jiangxi,China
  • 2. College of Computer Information Engineering,Jiangxi Normal University,Nanchang 330022,Jiangxi,China
  • 折叠

Abstract

The traditional program refinement strategy cannot be refined to an executable program,and there are issues such as low verifi-cation reliability and automation.To solve the above problems,this paper proposesa nonlinear program construction and verification method based on partition recursion and Morgan's refinement rules.First,we use recursive definition technique to characterize the initial specification.The specification is then transformed into GCL(Guarded Command Language)programs using loop invariant derivation and Morgan's refinement rules.Furthermore,VCG(Verification Condition Generator)is used in the GCL program to generate the verification condition automatically.The Isabelle theorem prover then validates the GCL program's correctness.Finally,the GCL code generates a C++executable program automatically via the conversion system.The effectiveness of this method is demonstrated using binary tree preorder traversal program construction and verification as an example.This method addresses the problem that the construction process's loop in-variant is difficult to obtain and the refinement process is insufficiently detailed.At the same time,the method improves verification pro-cess automation and reduces the manual verification workload.

Key words

program construction/partition recursion/Morgan's refinement rules/loop invariant/VCG/Isabelle theorem prover

引用本文复制引用

基金项目

National Natural Science Foundation of China(62262031)

Science and Technology Key Project of Education Department of Jiangxi Province(GJJ2200302)

Science and Technology Key Project of Education Department of Jiangxi Province(GJJ210307)

Graduate Innovative Special Fund Projects of Jiangxi Province(YJS2022064)

出版年

2023
武汉大学自然科学学报(英文版)
武汉大学

武汉大学自然科学学报(英文版)

CSTPCDCSCD北大核心
影响因子:0.066
ISSN:1007-1202
参考文献量10
段落导航相关论文