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 / si / harness / examples / empty_text_part.om

19 lines · 392 bytes Raw Blame History
1note empty_text_part: known defect at the pin (omega-mv #775): an empty text passed to an unsized view
2note does not arrive with len 0. Workaround, shown here: pass part e 0 0, which arrives with len 0
3om2
4text e ""
5text f "0123456789abcdef0123456789abcdef"
6fn n a view uchar * to ulong
7ret len a
8end
9fn main to int
10k = n part e 0 0
11if ne k 0
12ret 1
13end
14m = n f
15if ne m 32
16ret 2
17end
18ret 0
19end