• Home
  • Search
  • Contract-based program repair without the contracts
  • Cite Icon138
  • https://doi.org/10.1109/ase.2017.8115674Copy DOI Icon

Contract-based program repair without the contracts

  • Oct 1, 2017
  • Liushan Chen +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Automated program repair (APR) is a promising approach to automatically fixing software bugs. Most APR techniques use tests to drive the repair process; this makes them readily applicable to realistic code bases, but also brings the risk of generating spurious repairs that overfit the available tests. Some techniques addressed the overfitting problem by targeting code using contracts (such as pre- and postconditions), which provide additional information helpful to characterize the states of correct and faulty computations; unfortunately, mainstream programming languages do not normally include contract annotations, which severely limits the applicability of such contract-based techniques. This paper presents JAID, a novel APR technique for Java programs, which is capable of constructing detailed state abstractions---similar to those employed by contract-based techniques---that are derived from regular Java code without any special annotations. Grounding the repair generation and validation processes on rich state abstractions mitigates the overfitting problem, and helps extend APR’s applicability: in experiments with the DEFECTS4J benchmark, a prototype implementation of JAID produced genuinely correct repairs, equivalent to those written by programmers, for 25 bugs---improving over the state of the art of comparable Java APR techniques in the number and kinds of correct fixes.

Similar Papers
  • Conference Article
  • Citations8

Understanding the Non-Repairability Factors of Automated Program Repair Techniques

  • Dec 01, 2020
  • Bo Lin +6
  • Research Article
  • Citations46

A metamorphic testing approach for supporting program repair without the need for a test oracle

  • Apr 13, 2016
  • Journal of Systems and Software
  • Mingyue Jiang +4
  • Research Article
  • Citations2

Predicting Effectiveness of Generate-and-Validate Patch Generation Systems Using Random Forest

  • Dec 01, 2018
  • Wuhan University Journal of Natural Sciences
  • Yong Xu +3
  • PDF
  • Research Article
  • Citations1

When Automated Program Repair Meets Regression Testing—An Extensive Study on Two Million Patches

  • Sep 27, 2024
  • ACM Transactions on Software Engineering and Methodology
  • Yiling Lou +7
  • Conference Article
  • Citations29

Comparing developer-provided to user-provided tests for fault localization and automated program repair

  • Jul 12, 2018
  • René Just +3
  • Conference Article
  • Citations19

Experience Report: How Effective is Automated Program Repair for Industrial Software?

  • Feb 01, 2020
  • Kunihiro Noda +4
  • Conference Article
  • Citations4

MCRepair: Multi-Chunk Program Repair via Patch Optimization with Buggy Block

  • Mar 27, 2023
  • Jisung Kim +1
  • Research Article
  • Citations1

A method to identify overfitting program repair patches based on expression tree

  • Mar 05, 2024
  • Science of Computer Programming
  • Yukun Dong +5
  • Research Article
  • Citations12

Restore: Retrospective Fault Localization Enhancing Automated Program Repair

  • Apr 02, 2020
  • IEEE Transactions on Software Engineering
  • Tongtong Xu +5
  • Research Article
  • Citations14

CGenProg: Adaptation of cartesian genetic programming with migration and opposite guesses for automatic repair of software regression faults

  • Jan 15, 2021
  • Expert Systems with Applications
  • Alireza Khalilian +2
  • Conference Article
  • Citations7

Automatic Program Repair as Semantic Suggestions: An Empirical Study

  • Apr 01, 2021
  • Diogo Campos +3
  • Research Article
  • Citations7

MTL-TRANSFER: Leveraging Multi-task Learning and Transferred Knowledge for Improving Fault Localization and Program Repair

  • Jun 27, 2024
  • ACM Transactions on Software Engineering and Methodology
  • Xu Wang +7
  • Conference Article
  • Citations8

Evaluating Fault Localization and Program Repair Capabilities of Existing Closed-Source General-Purpose LLMs

  • Apr 20, 2024
  • Shengbei Jiang +5
  • Research Article
  • Citations17

ContrastRepair : Enhancing Conversation-Based Automated Program Repair via Contrastive Test Case Pairs

  • Oct 03, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Jiaolong Kong +5
  • Research Article
  • Citations12

Evaluating the usage of fault localization in automated program repair: an empirical study

  • Sep 29, 2020
  • Frontiers of Computer Science
  • Deheng Yang +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.