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