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 / om1 / t-shactx.om

23 lines · 629 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 twin of l5-shactx.om (contract 163-165): the sha256_ctx image written byte by byte,
3note little endian. Expected stdout oracle/s5s7/exp/l5-shactx.out (python3 struct, gcc offsetof).
4note 270544960 = 0x10203040, 81985529216486895 = 0x0123456789abcdef.
5fn stle c edit uchar 104 o ulong v ulong n ulong to void
6x = v
7for i ulong n
8put c add o i uchar and x 255
9x = shr x 8
10end
11end
12fn main to int
13c = new uchar 104 0
14for i ulong 8
15stle c mul i 4 add 270544960 i 4
16end
17stle c 32 81985529216486895 8
18for j ulong 64
19put c add 40 j uchar add mul j 3 1
20end
21w = write 1 c 0 104
22ret 0
23end