arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1709.02092cs.PLcs.FLcs.GT
收藏

基于符号博弈语义和模型计数的概率分析

Probabilistic Analysis Based On Symbolic Game Semantics and Model Counting

Aleksandar S. Dimovski

摘要:

概率程序分析的目的是量化给定程序满足所需属性的概率。它有许多潜在的应用,从程序理解和调试到计算程序可靠性,编译器优化和定量信息流分析安全。在这些情况下,量化满足/违反给定属性的概率通常比仅评估此类事件发生的可能性更相关。在这项工作中,我们介绍了一种基于游戏语义和模型计数的开放程序(即未定义标识符的程序)的概率分析方法。我们使用算法游戏语义的符号表示来收集导致目标事件发生的输入数据(上下文)上的符号约束(例如,满足/违反给定属性)。然后分析约束以量化输入满足它们的可能性。我们使用模型计数技术来计算满足给定约束的解(来自有界整数域)的数量。然后,这些计数用于为程序执行分配概率,并评估目标事件在所需置信度水平下发生的概率。最后,我们提出了几个有趣的例子应用我们的方法的结果,并说明他们可能提供的好处。

英文摘要:

Probabilistic program analysis aims to quantify the probability that a given program satisfies a required property. It has many potential applications, from program understanding and debugging to computing program reliability, compiler optimizations and quantitative information flow analysis for security. In these situations, it is usually more relevant to quantify the probability of satisfying/violating a given property than to just assess the possibility of such events to occur. In this work, we introduce an approach for probabilistic analysis of open programs (i.e. programs with undefined identifiers) based on game semantics and model counting. We use a symbolic representation of algorithmic game semantics to collect the symbolic constraints on the input data (context) that lead to the occurrence of the target events (e.g. satisfaction/violation of a given property). The constraints are then analyzed to quantify how likely is an input to satisfy them. We use model counting techniques to count the number of solutions (from a bounded integer domain) that satisfy given constraints. These counts are then used to assign probabilities to program executions and to assess the probability for the target event to occur at the desired level of confidence. Finally, we present the results of applying our approach to several interesting examples and illustrate the benefits they may offer.

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

↑