Probabilistic Synthesis for Program with Non-API Operations

Yating Zhang, Wei Dong, Daiyan Wang, Jiaxin Liu, Binbin Liu
{"title":"Probabilistic Synthesis for Program with Non-API Operations","authors":"Yating Zhang, Wei Dong, Daiyan Wang, Jiaxin Liu, Binbin Liu","doi":"10.1109/QRS-C51114.2020.00082","DOIUrl":null,"url":null,"abstract":"The current approaches to program synthesis focus more on works that contain only API methods. However, our survey shows that the ratio of non-API operations to API calls is very close in Java programs. Although non-API operations are difficult to obtain specific information from user intent, those operations in such as mathematics and logic are frequent and important, and that is an indispensable key in practical development tasks. We present Cana (Capsulate Non-API), an improved approach of probabilistic synthesis for non-API operations. Cana synthesizes programs with non-API operations through two main ideas. One is to encapsulate non-API operations into API calls, and the user also can provide related information when describing incomplete specifications. The other is heuristic strategies to solve the difficult problems that select variables with the same type. Experiments show that Cana can synthesize programs contains combinations of non-API operations in seconds.","PeriodicalId":358174,"journal":{"name":"2020 IEEE 20th International Conference on Software Quality, Reliability and Security Companion (QRS-C)","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 IEEE 20th International Conference on Software Quality, Reliability and Security Companion (QRS-C)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/QRS-C51114.2020.00082","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The current approaches to program synthesis focus more on works that contain only API methods. However, our survey shows that the ratio of non-API operations to API calls is very close in Java programs. Although non-API operations are difficult to obtain specific information from user intent, those operations in such as mathematics and logic are frequent and important, and that is an indispensable key in practical development tasks. We present Cana (Capsulate Non-API), an improved approach of probabilistic synthesis for non-API operations. Cana synthesizes programs with non-API operations through two main ideas. One is to encapsulate non-API operations into API calls, and the user also can provide related information when describing incomplete specifications. The other is heuristic strategies to solve the difficult problems that select variables with the same type. Experiments show that Cana can synthesize programs contains combinations of non-API operations in seconds.
非api操作程序的概率综合
当前的程序合成方法更多地关注于只包含API方法的工作。然而,我们的调查显示,在Java程序中,非API操作与API调用的比例非常接近。虽然非api操作很难从用户意图中获取具体的信息,但数学、逻辑等操作频繁且重要,是实际开发任务中不可或缺的关键。我们提出了Cana(荚膜非api),一种改进的非api操作的概率合成方法。Cana通过两个主要思想将程序与非api操作结合起来。一种是将非API操作封装到API调用中,用户在描述不完整的规范时也可以提供相关信息。另一种是启发式策略,用于解决选择同类型变量的难题。实验表明,Cana可以在几秒内合成包含非api操作组合的程序。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信