SwePub
Sök i LIBRIS databas

  Extended search

onr:"swepub:oai:lup.lub.lu.se:0e7a34fc-1a9f-46e4-8f34-198cb3fbee52"
 

Search: onr:"swepub:oai:lup.lub.lu.se:0e7a34fc-1a9f-46e4-8f34-198cb3fbee52" > Cleaning up copy–pa...

  • 1 of 1
  • Previous record
  • Next record
  •    To hitlist

Cleaning up copy–paste clones with interactive merging

Narasimhan, Krishna (author)
Itemis AG
Reichenbach, Christoph (author)
Lund University,Lunds universitet,Institutionen för datavetenskap,Institutioner vid LTH,Lunds Tekniska Högskola,Department of Computer Science,Departments at LTH,Faculty of Engineering, LTH
Lawall, Julia (author)
Paris-Sorbonne University
 (creator_code:org_t)
2018-07-09
2018
English.
In: Automated Software Engineering. - : Springer Science and Business Media LLC. - 0928-8910 .- 1573-7535. ; 25:3, s. 627-673
  • Journal article (peer-reviewed)
Abstract Subject headings
Close  
  • Copy-paste-modify is a form of software reuse in which developers explicitly duplicate source code. This duplicated source code, amounting to a code clone, is adapted for a new purpose. Copy-paste-modify is popular among software developers, however, empirical evidence shows that it complicates software maintenance and increases the frequency of bugs. To allow developers to use copy-paste-modify without having to worry about these concerns, we propose an approach that automatically merges similar pieces of code by creating suitable abstractions. Because different kinds of abstractions may be beneficial in different contexts, our approach offers multiple abstraction mechanisms, which were selected based on a study of popular open-source repositories. To demonstrate the feasibility of our approach, we have designed and implemented a prototype merging tool for C++ and evaluated it on a number of code clones exhibiting some variation, i.e., near-miss clones, in popular Open Source packages. We observed that maintainers find our algorithmically created abstractions to be largely preferable to the existing duplicated code.

Subject headings

NATURVETENSKAP  -- Data- och informationsvetenskap -- Programvaruteknik (hsv//swe)
NATURAL SCIENCES  -- Computer and Information Sciences -- Software Engineering (hsv//eng)

Keyword

Clone management
Program analysis
Source code analysis
Static analysis

Publication and Content Type

art (subject category)
ref (subject category)

Find in a library

To the university's database

  • 1 of 1
  • Previous record
  • Next record
  •    To hitlist

Find more in SwePub

By the author/editor
Narasimhan, Kris ...
Reichenbach, Chr ...
Lawall, Julia
About the subject
NATURAL SCIENCES
NATURAL SCIENCES
and Computer and Inf ...
and Software Enginee ...
Articles in the publication
Automated Softwa ...
By the university
Lund University

Search outside SwePub

Kungliga biblioteket hanterar dina personuppgifter i enlighet med EU:s dataskyddsförordning (2018), GDPR. Läs mer om hur det funkar här.
Så här hanterar KB dina uppgifter vid användning av denna tjänst.

 
pil uppåt Close

Copy and save the link in order to return to this view