自动生成用于学习程序分析算法的特征
Automatically generating features for learning program analysis heuristics
摘要:
我们提出了一种自动生成功能的数据驱动的程序分析的技术。最近,数据驱动的方法,建立一个程序分析已被提出,挖掘现有的代码库和自动学习算法,为一个给定的分析任务找到一个成本效益的抽象。这些方法减轻了分析设计人员的负担,但它们并没有完全消除它;它们仍然将设计所谓的功能的高度不平凡的任务留给设计人员。我们的技术自动化这个功能设计过程。这个想法是在减少和抽象程序后将其用作特征。我们的技术通过选定的程序查询对代码库,它减少和抽象的程序在每对几行代码,同时确保分析的行为类似于原始和新的程序相对于查询。每一个简化的程序作为一个布尔特征的程序查询对。对于给定的程序-查询对,当(作为程序)它包含在程序部分中时,此功能的评估结果为true。我们已经实现了三个现实世界的程序分析我们的方法。我们的实验评估表明,这些分析与自动生成的功能执行手动制作的功能。
英文摘要:
We present a technique for automatically generating features for data-driven program analyses. Recently data-driven approaches for building a program analysis have been proposed, which mine existing codebases and automatically learn heuristics for finding a cost-effective abstraction for a given analysis task. Such approaches reduce the burden of the analysis designers, but they do not remove it completely; they still leave the highly nontrivial task of designing so called features to the hands of the designers. Our technique automates this feature design process. The idea is to use programs as features after reducing and abstracting them. Our technique goes through selected program-query pairs in codebases, and it reduces and abstracts the program in each pair to a few lines of code, while ensuring that the analysis behaves similarly for the original and the new programs with respect to the query. Each reduced program serves as a boolean feature for program-query pairs. This feature evaluates to true for a given program-query pair when (as a program) it is included in the program part of the pair. We have implemented our approach for three real-world program analyses. Our experimental evaluation shows that these analyses with automatically-generated features perform comparably to those with manually crafted features.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。