KeY中浮点Java程序的演绎验证
Deductive Verification of Floating-Point Java Programs in KeY
摘要:
演绎验证在验证真实世界程序的有趣属性方面取得了成功。一个值得注意的差距是对浮点推理的支持有限。这是不幸的,因为浮点运算由于舍入以及特殊值infinity和“Not a Number”(NaN)的存在而特别不直观。在本文中,我们提出了第一个浮点支持的演绎验证工具的Java程序设计语言。我们在KeY验证器中的支持通过SMT求解器内部的浮点决策过程处理算术,并通过公理化处理超越函数。我们在新的基准上评估这种集成,并表明这种方法足够强大,可以证明没有浮点特殊值-通常是进一步推理数值计算的先决条件-以及现实基准的某些功能特性。
英文摘要:
Deductive verification has been successful in verifying interesting properties of real-world programs. One notable gap is the limited support for floating-point reasoning. This is unfortunate, as floating-point arithmetic is particularly unintuitive to reason about due to rounding as well as the presence of the special values infinity and `Not a Number' (NaN). In this paper, we present the first floating-point support in a deductive verification tool for the Java programming language. Our support in the KeY verifier handles arithmetic via floating-point decision procedures inside SMT solvers and transcendental functions via axiomatization. We evaluate this integration on new benchmarks, and show that this approach is powerful enough to prove the absence of floating-point special values -- often a prerequisite for further reasoning about numerical computations -- as well as certain functional properties for realistic benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。