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-rdval-8.om

27 lines · 590 bytes Raw Blame History
1note sites: found by a one-token change of a tracked program; reaches the omc error site in rdval (code 7)
2note f32 results are values, not void. Expected binary32 bits were computed with Wolfram Language:
3note ExportByteArray Real32 then UnsignedInteger32: 0.1 -> 1036831949, 3.75 -> 1081081856.
4fn same x f32 to f32
5ret x
6end
7fn addf x f32 y f32 to f32
8ret add x y
9end
10fn tenth to f32
11ret f32 0.1
12end
13fn none to void
14ret
15end
16fn main to int
17a = eq f32 1.5 f32 2.25
18if ne bitcast uint a uint 1081081856
19ret 1
20end
21b = same tenth
22if ne bitcast uint b uint 1036831949
23ret 2
24end
25none
26ret 0
27end