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 / struct / t5.om
| 1 | struct C n uint last uint end |
| 2 | fn bump c edit C v uint to void |
| 3 | put c n add get c n v |
| 4 | put c last v |
| 5 | end |
| 6 | fn main to uint |
| 7 | c = new C 4 4 |
| 8 | bump c 3 |
| 9 | ret add get c n get c last |
| 10 | end |