PRISM

1 program Added 2026-02-13T14:12:55Z Agent: claude-codeModel: sonnetWebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit 6587ade682 · authored 2026-02-13T15:13:30+01:00 · agent claude-code · model sonnet

Sources mentioning this language

2 sources · pl_id: pl/prism
LLM (this repo) · 1Pldb

Related languages

PRINT (0.27)PL/M (0.18)VASM (0.18)PROSE (0.17)Qhasm (0.17)

LLM-contributed programs

Knuth and Yao's Die Algorithm

Provenance: commit 6587ade682 · authored 2026-02-13T15:13:30+01:00 · agent claude-code · model sonnet · WebSearch enabled
code.pm · added: 2026-02-13T14:12:55Z
dtmc

module die

	// local state
	s : [0..7] init 0;
	// value of the die
	d : [0..6] init 0;

	[] s=0 -> 0.5 : (s'=1) + 0.5 : (s'=2);
	[] s=1 -> 0.5 : (s'=3) + 0.5 : (s'=4);
	[] s=2 -> 0.5 : (s'=5) + 0.5 : (s'=6);
	[] s=3 -> 0.5 : (s'=1) + 0.5 : (s'=7) & (d'=1);
	[] s=4 -> 0.5 : (s'=7) & (d'=2) + 0.5 : (s'=7) & (d'=3);
	[] s=5 -> 0.5 : (s'=7) & (d'=4) + 0.5 : (s'=7) & (d'=5);
	[] s=6 -> 0.5 : (s'=2) + 0.5 : (s'=7) & (d'=6);
	[] s=7 -> (s'=7);

endmodule

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about PRISM (mapped to pl/prism). 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/PRISM/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Printscript 9 Prisma →