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

16 lines · 455 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 fresh, lines 122-124: a write in one branch only is intersected with the fall-through
3note path at the join, so the constant get of element 0 is error 27 (obligation=init).
4note Union-join mutant: accepts and prints 7 (main passes 1, the write runs).
5om2
6fn f s edit uchar 8 fresh c ulong to ulong
7if eq c 1
8put s 0 7
9end
10ret ulong get s 0
11end
12fn main to int
13a = new uchar 8 0
14putd f a 1
15ret 0
16end