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/gpu/runtime/cfacts-main.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 / gpu / runtime / cfacts-main.om` 33 lines ยท 563 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note gpu/runtime/cfacts-main.om: the program cfacts ROOT [DIR]; gpu/runtime/cfacts.om says how to build and run it. 3 fn main to int 4 c = argcnt 5 if or lt c 2 gt c 3 6 die cf_e_usage 2 7 end 8 r = argread 1 cf_root 0 4000 9 if lt r 1 10 die cf_e_usage 2 11 end 12 put cf_n 21 ulong r 13 if eq c 3 14 r = argread 2 cf_dir 0 4000 15 if lt r 1 16 die cf_e_usage 2 17 end 18 put cf_n 1 ulong r 19 else 20 for i ulong len cf_dflt 21 put cf_dir i get cf_dflt i 22 end 23 put cf_n 1 len cf_dflt 24 end 25 pdir cf_fsrc 26 tload 4 27 pdir cf_fid 28 tload 6 29 pdir cf_fdev 30 tload 8 31 cfrun false 32 ret 0 33 end