arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.27107cs.PLcs.LO
收藏

位向量CHC求解用于二进制分析及二进制分析用于位向量CHC求解

Bit-Vector CHC Solving for Binary Analysis and Binary Analysis for Bit-Vector CHC Solving

School of Computing and Information Systems The University of Melbourne(墨尔本大学计算与信息学学院)

Aaron Bembenek, Toby Murray

AI总结:

本文通过将二进制分析问题转换为位向量逻辑中的Horn子句问题,展示了现有CHC求解器在二进制分析中的有效性,并指出二进制分析可为CHC求解提供有价值的基准测试。

摘要:

对于高可靠性软件,源级推理不足:我们需要二进制级保证。尽管受限Horn子句(CHC)求解是自动化验证中最受欢迎的形式之一,但先前的工作未评估CHC求解在二进制分析中的可行性。为填补这一空白,我们构建了一个管道,将二进制分析问题编码为CHC,以在无量词位向量逻辑中求解,并展示现有CHC求解器在由983个C不变式推理基准编译的二进制上取得合理成功:一个组合解决59.5%和66.1%的问题,分别对应未优化和优化二进制的问题——大致等于领先C验证器在源代码上的成功率(60.1%)。此外,我们表明二进制分析为位向量CHC基准提供了有价值的数据(这些数据稀缺):二进制衍生的问题在结构上和求解成功率和排名上都与现有基准不同。将二进制衍生的基准纳入CHC求解竞赛将鼓励求解器开发者改进位向量推理,从而使CHC求解成为更有效的二进制分析工具。

英文摘要:

For high-assurance software, source-level reasoning is insufficient: we need binary-level guarantees. Despite constrained Horn clause (CHC) solving being one of the most popular forms of automated verification, prior work has not evaluated the viability of CHC solving for binary analysis. To fill this gap, we assemble a pipeline that encodes binary analysis problems as CHCs in the SMT logic of quantifier-free bit vectors, and show that off-the-shelf CHC solvers achieve reasonable success on binaries compiled from 983 C invariant inference benchmarks: a portfolio solves 59.5% and 66.1% of the problems derived from the unoptimized and optimized binaries, respectively -- roughly equal to the success rate of a leading C verifier on the source code (60.1%). Moreover, we show that binary analysis provides a valuable source of bit-vector CHC benchmarks (which are in short supply): binary-derived problems differ from existing benchmarks both structurally and in solver success rates and rankings. Augmenting CHC solving competitions with binary-derived benchmarks will encourage solver developers to improve bit-vector reasoning, in turn making CHC solving a more effective tool for binary analysis.

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

↑