interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / ng / front / runs / p-emptytext.om

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