JML

1 program Added 2026-02-10T12:00:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Java Modeling Language
Provenance: commit 7ac94a2c52 · authored 2026-02-10T12:34:26+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Forge (0.51)LookML (0.49)BitML (0.47)SDML (0.43)WSML (0.41)

LLM-contributed programs

BankAccount with JML Specifications

Provenance: commit 7ac94a2c52 · authored 2026-02-10T12:34:26+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.java · added: 2026-02-10T12:00:00Z
public class BankAccount {
    private /*@ spec_public @*/ int balance;

    //@ invariant balance >= 0;

    /*@ requires initialBalance >= 0;
      @ ensures balance == initialBalance;
      @*/
    public BankAccount(int initialBalance) {
        this.balance = initialBalance;
    }

    /*@ requires amount >= 0;
      @ ensures balance == \old(balance) + amount;
      @*/
    public void deposit(int amount) {
        balance = balance + amount;
    }

    /*@ requires amount >= 0 && amount <= balance;
      @ ensures balance == \old(balance) - amount;
      @*/
    public void withdraw(int amount) {
        balance = balance - amount;
    }

    /*@ ensures \result == balance;
      @*/
    public /*@ pure @*/ int getBalance() {
        return balance;
    }
}

Contribute — propose a file extension

Tell us where to find evidence about JML (mapped to pl/jml). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/JML/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← JMESPath JModelica.org →