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 / omc / sites / found-arrpart-1.om
| 1 | note sites: found by a one-token change of a tracked program; reaches the omc error site in arrpart (code 7) |
| 2 | note S4 part: o = len + 1, k = 0: the first check fails, trap 3 (exit 103); without it len - o wraps and |
| 3 | note k = 0 passes. |
| 4 | om2 |
| 5 | fn plen v view f32 * to ulong |
| 6 | ret len v |
| 7 | end |
| 8 | fn main to int |
| 9 | a = new uchar 10 0 |
| 10 | o = ulong 11 |
| 11 | ret int plen part a o 0 |
| 12 | end |