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 / a5-seal-other.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 abstract lines 133-135: the exact body inside a function NOT named dup32mk is |
| 3 | note error 28 (the constructor is identified by name, not by body). |
| 4 | om2 |
| 5 | abstract dup32 ulong ops rotr xor |
| 6 | holds dup32 dup32 |
| 7 | fn dup32mk x uint to dup32 |
| 8 | ret seal dup32 or shl ulong x 32 ulong x |
| 9 | end |
| 10 | fn other x uint to dup32 |
| 11 | ret seal dup32 or shl ulong x 32 ulong x |
| 12 | end |
| 13 | fn main to int |
| 14 | d = other 5 |
| 15 | puth open d |
| 16 | ret 0 |
| 17 | end |