arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.13244cs.SE
收藏

评估执行环境对基于观察的切片的影响

Assessing the Impact of Execution Environment on Observation-Based Slicing

David Binkley, Leon Moonen

摘要:

程序切片将程序减少到保留所选计算的较小版本,称为切片标准。一种最近的多语言切片方法,基于观察的切片(ORBS),推测性地删除程序的一部分,然后执行代码。如果切片标准的行为没有改变,则推测性删除被永久化。虽然这使得ORBS语言不可知,但它可能导致产生一些非直观的切片。一个特殊的挑战是执行环境何时起作用。例如,如果在执行语句之前分配给a的内存位置包含零,则ORBS将删除行“a = 0”,因为删除不会影响a的值,从而不会影响切片标准。因此,由于诸如初始化和调用堆栈重用之类的因素,执行环境之间的片可能不同。所考虑的技术,nVORBS,试图通过验证在n个不同的执行环境中的候选切片来改善这个问题。我们进行了实证研究,以收集执行环境导致切片差异的频率的初步见解。具体来说,我们比较和对比七个不同的实例化nVORBS所产生的切片。展望未来,该技术可以被看作是变形测试的一个变种,从而表明如何从变形测试的想法可能被用来改善动态程序分析。

英文摘要:

Program slicing reduces a program to a smaller version that retains a chosen computation, referred to as a slicing criterion. One recent multi-lingual slicing approach, observation-based slicing (ORBS), speculatively deletes parts of the program and then executes the code. If the behavior of the slicing criteria is unchanged, the speculative deletion is made permanent. While this makes ORBS language agnostic, it can lead to the production of some non-intuitive slices. One particular challenge is when the execution environment plays a role. For example, ORBS will delete the line "a = 0" if the memory location assigned to a contains zero before executing the statement, since deletion will not affect the value of a and thus the slicing criterion. Consequently, slices can differ between execution environments due to factors such as initialization and call stack reuse. The technique considered, nVORBS, attempts to ameliorate this problem by validating a candidate slice in n different execution environments. We conduct an empirical study to collect initial insights into how often the execution environment leads to slice differences. Specifically, we compare and contrast the slices produced by seven different instantiations of nVORBS. Looking forward, the technique can be seen as a variation on metamorphic testing, and thus suggests how ideas from metamorphic testing might be used to improve dynamic program analysis.

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

↑