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 / v6-part-wrap.om

14 lines · 460 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 6 lines 173-174, coordinator golden: len 10, o = 2^64-2, k = 4: o <= len fails, trap 3,
3note exit 103, no stdout. A wrapped `o + k <= len` check (2 <= 10) accepts; the callee only reads len, so
4note that mutant prints 4 and exits 0 (exp/v6-part-wrap.mutant).
5om2
6fn plen v view uchar * to ulong
7ret len v
8end
9fn main to int
10a = new uchar 10 0
11o = ulong 18446744073709551614
12putd plen part a o 4
13ret 0
14end