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

量化形式化验证中SMT求解器的不稳定性

Quantifying SMT Solver Instability for Formal Verification

St. Olaf College(圣奥拉夫学院)

Daniel Evans, Rylie Hansen, John Shorter

AI总结:

本文针对形式化验证中SMT求解器的不稳定性问题,采用变异系数量化三个软件领域SMT查询的不稳定性,发现其显著且随查询平均时长增加而上升,提出优化查询结构可缓解不稳定性并提升性能。

摘要:

程序验证在软件开发项目中已变得司空见惯,其可行性很大程度上归功于SMT求解器自动化模型检查及其他验证技术的潜力。然而,SMT不稳定性这一现象——即语义等价的源代码排列会导致求解时间长得多或超时——已被发现会中断工作流程,使软件工程师更倾向于回避验证。此前测量SMT不稳定性的工作因它产生的异常运行时分布而难以量化。本文中,我们使用变异系数对来自三个软件领域的大量SMT查询数据集上的不稳定性进行建模。结果表明,SMT不稳定性在每个领域都很显著,且对于平均求解时间更长的查询,不稳定性会增加。不过,通过一种新的不稳定性量化方法,我们证明了一种不同的可行思路:若某方案能针对运行时而非变异优化查询结构,便可在缓解不稳定性的同时提升求解器的整体性能。

英文摘要:

Program verification has become commonplace in software development projects, and much of its feasibility can be attributed to the potential of SMT solvers to automate model checking and other verification techniques. However, SMT instability, a phenomenon where semantically equivalent permutations of source code take much longer to solve or timeout, has been found to interrupt workflows and make software engineers more likely to avoid verification. Previous efforts to measure SMT instability have had difficulty quantifying it due to the abnormal runtime distributions it produces. In this paper, we use the coefficient of variation to model instability across an extensive dataset of SMT queries from three software domains. Our results show that SMT instability is significant in each area, and that it increases for queries that take longer on average. However, using a novel method to quantify instability, we show that a different approach is possible: if a solution were to optimize the structure of queries for runtime, rather than variance, instability could be mitigated while also improving overall solver performance.

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

↑