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

通过SMT求解改进策略

Improving Strategies via SMT Solving

Thomas Martin Gawlitza, David Monniaux

摘要:

我们考虑的问题计算数值不变量的程序的抽象解释。我们的方法避免了两个传统的不精确性来源:(i)使用加宽算子在有限数量的迭代中强制收敛(ii)在控制流图的合并点使用合并操作(通常是凸包)。相反,它计算在一组有限的程序点的域中可表达的最小归纳不变式,并整体分析代码的其余部分。我们强调,我们精确地计算这个归纳不变量。为此,我们扩展了[Gawlitza和Seidl,2007]的策略改进算法。如果我们直接应用他们的方法,我们将不得不解决一个指数级大小的抽象语义方程系统,导致内存耗尽。相反,我们保持系统的隐式和发现使用SAT模实线性算术(SMT)的策略改进。为了评估策略,我们使用线性规划。我们的算法具有低的多项式空间复杂度,并在最坏的情况下执行人工的例子指数许多战略改进的步骤,这是不足为奇的,因为我们表明,相关的抽象可达性问题是Pi-p-2-完成。

英文摘要:

We consider the problem of computing numerical invariants of programs by abstract interpretation. Our method eschews two traditional sources of imprecision: (i) the use of widening operators for enforcing convergence within a finite number of iterations (ii) the use of merge operations (often, convex hulls) at the merge points of the control flow graph. It instead computes the least inductive invariant expressible in the domain at a restricted set of program points, and analyzes the rest of the code en bloc. We emphasize that we compute this inductive invariant precisely. For that we extend the strategy improvement algorithm of [Gawlitza and Seidl, 2007]. If we applied their method directly, we would have to solve an exponentially sized system of abstract semantic equations, resulting in memory exhaustion. Instead, we keep the system implicit and discover strategy improvements using SAT modulo real linear arithmetic (SMT). For evaluating strategies we use linear programming. Our algorithm has low polynomial space complexity and performs for contrived examples in the worst case exponentially many strategy improvement steps; this is unsurprising, since we show that the associated abstract reachability problem is Pi-p-2-complete.

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

↑