跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2612.02995 · v1

Separate What from How: Repairing Static Analyzer Summaries with a Typed Repair IR

首次提交 2026-12-02 10:08
版本更新 2026-12-02 10:08
雷达观测 2026-12-03 10:45
arXiv ↗PDF ↗

摘要

Static analyzers rely on API summaries to model library calls. Flawed summaries can cause false alarms or hide real bugs. Repairing them requires preserving dependencies among summary facts, which free-form LLM edits can violate. We present OpCraft, a system that uses counterexamples to validate repairs to static-analyzer API summaries. OpCraft expresses LLM-selected edits in Summary Repair IR (SRI), a typed intermediate representation that makes operator applicability, effects, dependencies, bindings, and ordering explicit. Deterministic backends translate SRI sequences into validation code and analyzer patches. OpCraft accepts a repair only when the generated code produces the expected analyzer behavior. We evaluate OpCraft on single-defect and multi-defect benchmarks for the Clang Static Analyzer (CSA). Across three LLMs, OpCraft repairs at least 96% of single-defect tasks at pass@1, compared with 30% to 37% for free-form repair. It also remains effective on multi-defect tasks. Ablations show that reliable repair requires typed applicability, effects, and dependency semantics beyond output schema checks. CSA C++ patch candidates generated from accepted SRI sequences pass both per-task LLVM validation and the full CSA regression suite.

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-12-02 10:08 · 最新观测版本

Separate What from How: Repairing Static Analyzer Summaries with a Typed Repair IR

Static analyzers rely on API summaries to model library calls. Flawed summaries can cause false alarms or hide real bugs. Repairing them requires preserving dependencies among summary facts, which free-form LLM edits can violate. We present OpCraft, a system that uses counterexamples to validate repairs to static-analyzer API summaries. OpCraft expresses LLM-selected edits in Summary Repair IR (SRI), a typed intermediate representation that makes operator applicability, effects, dependencies, bindings, and ordering explicit. Deterministic backends translate SRI sequences into validation code and analyzer patches. OpCraft accepts a repair only when the generated code produces the expected analyzer behavior. We evaluate OpCraft on single-defect and multi-defect benchmarks for the Clang Static Analyzer (CSA). Across three LLMs, OpCraft repairs at least 96% of single-defect tasks at pass@1, compared with 30% to 37% for free-form repair. It also remains effective on multi-defect tasks. Ablations show that reliable repair requires typed applicability, effects, and dependency semantics beyond output schema checks. CSA C++ patch candidates generated from accepted SRI sequences pass both per-task LLVM validation and the full CSA regression suite.

查看此版本解读 →查看此版本原文 ↗