Reverse Engineering State Machines by Interactive Grammar Inference
Authors:
- Neil WalkinshawNWNeil Walkinshaw
- Kirill BogdanovKBKirill Bogdanov
- Mike HolcombeMHMike Holcombe
- Sarah SalahuddinSSSarah Salahuddin
- 1 October 2007
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10951350,p. 209-218
Abstract
Finite state machine-derived specifications such as X-machines, extended finite state machines and abstract state machines, are an established means to model software behaviour. They allow for comprehensive testing of an implementation in terms of its intended behaviour. In practice however they are rarely generated and maintained during software development, hence their benefits can rarely be exploited. We address this problem by using an interactive grammar inference technique to infer the underlying state machine representation of an existing software system. The approach is interactive because it generates queries to the user as it constructs a hypothesis machine, which can be interpreted as system tests. This paper describes (1) how an existing grammar inference technique (QSM) can be used to reverse-engineer state-based models of software from execution traces at a developer-defined level of abstraction and (2) how the QSM technique can be improved for a better balance between the number of tests it proposes and the accuracy of the machine it derives. The technique has been implemented, which has enabled us to present a small case study of its use with respect to a real software system, along with some preliminary performance results.Keywords
This publication has 16 references indexed in Scilit:
- Identifying State Transitions and their Functions in Source Code2006
- Abstract state machines and high-level system design and analysisTheoretical Computer Science, 2005
- Locating features in source codeIEEE Transactions on Software Engineering, 2003
- Domain-Specific Optimization in Automata Learning2003
- Discovering models of software processes from event-based dataACM Transactions on Software Engineering and Methodology, 1998
- Results of the Abbadingo one DFA learning competition and a new evidence-driven state merging algorithm1998
- Principles and methods of testing finite state machines-a surveyProceedings of the IEEE, 1996
- INFERRING REGULAR LANGUAGES IN POLYNOMIAL UPDATED TIME1992
- Learning regular sets from queries and counterexamplesInformation and Computation, 1987
- Language identification in the limitInformation and Control, 1967