Dead Code Detection Method Based on Program Slicing
Xing Wang, Yingzhou Zhang, Lian Di Zhao, Xinghao Chen · 2017
Malicious code writers often insert dead code into the source code to prevent reverse engineer analysis. There are few methods for detecting dead code used in conjunction with opaque predicates. In this paper, a method based on program slicing for dead code detection is presented, which combines static slicing analysis and dynamic slicing analysis. Further, we design a dead code detection framework in the LLVM compiler infrastructure. The proposed method is used to detect the dead code inserted in some benchmark programs. The experimental results show that the proposed method has high detection rate.