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

内存高效的不动点计算

Memory-Efficient Fixpoint Computation

Sung Kook Kim, Arnaud J. Venet, Aditya V. Thakur

摘要:

实际采用静态分析通常需要以精度换取性能。本文的研究重点是在不牺牲精度和时间效率的前提下提高抽象解释的记忆效率。在计算上,抽象解释减少了推断程序不变量的问题,计算一组方程的不动点。本文提出了一种方法,以最大限度地减少布尔登克勒的迭代策略,一个广泛使用的不动点计算技术的内存占用。我们的技术是不可知的抽象域使用。我们证明我们的技术是最优的(即,它导致最小的存储器占用),同时计算相同的结果。我们通过在一个名为MIKOS的工具中实现我们的技术来评估其有效性,该工具扩展了最先进的抽象解释器IKOS。在验证用户提供的断言时,MIKOS显示与IKOS相比,平均峰值内存使用率降低到4.07%(24.57倍)。当执行过程间缓冲区溢出分析时,MIKOS显示与IKOS相比,平均峰值内存使用减少到43.7%(2.29倍)。

英文摘要:

Practical adoption of static analysis often requires trading precision for performance. This paper focuses on improving the memory efficiency of abstract interpretation without sacrificing precision or time efficiency. Computationally, abstract interpretation reduces the problem of inferring program invariants to computing a fixpoint of a set of equations. This paper presents a method to minimize the memory footprint in Bourdoncle's iteration strategy, a widely-used technique for fixpoint computation. Our technique is agnostic to the abstract domain used. We prove that our technique is optimal (i.e., it results in minimum memory footprint) for Bourdoncle's iteration strategy while computing the same result. We evaluate the efficacy of our technique by implementing it in a tool called MIKOS, which extends the state-of-the-art abstract interpreter IKOS. When verifying user-provided assertions, MIKOS shows a decrease in peak-memory usage to 4.07% (24.57x) on average compared to IKOS. When performing interprocedural buffer-overflow analysis, MIKOS shows a decrease in peak-memory usage to 43.7% (2.29x) on average compared to IKOS.

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

↑