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-3.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 f64 and f32 elements in local arrays keep their exact bits. |
| 3 | fn main to int |
| 4 | a = new ulong 4 1.5 |
| 5 | put a 2 2.5 |
| 6 | b = bitcast ulong get a 2 |
| 7 | if ne b 4612811918334230528 |
| 8 | ret 1 |
| 9 | end |
| 10 | c = new f32 4 1.5 |
| 11 | d = bitcast uint get c 1 |
| 12 | if ne d 1069547520 |
| 13 | ret 2 |
| 14 | end |
| 15 | ret 0 |
| 16 | end |