Static Slicing Technique with Algorithmic Approach
Sonam Agarwal · IOSR Journal of Computer Engineering · 2013
In order to improve the accuracy of the static programslicing which is used to locate the faults that cause an exception,we propose a new algorithm which isstored when an exception occurred.The proposed approachconsists of various steps and figure out those methods and statements thathave not been executed.Then, these methods which are notexecuted will be ignored when building the system dependencegraph.Finally, the accurate slice will be got by adopting theimproved program slicing algorithm.And the result shows that using our approachthe slice is 8 percent less than using the general static programslicing algorithm on average.One approach to improve the comprehension ofprograms is to reduce the amount of data to be observedand inspected.Programmers tend to focus andcomprehended selected functions (outputs) and those partsof a program that are directly related to that particularfunction rather than all possible program functions.Oneapproach is to utilize program slicing, a program decomposition technique that transforms a large programinto a smaller one that contains only statements relevantto the computation of a selected function.