Symbolic execution for randomized programs
Symbolic execution for randomized programs
复制标题
DOI:
10.1145/3563344
复制
发表时间:
2022-09
影响因子:
--
通讯作者:
Zachary J. Susag;Sumitra Lahiri;Justin Hsu;Subhajit Roy
中科院分区:
文献类型:
--
作者:
Zachary J. Susag;Sumitra Lahiri;Justin Hsu;Subhajit Roy
We propose a symbolic execution method for programs that can draw random samples. In contrast to existing work, our method can verify randomized programs with unknown inputs and can prove probabilistic properties that universally quantify over all possible inputs. Our technique augments standard symbolic execution with a new class of probabilistic symbolic variables, which represent the results of random draws, and computes symbolic expressions representing the probability of taking individual paths. We implement our method on top of the KLEE symbolic execution engine alongside multiple optimizations and use it to prove properties about probabilities and expected values for a range of challenging case studies written in C++, including Freivalds’ algorithm, randomized quicksort, and a randomized property-testing algorithm for monotonicity. We evaluate our method against Psi, an exact probabilistic symbolic inference engine, and Storm, a probabilistic model checker, and show that our method significantly outperforms both tools.