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 / om2 / s4 / o-run.om
| 1 | note S4 out: inside the unit an out is a sized edit; an internal function fills a local through it |
| 2 | note and reads it back. Exit 0 when the values hold. |
| 3 | om2 |
| 4 | fn fill r out ulong 3 v ulong to ulong |
| 5 | for i ulong 3 |
| 6 | put r i add v i |
| 7 | end |
| 8 | ret get r 2 |
| 9 | end |
| 10 | fn main to int |
| 11 | a = new ulong 3 0 |
| 12 | if ne fill a 10 12 |
| 13 | ret 1 |
| 14 | end |
| 15 | if ne get a 0 10 |
| 16 | ret 2 |
| 17 | end |
| 18 | ret 0 |
| 19 | end |