Program Chopping Approach for Java Program
Hua Guan · 2011
Compared with program slicing,program chopping is a more focused approach of program analysis.And it is of great significance for the program understanding,analysis,debugging,testing.The existing chopping algorithms mostly are based on connected System Dependence Graph(SDG).However,the representation of SDG is very complicated,especially for larger program,which causes fault result easily.So this paper proposed a program chopping approach for Java program based on a representation for Java program with tags.In this approach,not only the accessory information on program dependency relation is utilized to analyze parameter dependency relation,and based on which this paper presented program chopping algorithms,but also inter-method program chopping can be converted to intra-method analyzing.Moreover the approach has much strongpoint such as fewer nodes of SDG and reusability of Program Dependence Graph(PDG),etc.Finally,this paper illustrated implementation process of this approach combined with an example and experiment.