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
aien-train / evidence / ECOSYSTEM6 / ref32-review / source / native / ref32 / add-corpus.om
| 1 | note Native addition corpus runner; each record a,b,expected binary32 LE bits. |
| 2 | global record uchar 12 |
| 3 | fn aword p ulong to ulong |
| 4 | v = ulong 0 |
| 5 | for i ulong 4 |
| 6 | v = or v shl ulong get record add p i mul i 8 |
| 7 | end |
| 8 | ret v |
| 9 | end |
| 10 | fn main to int |
| 11 | while true |
| 12 | p = ulong 0 |
| 13 | while lt p 12 |
| 14 | n = read 0 record p sub 12 p |
| 15 | if eq n 0 |
| 16 | if ne p 0 |
| 17 | ret 74 |
| 18 | end |
| 19 | if ne get failed 0 0 |
| 20 | ret 1 |
| 21 | end |
| 22 | ret 0 |
| 23 | end |
| 24 | if eq n -4 |
| 25 | n = 0 |
| 26 | else |
| 27 | if lt n 0 |
| 28 | ret 74 |
| 29 | end |
| 30 | end |
| 31 | p = add p ulong n |
| 32 | end |
| 33 | a = aword 0 |
| 34 | b = aword 4 |
| 35 | wanted = aword 8 |
| 36 | report eq add32 a b wanted |
| 37 | end |
| 38 | ret 0 |
| 39 | end |