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 / authority / action-om2-test.om
| 1 | note SPDX-License-Identifier: AGPL-3.0-only |
| 2 | note Compose after om2 and action.om; exercise all six identity groups and their words. |
| 3 | fn main to int |
| 4 | r = new ulong 32 0 |
| 5 | c = new ulong 32 0 |
| 6 | for i ulong 24 |
| 7 | put r add i 8 add i 100 |
| 8 | put c add i 8 add i 100 |
| 9 | end |
| 10 | if ne actbind r c 0 |
| 11 | ret 1 |
| 12 | end |
| 13 | for i ulong 24 |
| 14 | put c add i 8 add i 101 |
| 15 | if ne actbind r c add 40 div i 4 |
| 16 | ret 2 |
| 17 | end |
| 18 | put c add i 8 add i 100 |
| 19 | end |
| 20 | if ne actbind r c 0 |
| 21 | ret 3 |
| 22 | end |
| 23 | ret 0 |
| 24 | end |