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/train/aien-train/native/neuralese/nl1r/quantcheck.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 / train / aien-train / native / neuralese / nl1r / quantcheck.om` 59 lines ยท 869 bytes Raw Blame History 1 note SPDX-License-Identifier: AGPL-3.0-only 2 note Verification-only actual-byte quantization and perturbation controls. 3 fn ties q ulong a f64 b f64 to int 4 put NH 0 a 5 put NH 1 neg a 6 put NH 2 div a 2.0f64 7 npack 8 npert q 9 if ne bitcast f64 wget 0 b 10 ret 81 11 end 12 if ne bitcast f64 wget 1 neg b 13 ret 82 14 end 15 if ne bitcast f64 wget 2 0.0f64 16 ret 83 17 end 18 ret 0 19 end 20 fn main to int 21 rc = nshape 0 22 rc = ties 1 0.`03125f64` 0.`0625f64` 23 if ne rc 0 24 ret rc 25 end 26 rc = ties 2 0.`015625f64` 0.`03125f64` 27 if ne rc 0 28 ret rc 29 end 30 put NH 0 0.25f64 31 put NH 1 -0.5f64 32 put NH 2 0.75f64 33 npack 34 npert 3 35 if ne bitcast f64 wget 0 -0.25f64 36 ret 84 37 end 38 if ne bitcast f64 wget 1 -0.5f64 39 ret 85 40 end 41 npack 42 npert 4 43 if ne bitcast f64 wget 0 -0.5f64 44 ret 86 45 end 46 if ne bitcast f64 wget 1 0.25f64 47 ret 87 48 end 49 if ne bitcast f64 wget 2 0.75f64 50 ret 88 51 end 52 npert 5 53 for k ulong 3 54 if ne bitcast f64 wget k 0.0f64 55 ret 89 56 end 57 end 58 ret 0 59 end