omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / omc / sites / found-rdval-6.om
| 1 | note sites: found by a one-token change of a tracked program; reaches the omc error site in rdval (code 7) |
| 2 | note clock: time, identity and randomness; no file, network or process words. |
| 3 | text ok "clock\n" |
| 4 | fn main to int |
| 5 | t = monons |
| 6 | p = getpid |
| 7 | b = new uchar 8 0 |
| 8 | r = random b 0 8 0 |
| 9 | if or le t f64 le p 0 |
| 10 | ret 1 |
| 11 | end |
| 12 | w = write 1 ok 0 len ok |
| 13 | ret 0 |
| 14 | end |