基于秩函数合成的程序终止性验证综述OA
Survey on program termination based on ranking function synthesis
秩函数合成是程序终止性验证的主流方法之一,其基本思想是通过构造程序变量状态变换的良序映射来证明程序的终止性.近年来,深度学习技术在秩函数合成中的应用取得了初步进展,在一定程度上缓解了形式化方法对程序分析与逻辑推理等专业知识的依赖,同时为该领域的进一步研究提供了新的思路.为给后续研究提供理论背景和技术参考,首先介绍了秩函数的基本概念,从基于形式化方法和基于学习方法两个方面出发,系统梳理了单一秩函数、字典序秩函数、多阶段秩函数以及神经秩函数合成的代表性工作;在此基础上,收集了相关研究中的程序样例,构建并公开了一个大规模的线性简单循环人工合成数据集,为基于学习方法的研究提供数据支持.最后,针对现有研究在数据集构造、网络结构与训练策略、验证成本等方面的不足,对未来的研究方向进行了展望.
Ranking function synthesis is one of the most widely used techniques for program termination verification.It proves program termination by constructing a well-founded mapping over program state transitions.In recent years,the application of deep learning techniques to the synthesis of ranking functions has shown phase progress,which has partially reduced the re-liance of formal approaches on expertise in program analysis and logical reasoning,while opening new perspectives for further exploration in this field.To provide a theoretical background and technical references for future studies,this paper introduced the fundamental concepts of ranking functions and then systematically reviewed representative work on single ranking func-tions,lexicographic ranking functions,multiphase ranking functions,and neural ranking functions,from both formal-method-based and learning-based perspectives.Based on this review,this paper collected program examples from existing studies and constructed a large-scale synthetic dataset of linear simple loops to support learning-based research.Finally,this paper dis-cussed potential directions for future research based on current limitations in dataset construction,network architecture,trai-ning strategies,and verification cost.
蔡裕星;陈长波;李轶
中国科学院重庆绿色智能技术研究院,重庆 400714||中国科学院大学重庆学院,重庆 400714||重庆邮电大学计算机科学与技术学院,重庆 400065中国科学院重庆绿色智能技术研究院,重庆 400714||中国科学院大学重庆学院,重庆 400714中国科学院重庆绿色智能技术研究院,重庆 400714||中国科学院大学重庆学院,重庆 400714
信息技术与安全科学
程序终止性秩函数合成形式化方法机器学习深度学习神经秩函数
program terminationranking function synthesisformal methodsmachine learningdeep learningneural ranking function
《计算机应用研究》 2026 (3)
641-650,10
国家重点研发计划资助项目(2023YFA1009402)重庆英才计划青年拔尖项目(2021000263)
评论