Dissecting Copy/Delete/Replace/Swap mutations: Insights from a GIN Case Study

被引:1
作者
Licorish, Sherlock A. [1 ]
Wagner, Markus [2 ]
机构
[1] Univ Otago, Dept Informat Sci, Dunedin, New Zealand
[2] Univ Adelaide, Sch Comp Sci, Adelaide, SA, Australia
来源
PROCEEDINGS OF THE 2022 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE COMPANION, GECCO 2022 | 2022年
关键词
D O I
10.1145/3520304.3533970
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Research studies are increasingly critical of publicly available code due to evidence of faults. This has led researchers to explore ways to improve such code, with static analysis and genetic code improvement previously singled out. Previous work has evaluated the feasibility of these techniques, using PMD (a static analysis tool) and GIN (a program repair tool) for enhancing Stack Overflow Java code snippets. Results reported in this regard pointed to the potential of these techniques, especially in terms of GIN's removal of PMD's performance faults from 58 programs. We use a contextual lens to explore these mutations in this study, to evaluate the promise of these techniques. The outcomes show that while the programs were syntactically correct after GIN's mutations (i.e., they compiled), many of GIN's mutations changed the semantics of the code, rendering its purpose questionable. However, certain code mutations tend to retain code semantics more than others. In addition, GIN's mutations at times affected PMD's parsing ability, potentially increasing false negatives. Overall, while these approaches may prove useful, full utility may not be claimed at this time. For enhancing the outcomes of these approaches, we outline ways to improve the utility of these techniques and multiple future research directions.
引用
收藏
页码:1940 / 1945
页数:6
相关论文
共 9 条
  • [1] Gin: Genetic Improvement Research Made Easy
    Brownlee, Alexander E. I.
    Petke, Justyna
    Alexander, Brad
    Barr, Earl T.
    Wagner, Markus
    White, David R.
    [J]. PROCEEDINGS OF THE 2019 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE (GECCO'19), 2019, : 985 - 993
  • [2] Stack Overflow Considered Harmful? The Impact of Copy&Paste on Android Application Security
    Fischer, Felix
    Boettinger, Konstantin
    Xiao, Huang
    Stransky, Christian
    Acar, Yasemin
    Backes, Michael
    Fahl, Sascha
    [J]. 2017 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP), 2017, : 121 - 136
  • [3] Representations and Operators for Improving Evolutionary Software Repair
    Le Goues, Claire
    Weimer, Westley
    Forrest, Stephanie
    [J]. PROCEEDINGS OF THE FOURTEENTH INTERNATIONAL CONFERENCE ON GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 2012, : 959 - 966
  • [4] Licorish Sherlock A., 2022, ARXIV
  • [5] Code Reuse in Stack Overflow and Popular Open Source Java']Java Projects
    Lotter, Adriaan
    Licorish, Sherlock A.
    Savarimuthu, Bastin Tony Roy
    Meldrum, Sarah
    [J]. 2018 25TH AUSTRALASIAN SOFTWARE ENGINEERING CONFERENCE (ASWEC), 2018, : 141 - 150
  • [6] Understanding stack overflow code quality: A recommendation of caution
    Meldrum, Sarah
    Licorish, Sherlock A.
    Owen, Caitlin A.
    Savarimuthu, Bastin Tony Roy
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2020, 199
  • [7] Reusing Code from StackOverflow: The Effect on Technical Debt
    Nikolaidis, Nikolaos
    Digkas, Georgios
    Ampatzoglou, Apostolos
    Chatzigeorgiou, Alexander
    [J]. 2019 45TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2019), 2019, : 87 - 91
  • [8] PMD, 2021, PMD 6 41 0
  • [9] Reid Brittany, 2020, GECCO'20. Proceedings of the 2020 Genetic and Evolutionary Computation Conference Companion, P1945, DOI 10.1145/3377929.3398087