arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1707.04127cs.PLcs.LOcs.SE
收藏

用模糊逻辑连接静态和动态程序分析

Bridging Static and Dynamic Program Analysis using Fuzzy Logic

Jacob Lidman, Josef Svenningsson

摘要:

静态程序分析用于总结所有动态执行的属性。在基于三值逻辑的统一方法中,属性要么被赋予一个确定的值,要么是未知的。但是在总结一组执行时,属性更准确地表示为偏向true或false。制造商使用程序分析来确定优化的好处。由于受益(例如,性能)是基于常见的情况下,理解偏见是必要的指导编译器的理由。此外,成功的优化还依赖于理解信息的质量,即偏差的可解释性。如果静态信息的质量太低,无法形成决策,我们希望有一个动态改进的机制。我们考虑的问题,建立这样一个推理框架,并提出了模糊数据流分析。我们的方法概括了以前的工作,使用3值逻辑。我们得到模糊扩展的数据流分析所使用的懒惰代码运动优化和揭示机会以前的工作不会检测到由于有限的表现力。此外,我们展示了如何我们的分析结果可以用于自适应分类器,提高应用程序执行。

英文摘要:

Static program analysis is used to summarize properties over all dynamic executions. In a unifying approach based on 3-valued logic properties are either assigned a definite value or unknown. But in summarizing a set of executions, a property is more accurately represented as being biased towards true, or towards false. Compilers use program analysis to determine benefit of an optimization. Since benefit (e.g., performance) is justified based on the common case understanding bias is essential in guiding the compiler. Furthermore, successful optimization also relies on understanding the quality of the information, i.e. the plausibility of the bias. If the quality of the static information is too low to form a decision we would like a mechanism that improves dynamically. We consider the problem of building such a reasoning framework and present the fuzzy data-flow analysis. Our approach generalize previous work that use 3-valued logic. We derive fuzzy extensions of data-flow analyses used by the lazy code motion optimization and unveil opportunities previous work would not detect due to limited expressiveness. Furthermore we show how the results of our analysis can be used in an adaptive classifier that improve as the application executes.

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

↑