一种向现有代码库添加体系结构策略的程序合成方法
A Program Synthesis Approach for Adding Architectural Tactics to An Existing Code Base
摘要:
根据给定的规范自动构造程序已经研究了几十年。尽管在程序合成领域取得了进步,但是当前的方法仍然合成代码片段块,并且将在现有代码库中重用它的任务留给程序开发者。由于其对整个程序的影响,综合一种架构策略并在程序中重用它更具挑战性。架构策略需要根据程序不同位置的上下文进行综合,分解为更小的部分,并添加到代码中的相应位置。此外,每个片段都需要建立与周围环境以及其他合成片段的正确数据和控制依赖关系。这是一项容易出错且具有挑战性的任务,尤其是对于新手程序开发人员。在本文中,我们介绍了一种新的程序合成的方法,综合架构策略,并将它们添加到现有的代码库。
英文摘要:
Automatically constructing a program based on given specifications has been studied for decades. Despite the advances in the field of Program Synthesis, the current approaches still synthesize a block of code snippet and leave the task of reusing it in an existing code base to program developers. Due to its program-wide effects, synthesizing an architectural tactic and reusing it in a program is even more challenging. Architectural tactics need to be synthesized based on the context of different locations of the program, broken down to smaller pieces, and added to corresponding locations in the code. Moreover, each piece needs to establish correct data- and control-dependencies to its surrounding environment as well as to the other synthesized pieces. This is an error-prone and challenging task, especially for novice program developers. In this paper, we introduce a novel program synthesis approach that synthesizes architectural tactics and adds them to an existing code base.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。