arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.02715cs.SEcs.FL
收藏

双自动机与正则表达式用于字符串静态分析

Twinning automata and regular expressions for string static analysis

Ca’ Foscari University of Venice(威尼斯大学);JuliaSoft S.r.l.(JuliaSoft有限公司)

Luca Negrini, Vincenzo Arceri, Pietro Ferrara, Agostino Cortesi

AI总结:

本文提出基于抽象解释理论的Tarsis抽象域,通过有限状态自动机近似字符串值,利用字符串字母表提升分析精度,通过实验验证其优于现有方法。

摘要:

在本文中,我们正式化并证明了Tarsis的正确性,这是一种基于抽象解释理论的新抽象域,通过有限状态自动机近似字符串值。Tarsis的主要创新在于其基于字符串字母表而非单个字符。一方面,这种方法需要更复杂和精细的宽化运算符定义和字符串运算符的抽象语义。另一方面,它能够获得比现有方法更精确的结果。我们实现了一个Tarsis原型,并将其应用于一些流行的Java库中处理字符串值的案例研究。实验结果证实,Tarsis能够获得比现有分析更精确的结果。

英文摘要:

In this paper we formalize and prove the soundness of Tarsis, a new abstract domain based on the abstract interpretation theory that approximates string values through finite state automata. The main novelty of Tarsis is that it works over an alphabet of strings instead of single characters. On the one hand, such approach requires a more complex and refined definition of the widening operator, and the abstract semantics of string operators. On the other hand, it is in position to obtain strictly more precise results than than state-of-the-art approaches. We implemented a prototype of Tarsis, and we applied it on some case studies taken from some of the most popular Java libraries manipulating string values. The experimental results confirm that Tarsis is in position to obtain strictly more precise results than existing analyses.

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

↑