在Stainless中验证浮点程序
Verifying Floating-Point Programs in Stainless
AI总结:
Stainless通过扩展验证器支持浮点数,实现了对Scala子集的自动验证,验证数学函数公理并验证实际实现的正确性。
摘要:
我们扩展了Stainless演绎验证器,使其支持浮点数,为Scala的一个子集提供了首个自动验证支持,该子集包含多态性、递归和高阶函数。我们遵循KeY验证器最近的方法,通过公理化来推理数学函数,但进一步支持了Scala数学API中的所有函数,并通过Stainless自身实现验证公理的正确性。我们在GitHub上采样的新基准测试集上验证了Stainless的浮点支持,显示它可以验证大多数支持函数的输出范围或特殊值的缺失,或在规范不成立时生成反例。
英文摘要:
We extend the Stainless deductive verifier with floating-point support, providing the first automated verification support for floating-point numbers for a subset of Scala that includes polymorphism, recursion and higher-order functions. We follow the recent approach in the KeY verifier to axiomatise reasoning about mathematical functions, but go further by supporting all functions from Scala's math API, and by verifying the correctness of the axioms against the actual implementation in Stainless itself. We validate Stainless' floating-point support on a new set of benchmarks sampled from real-world code from GitHub, showing that it can verify specifications about, e.g., ranges of output or absence of special values for most supported functions, or produce counter-examples when the specifications do not hold.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。