一种面向数据流包容的数据流分析框架
A Data Flow Analysis Framework for Data Flow Subsumption
摘要:
数据流测试将测试需求创建为定义-使用(DU)关联,其中定义是将值分配给变量的程序位置,使用是访问该值的位置。数据流测试是昂贵的,主要是因为测试需求的数量。幸运的是,许多DU关联在某种意义上是冗余的,如果一个测试需求(例如,节点、边缘、DU关联)被覆盖,其他DU关联被保证也被覆盖。这种关系称为包容。因此,测试人员可以通过只覆盖不包含在其他测试需求中的DU关联来节省资源。在这项工作中,我们正式描述的数据流包容框架(DSF)的设想,以解决数据流包容问题。我们表明,DFS是一个分布式的数据流分析框架,它允许有效的迭代算法找到满足所有路径(MOP)的解决方案的DSF传递函数。MOP解意味着点$p$处的结果对于到达$p$的所有路径都有效。我们还提出了一种算法,称为包容算法(SA),它使用DSF传递函数和迭代算法来找到本地DU关联节点包容,也就是说,一组DU关联,覆盖每当一个节点$n$是巡回测试。给出了SA的正确性证明,并分析了其复杂性。
英文摘要:
Data flow testing creates test requirements as definition-use (DU) associations, where a definition is a program location that assigns a value to a variable and a use is a location where that value is accessed. Data flow testing is expensive, largely because of the number of test requirements. Luckily, many DU-associations are redundant in the sense that if one test requirement (e.g., node, edge, DU-association) is covered, other DU-associations are guaranteed to also be covered. This relationship is called subsumption. Thus, testers can save resources by only covering DU-associations that are not subsumed by other testing requirements. In this work, we formally describe the Data Flow Subsumption Framework (DSF) conceived to tackle the data flow subsumption problem. We show that DFS is a distributive data flow analysis framework which allows efficient iterative algorithms to find the Meet-Over-All-Paths (MOP) solution for DSF transfer functions. The MOP solution implies that the results at a point $p$ are valid for all paths that reach $p$. We also present an algorithm, called Subsumption Algorithm (SA), that uses DSF transfer functions and iterative algorithms to find the local DU-associations-node subsumption; that is, the set of DU-associations that are covered whenever a node $n$ is toured by a test. A proof of SA's correctness is presented and its complexity is analyzed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。