跳到正文
arXiv cs.AI· Arshad Beg, Diarmuid O'Donoghue, Rosemary Monahan·· 5 小时前AI 评分42

使用神经与结构化方法构建和匹配命令式程序图

Graph Construction and Matching for Imperative Programs using Neural and Structural Methods

AI 导读

该研究提出将命令式程序及其注释转换为带类型和属性图的流程,用于识别程序及其规范之间的结构与语义相似性。实验覆盖带 ACSL 的 C、带 JML 的 Java 以及 Dafny 程序,并结合抽象语法树解析与 SentenceTransformer、CodeBERT 生成语义嵌入。结果表明,该流程能在不同语言和注释风格间构建一致的图表示,为后续语义增强和近似图匹配提供基础。

来源:arXiv cs.AI · arxiv.org