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/si/benchmarks/native/neuralese/nl1r/fixture.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 / si / benchmarks / native / neuralese / nl1r / fixture.om` 173 lines ยท 2378 bytes Raw Blame History 1 note Synthetic checker controls only. Times 1/2 are fixture constants, not measurements. 2 text FHEAD "C," 3 text FPAR "P," 4 text FROW "R," 5 text FTAIL "T,1,2\nEND\n" 6 text FLEAD "00" 7 text FBIG "`18446744073709551616`" 8 fn fparam i ulong mode ulong to void 9 jout FPAR 10 ix = i 11 if and eq mode 25 eq i 0 12 ix = 1 13 end 14 jfield ix 15 v = bitcast ulong get JP i 16 if eq i 0 17 if eq mode 22 18 v = `9221120237041090560` 19 end 20 if eq mode 23 21 v = `9218868437227405312` 22 end 23 if eq mode 24 24 v = bitcast ulong `10000000`.0f64 25 end 26 end 27 jnumber v 28 jout JLF 29 end 30 fn frow id ulong q ulong mode ulong to void 31 put JR 0 id 32 put JR 1 q 33 put JC 7 1 34 if eq get JC 1 3 35 put JC 7 0 36 end 37 jcapacitywire 38 n = ulong 1 39 if eq get JC 1 1 40 n = 32 41 end 42 put JR 2 n 43 for k ulong 32 44 put JR add 3 k ulong get JB k 45 end 46 jcapacitydecode 47 for k ulong 4 48 put JR add 35 k bitcast ulong get JS k 49 v = ulong 0 50 if ge get JS k 0.5f64 51 v = 1 52 end 53 put JR add 39 k v 54 end 55 put JR 43 0 56 for k ulong 4 57 if lt fabs sub get JS k 0.5f64 0.1f64 58 put JR 43 1 59 end 60 end 61 put JR 44 1 62 put JR 45 2 63 put JR 46 0 64 if and eq id 0 eq q 0 65 if eq mode 1 66 put JR 3 xor get JR 3 1 67 end 68 if eq mode 2 69 put JR 35 bitcast ulong 0.25f64 70 end 71 if eq mode 3 72 put JR 39 1 73 end 74 if eq mode 4 75 put JR 43 1 76 end 77 if eq mode 5 78 put JR 0 1 79 end 80 if eq mode 9 81 put JR 2 2 82 end 83 if eq mode 10 84 put JR 34 1 85 end 86 if eq mode 11 87 put JR 35 `9221120237041090560` 88 end 89 if eq mode 12 90 put JR 35 `9218868437227405312` 91 end 92 end 93 jout FROW 94 for k ulong 47 95 if and and eq id 0 eq q 0 and eq k 0 eq mode 14 96 jout FLEAD 97 else 98 if and and eq id 0 eq q 0 and eq k 0 eq mode 15 99 jout FBIG 100 else 101 jnumber get JR k 102 end 103 end 104 if lt k 46 105 jout JSEP 106 end 107 end 108 jout JLF 109 end 110 fn main to int 111 if ne argcnt 2 112 ret 90 113 end 114 ab = new uchar 3 0 115 n = argread 1 ab 0 3 116 mode = ulong 0 117 for k ulong ulong n 118 mode = add mul mode 10 ulong sub get ab k 48 119 end 120 put JC 0 1 121 put JC 1 3 122 put JC 2 17 123 put JC 3 65535 124 put JC 4 1 125 put JC 5 0 126 put JC 6 0 127 put JC 7 0 128 if ge mode 21 129 put JC 1 1 130 put JC 4 4 131 put JC 5 40 132 put JC 7 1 133 for i ulong 4 134 put JP add mul i 4 i 2.0f64 135 put JP add 16 i -1.0f64 136 put JP add 20 add mul i 4 i 1.0f64 137 end 138 end 139 jout FHEAD 140 for k ulong 8 141 v = get JC k 142 if and eq mode 7 eq k 0 143 v = 3 144 end 145 if and eq mode 8 eq k 4 146 v = 3 147 end 148 jnumber v 149 if lt k 7 150 jout JSEP 151 end 152 end 153 jout JLF 154 for i ulong get JC 5 155 if not and eq mode 26 eq i 39 156 fparam i mode 157 end 158 end 159 for id ulong 16 160 for q ulong 6 161 if not and eq mode 6 and eq id 15 eq q 5 162 frow id q mode 163 end 164 end 165 end 166 if ne mode 16 167 jout FTAIL 168 end 169 if eq mode 13 170 jout JLF 171 end 172 ret 0 173 end