CORC  > 北京大学  > 信息科学技术学院
Transforming Code with Compositional Mappings for API-Library Switching
Wu, Ling ; Wu, Qian ; Liang, Guangtai ; Wang, Qianxiang ; Jin, Zhi
2015
关键词Code Transformation Compositional Mappings PROGRAM TRANSFORMATION EVOLUTION REFACTORINGS CATCHUP SUPPORT
英文摘要API-library switching is to change an underlying API library to another one for a given program. API-library switching is frequent in software-development process, with typical examples as migrating programs across platforms or across incompatible versions of API libraries. Manual API-library switching is time-consuming and error-prone. To address this problem, previous research has proposed a series of rule-based code-transformation approaches. However, these existing approaches are ineffective in conducting code transformation for those original code snippets containing a sequence of method invocations correlated with each other and in need of being considered together when transformed. We call the pair of an original code snippet and its transformed target code snippet as a compositional-mapping instance. Through our empirical investigation, we confirm that compositional-mapping instances widely exist during API-library switching. To handle compositional-mapping instances, in this paper, we propose a novel code-transformation approach named as CMIT. Our evaluations compare CMIT with an existing rule-based code-transformation approach. The evaluation results show that, compared to the existing approach, CMIT is more flexible, and CMIT increases the recall on average by 33.8% without decreasing the precision.; EI; CPCI-S(ISTP); wuling07@sei.pku.edu.cn; wuqian08@sei.pku.edu.cn; lianggt08@sei.pku.edu.cn; wqx@sei.pku.edu.cn; zhijin@sei.pku.edu.cn; 316-325; 2
语种英语
出处39th IEEE Annual International Computer Software and Applications Conference Workshops (COMPSAC)
DOI标识10.1109/COMPSAC.2015.29
内容类型其他
源URL[http://ir.pku.edu.cn/handle/20.500.11897/436633]  
专题信息科学技术学院
推荐引用方式
GB/T 7714
Wu, Ling,Wu, Qian,Liang, Guangtai,et al. Transforming Code with Compositional Mappings for API-Library Switching. 2015-01-01.
个性服务
查看访问统计
相关权益政策
暂无数据
收藏/分享
所有评论 (0)
暂无评论
 

除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。


©版权所有 ©2017 CSpace - Powered by CSpace