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 / ng / front / runs / p-emptytext.om
| 1 | om2 |
| 2 | note empty text lowered as a zero-length view slice over a 1-byte class-1 global (ledger L1144): |
| 3 | note len, unused empty text, write of 0 bytes, 0-length part, and passing to view uchar *. Stdout "ok"; status 42. |
| 4 | text unused_empty "" |
| 5 | text empty_name "" |
| 6 | text ok_msg "ok" |
| 7 | |
| 8 | fn check_slice s view uchar * to ulong |
| 9 | w = write 1 s 0 len s |
| 10 | ret len s |
| 11 | end |
| 12 | |
| 13 | fn main to int |
| 14 | a = len empty_name |
| 15 | b = check_slice empty_name |
| 16 | c = check_slice part empty_name 0 0 |
| 17 | d = write 1 empty_name 0 0 |
| 18 | e = check_slice ok_msg |
| 19 | ret int add 40 add a add b add c add ulong d e |
| 20 | end |