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 / qualification / om2 / leak / fixtures / s1-rot.om
| 1 | om2 |
| 2 | note Contract section 3 lines 76-83: uint/ulong rotr and rotl, constant and public runtime amounts. |
| 3 | note Entry x0 and x2 may hold DATA; n (x1), m (x3) public. No message-dependent address or branch. |
| 4 | note ARM DDI0487M.d C6.2.160 EXTR (p2201), C6.2.349 RORV (p2580), C6.2.295 NEG (p2475). |
| 5 | fn f x uint n uint y ulong m ulong to ulong |
| 6 | a = rotr x 7 |
| 7 | r = ulong a |
| 8 | a = rotl x 11 |
| 9 | r = xor r ulong a |
| 10 | a = rotr x n |
| 11 | r = xor r ulong a |
| 12 | a = rotl x n |
| 13 | r = xor r ulong a |
| 14 | b = rotr y 17 |
| 15 | r = xor r b |
| 16 | b = rotl y 23 |
| 17 | r = xor r b |
| 18 | b = rotr y m |
| 19 | r = xor r b |
| 20 | b = rotl y m |
| 21 | ret xor r b |
| 22 | end |