Program Repair Guided by Datalog-Defined Static Analysis
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Impact of Code Language Models on Automated Program Repair 引用了 InCoder: A Generative Model for Code Infilling and Synthesis
- Impact of Code Language Models on Automated Program Repair 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
- RepairAgent: An Autonomous, LLM-Based Agent for Program Repair 引用了 Impact of Code Language Models on Automated Program Repair
- RepairAgent: An Autonomous, LLM-Based Agent for Program Repair 引用了 Automated Program Repair in the Era of Large Pre-trained Language Models
- CodeCureAgent: Automatic Classification and Repair of Static Analysis Warnings 引用了 Impact of Code Language Models on Automated Program Repair
- CodeCureAgent: Automatic Classification and Repair of Static Analysis Warnings 引用了 RepairAgent: An Autonomous, LLM-Based Agent for Program Repair
- PredicateFix: Repairing Static Analysis Alerts with Bridging Predicates 引用了 Impact of Code Language Models on Automated Program Repair
- PredicateFix: Repairing Static Analysis Alerts with Bridging Predicates 引用了 Automated Program Repair in the Era of Large Pre-trained Language Models
- LLM-Based Repair of Static Nullability Errors 引用了 Impact of Code Language Models on Automated Program Repair
- LLM-Based Repair of Static Nullability Errors 引用了 RepairAgent: An Autonomous, LLM-Based Agent for Program Repair
- Automated Program Repair in the Era of Large Pre-trained Language Models 引用了 InCoder: A Generative Model for Code Infilling and Synthesis
- Automated Program Repair in the Era of Large Pre-trained Language Models 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
引用它的顶会 Paper8
- RepairAgent: An Autonomous, LLM-Based Agent for Program RepairIslem Bouzenia, Premkumar T. Devanbu, Michael PradelICSE 2025 · 54 次引用
- CodeCureAgent: Automatic Classification and Repair of Static Analysis WarningsPascal Joos, Islem Bouzenia, Michael PradelFSE 2026
- One Size Does NOT Fit All: on the Importance of Physical Representations for Datalog EvaluationNick Johannes Peter Rassau, Felix SchuhknechtICDE 2026
- PredicateFix: Repairing Static Analysis Alerts with Bridging PredicatesYuan-An Xiao, Weixuan Wang, Dong Liu, Junwei Zhou 等ICSE 2026
- LLM-Based Repair of Static Nullability ErrorsNima Karimipour, Pascal Joos, Michael Pradel, Martin Kellogg 等ISSTA 2026
它引用的 Paper10
- Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais 等CCS 2018 · 1,108 次引用
- Automated Program Repair in the Era of Large Pre-trained Language ModelsChunqiu Steven Xia, Yuxiang Wei, Lingming ZhangICSE 2023 · 321 次引用
- Less training, more repairing please: revisiting automated program repair via zero-shot learningChunqiu Steven Xia, Lingming ZhangFSE 2022 · 223 次引用
- Impact of Code Language Models on Automated Program RepairNan Jiang, Kevin Liu, Thibaud Lutellier, Lin TanICSE 2023 · 164 次引用
- InCoder: A Generative Model for Code Infilling and SynthesisDaniel Fried, Armen Aghajanyan, Jessy Lin, Sida Wang 等ICLR 2023 · 140 次引用
相关 Paper
- Syntax-Guided Automated Program Repair for HyperpropertiesRaven Beutner, Tzu-Han Hsu, Borzoo Bonakdarpour, Bernd FinkbeinerCAV 2024 · 4 次引用
- Dependency-Aware Metamorphic Testing of Datalog EnginesMuhammad Numair Mansur, Valentin Wüstholz, Maria ChristakisISSTA 2023 · 10 次引用
- Metamorphic testing of Datalog enginesMuhammad Numair Mansur, Maria Christakis, Valentin WüstholzFSE 2021 · 25 次引用
- Scaling Abstraction Refinement for Program Analyses in Datalog using Graph Neural NetworksZhenyu Yan, Xin Zhang, Peng DiOOPSLA 2024 · 1 次引用
- 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 等ACL 2026
