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 / tests / arboris / emit-gated.om
| 1 | fn main to int |
| 2 | code = new uchar 16384 0 |
| 3 | dim = ulong 8 |
| 4 | if ge argcnt 2 |
| 5 | dim = ulong 264 |
| 6 | end |
| 7 | size = gv_emit_profile 5 dim 4 eq argcnt 3 code |
| 8 | if eq size 0 |
| 9 | ret 1 |
| 10 | end |
| 11 | if ne write 1 code 0 size long size |
| 12 | ret 2 |
| 13 | end |
| 14 | ret 0 |
| 15 | end |