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 / tests / one_layer / omegese / nested / dev07.omegese
| 1 | fn isqrt x uint to uint |
| 2 | v = ulong x |
| 3 | r = ulong 0 |
| 4 | for i ulong 16 |
| 5 | c = or r shl 1 sub 15 i |
| 6 | if le mul c c v |
| 7 | r = c |
| 8 | end |
| 9 | end |
| 10 | ret uint r |
| 11 | end |