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 / sec / s5s7 / a5-op-rotl.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 abstract lines 140-143: rotl not listed (ops rotr xor). Erratum E8: error 7. |
| 3 | om2 |
| 4 | abstract dup32 ulong ops rotr xor |
| 5 | holds dup32 dup32 |
| 6 | fn dup32mk x uint to dup32 |
| 7 | ret seal dup32 or shl ulong x 32 ulong x |
| 8 | end |
| 9 | fn main to int |
| 10 | d = dup32mk 5 |
| 11 | e = rotl d 3 |
| 12 | puth open e |
| 13 | ret 0 |
| 14 | end |