M3: Semantic API Migrations
Not on the map. Why?
Abstract (arXiv)
Library migration is a challenging problem, where most existing approaches rely on prior knowledge. This can be, for example, information derived from changelogs or statistical models of API usage. This paper addresses a different API migration scenario where there is no prior knowledge of the target library. We have no historical changelogs and no access to its internal representation. To tackle this problem, this paper proposes a novel approach (M3), where probabilistic program synthesis is used to semantically model the behavior of library functions. Then, we use an SMT-based code search engine to discover similar code in user applications. These discovered instances provide potential locations for API migrations. We evaluate our approach against 7 well-known libraries from varied application domains, learning correct implementations for 94 functions. Our approach is integrated with standard compiler tooling, and we use this integration to evaluate migration opportunities in 9 existing C/C++ applications with over 1MLoC. We discover over 7,000 instances of these functions, of which more than 2,000 represent migration opportunities.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 27 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 3.
4 papers.
- 2023DeltaNN: Assessing the Impact of Computational Environment Parameters on the Performance of Image Recognition Modelscited by 3
- 2022BenchPress: A Deep Active Benchmark Generatorcited by 2
- 2023Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognitioncited by 2
- 2023mlirSynth: Automatic, Retargetable Program Raising in Multi-Level IR using Program Synthesiscited by 0
- 2023mlirSynth: Automatic, Retargetable Program Raising in Multi-Level IR using Program Synthesis6 Oct 2023
- 2023Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognition10 Jun 2023
- 2023DeltaNN: Assessing the Impact of Computational Environment Parameters on the Performance of Image Recognition Models5 Jun 2023
- 2022BenchPress: A Deep Active Benchmark Generator13 Aug 2022