DocumentCode
2154468
Title
A formalism to automate mapping from program features to code
Author
Deprez, J.-C. ; Lakhotia, Arun
Author_Institution
Center for Adv. Comput. Studies, Louisiana Univ., Lafayette, LA, USA
fYear
2000
fDate
2000
Firstpage
69
Lastpage
78
Abstract
How does one locate the segments of code that implement a particular feature? N. Wilde and M.C. Scully (WS) (1995) pioneered the use of execution traces to map program features to code. Using their technique to locate the implementation of a particular feature, a program is executed with two sets of inputs; one set invokes the feature of interest and the other set does not. Operations such as set-difference and set-intersection, amongst others, are then applied on the execution traces to obtain answers for various questions related to a feature and its implementation. Previous researchers have automated the tasks of computing the execution traces and performing operations on the execution traces. We present a formalism to automate the most time-consuming aspect of this approach for locating code, namely, the partitioning of the input sets into invoking and non-invoking sets. A collection of input sets is partitioned using feature syntax, a grammar of the program´s input annotated with feature names. An input set is placed in the invoking set if and only if its parse tree is annotated with that feature. WS´ technique solely applies set operations on the execution traces of inputs. In our technique, we also apply the set operations among the set of features used by these inputs. By doing so, we can precisely determine the features whose implementation is identified when applying the operations on the execution traces
Keywords
automatic programming; grammars; program diagnostics; reverse engineering; set theory; software maintenance; automated mapping; execution traces; feature names; feature syntax; grammar; input set partitioning; invoking sets; non-invoking sets; parse tree annotation; program features; set operations; set-difference; set-intersection;
fLanguage
English
Publisher
ieee
Conference_Titel
Program Comprehension, 2000. Proceedings. IWPC 2000. 8th International Workshop on
Conference_Location
Limerick
ISSN
1092-8138
Print_ISBN
0-7695-0656-9
Type
conf
DOI
10.1109/WPC.2000.852481
Filename
852481
Link To Document