谓词参数的比较与重排序的数据流分析
A Dataflow Analysis for Comparing and Reordering Predicate Arguments
AI总结:
本研究针对逻辑编程语言设计了一种数据流分析,计算谓词参数的轮廓以描述其功能性和数据消费/构造行为,支持细粒度参数比较与排序,应用于克隆检测和谓词规范化。
摘要:
在这项工作中,我们在(模态)逻辑编程语言的背景下,设计了一种数据流分析,专门用于计算我们称之为参数轮廓(argument profiles)的信息。这样的轮廓本质上描述了谓词的每个参数的功能性,即参数在谓词求值过程中可能涉及的操作,以及参数如何促进数据值的消费和/或构造。虽然计算出的参数轮廓可用于程序理解方面的应用(因为每个轮廓本质上提供了一种更好地理解参数角色的方式),但更重要的是,它们提供了一种比类型和模式等其他抽象特征更细粒度地区分参数的方法。这对于需要识别两个或多个不同谓词参数之间对应关系的应用(如克隆检测)非常重要。此外,由于可以在轮廓的抽象域上定义全序关系,我们的分析可用于重新排列谓词参数并根据其功能性对它们进行排序,从而构成谓词规范化技术的基本要素。
英文摘要:
In this work, which is done in the context of a (moded) logic programming language, we devise a data-flow analysis dedicated to computing what we call argument profiles. Such a profile essentially describes, for each argument of a predicate, its functionality, i.e. the operations in which the argument can be involved during an evaluation of the predicate, as well as how the argument contributes to the consumption and/or construction of data values. While the computed argument profiles can be useful for applications in the context of program understanding (as each profile essentially provides a way to better understand the role of the argument), they more importantly provide a way to discern between arguments in a manner that is more fine-grained than what can be done with other abstract characterizations such as types and modes. This is important for applications where one needs to identify correspondences between the arguments of two or more different predicates that need to be compared, such as during clone detection. Moreover, since a total order can be defined on the abstract domain of profiles, our analysis can be used for rearranging predicate arguments and order them according to their functionality, constituting as such an essential ingredient for predicate normalization techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。