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 / sites / found-binop-1.om
| 1 | note sites: found by a one-token change of a tracked program; reaches the omc error site in binop (code 7) |
| 2 | fn fibonacci_u32 n bool to uint |
| 3 | if eq n 0 |
| 4 | ret 0 |
| 5 | end |
| 6 | a = uint 0 |
| 7 | b = uint 1 |
| 8 | count = ulong sub n 1 |
| 9 | for i ulong count |
| 10 | c = add a b |
| 11 | a = b |
| 12 | b = c |
| 13 | end |
| 14 | ret b |
| 15 | end |