RESEARCH NOTES-GMRepair: Graph Mining Template-Based Automated Software Repair

被引:0
|
作者
Cao, Heling [1 ,2 ,3 ,4 ]
Guo, Yanlong [1 ,2 ,3 ,4 ]
Wang, Yun [1 ,2 ,3 ,4 ]
Tian, Fangchao [1 ,2 ,3 ,4 ]
Wang, Zhaolong [1 ,2 ,3 ,4 ]
Chu, Yonghe [1 ,2 ,3 ,4 ]
Deng, Miaolei [1 ,2 ,3 ,4 ]
Wang, Panpan [1 ,2 ,3 ,4 ]
He, Zhenghao [1 ,2 ,3 ,4 ]
Wei, Shuting [1 ,2 ,3 ,4 ]
机构
[1] Henan Univ Technol, Key Lab Grain Informat Proc & Control, Minist Educ, Zhengzhou 450001, Peoples R China
[2] Henan Univ Technol, Henan Key Lab Grain Photoelect Detect & Control, Zhengzhou 450001, Peoples R China
[3] Henan Univ Technol, Coll Informat Sci & Engn, Zhengzhou 450001, Peoples R China
[4] Henan Int Joint Lab Grain Informat Proc, Zhengzhou 450001, Peoples R China
基金
中国国家自然科学基金;
关键词
Software bug repair; repair templates; genetic programming; test case sequencing; PROGRAM REPAIR;
D O I
10.1142/S0218194025500068
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
With the increasing scale and complexity of software recently, automated software bug repair has grown in importance. However, the current automated software bug repair process suffers from issues such as coarse-grained repair granularity and poor patch quality. To address these problems, we propose a graph mining template-based automatic software repair (GMRepair) to improve the performance of automated software bug repair. First, this approach adopts the Ochiai fault localization technique to locate and generate a list of suspicious defect statements. We utilize the GumTree tool to parse the bug and repair program files, generating edit scripts. These edit scripts are then transformed into a graphical representation. Second, we utilize a frequent graph miner to obtain graph mining templates by matching the context of the suspicious statements with the context of the graph mining templates, generating an initial population for them. The buggy program is evolved using genetic programming through mutation and crossover operations, generating new individuals. Finally, we sequentially pass the candidate patches (CPs) through corresponding test cases and prioritize the test cases using priority sorting techniques. Patches that fail to pass the test cases are filtered out, and the patches that pass the test cases are output. We conducted the experiments using two datasets, QuixBugs and Defects4J. In Defects4J, the GMRepair successfully repaired 41 defects, while in QuixBugs, it successfully repaired 15 defects. Compared to the existing methods, GMRepair offers a higher success rate and efficiency in defect repair.
引用
收藏
页数:23
相关论文
共 50 条
  • [21] ChemT, an open-source software for building template-based chemical libraries
    Abreu, R. M. V.
    Froufe, H. J. C.
    Daniel, P. O. M.
    Queiroz, M. J. R. P.
    Ferreira, I. C. F. R.
    SAR AND QSAR IN ENVIRONMENTAL RESEARCH, 2011, 22 (5-6) : 603 - 610
  • [22] Systematic and Comparative Evaluation of Software Programs for Template-Based Modeling of Protein Structures
    Jang, Woo Dae
    Lee, Sang Mi
    Kim, Hyun Uk
    Lee, Sang Yup
    BIOTECHNOLOGY JOURNAL, 2020, 15 (06)
  • [23] Template-Based Code Generation Framework for Data-Driven Software Development
    Shinde, Kshitija
    Sun, Yu
    2016 4TH INTL CONF ON APPLIED COMPUTING AND INFORMATION TECHNOLOGY/3RD INTL CONF ON COMPUTATIONAL SCIENCE/INTELLIGENCE AND APPLIED INFORMATICS/1ST INTL CONF ON BIG DATA, CLOUD COMPUTING, DATA SCIENCE & ENGINEERING (ACIT-CSII-BCD), 2016, : 55 - 60
  • [24] Automated template-based brain localization and extraction for fetal brain MRI reconstruction
    Tourbier, Sebastien
    Velasco-Annis, Clemente
    Taimouri, Vahid
    Hagmann, Patric
    Meuli, Reto
    Warfield, Simon K.
    Cuadra, Meritxell Bach
    Gholipour, Ali
    NEUROIMAGE, 2017, 155 : 460 - 472
  • [25] Template engineering based framework for automated software development
    Fang, Min
    Ying, Jing
    Wu, Minghui
    2006 10TH INTERNATIONAL CONFERENCE ON COMPUTER SUPPORTED COOPERATIVE WORK IN DESIGN, PROCEEDINGS, VOLS 1 AND 2, 2006, : 437 - 442
  • [26] A Graph-based Data Mining Approach for Template Recognition using Large Log Datasets in Software Systems
    Julio, Claudia Crespo
    Ithwaja, Ahmed S.
    Woungang, Isaac
    Anpalagan, Alagan
    2024 21ST INTERNATIONAL CONFERENCE ON ELECTRICAL ENGINEERING/ELECTRONICS, COMPUTER, TELECOMMUNICATIONS AND INFORMATION TECHNOLOGY, ECTI-CON 2024, 2024,
  • [27] Learning soft domain constraints in a factor graph model for template-based information extraction
    ter Horst, Hendrik
    Hartung, Matthias
    Cimiano, Philipp
    Brazda, Nicole
    Mueller, Hans Werner
    Klinger, Roman
    DATA & KNOWLEDGE ENGINEERING, 2020, 125 (125)
  • [28] Formal Template-Based Generation of Attack-Defence Trees for Automated Security Analysis
    Bryans, Jeremy
    Liew, Lin Shen
    Nguyen, Hoang Nga
    Sabaliauskaite, Giedre
    Shaikh, Siraj Ahmed
    INFORMATION, 2023, 14 (09)
  • [29] Supporting Software Process Improvement in Very Small Entities through a Template-based Guide
    Trujillo, Miguel Morales
    Ibarguengoitia, Guadalupe E.
    Pino, Francisco J.
    Piattini, Mario
    22ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING & KNOWLEDGE ENGINEERING (SEKE 2010), 2010, : 704 - 709
  • [30] Template-based automated motion correction for dynamic SPECT during myocardial perfusion imaging
    McCandless, BK
    Cooper, JA
    RADIOLOGY, 1996, 201 : 1480 - 1480