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 / tensix / mix.unit.om
| 1 | note Exercises CONST (lui+addi), MOV, mul and xor in irrv32.om: out[i] = ((a[i]+b[i])*3000000000) xor a[i]. |
| 2 | fn mix a uint b uint to uint |
| 3 | x = add a b |
| 4 | y = mul x uint 3000000000 |
| 5 | z = y |
| 6 | ret xor z a |
| 7 | end |