Nopol: Automatic Repair of Conditional Statement Bugs in Java Programs
Not on the map. Why?
Abstract (arXiv)
We propose NOPOL, an approach to automatic repair of buggy conditional statements (i.e., if-then-else statements). This approach takes a buggy program as well as a test suite as input and generates a patch with a conditional expression as output. The test suite is required to contain passing test cases to model the expected behavior of the program and at least one failing test case that reveals the bug to be repaired. The process of NOPOL consists of three major phases. First, NOPOL employs angelic fix localization to identify expected values of a condition during the test execution. Second, runtime trace collection is used to collect variables and their actual values, including primitive data types and objected-oriented features (e.g., nullness checks), to serve as building blocks for patch generation. Third, NOPOL encodes these collected data into an instance of a Satisfiability Modulo Theory (SMT) problem, then a feasible solution to the SMT instance is translated back into a code patch. We evaluate NOPOL on 22 real-world bugs (16 bugs with buggy IF conditions and 6 bugs with missing preconditions) on two large open-source projects, namely Apache Commons Math and Apache Commons Lang. Empirical analysis on these bugs shows that our approach can effectively fix bugs with buggy IF conditions and missing preconditions. We illustrate the capabilities and limitations of NOPOL using case studies of real bug fixes.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). First posted on arXiv 10 Nov 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 1; 2023: 4; 2024: 11; 2025: 6; 2026: 5.
32 papers.
Sort:
By area:
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2024HDLdebugger: Streamlining HDL debugging with Large Language Modelscited by 25
- 2023ITER: Iterative Neural Repair for Multi-Location Patchescited by 16
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repaircited by 13
- 2024Aligning the Objective of LLM-based Program Repaircited by 12
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoningcited by 11
- 2024Enhanced Automated Code Vulnerability Repair using Large Language Modelscited by 10
- 2024Enhancing Automated Program Repair with Solution Designcited by 8
20 more
- 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systemscited by 8
- 2024DeepCode AI Fix: Fixing Security Vulnerabilities with Large Language Modelscited by 7
- 2024Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugscited by 7
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignmentcited by 7
- 2021Predicting Patch Correctness Based on the Similarity of Failing Test Casescited by 4
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Informationcited by 3
- 2025Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repaircited by 2
- 2022Evaluating the Impact of Source Code Parsers on ML4SE Modelscited by 1
- 2025A Multi-Dataset Evaluation of Models for Automated Vulnerability Repaircited by 1
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMscited by 1
- 2021Exploring Plausible Patches Using Source Code Embeddings in JavaScriptcited by 0
- 2021Tea: Program Repair Using Neural Network Based on Program Information Attention Matrixcited by 0
- 2024NARRepair: Non-Autoregressive Code Generation Model for Automatic Program Repaircited by 0
- 2024MergeRepair: An Exploratory Study on Merging Task-Specific Adapters in Code LLMs for Automated Program Repaircited by 0
- 2025Self-Bootstrapping Automated Program Repair: Using LLMs to Generate and Evaluate Synthetic Training Data for Bug Repaircited by 0
- 2026LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Softwarecited by 0
- 2026U-Define: Designing User Workflows for Hard and Soft Constraints in LLM-Based Planningcited by 0
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repaircited by 0
- 2026ContraFix: Skill-Enhanced Contrastive Runtime Analysis for Vulnerability Repaircited by 0
- 2026Externalizing Requirement-to-Repair Artifacts as Observable Traces for LLM-Based Program Repaircited by 0
- 2026Externalizing Requirement-to-Repair Artifacts as Observable Traces for LLM-Based Program Repair14 Sep 2026
- 2026ContraFix: Skill-Enhanced Contrastive Runtime Analysis for Vulnerability Repair17 May 2026
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair17 May 2026
- 2026U-Define: Designing User Workflows for Hard and Soft Constraints in LLM-Based Planning4 May 2026
- 2026LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Software14 Apr 2026
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information31 Dec 2025
- 2025Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repair14 Nov 2025
- 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systems20 Jun 2025
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMs16 Jun 2025
- 2025A Multi-Dataset Evaluation of Models for Automated Vulnerability Repair5 Jun 2025
- 2025Self-Bootstrapping Automated Program Repair: Using LLMs to Generate and Evaluate Synthetic Training Data for Bug Repair12 May 2025
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignment30 Sep 2024
20 more
- 2024Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugs16 Sep 2024
- 2024Enhancing Automated Program Repair with Solution Design22 Aug 2024
- 2024MergeRepair: An Exploratory Study on Merging Task-Specific Adapters in Code LLMs for Automated Program Repair18 Aug 2024
- 2024NARRepair: Non-Autoregressive Code Generation Model for Automatic Program Repair24 Jun 2024
- 2024Automatic Programming: Large Language Models and Beyond3 May 2024
- 2024Aligning the Objective of LLM-based Program Repair13 Apr 2024
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar 2024
- 2024HDLdebugger: Streamlining HDL debugging with Large Language Models18 Mar 2024
- 2024DeepCode AI Fix: Fixing Security Vulnerabilities with Large Language Models19 Feb 2024
- 2024Enhanced Automated Code Vulnerability Repair using Large Language Models8 Jan 2024
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Review4 Jul 2023
- 2023ITER: Iterative Neural Repair for Multi-Location Patches24 Apr 2023
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repair3 Feb 2023
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoning3 Jan 2023
- 2022Evaluating the Impact of Source Code Parsers on ML4SE Models17 Jun 2022
- 2021Predicting Patch Correctness Based on the Similarity of Failing Test Cases28 Jul 2021
- 2021Tea: Program Repair Using Neural Network Based on Program Information Attention Matrix17 Jul 2021
- 2021A Syntax-Guided Edit Decoder for Neural Program Repair15 Jun 2021
- 2021Exploring Plausible Patches Using Source Code Embeddings in JavaScript31 Mar 2021
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repair26 Feb 2021
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systemscited by 8
- 2025Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repaircited by 2
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repaircited by 0
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair17 May 2026
- 2025Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repair14 Nov 2025
- 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systems20 Jun 2025
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar 2024
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2024HDLdebugger: Streamlining HDL debugging with Large Language Modelscited by 25
- 2023ITER: Iterative Neural Repair for Multi-Location Patchescited by 16
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repaircited by 13
- 2024Aligning the Objective of LLM-based Program Repaircited by 12
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoningcited by 11
- 2024Enhanced Automated Code Vulnerability Repair using Large Language Modelscited by 10
- 2024Enhancing Automated Program Repair with Solution Designcited by 8
- 2024DeepCode AI Fix: Fixing Security Vulnerabilities with Large Language Modelscited by 7
12 most cited of 27 All 27 (JSON)
- 2026Externalizing Requirement-to-Repair Artifacts as Observable Traces for LLM-Based Program Repair14 Sep 2026
- 2026ContraFix: Skill-Enhanced Contrastive Runtime Analysis for Vulnerability Repair17 May 2026
- 2026U-Define: Designing User Workflows for Hard and Soft Constraints in LLM-Based Planning4 May 2026
- 2026LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Software14 Apr 2026
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information31 Dec 2025
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMs16 Jun 2025
- 2025A Multi-Dataset Evaluation of Models for Automated Vulnerability Repair5 Jun 2025
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignment30 Sep 2024
- 2024Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugs16 Sep 2024
- 2024Enhancing Automated Program Repair with Solution Design22 Aug 2024
- 2024MergeRepair: An Exploratory Study on Merging Task-Specific Adapters in Code LLMs for Automated Program Repair18 Aug 2024
- 2024NARRepair: Non-Autoregressive Code Generation Model for Automatic Program Repair24 Jun 2024
12 newest of 27 All 27 (JSON)