1 / 10

Individual Research Presentation

Software Clones. Individual Research Presentation. Presented By: Adarsh Khare. Outline. Introduction Types of Clones Root Causes for Code Clones Strategies Tools Suggested Relating with 577a and 577b. 1. Types of Clones. Type1 Exact copy without modifications Type 2

andie
Télécharger la présentation

Individual Research Presentation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Software Clones Individual Research Presentation Presented By: AdarshKhare

  2. Outline • Introduction • Types of Clones • Root Causes for Code Clones • Strategies • Tools Suggested • Relating with 577a and 577b 1

  3. Types of Clones • Type1 • Exact copy without modifications • Type 2 • Syntactically Identical Copy ( only variable, type, or function identifiers have been changes) • Type 3 • A copy with further modifications ( statements have been changes, added, or removed) 2

  4. Root Causes • Programmers are forced to duplicate the code • Programmers reuse the copied text as a template and then customize • Time Pressure • Organizational Issues ( e.g distributed development organizations) 3

  5. Strategies • Clone Avoidance • Better to avoid them at the beginning. • Clone Removal • Can be achieved using commercial tools • Clone Detection 4

  6. Tool Suggested ( Clone Removal) • Let programmers copy and adjust, and then let tools factor out the • differences with appropriate mechanisms. –Ira Baxter, 2002 • Clone Dr 5

  7. Features of the Tool • Compares files exhaustively across whole systems • Available for many different languages like PHP 4.0 & 5.0, C,C++, C# • Supports analysis of thousands of files/millions of lines of code. 6

  8. Relating with 577a and 577b • 577a • Start gathering knowledge about the tools. • 577b • Use the tools during “Development Phase”. 7

  9. References • Clone Dr • http://www.semdesigns.com/Products/Clone/ • Survey Research and cloning • https://www.google.com/search?q=software+cloning&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a • http://drops.dagstuhl.de/volltexte/2007/962/pdf/06301.KoschkeRainer.962.pdf • http://www.tzi.de/st/papers/koschke-fosm-08.pdf 8

  10. Thank You !

More Related