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

18 lines · 388 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 fresh, line 122: element 0 written in both arms of if/else is in the intersection at
3note the join: accepted. stdout 11 then 22 (oracle exp/f5-ifelse.out).
4om2
5fn f s edit uchar 8 fresh c ulong to ulong
6if eq c 1
7put s 0 11
8else
9put s 0 22
10end
11ret ulong get s 0
12end
13fn main to int
14a = new uchar 8 0
15putd f a 1
16putd f a 2
17ret 0
18end