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-vs-end-1.om
| 1 | note sites: found by a one-token change of a tracked program; reaches the omc error site in vs-end (code 7) |
| 2 | note Supervisor negative controls: known wrong exit, self-signal, deadline overrun. |
| 3 | global mode uchar 1 |
| 4 | fn main to int |
| 5 | if ne read 0 mode 0 long 1 |
| 6 | ret 90 |
| 7 | end |
| 8 | m = get mode 0 |
| 9 | if eq m 0 |
| 10 | ret 7 |
| 11 | end |
| 12 | if eq m 1 |
| 13 | r = killpid int getpid 9 |
| 14 | ret 98 |
| 15 | end |
| 16 | if eq m 2 |
| 17 | r = sleepns 45000000000 |
| 18 | ret 98 |
| 19 | end |
| 20 | ret 90 |
| 21 | end |