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 / semhash / dups / b.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note dups fixture b.om: sq2 is a.om sq with its parameter renamed (same meaning); |
| 3 | note inc2 adds 2, so it must not group with a.om inc |
| 4 | fn sq2 v ulong to ulong |
| 5 | ret mul v v |
| 6 | end |
| 7 | |
| 8 | fn inc2 x ulong to ulong |
| 9 | ret add x 2 |
| 10 | end |
| 11 | |
| 12 | fn main to int |
| 13 | ret int sq2 inc2 2 |
| 14 | end |