/usr/share/doc/maria/examples/dining.pn is in maria 1.3.5-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | typedef unsigned (1..3) phil_t;
typedef struct {
phil_t p,
enum { thinking, hungry, eating } s
} status;
place fork (0..#phil_t) phil_t: phil_t p: p;
place state (#phil_t) status: phil_t p: { p, thinking };
trans left
in { place state: { p, thinking }; place fork: p; }
out { place state: { p, hungry }; };
trans right
in { place state: { p, hungry }; place fork: +p; }
out { place state: { p, eating }; };
trans finish
in { place state: { p, eating }; }
out { place state: { p, thinking }; place fork: p, +p; };
deadlock true;
|