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