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 / aienux / allen / tests / check.om
| 1 | global Fails ulong 1 |
| 2 | global Checks ulong 1 |
| 3 | fn check ok bool id ulong to void |
| 4 | put Checks 0 add get Checks 0 1 |
| 5 | outreset |
| 6 | emitn id |
| 7 | if ok |
| 8 | emitb 32 |
| 9 | emitb 48 |
| 10 | else |
| 11 | put Fails 0 add get Fails 0 1 |
| 12 | emitb 32 |
| 13 | emitb 49 |
| 14 | end |
| 15 | emitb 10 |
| 16 | w = write 1 Outb 0 get Outlen 0 |
| 17 | end |