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-tail.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 6 line 173: len 10, o = len-2 = 8, k = 4: o <= len holds, k <= len - o (4 <= 2) fails, |
| 3 | note trap 3, exit 103. Isolates the second check: a mutant that drops it prints 4 (exp/v6-part-tail.mutant). |
| 4 | om2 |
| 5 | fn plen v view uchar * to ulong |
| 6 | ret len v |
| 7 | end |
| 8 | fn main to int |
| 9 | a = new uchar 10 0 |
| 10 | o = ulong 8 |
| 11 | putd plen part a o 4 |
| 12 | ret 0 |
| 13 | end |