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 / bridge / omega-bridge / tests / native / fill.om
| 1 | note writes 11 and 22 into buf, traps 3 when k is 1, else writes 33 and returns 3 |
| 2 | fn fill buf edit ulong 4 k ulong to ulong |
| 3 | put buf 0 11 |
| 4 | put buf 1 22 |
| 5 | if eq k 1 |
| 6 | trap 3 |
| 7 | end |
| 8 | put buf 2 33 |
| 9 | ret 3 |
| 10 | end |