Names for JML entities #3
wadoon
started this conversation in
Change Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
STATE: This proposal is in an early stage, and tries to gather examples.
Motivation
Currently, we can not attach names to JML entities, like contracts or invariants.
Such names could improve the interaction between JML tools and the user, e.g.,
the tool could say which invariant (by name) is not provable, or the user could guide
the contract selection using the contract names.
Proposal
We extend JML body declaration, method contracts and loop contracts with the possibility to carry a name.
JML body declarations
!! This syntax collides with the
represents-clause.JML field and method declarations already carries a names.
Contracts
Introduction of introducing the
nameclause. Note, the clause overwrites the name and is not cumulative when used in nested contracts. This clause was used in KeY a long time ago, but (somehow) the support was dropped.All reactions