需求驱动的可持续发展分析:形式化可靠性和精度的双向分析
Demand-driven Alias Analysis : Formalizing Bidirectional Analyses for Soundness and Precision
摘要:
需求驱动的程序分析方法已被视为有效的算法,只计算所需的信息,以满足目标需求。相比之下,穷举方法计算所有信息,以备以后使用。然而,对于一组给定的需求,需求驱动的方法被认为是计算相同的信息,将通过相应的穷举方法计算。我们调查的精度和双向性的需求驱动的方法,并表明:(a)需求驱动的方法可以形式化固有的双向数据流分析,因为需求是对控制流和信息传播,以满足需求的控制流传播。我们扩展的形式化的满足路径解决方案的双向流。这种形式化有助于我们证明我们的分析的合理性和精确性,并且(b)由于需求驱动的方法只计算满足需求所需的信息,因此它应该能够减少由数据抽象引起的不精确性,因此应该比穷举方法更精确。我们表明,虽然这确实是Java的情况下,C/C++,精度关键取决于如何处理间接分配。我们使用这种洞察力,并提出了一个需求驱动的别名分析,这是更精确的比详尽的分析C/C++了。我们选择了去虚拟化作为应用程序。我们的测量表明,我们的方法不仅是更有效的,但更精确的比现有的需求驱动的方法,以及相应的穷举方法。
英文摘要:
A demand-driven approach to program analysis have been viewed as efficient algorithms to compute only the information required to serve a target demand. In contrast, an exhaustive approach computes all information in anticipation of it being used later. However, for a given set of demands, demand-driven methods are believed to compute the same information that would be computed by the corresponding exhaustive methods. We investigate the precision and bidirectional nature of demand-driven methods and show that: (a) demand-driven methods can be formalized inherently as bidirectional data flow analysis because the demands are propagated against the control flow and the information to satisfy the demands is propagated along the control flow. We extend the formalization of the Meet Over Paths solution to bidirectional flows. This formalization helps us to prove the soundness and precision of our analysis, and (b) since a demand-driven method computes only the required information to meet a demand, it should be able to reduce the imprecision caused by data abstractions and hence should be more precise than an exhaustive method. We show that while this is indeed the case with Java, for C/C++, the precision critically hinges on how indirect assignments are handled. We use this insight and propose a demand-driven alias analysis that is more precise than an exhaustive analysis for C/C++ too. We have chosen devirtualization as an application. Our measurements show that our method is not only more efficient but more precise than the existing demand-driven method, as well as the corresponding exhaustive method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。