arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1311.0768cs.PL
收藏

一般线性回路的抽象加速度

Abstract Acceleration of General Linear Loops

Bertrand Jeannet, Peter Schrammel, Sriram Sankaranarayanan

摘要:

我们提出了抽象的加速技术计算循环不变量的数值程序与线性分配和条件。抽象解释技术通常迭代地过度近似可达状态的集合,而抽象加速则利用应用于循环头处的初始状态的单个非迭代传递函数来捕获循环的效果。与以前的加速技术相比,我们的方法适用于任何线性循环,没有限制。它的新颖性在于使用的约旦范式分解的循环体,以获得符号表达式的元素的矩阵建模的效果n>=0的循环迭代。这种矩阵的元素通过复多项式、指数和三角函数依赖于$n$。因此,我们引入了一个抽象域矩阵,捕捉这些复杂的表达式之间的线性不等式关系。这将产生一个抽象矩阵,用于描述循环的定点语义。我们的方法集成到标准的抽象解释器顺利,可以处理嵌套循环和循环包含条件分支的程序。我们评估它在控制软件中常见的小而复杂的循环,将其与其他计算线性循环不变量的工具进行比较。我们的基准测试中的循环通常表现出多项式,指数和振荡行为,对现有方法提出了挑战。我们的方法找到了非平凡的不变量来证明这些循环的变量值的有用界限,在精度方面明显优于现有的方法,同时表现出良好的性能。

英文摘要:

We present abstract acceleration techniques for computing loop invariants for numerical programs with linear assignments and conditionals. Whereas abstract interpretation techniques typically over-approximate the set of reachable states iteratively, abstract acceleration captures the effect of the loop with a single, non-iterative transfer function applied to the initial states at the loop head. In contrast to previous acceleration techniques, our approach applies to any linear loop without restrictions. Its novelty lies in the use of the Jordan normal form decomposition of the loop body to derive symbolic expressions for the entries of the matrix modeling the effect of n>=0 iterations of the loop. The entries of such a matrix depend on $n$ through complex polynomial, exponential and trigonometric functions. Therefore, we introduces an abstract domain for matrices that captures the linear inequality relations between these complex expressions. This results in an abstract matrix for describing the fixpoint semantics of the loop. Our approach integrates smoothly into standard abstract interpreters and can handle programs with nested loops and loops containing conditional branches. We evaluate it over small but complex loops that are commonly found in control software, comparing it with other tools for computing linear loop invariants. The loops in our benchmarks typically exhibit polynomial, exponential and oscillatory behaviors that present challenges to existing approaches. Our approach finds non-trivial invariants to prove useful bounds on the values of variables for such loops, clearly outperforming the existing approaches in terms of precision while exhibiting good performance.

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

↑