Go home now Header Background Image
Submission Procedure
share: |
Follow us
Volume 12 / Issue 7

available in:   PDF (243 kB) PS (230 kB)
Similar Docs BibTeX   Write a comment
Links into Future
DOI:   10.3217/jucs-012-07-0828


Program Slicing by Calculation

Nuno F. Rodrigues (Universidade do Minho, Portugal)

Luís S. Barbosa (Universidade do Minho, Portugal)

Abstract: Program slicing is a well known family of techniques used to identify code fragments which depend on or are depended upon specific program entities. They are particularly useful in the areas of reverse engineering, program understanding, testing and software maintenance. Most slicing methods, usually oriented towards the imperative or object paradigms, are based on some sort of graph structure representing program dependencies. Slicing techniques amount, therefore, to (sophisticated) graph transversal algorithms. This paper proposes a completely different approach to the slicing problem for functional programs. Instead of extracting program information to build an underlying dependencies' structure, we resort to standard program calculation strategies, based on the so-called Bird-Meertens formalism. The slicing criterion is specified either as a projection or a hiding function which, once composed with the original program, leads to the identification of the intended slice. Going through a number of examples, the paper suggests this approach may be an interesting, even if not completely general, alternative to slicing functional programs.

Keywords: functional programming, program analysis, program slicing

Categories: D.1.1, I.2.2, I.2.4