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 / omc / sites / found-ca-st-ok-1.om

24 lines · 566 bytes Raw Blame History
1note sites: found by a one-token change of a tracked program; reaches the omc error site in ca-st-ok (code 16)
2note a struct field may be f64 or f32 (an f32 field still uses an 8-byte cell); a view receives it.
3struct S a f64 b f32 c f32 2 end
4fn total s view S to f64
5ret add get s a f64 get s b
6end
7fn main to int
8x = new S 1.5 2.5 0.5
9put x c 1 3.5
10if ne bitcast ulong get x a 4609434218613702656
11ret 1
12end
13if ne bitcast uint get x b 1075838976
14ret 2
15end
16if ne bitcast uint get x c 1 1080033280
17ret 3
18end
19r = total ulong
20if ne int mul r 2.0 8
21ret 4
22end
23ret 0
24end