Guided Debugging of Auto-Translated Code Using Differential Testing
Shengnan Wu, Xinyu Sun, Xin Wang, Yangfan Zhou

TL;DR
tHinter is a debugging tool that identifies translation errors in auto-translated code by comparing functionality through differential testing, significantly reducing debugging effort and improving correction success rates.
Contribution
The paper introduces tHinter, a novel differential testing-based debugging approach specifically designed for auto-translated code from LLMs, enhancing error localization and fixing efficiency.
Findings
Reduces 71% of lines developers review during debugging
Increases likelihood of fixing errors in one query by 59%
Developers find tHinter satisfactory and helpful
Abstract
Large Language Models (LLMs) hold great promise in the task of code translation. However, the lack of explainability complicates the identification of the inevitable translation errors. In this paper, we propose tHinter, a debugging tool to locate translation errors in auto-translated code. The core idea of tHinter is that correctly translated, the source and translated code should present the same functionalities, giving the same output for the same input. Hence, lines in the translated code responsible for output differences are possibly translation errors. First, tHinter employs fuzzing to generate diverse test cases that thoroughly explore the translated code. Then, tHinter relies on a heuristic algorithm to pinpoint translation errors from coverage information and differential testing execution results of those test cases. This heuristic algorithm is designed to leverage both the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Real-time simulation and control systems · Model-Driven Software Engineering Techniques
