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 / ng / front / cases / nom_t5.om
| 1 | note Wrapped copy of seed/omc/tests/struct/t5.om for gate-front-ir: main to uint, ulong or long becomes subject (nom-wrap.sh). |
| 2 | struct C n uint last uint end |
| 3 | fn bump c edit C v uint to void |
| 4 | put c n add get c n v |
| 5 | put c last v |
| 6 | end |
| 7 | fn subject to uint |
| 8 | c = new C 4 4 |
| 9 | bump c 3 |
| 10 | ret add get c n get c last |
| 11 | end |
| 12 | fn main to int |
| 13 | ret int subject |
| 14 | end |