Algorithm of program slicing based on reverse program flow
XU Man-wu
Abstract
XU Man-wu
Abstract
The traditional method of program slicing was based on reachability algorithm of program dependence graph(PDG) and system dependence graph(SDG).However,to construct PDG and SDG,some data dependenced which were irrelevant to the slicing may be computed.The redundant computing wasted time and memory,and reduced slicing efficiency.To address this problem,this paper presented a slicing algorithm based on reverse program flow.It firstly constructed reverse flow of the program,then scaned the program along reverse flow from the slicing point,and only computed the data dependences which were relevant to slicing.So it improved slicing efficiency.The result of experiment shows this algorithm is feasible and practical.This algorithm can be used for generating slicing of imperative programs,such as Fortran and C program.
OpenAlex reports 1 citations for this work. Citation counts describe recorded attention and do not establish research quality.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
The traditional method of program slicing was based on reachability algorithm of program dependence graph(PDG) and system dependence graph(SDG).However,to construct PDG and SDG,some data dependenced which were irrelevant to the slicing may be computed.The redundant computing wasted time and memory,and reduced slicing efficiency.To address this problem,this paper presented a slicing algorithm based on reverse program flow.It firstly constructed reverse flow of the program,then scaned the program along reverse flow from the slicing point,and only computed the data dependences which were relevant to slicing.So it improved slicing efficiency.The result of experiment shows this algorithm is feasible and practical.This algorithm can be used for generating slicing of imperative programs,such as Fortran and C program.
Key concepts: Program slicing, Slicing, Computer science, Reachability, Control flow graph, Data-flow analysis, Algorithm, Graph