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 / om1 / t-edit.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note OM-1 twin of v6-edit.om: elements 3..6 of a 10-byte row set to X through an offset, the |
| 3 | note lengths 2 and 4 printed in the same order. Expected stdout oracle/s5s7/exp/v6-edit.out (python3). |
| 4 | fn fill e edit uchar 10 o ulong k ulong c uchar to ulong |
| 5 | for i ulong k |
| 6 | put e add o i c |
| 7 | end |
| 8 | putd 2 |
| 9 | ret k |
| 10 | end |
| 11 | fn main to int |
| 12 | a = new uchar 10 46 |
| 13 | m = fill a 3 4 88 |
| 14 | nl = new uchar 1 10 |
| 15 | w = write 1 a 0 10 |
| 16 | w = write 1 nl 0 1 |
| 17 | putd m |
| 18 | ret 0 |
| 19 | end |