Desugaring JML Method Specifications

Arun D. Raghavan, Gary T. Leavens

2005 · 40 citations · 15 references

Full text

Open access

Concepts

TL;DR

JML is a Java Modeling Language BISL that employs extensive syntactic sugar to make method specifications more expressive. The paper proposes a desugaring process that reduces all JML method specification sugars into a simpler form. The process systematically rewrites each sugar construct into equivalent basic JML constructs. The desugaring aids understanding of sugar semantics for verification and facilitates tool manipulation of JML method specifications.

Abstract

JML, which stands for “Java Modeling Language,” is a behavioral interface specification language (BISL) designed to specify Java modules. JML features a great deal of syntactic sugar that is designed to make method specifications more expressive. This paper presents a desugaring process that boils down all of the syntactic sugars in JML method specifications into a much simpler form. This desugaring will help one understand the meaning of these sugars, for example for use in program verification. It may also help manipulation of JML method specifications by tools.

References

15