Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/omc/om2/s5/scrub-femit.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / omc / om2 / s5 / scrub-femit.om` 19 lines ยท 755 bytes Raw Blame History 1 note S5 scrub emit with floats: the output sha256 (s5.cases s5-scrub-femit) pins which V registers scrub 2 note zeroes when floats are live. f has the f64 parameter a (its value in x register X0, so its twin V16 3 note is dead), the parameter n (X1, twin V17 dead) and the f64 local x, which lives in the twin V18 of its 4 note slot. scrub zeroes V0-V17 and V19-V31 and spares V18 only: a twin is spared exactly when its slot is 5 note live and holds its value there. Sparing every twin of a live slot (V16, V17 too) or none (V18 too, 6 note omc `24caacf4`) changes the output (s5-mutants.cases m-twinall, m-twinnone). 7 om2 8 fn f a f64 n ulong to f64 9 x = add a f64 1.0 10 k = scrub n 11 ret add x f64 k 12 end 13 fn main to int 14 r = f f64 2.0 32 15 if ne r f64 3.0 16 ret 1 17 end 18 ret 0 19 end