interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / qualification / om2 / sec / s5s7 / a5-rot64.om

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