Presentation Information

[5J2-OS-31a-05]Fault localization using LLM with automatic test oracle generation

〇Hiroki Futami1, Yasuyuki Tahara1, Yuichi Sei1, Ryohei Orihara1 (1. The University of Electro-Communications)

Keywords:

software,Large language model,fault localization

This paper propose a method to generate a test oracle from source code using LLM and identify the location of bugs. The proposed method generates a code specification from the source code, its calling relationships, comments, and method names. Based on the generated specification and source code, tests and expected output are generated. LLM is used to infer the actual output from the test input values, and by comparing this with the expected output, the probability that the method is buggy is inferred. This method takes test traces into account, but by not executing tests, it succeeds in reducing computational costs and addressing the problem of inexecutable generated test code.

Comment

To browse or post comments, you must log in.Log in