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

基于变型空间代数的自动程序修复方法
引用本文:徐勇,毋国庆,袁梦霆,黄勃.基于变型空间代数的自动程序修复方法[J].电子学报,2017,45(10):2498-2505.
作者姓名:徐勇  毋国庆  袁梦霆  黄勃
作者单位:1. 广东肇庆学院数学与统计学院,广东肇庆,526061;2. 武汉大学计算机学院,湖北武汉,430072;3. 上海工程技术大学电子电气工程学院计算机系,上海,201620
基金项目:国家自然科学基金(61640221;61603242),上海高校青年教师培养资助计算专项基金(ZZGCD15088),肇庆学院科研基金(201734),肇庆市科技创新指导类项目(201704030409)
摘    要:基于代码枚举的自动程序修复方法借助变异算子对程序中错误语句进行变更操作,从而得到程序修复解.由于缺乏文法制导及变异算子数量的有限性,该方法的有效性有待进一步提高.本文提出一种基于变型空间代数的自动程序修复方法,即将回归测试用例集视为训练实例,通过归纳学习得到程序中出错语句的修复解.具体而言,该方法包括以下特征:(1)从文法到变型空间的自动构造生成方法;(2)根据变型空间树中变型空间的不同类别,分别给出一致性定义;(3)结合静态及类型检查的变型空间代数运算.实验结果表明:与基于代码枚举及基于搜索的修复方法相比,本文提出的方法在修复成功率方面更具优势;与此同时,方法中的静态及类型检查机制可以有效地削减假设空间的规模.

关 键 词:自动程序修复  变型空间代数  归纳学习  上下文无关文法  生成树
收稿时间:2016-11-11

Automatic Program Repair Based on Version-Space Algebra
XU Yong,WU Guo-qing,YUAN Men-ting,HUANG Bo.Automatic Program Repair Based on Version-Space Algebra[J].Acta Electronica Sinica,2017,45(10):2498-2505.
Authors:XU Yong  WU Guo-qing  YUAN Men-ting  HUANG Bo
Abstract:Automatic program repair based on code enumeration exploits mutation operators to fix buggy programs by mutating the faulty statements.Its effectiveness is hindered by lack of grammar-directed mutation and limited number of mutation operators.This paper proposes a new automatic program repair method based on version space algebra,which uses inductive learning techniques to automatically produce repair solution for the faulty statement of buggy program.Specifically,the proposed method has the following features:(1) automatic derivation of version spaces from grammars,(2) defining consistency of version space according to its type,and (3) combining static and type checking with version space algebra.Experimental results show the proposed method outperforms other existing automatic program repair approaches in terms of repair success rate,and static and type-checking mechanism can prune the hypothesis space efficiently.
Keywords:automatic program repair  version-space algebra  inductive learning  context-free grammar  derivative tree
本文献已被 万方数据 等数据库收录!
点击此处可从《电子学报》浏览原始摘要信息
点击此处可从《电子学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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