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 / omc / tests / longnames / long_63.om
| 1 | note long_63: names of exactly 63 bytes, the longest a name may be, are accepted and compared in full: |
| 2 | note two locals that differ only in their 63rd byte hold 3 and 5, and a function of 63 bytes returns 1, |
| 3 | note so the result is 3 * 10 + 5 + 1 = 36. |
| 4 | fn abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijf to int |
| 5 | ret 1 |
| 6 | end |
| 7 | fn main to int |
| 8 | abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijx = int 3 |
| 9 | abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijy = int 5 |
| 10 | ret add add mul abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijx 10 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijy abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijf |
| 11 | end |