VDM-RT

1 program Added 2026-03-05T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Vienna Development Method Real-Time, VDM Real-Time
Provenance: commit 8eea960f96 · authored 2026-03-05T12:19:00+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

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

Related languages

VDM (0.53)VDM-SL (0.43)JADE (0.14)ROOM (0.14)RTcmix (0.14)

LLM-contributed programs

Calculator with Factorial

Provenance: commit 8eea960f96 · authored 2026-03-05T12:19:00+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.vdmrt · added: 2026-03-05T12:00:00Z
system World

instance variables
  cpu1 : CPU := new CPU(<FCFS>, 1E6);

instance variables
  c : Calculator := new Calculator();

operations
  World() ==
    cpu1.deploy(c, "Calculator")

end World

class Calculator

instance variables
  private result : int := 0;

operations
  public add : int * int ==> int
  add(x, y) ==
  (
    result := x + y;
    return result
  );

  public factorial : nat ==> nat
  factorial(n) ==
    if n = 0
    then return 1
    else return n * factorial(n - 1);

  public run : () ==> ()
  run() ==
  (
    IO`println(add(3, 4));
    IO`println(factorial(5))
  )

end Calculator

Contribute — propose a file extension

Tell us where to find evidence about VDM-RT (mapped to pl/vdm_rt). 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/VDM-RT/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← VDM++ VDM-SL →