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-kept.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 abstract lines 148-149: any other constructor body keeps the runtime check, trap 10 |
| 3 | note on false. high32 = x, low32 = x+1 mod 2^32 differ for every x: exit 110, no stdout. |
| 4 | note Erased-check mutant: prints 0000000500000006 and exits 0 (exp/a5-kept.mutant). |
| 5 | om2 |
| 6 | abstract dup32 ulong ops rotr xor |
| 7 | holds dup32 dup32 |
| 8 | fn dup32mk x uint to dup32 |
| 9 | ret seal dup32 or shl ulong x 32 ulong add x 1 |
| 10 | end |
| 11 | fn main to int |
| 12 | d = dup32mk 5 |
| 13 | puth open d |
| 14 | ret 0 |
| 15 | end |