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-count1-noidx.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 layout line 158 with erratum E5: a field declared with COUNT 1 is an array and |
| 3 | note needs an index; `put x fa v` without one is error 4 (missing index, erratum E8). |
| 4 | om2 |
| 5 | layout one1 4 |
| 6 | field fa uint 1 at 0 big |
| 7 | end |
| 8 | fn fill x edit one1 to void |
| 9 | put x fa 0x01020304 |
| 10 | end |
| 11 | fn main to int |
| 12 | c = new uchar 4 0 |
| 13 | fill c |
| 14 | ret 0 |
| 15 | end |