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-hubs.om
| 1 | note SPDX-License-Identifier: AGPL-3.0-only |
| 2 | fn main to int |
| 3 | code = new uchar 16384 0 |
| 4 | size = arboris_emit_hubs 129 127 code |
| 5 | if or eq size 0 ne arboris_emit_hubs 129 129 code 0 |
| 6 | ret 1 |
| 7 | end |
| 8 | if ne write 1 code 0 size long size |
| 9 | ret 2 |
| 10 | end |
| 11 | ret 0 |
| 12 | end |