arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Artificial Intelligence

Java Bytecode Verification using Analysis and Transformation of Logic Programs

E. Albert, M. Gómez-zamalloa, L. Hubert, G. Puebla

See on the map

Abstract

Abstract. State of the art analyzers in the (Constraint) Logic Programming paradigm (or (C)LP for short) are nowadays mature and sophisticated. They allow inferring a wide variety of global properties including termination, run-time error freeness, bounds on resource consumption, etc. The aim of this work is to automatically transfer the power of such analysis tools for LP to the analysis and verification of Java bytecode. In order to achieve our goal, we rely on well-known techniques for metaprogramming and program specialization. More precisely, we propose to partially evaluate a Java bytecode interpreter implemented in LP w.r.t. (a LP representation of) a set of Java bytecode classes and then analyze the residual program. Interestingly, at least for the examples we have studied, our approach produces very simple LP representations of the original Java bytecode programs. This can be seen as an automatic translation and decompilation from Java bytecode to LP source. Reasoning about properties of such residual programs allows automatically proving some non-trivial properties of Java bytecode programs such as termination and run-time error freeness. 1

More like this