go-v.orgcodex
Menu
Page tools

codex · Philosophy

Program slicing

In computer programming, program slicing is the computation of the set of program statements, the program slice, that may affect the values at some point of interest, referred to as a slicing criterion. Program slicing can be used in debugging to locate source of errors more easily. Other applications of slicing include software maintenance, optimization, program analysis, and information flow control. Slicing techniques have been seeing a rapid development since the original definition by Mark Weiser. At first, slicing was only static, i.e., applied on the source code with no other information than the source code.

Bogdan Korel and Janusz Laski introduced dynamic slicing, which works on a specific execution of the program (for a given execution trace). Other forms of slicing exist, for instance path slicing.

Wikipedia contributors, "Program slicing", Wikipedia, revision 1372439640, retrieved 20 November 2026, source, CC BY-SA 4.0.

More Philosophy · Search the codex