• DocumentCode
    2430610
  • Title

    Amorphous procedure extraction

  • Author

    Harman, Mark ; Binkley, David ; Singh, Ranjit ; Hierons, Robert M.

  • Author_Institution
    Brunel Univ., Middlesex, UK
  • fYear
    2004
  • fDate
    15-16 Sept. 2004
  • Firstpage
    85
  • Lastpage
    94
  • Abstract
    The procedure extraction problem is concerned with the meaning preserving formation of a procedure from a (not necessarily contiguous) selected set of statements. Previous approaches to the problem have used dependence analysis to identify the non-selected statements which must be ´promoted´ (also selected) in order to preserve semantics. All previous approaches to the problem have been syntax preserving. This work shows that by allowing transformation of the program´s syntax it is possible to extract both procedures and functions in an amorphous manner. That is, although the amorphous extraction process is meaning preserving it is not necessarily syntax preserving. The amorphous approach is advantageous in a variety of situations. These include when it is desirable to avoid promotion, when a value-returning function is to be extracted from a scattered set of assignments to a variable, and when side effects are present in the program from which the procedure is to be extracted.
  • Keywords
    programming language semantics; amorphous procedure extraction; dependence analysis; program syntax; Amorphous materials; Cloning; Conferences; Educational institutions; Scattering;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Source Code Analysis and Manipulation, 2004. Fourth IEEE International Workshop on
  • Print_ISBN
    0-7695-2144-4
  • Type

    conf

  • DOI
    10.1109/SCAM.2004.4
  • Filename
    1386162