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 / om1 / t-names.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note C1 control (contract 13-18): an OM-1 unit keeps the OM-2 words as ordinary names: at seal open |
| 3 | note abstract holds layout field little big part export out rotr as scalars, fresh as a parameter, |
| 4 | note dup32mk as a function. Expected stdout oracle/s5s7/exp/t-names.out (python3): 91, dup of 7. |
| 5 | fn dup32mk fresh ulong to ulong |
| 6 | ret or shl fresh 32 fresh |
| 7 | end |
| 8 | fn n1 to ulong |
| 9 | at = ulong 1 |
| 10 | seal = ulong 2 |
| 11 | open = ulong 3 |
| 12 | abstract = ulong 4 |
| 13 | holds = ulong 5 |
| 14 | layout = ulong 6 |
| 15 | field = ulong 7 |
| 16 | ret add add add add add add at seal open abstract holds layout field |
| 17 | end |
| 18 | fn n2 to ulong |
| 19 | little = ulong 8 |
| 20 | big = ulong 9 |
| 21 | part = ulong 10 |
| 22 | export = ulong 11 |
| 23 | out = ulong 12 |
| 24 | rotr = ulong 13 |
| 25 | ret add add add add add little big part export out rotr |
| 26 | end |
| 27 | fn main to int |
| 28 | putd add n1 n2 |
| 29 | puth dup32mk 7 |
| 30 | ret 0 |
| 31 | end |