reverse engineering traces to state machines
play

Reverse engineering - traces to state machines Neil Walkinshaw and - PowerPoint PPT Presentation

Inference Competition Reverse engineering - traces to state machines Neil Walkinshaw and Kirill Bogdanov 1 1 Department of Computer Science The University of Sheffield TAIC PART, September 4, 2010 U. of Sheffield Reverse engineering - traces


  1. Inference Competition Reverse engineering - traces to state machines Neil Walkinshaw and Kirill Bogdanov 1 1 Department of Computer Science The University of Sheffield TAIC PART, September 4, 2010 U. of Sheffield Reverse engineering - traces to state machines

  2. Inference Competition Outline Inference 1 Motivation The idea of a passive learner k-tails A more clever learner Competition 2 U. of Sheffield Reverse engineering - traces to state machines

  3. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner State-based models are useful For understanding software, Model-checking, Test generation. U. of Sheffield Reverse engineering - traces to state machines

  4. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner Maintenance can be difficult Legacy software tends to have no models associated with it, A failing test could indicate a fault in a model, Requirements-level defects have to be corrected in both. U. of Sheffield Reverse engineering - traces to state machines

  5. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner Grammar inference Assuming we know how to interpret traces from a program as sequences of events, and we know the overall pattern a model should obey (such as recognise a regular language) The task is to learn models from event traces. U. of Sheffield Reverse engineering - traces to state machines

  6. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner k-tails learner Take traces and hypothesise what other traces should be possible or not . . . . . . assuming that some states in traces correspond to the same state in the model. k-tails assumes that if suffixes of length k are the same, so are the states. U. of Sheffield Reverse engineering - traces to state machines

  7. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner k-tails learner Take traces and hypothesise what other traces should be possible or not . . . . . . assuming that some states in traces correspond to the same state in the model. k-tails assumes that if suffixes of length k are the same, so are the states. U. of Sheffield Reverse engineering - traces to state machines

  8. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner k-tails learner U. of Sheffield Reverse engineering - traces to state machines

  9. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner A lot of work was done by the Grammar Inference community on passive learners - no feedback from a user. If the initial PTA has "enough" positive and negative sequences, the correct FSM will be learnt. U. of Sheffield Reverse engineering - traces to state machines

  10. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner edit edit open edit save edit save edit t i d e open edit save Starting from the initial node, pairs of states are considered and merged in the order of their compatibility score An outcome of merging has to be validated - there is a new path � open , edit , save , edit , edit � which is not in the original tree. U. of Sheffield Reverse engineering - traces to state machines

  11. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner edit edit save ? open edit ? save Since dynamic analysis does not give "enough" traces, feedback is used to validate mergers. The two marked states cannot be merged - if a learner attempts to merge them, a user will say that � open , save � cannot be performed, hence a reject -node is added. Experimental results: if we always merge states with a high score (such as 3), we can get 10x reduction in the number of questions and around 10% reduction in the quality of the learnt machine. U. of Sheffield Reverse engineering - traces to state machines

  12. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner Questions can be executed on a system, checked using static analysis or presented as questions to a developer. State merging performs no systematic exploration. In order to make analysis more complete, static analysis can be used to compute an underapproximation on infeasible paths, hence a better-quality tree without extra queries. U. of Sheffield Reverse engineering - traces to state machines

  13. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner IF-THEN properties save save edit e edit v a s open save edit save edit IF THEN edit edit edit save edit U. of Sheffield Reverse engineering - traces to state machines

  14. Motivation Inference The idea of a passive learner Competition k-tails A more clever learner Graph comparison makedir setfiletype initialise rename connect delete delete login listnames changedirectory appendfile changedirectory changedirectory setfiletype listfiles storefile makedir storefile retrievefile storefile rename changedirectory listfiles makedir setfiletype logout logout logout appendfile storefile logout logout disconnect U. of Sheffield Reverse engineering - traces to state machines

  15. Inference Competition Competition Existing techniques tend to be evaluated on an alphabet of 2, Not necessarily sparse automata, With an uncertain transition structure, software models tend to have hub-based structure more states tends to mean larger depth The idea is to start a competition where one would aim to learn state machines typical of software. U. of Sheffield Reverse engineering - traces to state machines

  16. Inference Competition Participate sample size 100 50 25 12.5 2 5 alphabet 10 20 50 http://stamina.chefbe.net/ Download sequences, upload labelling of tests, USD 1053 prise money, Special issue of Journal of Empirical Software Engineering. U. of Sheffield Reverse engineering - traces to state machines

  17. Inference Competition PostDoc position open PostDoc position open at the Unversity of Sheffield, UK, for up to 2 years from now. U. of Sheffield Reverse engineering - traces to state machines

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend