arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2206.14175cs.SEcs.AIcs.CYcs.PL
收藏

InvAASTCluster:将基于不变量的程序聚类应用于入门编程作业

InvAASTCluster: On Applying Invariant-Based Program Clustering to Introductory Programming Assignments

INESC-ID;Instituto Superior Técnico(理工学院);Universidade de Lisboa(里斯本大学);CIIRC;Czech Technical University in Prague(布拉格捷克技术大学)

Pedro Orvalho, Mikoláš Janota, Vasco Manquinho

AI总结:

本文提出 InvAASTCluster 程序聚类方法,结合动态生成的程序不变量与匿名化抽象语法树表示语义等价的入门编程作业,集成至修复工具后使修复的学生程序数量提升约13%且耗时更短。

摘要:

由于编程课程的注册学生人数众多,针对入门编程作业(IPAs)的自动程序修复技术日益增多。通常,此类技术利用程序聚类,借助以往正确的学生实现来修复新的错误提交。这些修复技术使用聚类方法,因为分析所有可用的正确提交来修复一个程序是不可行的。然而,传统的聚类方法依赖于基于抽象语法树(ASTs)、语法、控制流和数据流等特征的程序表示。本文提出 InvAASTCluster,一种新颖的程序聚类方法,使用动态生成的程序不变量对语义等价的 IPAs 进行聚类。InvAASTCluster 的程序表示结合了程序的语义(通过其不变量)和结构(通过其匿名化抽象语法树 AASTs)。不变量表示在程序执行期间必须保持为真的条件,而 AASTs 是去除了变量和函数名、仅保留其类型的 ASTs。我们的实验表明,在对一组正确的 IPAs 进行聚类时,所提出的程序表示优于基于语法的表示。此外,我们将 InvAASTCluster 集成到最先进的基于聚类的程序修复工具中。结果表明,当被基于聚类的修复工具使用时,InvAASTCluster 推进了当前的最先进水平,在更短的时间内多修复了约 13% 的学生程序。

英文摘要:

Due to the vast number of students enrolled in programming courses, there has been an increasing number of automated program repair techniques focused on introductory programming assignments (IPAs). Typically, such techniques use program clustering to take advantage of previous correct student implementations to repair a new incorrect submission. These repair techniques use clustering methods since analyzing all available correct submissions to repair a program is not feasible. However, conventional clustering methods rely on program representations based on features such as abstract syntax trees (ASTs), syntax, control flow, and data flow. This paper proposes InvAASTCluster, a novel approach for program clustering that uses dynamically generated program invariants to cluster semantically equivalent IPAs. InvAASTCluster's program representation uses a combination of the program's semantics, through its invariants, and its structure through its anonymized abstract syntax tree (AASTs). Invariants denote conditions that must remain true during program execution, while AASTs are ASTs devoid of variable and function names, retaining only their types. Our experiments show that the proposed program representation outperforms syntax-based representations when clustering a set of correct IPAs. Furthermore, we integrate InvAASTCluster into a state-of-the-art clustering-based program repair tool. Our results show that InvAASTCluster advances the current state-of-the-art when used by clustering-based repair tools by repairing around 13% more students' programs, in a shorter amount of time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑