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 / tests / ir / x-fuel.om
| 1 | note x-fuel: the condition is still true after exactly 1000000 passes: trap 4 |
| 2 | fn main to int |
| 3 | i = ulong 0 |
| 4 | s = ulong 0 |
| 5 | while lt i 1000001 bound 1000000 |
| 6 | s = add s i |
| 7 | i = add i 1 |
| 8 | end |
| 9 | ret int and s 255 |
| 10 | end |