A Fully Dynamic Approach to the Reverse Engineering of UML Sequence Diagrams
Authors:
- Tewfik ZiadiTZTewfik Ziadi
- Marcos Aurélio Almeida da SilvaMSMarcos Aurélio Almeida da Silva
- Lom Messan HillahLHLom Messan Hillah
- Mikal ZianeMZMikal Ziane
- 1 April 2011
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 34, 107-116
Abstract
The reverse engineering of behavioral models consists in extracting high-level models that help understand the behavior of existing software systems. In the context of reverse engineering of sequence diagrams, most approaches strongly depend on the static analysis and instrumentation of the source code to produce correct diagrams that take into account control flow structures such as alternative blocks ("if"s) and repeated blocks ("loop"s). This approach is not possible with systems for which no source code is available anymore (e.g. some legacy systems). In this paper, we propose an approach for the reverse engineering of sequence diagrams from the analysis of execution traces produced dynamically by an object-oriented application. Our approach is fully based on dynamic analysis and reuses the k-tail merging algorithm to produce a Labeled Transition System (LTS) that merges the collected traces. This LTS is then translated into a sequence diagram which contains alternatives and loops. A prototype of this approach has been tested with a real world application that has been developed independently from the present work. Our results show that this approach can produce sequence diagrams in reasonable time and suggest that these diagrams are helpful in understanding the behavior of the underlying application.Keywords
This publication has 16 references indexed in Scilit:
- A Systematic Survey of Program Comprehension through Dynamic AnalysisIEEE Transactions on Software Engineering, 2009
- A survey and evaluation of tool features for understanding reverse‐engineered sequence diagramsJournal of Software Maintenance and Evolution: Research and Practice, 2008
- Automatic generation of software behavioral models2008
- Reverse Engineering State Machines by Interactive Grammar Inference2007
- Test Synthesis from UML Models of Distributed SoftwareIEEE Transactions on Software Engineering, 2007
- Encoding program executions2005
- Revisiting statechart synthesis with an algebraic approach2004
- Discovering models of software processes from event-based dataACM Transactions on Software Engineering and Methodology, 1998
- Derivatives of Regular ExpressionsJournal of the ACM, 1964
- Delayed-logic and finite-state machines1961