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-n65.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 fresh, line 120: N <= 64; N = 65 is outside: error 14 (obligation=init), erratum E8. |
| 3 | om2 |
| 4 | fn f s edit uchar 65 fresh to ulong |
| 5 | put s 0 1 |
| 6 | ret ulong get s 0 |
| 7 | end |
| 8 | fn main to int |
| 9 | a = new uchar 65 0 |
| 10 | putd f a |
| 11 | ret 0 |
| 12 | end |