What is program slicing?

In the software applications, the program is the method of identifying the basic elements of the software program and fine extraction from a more complicated code that allows the program to function. The process of slicing the program is particularly important for software engineering efforts, as it allows a software engineer to find a way through complicated code chains to access the source code actually controlled by the application. The ability of these subprograms and the source code browsing allows you to identify a wide range of potential errors, allowing software with greater efficiency.

It is not uncommon that the code will be intentionally complicated. One of the main reasons for this event is that the complicated parts of the code help protect the source code from corruption viruses and hacking attempts. Usually the programmer adds a large amount of additional code, which basically causes a series of extremes to achieve what could be managed by the source code, with only a few steps. Although the poisonThe desired state in terms of software protection against possible corruption, there are situations where it is necessary to reach the source code. This is where the program is cut.

There are two basic approaches or dimensions for slicing program. The semantic dimension focuses on the elements of the code chain that are necessary and therefore will be preserved. Static and dynamic functions are identified and maintained by specific slicing methods that leave basic elements but remove most of the code embedded as part of the camouflage process. With semantic program slicing, the engineer has in fact deciding what, if any, actually remains.

Syntactic slicing of the program does not provide an engineer with the same amount of options. With this approach, everything that is not necessary for the basic function of the code is removed. If the string is found not to serve any real purpose and notIt has no impact on the semantics of interest found in the code, it goes. This approach helps maintain the original syntax of the program without additional frills.

The second and increasingly common use of the syntactic slicing of the program is known as the amorphous slicing of the program. This approach is to allow Slice to continue working with any syntactic function that helps maintain semantic restrictions that the engineer wants to retain in the code.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?