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/aien-train/blob/main/evidence/ECOSYSTEM6/ref32-review/add-red.om # aien-train AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-train / evidence / ECOSYSTEM6 / ref32-review / add-red.om` 50 lines ยท 1340 bytes Raw Blame History 1 note Missing addition behavior baseline. 2 fn add32 a ulong b ulong to ulong 3 ret 0 4 end 5 note SPDX-License-Identifier: AGPL-3.0-only 6 global failed ulong 1 7 global tested ulong 1 8 global line uchar 48 9 fn report ok bool to void 10 id = add get tested 0 1 11 put tested 0 id 12 put line 0 48 13 put line 1 uchar add 48 rem div id 100 10 14 put line 2 uchar add 48 rem div id 10 10 15 put line 3 uchar add 48 rem id 10 16 put line 4 32 17 put line 5 48 18 if not ok 19 put line 5 49 20 put failed 0 add get failed 0 1 21 end 22 put line 6 10 23 w = write 1 line 0 7 24 if ne w 7 25 exit 74 26 end 27 end 28 note Native RNE addition boundary cases, expected IEEE binary32 bits. 29 fn main to int 30 report eq add32 `1065353216` `1065353216` `1073741824` 31 report eq add32 `3212836864` `1065353216` 0 32 report eq add32 `2147483648` `2147483648` `2147483648` 33 report eq add32 `2147483648` 0 0 34 report eq add32 `2139095040` `4286578688` `2143289344` 35 report eq add32 `2139095040` `1065353216` `2139095040` 36 report eq add32 `2143289345` `1065353216` `2143289344` 37 report eq add32 1 1 2 38 report eq add32 `8388607` 1 `8388608` 39 report eq add32 `8388608` `2155872255` 1 40 report eq add32 `2139095039` `2139095039` `2139095040` 41 report eq add32 `1065353216` `864026624` `1065353216` 42 report eq add32 `1065353217` `864026624` `1065353218` 43 report eq add32 `1065353216` `3011510272` `1065353215` 44 report eq add32 `1065353216` 1 `1065353216` 45 report eq add32 1 `2147483649` 0 46 if ne get failed 0 0 47 ret 1 48 end 49 ret 0 50 end