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

在 Java 字节码层面验证功能正确性属性

Verifying Functional Correctness Properties At the Level of Java Bytecode

Marco Paganoni, Carlo A. Furia

AI总结:

本文提出在 Java 字节码层面工作的验证技术 ByteBack,通过源码级规约库与类型、表达式信息重建,验证多版本 Java 及现代特性编译出的字节码。

摘要:

现代编程语言的飞速演进加剧了演绎验证工具的开发难度,这些工具难以及时、完整地支持所有新语言特性。为应对这一挑战,我们提出 ByteBack:一种在 Java 字节码上工作的验证技术。与高级语言相比,字节码等中间表示提供的特性集合更有限也更稳定;因此,它们可能有助于将验证过程与源代码层面语言的变化解耦。ByteBack 提供一个库,用于在源代码层面规定功能正确性属性,因此字节码仅作为最终用户无需直接操作的中间表示。随后,ByteBack 会重建编译为字节码期间被擦除、但正确执行验证所必需的部分类型和表达式信息。我们基于 ByteBack 的一个实现开展的实验表明,它能够成功验证由不同版本 Java 编译得到的字节码,其中包括若干连 KeY 和 OpenJML 等最先进 Java 验证器都不直接支持的现代语言特性——从而揭示 ByteBack 的方法如何帮助验证技术跟上语言演进。

英文摘要:

The breakneck evolution of modern programming languages aggravates the development of deductive verification tools, which struggle to timely and fully support all new language features. To address this challenge, we present ByteBack: a verification technique that works on Java bytecode. Compared to high-level languages, intermediate representations such as bytecode offer a much more limited and stable set of features; hence, they may help decouple the verification process from changes in the source-level language. ByteBack offers a library to specify functional correctness properties at the level of the source code, so that the bytecode is only used as an intermediate representation that the end user does not need to work with. Then, ByteBack reconstructs some of the information about types and expressions that is erased during compilation into bytecode but is necessary to correctly perform verification. Our experiments with an implementation of ByteBack demonstrate that it can successfully verify bytecode compiled from different versions of Java, and including several modern language features that even state-of-the-art Java verifiers (such as KeY and OpenJML) do not directly support$\unicode{x2013}$thus revealing how ByteBack's approach can help keep up verification technology with language evolution.

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

↑