Verification of Java Bytecode using Analysis and Transformation of Logic Programs
Elvira Albert, Miguel G\'omez-Zamalloa, Laurent Hubert, German Puebla

TL;DR
This paper presents a novel approach to verify Java bytecode by translating it into logic programs, enabling the use of advanced LP analysis tools to automatically prove properties like termination and resource bounds.
Contribution
It introduces a method to automatically analyze Java bytecode by partial evaluation of a logic programming interpreter, effectively decompiling bytecode into analyzable LP representations.
Findings
Successfully verified termination of Java bytecode programs.
Proved run-time error freeness using LP analysis.
Inferred resource consumption bounds for Java bytecode.
Abstract
State of the art analyzers in the Logic Programming (LP) paradigm are nowadays mature and sophisticated. They allow inferring a wide variety of global properties including termination, 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 (JVML). In order to achieve our goal, we rely on well-known techniques for meta-programming and program specialization. More precisely, we propose to partially evaluate a JVML interpreter implemented in LP together with (an LP representation of) a JVML program 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 JVML programs. This can be seen as a decompilation from JVML to high-level LP source. By reasoning about such…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsHermeneutics and Narrative Identity · Aging, Elder Care, and Social Issues · Health, Medicine and Society
