BODHI: Precise OS Kernel Specification Inference 文章

ArXiv CS.AI2026-05-26NEWSen作者: Zhiming Chang, Ziyang Li

详细信息

来源站点
ArXiv CS.AI
作者
Zhiming Chang, Ziyang Li
文章类型
NEWS
语言
en
发布日期
2026-05-26

摘要

arXiv:2605.23931v1 Announce Type: new Abstract: The formal verification of operating system kernels requires precise specifications that capture the intended behavior of system calls. Writing these specifications manually demands deep domain expertise, motivating the use of large language models (LLMs) to automate the process. However, in OSV-Bench, a benchmark of 245 specification generation tasks derived from the Hyperkernel OS kernel, the best reported Pass@1 is 55.10%. We propose a domain knowledge prompting method (BODHI), which augments the standard few-shot prompt with a structured C-to-Python translation guide covering 15 categories of domain-specific translation patterns. Inspired by Structured Chain-of-Thought (SCoT) prompting, the guide organizes translation by separation of concerns, addressing pre-condition extraction and post-condition generation as distinct categories.