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

加速基于SMT的定量程序分析

Speeding Up SMT-Based Quantitative Program Analysis

Daniel J. Fremont, Sanjit A. Seshia

摘要:

定量程序分析涉及计算关于程序执行的个体或集合的数值量。这种计算的一个例子是定量信息流分析,其中一个估计通过程序的输出通道泄漏的关于秘密数据的信息量。这种信息可以以几种方式量化,包括信道容量和(香农)熵。在本文中,我们形式化了一类定量分析问题定义在一个加权控制流图的无循环程序。这些问题可以使用路径枚举、SMT求解和模型计数的组合来解决。然而,现有的方法只能处理非常小的程序,主要是因为执行路径的数量在程序大小中可以是指数级的。我们展示了如何利用特殊的分支结构和新颖的算法设计在一些实际情况下可以减轻路径爆炸。我们证明了我们的技术,通过计算的信道容量的定时侧通道的两个程序具有非常大的路径数量。

英文摘要:

Quantitative program analysis involves computing numerical quantities about individual or collections of program executions. An example of such a computation is quantitative information flow analysis, where one estimates the amount of information leaked about secret data through a program's output channels. Such information can be quantified in several ways, including channel capacity and (Shannon) entropy. In this paper, we formalize a class of quantitative analysis problems defined over a weighted control flow graph of a loop-free program. These problems can be solved using a combination of path enumeration, SMT solving, and model counting. However, existing methods can only handle very small programs, primarily because the number of execution paths can be exponential in the program size. We show how path explosion can be mitigated in some practical cases by taking advantage of special branching structure and by novel algorithm design. We demonstrate our techniques by computing the channel capacities of the timing side-channels of two programs with extremely large numbers of paths.

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

↑