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/om/runtime/rx_fusion_core.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 / om / runtime / rx_fusion_core.om` 46 lines ยท 800 bytes Raw Blame History 1 om2 2 note rx_fusion_core.om -- Workflow fusion eligibility and digest-word 3 note helpers in pure OM-2. 4 note Replaces eligible_kind and word64 in src/runtime/rx_fusion.c. 5 6 export fn rx_fus_word64 d view uchar 8 to ulong 7 v = ulong 0 8 for i ulong 8 9 v = or shl v 8 ulong get d i 10 end 11 ret v 12 end 13 14 note AgKind eligibility for fusion fragments: 15 note 1 AG_CONST, 2 AG_PURE, 3 AG_WORLD_READ, 5 AG_RECALL, 16 note 7 AG_PHYSICAL, 8 AG_SKILL, 9 AG_EFFECT_PROPOSE, 11 AG_VERIFY, 14 AG_RETRY 17 export fn rx_fus_eligible_kind k ulong to ulong 18 if eq k 1 19 ret 1 20 end 21 if eq k 2 22 ret 1 23 end 24 if eq k 3 25 ret 1 26 end 27 if eq k 5 28 ret 1 29 end 30 if eq k 7 31 ret 1 32 end 33 if eq k 8 34 ret 1 35 end 36 if eq k 9 37 ret 1 38 end 39 if eq k 11 40 ret 1 41 end 42 if eq k 14 43 ret 1 44 end 45 ret 0 46 end