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 / om2 / s5 / scrub-femit.om

19 lines · 755 bytes Raw Blame History
1note S5 scrub emit with floats: the output sha256 (s5.cases s5-scrub-femit) pins which V registers scrub
2note zeroes when floats are live. f has the f64 parameter a (its value in x register X0, so its twin V16
3note is dead), the parameter n (X1, twin V17 dead) and the f64 local x, which lives in the twin V18 of its
4note slot. scrub zeroes V0-V17 and V19-V31 and spares V18 only: a twin is spared exactly when its slot is
5note live and holds its value there. Sparing every twin of a live slot (V16, V17 too) or none (V18 too,
6note omc 24caacf4) changes the output (s5-mutants.cases m-twinall, m-twinnone).
7om2
8fn f a f64 n ulong to f64
9x = add a f64 1.0
10k = scrub n
11ret add x f64 k
12end
13fn main to int
14r = f f64 2.0 32
15if ne r f64 3.0
16ret 1
17end
18ret 0
19end