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 / omc / tests / pools / g5ctl.om
| 1 | om2 diag |
| 2 | note gate-pools 5 control: len of a sized global folds, so the same clause is erased rule=constant-true. |
| 3 | global G ulong 8 |
| 4 | fn f k ulong to ulong |
| 5 | requires eq len G 8 |
| 6 | ret k |
| 7 | end |
| 8 | fn main to int |
| 9 | x = f 1 |
| 10 | ret int x |
| 11 | end |