arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.14434cs.SE
收藏

CMind:一种用于定位C内存错误的人工智能代理

CMind: An AI Agent for Localizing C Memory Bugs

University of Notre Dame(圣母大学)

Chia-Yi Su, Collin McMillan

AI总结:

CMind通过模拟人类程序员行为,利用大语言模型和引导决策方法,定位C程序中的内存错误。

摘要:

本文演示性论文介绍了CMind,一种用于定位C内存错误的人工智能代理。CMind的创新之处在于它遵循我们在对那些程序员寻找C程序内存错误进行实证研究中观察到的人类程序员所采取的步骤。该工具的输入是C程序的源代码和一份描述问题的错误报告。输出是该工具对错误原因和位置的假设。CMind阅读错误报告以找到程序的潜在入口点,然后导航程序的源代码,分析该源代码,并生成一个符合模板的假设位置和理由。该工具结合了大语言模型推理与我们编码的引导决策方法,以模拟人类行为。视频演示可在https://youtu.be/_vVd0LRvVHI上观看。

英文摘要:

This demonstration paper presents CMind, an artificial intelligence agent for localizing C memory bugs. The novel aspect to CMind is that it follows steps that we observed human programmers perform during empirical study of those programmers finding memory bugs in C programs. The input to the tool is a C program's source code and a bug report describing the problem. The output is the tool's hypothesis about the reason for the bug and its location. CMind reads the bug report to find potential entry points to the program, then navigates the program's source code, analyzes that source code, and generates a hypothesis location and rationale that fit a template. The tool combines large language model reasoning with guided decision making we encoded to mimic human behavior. The video demonstration is available at https://youtu.be/_vVd0LRvVHI.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑