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 / v6-part-view-edit.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 6 line 176 with OMEGESE 9.4: a part of a view is a view; passing it to an edit |
| 3 | note parameter is error 20. |
| 4 | om2 |
| 5 | fn w e edit uchar * to void |
| 6 | put e 0 1 |
| 7 | end |
| 8 | fn g v view uchar * to void |
| 9 | w part v 0 1 |
| 10 | end |
| 11 | fn main to int |
| 12 | a = new uchar 10 0 |
| 13 | g a |
| 14 | ret 0 |
| 15 | end |