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 / t6.om
| 1 | struct Acc sum long v long 4 end |
| 2 | fn main to long |
| 3 | s = new Acc 3 3 |
| 4 | for i long 4 |
| 5 | put s v i add get s v i i |
| 6 | put s sum add get s sum get s v i |
| 7 | end |
| 8 | ret get s sum |
| 9 | end |