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 / f5-call.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 fresh, line 127: passing the fresh array to a non-inline call is error 27, even after |
| 3 | note every element is written. |
| 4 | om2 |
| 5 | fn g t edit uchar 8 to ulong |
| 6 | ret ulong get t 0 |
| 7 | end |
| 8 | fn f s edit uchar 8 fresh to ulong |
| 9 | for i ulong 8 unroll |
| 10 | put s i 1 |
| 11 | end |
| 12 | ret g s |
| 13 | end |
| 14 | fn main to int |
| 15 | a = new uchar 8 0 |
| 16 | putd f a |
| 17 | ret 0 |
| 18 | end |