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 / l5-wrong-size.om

17 lines · 428 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 layout line 156 with OMEGESE 9.4: the parameter takes a uchar array of exactly SIZE
3note bytes; a 103-byte array is error 7 (confirmed by erratum E8).
4om2
5layout shactx 104
6field state uint 8 at 0 little
7field count ulong at 32 little
8field buf uchar 64 at 40 little
9end
10fn poke c edit shactx to void
11put c count 1
12end
13fn main to int
14c = new uchar 103 0
15poke c
16ret 0
17end