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-fm-e2.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note erratum E2: in function mode a sized array may be passed to an unsized parameter of an |
| 3 | note internal function: accepted. |
| 4 | om2 |
| 5 | fn inner v view ulong * to ulong |
| 6 | x = ulong 0 |
| 7 | for i ulong len v |
| 8 | x = add x get v i |
| 9 | end |
| 10 | ret x |
| 11 | end |
| 12 | fn outer a view ulong 4 to ulong |
| 13 | ret inner a |
| 14 | end |