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 / l5-trap.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 layout line 159: the field index is checked like an array index; a run-time index 64 |
| 3 | note into buf (COUNT 64) traps 3: exit 103, no stdout. |
| 4 | om2 |
| 5 | layout shactx 104 |
| 6 | field state uint 8 at 0 little |
| 7 | field count ulong at 32 little |
| 8 | field buf uchar 64 at 40 little |
| 9 | end |
| 10 | fn poke c edit shactx k ulong to void |
| 11 | put c buf k 1 |
| 12 | end |
| 13 | fn main to int |
| 14 | c = new uchar 104 0 |
| 15 | poke c 64 |
| 16 | w = write 1 c 0 104 |
| 17 | ret 0 |
| 18 | end |