Lune

FSE2023Top-tier venue

Program Repair Guided by Datalog-Defined Static Analysis

Yu Liu, Sergey Mechtaev, Pavle Subotic, Abhik Roychoudhury

Abstract

Automated program repair relying on static analysis complements test-driven repair, since it does not require failing tests to repair a bug, and it avoids test-overfitting by considering program properties. Due to the rich variety and complexity of program analyses, existing static program repair techniques are tied to specific analysers, and thus repair only narrow classes of defects. To develop a general-purpose static program repair framework that targets a wide range of properties and programming languages, we propose to integrate program repair with Datalog-based analysis. Datalog solvers are programmable fixed point engines which can be used to encode many program analysis problems in a modular fashion. The program under analysis is encoded as Datalog facts, while the fixed point equations of the program analysis are expressed as recursive Datalog rules. In this context, we view repairing the program as modifying the corresponding Datalog facts. This is accomplished by a novel technique, symbolic execution of Datalog, that evaluates Datalog queries over a symbolic database of facts, instead of a concrete set of facts. The result of symbolic query evaluation allows us to infer what changes to a given set of Datalog facts repair the program so that it meets the desired analysis goals. We developed a symbolic executor for Datalog called Symlog, on top of which we built a repair tool SymlogRepair. We show the versatility of our approach on several analysis problems --- repairing null pointer exceptions in Java programs, repairing data leaks in Python notebooks, and repairing four types of security vulnerabilities in Solidity smart contracts.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Impact of Code Language Models on Automated Program Repair cites InCoder: A Generative Model for Code Infilling and Synthesis
  • Impact of Code Language Models on Automated Program Repair cites Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • RepairAgent: An Autonomous, LLM-Based Agent for Program Repair cites Impact of Code Language Models on Automated Program Repair
  • RepairAgent: An Autonomous, LLM-Based Agent for Program Repair cites Automated Program Repair in the Era of Large Pre-trained Language Models
  • CodeCureAgent: Automatic Classification and Repair of Static Analysis Warnings cites Impact of Code Language Models on Automated Program Repair
  • CodeCureAgent: Automatic Classification and Repair of Static Analysis Warnings cites RepairAgent: An Autonomous, LLM-Based Agent for Program Repair
  • PredicateFix: Repairing Static Analysis Alerts with Bridging Predicates cites Impact of Code Language Models on Automated Program Repair
  • PredicateFix: Repairing Static Analysis Alerts with Bridging Predicates cites Automated Program Repair in the Era of Large Pre-trained Language Models
  • LLM-Based Repair of Static Nullability Errors cites Impact of Code Language Models on Automated Program Repair
  • LLM-Based Repair of Static Nullability Errors cites RepairAgent: An Autonomous, LLM-Based Agent for Program Repair
  • Automated Program Repair in the Era of Large Pre-trained Language Models cites InCoder: A Generative Model for Code Infilling and Synthesis
  • Automated Program Repair in the Era of Large Pre-trained Language Models cites Less training, more repairing please: revisiting automated program repair via zero-shot learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. RepairAgent: An Autonomous, LLM-Based Agent for Program RepairIslem Bouzenia, Premkumar T. Devanbu, Michael PradelICSE 2025 · 54 citations
  2. CodeCureAgent: Automatic Classification and Repair of Static Analysis WarningsPascal Joos, Islem Bouzenia, Michael PradelFSE 2026
  3. One Size Does NOT Fit All: on the Importance of Physical Representations for Datalog EvaluationNick Johannes Peter Rassau, Felix SchuhknechtICDE 2026
  4. PredicateFix: Repairing Static Analysis Alerts with Bridging PredicatesYuan-An Xiao, Weixuan Wang, Dong Liu, Junwei Zhou et al.ICSE 2026
  5. LLM-Based Repair of Static Nullability ErrorsNima Karimipour, Pascal Joos, Michael Pradel, Martin Kellogg et al.ISSTA 2026

Builds on10

  1. Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
  2. Automated Program Repair in the Era of Large Pre-trained Language ModelsChunqiu Steven Xia, Yuxiang Wei, Lingming ZhangICSE 2023 · 321 citations
  3. Less training, more repairing please: revisiting automated program repair via zero-shot learningChunqiu Steven Xia, Lingming ZhangFSE 2022 · 223 citations
  4. Impact of Code Language Models on Automated Program RepairNan Jiang, Kevin Liu, Thibaud Lutellier, Lin TanICSE 2023 · 164 citations
  5. InCoder: A Generative Model for Code Infilling and SynthesisDaniel Fried, Armen Aghajanyan, Jessy Lin, Sida Wang et al.ICLR 2023 · 140 citations

Related papers

  1. Syntax-Guided Automated Program Repair for HyperpropertiesRaven Beutner, Tzu-Han Hsu, Borzoo Bonakdarpour, Bernd FinkbeinerCAV 2024 · 4 citations
  2. Dependency-Aware Metamorphic Testing of Datalog EnginesMuhammad Numair Mansur, Valentin Wüstholz, Maria ChristakisISSTA 2023 · 10 citations
  3. Metamorphic testing of Datalog enginesMuhammad Numair Mansur, Maria Christakis, Valentin WüstholzFSE 2021 · 25 citations
  4. Scaling Abstraction Refinement for Program Analyses in Datalog using Graph Neural NetworksZhenyu Yan, Xin Zhang, Peng DiOOPSLA 2024 · 1 citation
  5. LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World SoftwareSyed Md. Mukit Rashid, Abdullah Al Ishtiaq, Kai Tu, Yilu Dong et al.ACL 2026
Dusk over the sea between two cliffs drawn in fine vertical lines