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 / om2 / s4 / v-trap-write.om
| 1 | note S4: write keeps its slice check on an unsized view (spec 6): off 2, n 3 on a count of 4 traps 3 |
| 2 | note before the call (exit 103) after the first write (off 1, n 3) printed AAA. |
| 3 | om2 |
| 4 | fn g v view uchar * to void |
| 5 | w = write 1 v 1 3 |
| 6 | w = write 1 v 2 3 |
| 7 | end |
| 8 | fn main to int |
| 9 | a = new uchar 4 65 |
| 10 | g a |
| 11 | ret 0 |
| 12 | end |