Reusing Battle-tested Code: A Systematic Literature Review of Automated Software Transplantation
Thanatad Songpetchmongkol, Earl T. Barr, Mark Harman, Federica Sarro, Justyna Petke
Key points
From the paper's conclusion- We identified 27 distinct automated software transplantation approaches.
Abstract
Software reuse remains a fundamental challenge in software engineering, often caught between the security risks of external libraries and the reliability concerns of generative AI. Automated software transplantation offers a compelling alternative by enabling the direct extraction and integration, into new host systems, of battle-tested logic (code that has already survived the rigors of production, possibly over many years of extensive in-production use). This paper presents a systematic literature review to evaluate the current state-of-the-art and identify the remaining barriers preventing this technology from becoming a mainstream engineering practice. We identified 27 distinct automated software transplantation approaches. Our analysis reveals that while the adaptation of code is highly automated, significant bottlenecks remain in the manual prerequisite steps of organ location and test suite augmentation. We conclude with a research roadmap that suggests how these manual obstacles might be overcome, including the strategic use of Large Language Models to assist in identifying and verifying high-value, production-hardened logic for transplantation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Survey of Code-to-Code Translation: From Statistical Rule-Based Systems to LLM AgentsAlgorithms · 2026
- Multi-Agent Coordinated Method-Level Refactoring of Rust CodearXiv · 2026
- IssueExec: A Test-Driven Approach for Localizing Software Engineering IssuesProceedings of the ACM on Software Engineering · 2026
- Launder-Bench: Can Repository-Level Agentic Code Laundering Be Detected?arXiv · 2026
- LLM-Assisted Software Migration: from Module-Level Transformation to Repository-Level IntegrationarXiv · 2026
- Testing Method Relocation Algorithms via Template-Based Systematic Structural Traversal and Precondition FilteringProceedings of the ACM on Software Engineering · 2026