嵌入引导的嵌入式C软件函数复用检测方法
原标题:An Approach for Embedding-Guided Function Reuse Detection in Embedded C Software
AI 摘要
该论文提出了一种面向嵌入式C软件的函数复用检测方法,通过领域感知的检索增强生成(RAG)流水线,结合注释、调用图和README等上下文信息,使用八种嵌入模型提取特征,并设计四种硬件兼容性验证器过滤候选函数。在六个公共嵌入式项目上的评估显示,SonarQube作为复用过滤器存在93.6%的误报率,而该方法验证器准确率达97.5%,有效弥补了静态分析在硬件兼容性检测上的不足。
正文节选
Computer Science > Software Engineering Title:An Approach for Embedding-Guided Function Reuse Detection in Embedded C Software View PDF HTML (experimental) Abstract:Reusing embedded software functions across products is economically valuable but technically difficult: the same functionality implemented for two different microcontroller platforms can be entirely incompatible at the hardware level, even when the functions score above 0.90 cosine similarity and both pass SonarQube quali