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-rot64.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 abstract line 140 with 3 lines 79-81: rotr of a dup32 is a 64-bit rotation, so |
| 3 | note n = 64 is outside 0..63 and traps 7 at run time even when constant: exit 107, no stdout. |
| 4 | note Confirmed by erratum E8; n has the representation type ulong (erratum E9). |
| 5 | om2 |
| 6 | abstract dup32 ulong ops rotr xor |
| 7 | holds dup32 dup32 |
| 8 | fn dup32mk x uint to dup32 |
| 9 | ret seal dup32 or shl ulong x 32 ulong x |
| 10 | end |
| 11 | fn main to int |
| 12 | d = dup32mk 5 |
| 13 | puth open rotr d 64 |
| 14 | ret 0 |
| 15 | end |