DeCsmith, an Automatic Generation Tool of Equivalent Program

Zan Chen,L Wang,Lei Liu,Peng Zhang
DOI: https://doi.org/10.1117/12.2683172
2023-01-01
Abstract:Compilers play a very important role in the development of software. More and more researchers are studying how to improve the reliability of compilers. An effective method is to test the compiler with equivalent programs to check whether the running results of equivalent programs are still equivalent after being compiled by the compiler. Generating equivalent program sets is the key to solve this problem. This paper proposes an equivalent program generation tool DeCsmith, which is based on the development of Csmith. Through the equivalence relationship, the program generated by Csmith is equivalently changed, and the equivalent program set is automatically generated. The effectiveness of the method is verified by an example. The work of this paper is beneficial to saving human resources in compiler testing and improving the efficiency of testing compilers.
What problem does this paper attempt to address?