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 / tools / exp445 / arms / examples / cube_xor_pair / program.omegese
| 1 | fn cube_xor_pair n uchar to ushort |
| 2 | t = new ushort 16 0 |
| 3 | for i uint 16 |
| 4 | v = ushort i |
| 5 | put t i mul mul v v v |
| 6 | end |
| 7 | j = uint n |
| 8 | r = xor get t j get t add j 1 |
| 9 | free t |
| 10 | ret r |
| 11 | end |