Skip to main content

A Programming Logic for Java Bytecode Programs

  • Conference paper
Theorem Proving in Higher Order Logics (TPHOLs 2003)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2758))

Included in the following conference series:

Abstract

Using the Isabelle theorem prover [10] we have developed a programming logic for Java bytecode, and demonstrated that it can be used to prove properties of simple bytecode programs involving loops. Our motivation for this was to produce a method by which Java Just-In-Time (JIT) compilers could be assisted to produce more efficient code. This paper discusses the issues involved in the development of the programming logic as it stands, and suggests possible extensions to it. We also describe our experiences of the difficulties inherent in carrying out proof at the level of bytecode instructions, along with the benefits and disadvantages of using a mechanized proof tool.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Microjava theories, http://isabelle.in.tum.de/library/HOL/MicroJava/

  2. Camilleri, J., Melham, T.: Reasoning with Inductively Defined Relations in the HOL Theorem Prover. Technical Report 265, University of Cambridge Computer Laboratory (1992)

    Google Scholar 

  3. Detlefs, D.L., Rustan, K., Leino, M., Nelson, G., Saxe, J.B.: Extended Static Checking. Technical Report 159, Compaq Systems Research Center (1998)

    Google Scholar 

  4. Drossopoulou, S., Eisenbach, S.: Java is Type Safe - Probably. In: Proceedings of the 11th European Conference on Object Oriented Programming (1997)

    Google Scholar 

  5. Huisman, M., Jacobs, B.: Java ProgramVerification via a Hoare Logic with Abrupt Termination. In: Maibaum, T. (ed.) FASE 2000. LNCS, vol. 1783, p. 284. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  6. Jacobs, B.: The LOOP Project, http://www.cs.kun.nl/bart/LOOP/

  7. Lindholm, T., Yellin, F.: The Java Virtual Machine Specification. Addison-Wesley, Reading (1997)

    Google Scholar 

  8. Moore, J.S.: Proving Theorems about Java-like Byte Code (May 1999)

    Google Scholar 

  9. Nipkow, T., von Oheimb, D.: \(Java_{\it light}\) is Type-Safe—Definitely. In: 25th ACM Symposium on Principles of Programming Languages, San Diego, January 19-21 (1998)

    Google Scholar 

  10. Paulson, L.C.: Iterative Software Engineering for Multiagent Systems. LNCS (1994)

    Google Scholar 

  11. Pusch, C.: Formalizing the Java Virtual Machine in Isabelle/HOL. Technical report, Technische Universität München (June 1998)

    Google Scholar 

  12. Quigley, C.L.: Proof for Optimization, Programming Logic Support for Java JIT Compilers. PhD thesis, University of Glasgow, submitted (October 2002)

    Google Scholar 

  13. Syme, D.: Proving Java Type Soundness. Technical report, Computer Laboratory, University of Cambridge (June 1997)

    Google Scholar 

  14. Winskel, G.: The Formal Semantics of Programming Languages. The MIT Press, Cambridge (1993)

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2003 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Quigley, C.L. (2003). A Programming Logic for Java Bytecode Programs. In: Basin, D., Wolff, B. (eds) Theorem Proving in Higher Order Logics. TPHOLs 2003. Lecture Notes in Computer Science, vol 2758. Springer, Berlin, Heidelberg. https://doi.org/10.1007/10930755_3

Download citation

  • DOI: https://doi.org/10.1007/10930755_3

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-40664-8

  • Online ISBN: 978-3-540-45130-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics