基于值上下文的Soot过程间数据流分析
Interprocedural Data Flow Analysis in Soot using Value Contexts
摘要:
如果过程间分析是流敏感的并且即使在存在递归的情况下也是完全上下文敏感的,那么它就是精确的。许多过程间分析的方法为了可伸缩性而牺牲了精确性,而有些方法虽然精确,但仅限于某一类问题。Soot目前支持使用图可达性对Java程序进行过程间分析。然而,这种方法仅限于IFDS/IDE问题,并且不适用于具有非分布流功能的一般数据流框架,例如堆引用分析和指向分析。我们描述了一个通用的跨过程的分析框架,烟尘使用数据流值的上下文敏感性。这个框架并不局限于分配流函数的问题,虽然格必须是有限的。它结合了函数方法的表格方法和基于值的调用字符串构造终止技术的关键思想。过程间分析的效率和精度很大程度上受底层调用图精度的影响。这对于像Java这样的面向对象语言来说尤其重要,如果调用图是简单地构造的,那么虚方法调用会导致虚假调用边的爆炸。我们在Soot中使用流和上下文敏感的指向分析实例化了我们的框架,这使得调用图的构建比Soot的SPARK引擎构建的调用图精确得多。
英文摘要:
An interprocedural analysis is precise if it is flow sensitive and fully context-sensitive even in the presence of recursion. Many methods of interprocedural analysis sacrifice precision for scalability while some are precise but limited to only a certain class of problems. Soot currently supports interprocedural analysis of Java programs using graph reachability. However, this approach is restricted to IFDS/IDE problems, and is not suitable for general data flow frameworks such as heap reference analysis and points-to analysis which have non-distributive flow functions. We describe a general-purpose interprocedural analysis framework for Soot using data flow values for context-sensitivity. This framework is not restricted to problems with distributive flow functions, although the lattice must be finite. It combines the key ideas of the tabulation method of the functional approach and the technique of value-based termination of call string construction. The efficiency and precision of interprocedural analyses is heavily affected by the precision of the underlying call graph. This is especially important for object-oriented languages like Java where virtual method invocations cause an explosion of spurious call edges if the call graph is constructed naively. We have instantiated our framework with a flow and context-sensitive points-to analysis in Soot, which enables the construction of call graphs that are far more precise than those constructed by Soot's SPARK engine.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。