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

分析分析器:模型计数遇见抽象解释

Analyzing the Analyzers: Model Counting Meets Abstract Interpretation

The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全全国重点实验室)

Junda Zheng, Peisen Yao

AI总结:

提出MCAI方法,利用模型计数量化抽象域的精度,通过符号抽象评估四个域的转换器精度,发现区间域精度接近八边形域,位级域优于字级域。

摘要:

抽象解释通过抽象域近似具体程序语义,为静态分析提供了原则性基础。然而,定量比较不同域的精度仍然是一个长期挑战。我们提出MCAI(模型计数遇见抽象解释),一种新的方法论,采用模型计数来测量抽象域的精度。与先前相对于特定分析查询评估精度的方法不同,MCAI将具体语义和抽象值编码为逻辑公式,从而实现了与客户端无关的、定量的不精确性度量,捕捉抽象中固有的语义损失。我们将MCAI应用于四个抽象域,并通过符号抽象评估其最佳抽象转换器的精度。我们的结果产生了若干见解:区间域尽管简单,但通常达到与八边形域相当的精度;许多八边形约束在语义上是冗余的;位级KnownBit域始终优于字级域。MCAI为抽象域的精度提供了理论见解,并为选择合适的抽象提供了实践指导。

英文摘要:

Abstract interpretation offers a principled foundation for static analysis by approximating concrete program semantics via abstract domains. However, quantitatively comparing the precision of different domains remains a longstanding challenge. We present MCAI (Model Counting meets Abstract Interpretation), a new methodology that employs model counting to measure the precision of abstract domains. Unlike prior approaches that assess precision relative to specific analysis queries, MCAI encodes both concrete semantics and abstract values as logical formulas, enabling a client-independent, quantitative metric of imprecision that captures the inherent semantic loss in the abstractions. We apply MCAI to four abstract domains and evaluate the precision of their best abstract transformers via symbolic abstraction. Our results yield several insights: the Interval domain, despite its simplicity, often achieves precision comparable to that of Octagon; many octagonal constraints are semantically redundant; and the bit-level KnownBit domains consistently outperform the word-level domains. MCAI offers both theoretical insights into the precision of abstract domains and practical guidance for selecting suitable abstractions.

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

↑