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 / om2 / s1 / kw-long-names.om
| 1 | note S1: a function name of 9..63 bytes whose first 8 bytes spell an 8-byte keyword (continue, truncate) |
| 2 | note is a name, not that keyword: defined, called in a value, called as a statement, two of them told |
| 3 | note apart in full. Exit 0, else the failing check's number. |
| 4 | om2 |
| 5 | fn continue_x a long to long |
| 6 | ret add a 1 |
| 7 | end |
| 8 | fn continue_y a long to long |
| 9 | ret add a 2 |
| 10 | end |
| 11 | fn truncate_it to void |
| 12 | ret |
| 13 | end |
| 14 | fn main to int |
| 15 | x = continue_x 3 |
| 16 | if ne x 4 |
| 17 | ret 1 |
| 18 | end |
| 19 | y = continue_y 10 |
| 20 | if ne y 12 |
| 21 | ret 2 |
| 22 | end |
| 23 | truncate_it |
| 24 | ret 0 |
| 25 | end |