paper-with-me

홈 › Papers

Library-Aware Doubles and Iterative Repair for Large Language Model-Generated Unit Tests in OpenSIL Firmware

2026-06-18 · Ma Toan Bach, Yuchi Zheng, Haingo Razafindranto, Tanvir Alam, Aric Leather, Ranveer Sandhu, Jitesh Arora arxiv

Validating changes in low-level C firmware is expensive because unit tests (UTs) are fragile under strict build constraints, where missing headers, unresolved symbols, and dependency mismatches frequently prevent compilation and linking. This study introduces an automated UT authoring workflow for the Open-Source Silicon Initialization Library (openSIL) firmware codebase maintained by Advanced Micro Devices (AMD) that reduces manual effort through a large language model (LLM) guided multi-agent pipeline. The workflow combines automated generation of test scaffolds, library-aware creation or reuse of stubs, mocks, and fakes, and an iterative compile-dispatch repair loop driven by build logs and line-coverage feedback. We evaluate the approach using compilation success, repair iterations, dispatch success, and line coverage, with time, cost, and token usage as secondary measures. Across 76 functions under test, the workflow generated compilable UTs for 73 functions. In a configuration without line coverage guidance or retrieval augmentation, mean line coverage reached 73.9%. On a 48-function subset evaluated under both configurations, mean line coverage reached 98.8% with line-coverage guidance alone and reached 94.7% when combined with vector-database retrieval. Results show that automated generation-and-repair pipelines can substantially improve UT creation efficiency and coverage for constrained firmware environments while reducing manual debugging effort.

📄 PDF Abstract BibTeX arXiv:2606.19725

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

TraceCAD: Trace-Guided Repair for Agentic CAD Generation

2026-08-04 · Fengxiao Fan, Jingzhe Ni, Fan Sang, Xiaolong Yin 외 arxiv

LLM-based CAD agents produce executable parametric programs, but their correction loops may lose evidence about satisfied requirements, faulty operations, and prior repairs. We introduce TraceCAD, a recovery layer that l…

CAPRI: Contract-Aware Proof Repair for Isabelle

2026-08-13 · Jim Woodcock, Gabriel Leite, Augusto Sampaio, Ran Wei arxiv

We address the use of large language models (LLMs) to help discover Isabelle proofs. An Isabelle build establishes that the submitted theory is accepted, but not that an LLM changed only what the developer authorised. We…

DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information

2025-12-31 · Zhili Huang, Ling Xu, Chao Liu, Weifeng Sun 외 arxiv

Automated Program Repair (APR) aims to automatically generate correct patches for buggy programs. Recent approaches leveraging large language models (LLMs) have shown promise but face limitations. Most rely solely on sta…

Program Repair

Learner-Tailored Program Repair: A Solution Generator with Iterative Edit-Driven Retrieval Enhancement

2026-01-13 · Zhenlong Dai, Zhuoluo Zhao, Hengning Wang, Xiu Tang 외 arxiv

With the development of large language models (LLMs) in the field of programming, intelligent programming coaching systems have gained widespread attention. However, most research focuses on repairing the buggy code of p…

Program Repair

How Well Do Large Language Models Serve as End-to-End Secure Code Agents for Python?

2024-08-20 · Jianian Gong, Nachuan Duan, Ziheng Tao, Zhaohui Gong 외

The rapid advancement of large language models (LLMs) such as GPT-4 has revolutionized the landscape of software engineering, positioning these models at the core of modern development practices. As we anticipate these m…