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 / f5-inline.om

25 lines · 727 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 fresh, lines 124 and 127 with 4 lines 93-98: an inline callee that writes every
3note element at constant indexes (after inlining and unrolling) leaves all bits written, and only
4note non-inline calls are error 27. ASSUMPTION (README A3): `to void inline` is valid and the analysis
5note sees through the inlined body. stdout s[5] = 7, then 2+..+9 = 44 (exp/f5-inline.out).
6om2
7fn fill t edit uchar 8 b uchar to void inline
8for i ulong 8 unroll
9put t i add b uchar i
10end
11end
12fn f s edit uchar 8 fresh k ulong to ulong
13fill s 2
14acc = ulong 0
15for j ulong 8
16acc = add acc ulong get s j
17end
18putd ulong get s k
19ret acc
20end
21fn main to int
22a = new uchar 8 0
23putd f a 5
24ret 0
25end