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-bool / init_true.om
| 1 | note init_true.om: a bool field set true by new reads back true and the neighbour reads back 5. |
| 2 | struct W a uint f bool end |
| 3 | fn main to uint |
| 4 | w = new W 5 true |
| 5 | if eq get w f true |
| 6 | ret add get w a 10 |
| 7 | end |
| 8 | ret 1 |
| 9 | end |