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-loop.om

15 lines · 343 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 fresh, line 123: a rolled loop contributes nothing (no induction), so the constant
3note get after a loop that writes every element is error 27.
4om2
5fn f s edit uchar 8 fresh to ulong
6for i ulong 8
7put s i 27
8end
9ret ulong get s 0
10end
11fn main to int
12a = new uchar 8 0
13putd f a
14ret 0
15end