diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 0b87422a805b16863d94ac752e58abf5d115d96d..728e514e983294ce135478f4af5f2685b1c4c56f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -7,6 +7,7 @@ The current development method is [Human-Directed Agentic Engineering (HDAE)](RE | Model | What it did | |---|---| +| OpenAI Codex | Trained and tested the seeded Omega coding controller on Spark, including its learned second-example check and CPU behavior replay. | | OpenAI Codex | Brought the bundle corpus builder and compiler feedback harness from aien-train into Omega LLM with their original Git history. | | Gemini 4 Neon (via Antigravity) | Closed remaining OM-2 Blackwell IR boundary gaps: `omega_bw_ir_from_om` (`src/omega_bw_om_ir.h`) now clears `prog` via `omega_bw_ir_init` on every error path (preventing partial-program residue), all remaining OM-2 codegen wrappers (`bf16`, `moe2`, `pf`, `pfhost`, `qmma`) zero-initialize `ins`/`meta` and init `prog`, and `tests/test_bw_om_codegen_bounds.c` adds partial-residue checks, `qmma`/`pfhost` invalid-spec sweeps, and max-size legal input headroom checks (173/173 PASS on Spark AArch64; zero calls to aborting `apic` GPU/codegen wrappers in `src/`). Completed live GB10 silicon validation (`spark-window 20261119T233031Z-d8ecb9`, exclusive, quiet machine): `gpu_qmma_probe_test` PASS (262,144/262,144 exact, 238.47 TFLOPS peak, 1,048,576/1,048,576 F2E4 exact), `gpu_pfhost_test --chip` PASS (router `rl` 0/262,144 diffs 0.314 ms, combine `mc` 0/4,194,304 diffs 0.818 ms, mutants 1..2 caught), `gpu_fp8gemm_test` 36/36 PASS (bit-identical, 1.90–2.78× vs GEMV), `gpu_moe_window_test --small` 101/101 PASS. | | Gemini 4 Neon (via Antigravity) | Hardened the pure-OM-2 Blackwell IR boundary (`src/omega_bw_om_ir.h` validates `meta[5]`, instruction/vreg/uvreg/loop bounds, vreg/uvreg widths, opcode range, register/subregister/barrier/flag bounds; `*_patch` in `cg_{bf16,gemm,moe,moe2}.om` guards `pos < 1024`; `gemm`/`moe` wrappers zero-init buffers and reset `prog` on any failure) and added host boundary + kernel-metrics test `tests/test_bw_om_codegen_bounds.c` (76/76 PASS; 10/10 compiled kernels byte-for-byte identical SM121 SASS SHA-256, GPRs, occupancy, and avg stalls vs C parent `3d0cb3500`). Re-verified on live GB10 silicon (`spark-window 20261119T231305Z-1a8c84`, exclusive): `gpu_q38_graph_test` 22/22 PASS, `gpu_q38_stroke_exact_test` 71/71 PASS, 4-layer 27B `q38_stress_bench` PASS (`N=8` batched `plain bf16` 33.919 ms / 4.16×, `64x8` sustained `bat_exact` mean 41.826 ms / 191.27 tok/s). | diff --git a/train/omega-llm/README.md b/train/omega-llm/README.md index 192a14fcd0d9bd09c1114f8a34741ab0be3fa251..4c8573bebf10a32fc2116fc1f2d0d610a04a0319 100644 --- a/train/omega-llm/README.md +++ b/train/omega-llm/README.md @@ -37,6 +37,8 @@ The GPU invocation runs inside an authorized exclusive Spark window. The harness The [contrast-training experiment and example-checked coding chain](tools/contrast/README.md) include a CPU replay of generated functions against their expected outputs. +The [learned coding controller](tools/controller/README.md) trains routing and second-example policies and replays the two Spark evaluations. + ## Units Built by `seed/out/omc` and gated by `train/units-gate.om` (`OMEGA-TRAIN-UNITS`), rows in `train/units.tsv`, composed as upstream `tests/omegallm/build.sh` does (`math data model adam ckpt bpe spec cli `); `build.sh` has no Darwin target, so the `ollm_darwin` row follows upstream `tests/omegallm/ollm_metrics_bench.py` (`darwin-arm64`): diff --git a/train/omega-llm/tools/controller/README.md b/train/omega-llm/tools/controller/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a2fe62765446a0c715c9a0172020c6e2f725aee7 --- /dev/null +++ b/train/omega-llm/tools/controller/README.md @@ -0,0 +1,34 @@ +# Learned tool controller for seeded Omega coding + +One small learned policy chooses the initial generation route and whether to retry. A second learned policy chooses whether to run another trusted caller example after a candidate passes the first one. A separate Omega LLM supplies all generated function bodies. The controller can return a verified-on-examples body or abstain. + +On 80 fresh confirmation prompts, the augmented second-check policy returned the same 33 correct functions and 47 abstentions as always running a second example. Each made 129 model calls. The learned policy ran 29 second checks and the fixed policy ran 39. Median end-to-end request times were 141.6 and 141.1 ms, respectively, with a resident Spark GB10 reasoner. The learned policy's current decisions check scalar functions and skip array functions. The calibration set included 14 first-passing array candidates. The tests cover 20 semantic tasks with two wordings and two argument-name sets each. + +## Build and replay + +From this directory on AArch64 Linux, run the following commands. Set `OMC` to an absolute path to use another seeded compiler. The experiment used compiler SHA-256 `210c52566e782cf15ece6e478d45bfb67f1ad338f29e41546dad9b6c4f85b54c`. The build needs Bash, xxd and sha256sum. Replay also uses jq and base64. + +```sh +./build.sh +./replay.sh +``` + +The default output directory is `build/omega-controller` at the repository root. Both commands accept an absolute `OUT` override. The build fits all three small checkpoints from the bundled calibration streams and verifies their SHA-256 digests. The CPU replay compiles reference functions against both public examples and the private checker, exercises policy decisions and regrades the bodies returned by all seven study arms. + +## Run the controller + +Use absolute paths. Run each request in a new private working directory. The trusted prompt file contains a `note` line followed by a seeded function signature. Tested signatures return `ulong` and take two unsigned scalars, or a fixed-size `view ulong` and a prefix length. The normalization route works on identifiers and assumes the instruction identifies arguments by position or meaning. Each trusted example file supplies a `main` that calls the generated function and returns 77 on agreement and 83 on failure. See [example](example/). + +```sh +"$BIN/controller" "$PROMPT" "$OMC" "$SAMPLER" "$MERGES" "$FIRST_MAIN" "$REASONER" "$BIN/normalize" "$BIN/controller.ck" "$SECOND_MAIN" "$BIN/second-augmented.ck" learned >answer.om 2>actions.log +``` + +For cold generation, `SAMPLER` is the native `ollm-gb10` executable and `REASONER` is a compatible checkpoint. For resident inference, start the native server with `gserve PORT CHECKPOINT MERGES REQUEST_COUNT` in an authorized Spark window. Set `SAMPLER` to `$BIN/resident` and `REASONER` to a file with two newline-terminated lines, the loopback port and the exact model ID returned by the server. The adapter verifies that ID on every response. The experimental reasoner checkpoint SHA-256 was `079653f6d9f582f6bd9966a482760654c93981fcaa9d43d9c1d911fdc26a6af5`. Supply the reasoner and its BPE merges separately. + +Choose `one`, `two` or `learned` for the final argument. Omitting all three trailing second-check arguments uses the original single-example interface. A generation uses seed 42, temperature zero and up to 64 completion tokens. Each request permits two model calls. Exit 0 returns a function body, exit 3 abstains, and other nonzero exits signal errors. Checks use the seeded compiler and restricted executor. This research harness takes trusted local inputs and runs in its own working directory. + +## Calibration and results + +The initial routing policy trains on five bytes per record (feature group, direct and normalized public grades, direct and normalized private calibration grades). The second-check trainer takes two bytes (candidate group, catch label). A catch is a first-passing candidate that fails both the second example and private calibration checks. The group records an array input, presence of a conditional, and a return of a single identifier. Sparse groups back off to input type and then pooled experience. The policy requests a second check at an observed catch frequency of at least one in twelve. + +The [first panel](run-01/scores.json) used 56 distinct historical calibration candidates and found one incorrect return that escaped the learned policy. On the [confirmation panel](run-02/scores.json) the revised policy added 20 first-passing observations from all 100 target/program pairings for ten scalar behaviors. Both panels preserve the instructions, reference programs, caller and private checkers, final answers, per-prompt records and scores. Calibration weights were fixed before their respective panel was scored. The earlier learned checkpoint is built as `second.ck` and the augmented one as `second-augmented.ck`. diff --git a/train/omega-llm/tools/controller/build.sh b/train/omega-llm/tools/controller/build.sh new file mode 100755 index 0000000000000000000000000000000000000000..78e1aede60a5edd5464e4023907f6c8de6b12d73 --- /dev/null +++ b/train/omega-llm/tools/controller/build.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname "$0")" +root=$(cd ../../../.. && pwd) +out=${OUT:-$root/build/omega-controller} +omc=${OMC:-$root/seed/out/omc} +mkdir -p "$out" +driver=$out/driver.om +grader=$out/grader.om +sed 's/^fn main to int$/fn wbmain to int/' ../wdrive/wbuild.om >"$driver" +sed 's/^fn main to int$/fn priorgrade to int/' ../contrast/grade.om >"$grader" +compile() { + local name=$1 + shift + cat "$@" | "$omc" >"$out/$name.tmp" + chmod +x "$out/$name.tmp" + mv "$out/$name.tmp" "$out/$name" +} +compile normalize "$driver" normalize.om +compile train "$driver" policy.om policy-train.om +compile train-second "$driver" policy.om second.om train-second.om +compile controller "$driver" "$root/seed/json/json.om" "$grader" ../contrast/read.om policy.om second.om controller.om +compile resident "$driver" "$root/seed/net/http.om" "$root/seed/net/notls.om" "$root/seed/json/json.om" resident.om +compile grade "$driver" "$root/seed/json/json.om" ../contrast/grade.om +for data in training second-training second-augmented-training; do + xxd -r -p "calibration/$data.hex" >"$out/$data.bin" +done +"$out/train" "$out/training.bin" >"$out/controller.ck" +"$out/train-second" "$out/second-training.bin" >"$out/second.ck" +"$out/train-second" "$out/second-augmented-training.bin" >"$out/second-augmented.ck" +(cd "$out" && sha256sum -c "$root/train/omega-llm/tools/controller/calibration/checkpoints.sha256") diff --git a/train/omega-llm/tools/controller/calibration/checkpoints.sha256 b/train/omega-llm/tools/controller/calibration/checkpoints.sha256 new file mode 100644 index 0000000000000000000000000000000000000000..63b3e4d8136078a4f9d80729b873445515d3f85d --- /dev/null +++ b/train/omega-llm/tools/controller/calibration/checkpoints.sha256 @@ -0,0 +1,3 @@ +85b09b992b160a39545b12b115e4f509e8140773e2567ee035d4d09c860d039b controller.ck +a2dcaa3256bd56ce3d395f74ed6b91c79b5c99a6cfa61d8c3b13372123f86bad second.ck +558556c39f2f5a708762ac91e34ce9816816ad8c2077b232f49ba15ad01b8454 second-augmented.ck diff --git a/train/omega-llm/tools/controller/calibration/second-augmented-training.hex b/train/omega-llm/tools/controller/calibration/second-augmented-training.hex new file mode 100644 index 0000000000000000000000000000000000000000..e8623628b814228bfda16eb934468efecad02b53 --- /dev/null +++ b/train/omega-llm/tools/controller/calibration/second-augmented-training.hex @@ -0,0 +1,6 @@ +000000000000000002000200010001000100010003000300030003000400 +000004000600000000000400040000000000000004000600060006000000 +040004000601000000000200020001000100010001000300030000000000 +060106000600040104010000000004000601040004000000000100010000 +060006010600060100010000000100000401040004010400000100010000 +0200 diff --git a/train/omega-llm/tools/controller/calibration/second-training.hex b/train/omega-llm/tools/controller/calibration/second-training.hex new file mode 100644 index 0000000000000000000000000000000000000000..64ce572d61a0f1b02f62c8d79a33a26cafa192b0 --- /dev/null +++ b/train/omega-llm/tools/controller/calibration/second-training.hex @@ -0,0 +1,4 @@ +000000000000000002000200010001000100010003000300030003000400 +000004000600000000000400040000000000000004000600060006000000 +040004000601000000000200020001000100010001000300030000000000 +06010600060004010401000000000400060104000400 diff --git a/train/omega-llm/tools/controller/calibration/training.hex b/train/omega-llm/tools/controller/calibration/training.hex new file mode 100644 index 0000000000000000000000000000000000000000..3247b165cccd194d3f9728025b9e4f0224f2bb28 --- /dev/null +++ b/train/omega-llm/tools/controller/calibration/training.hex @@ -0,0 +1,8 @@ +040102010206010101010402020202040202020206010101010402020202 +040202020206010101010401010101040202020206010101010401010101 +050202020207010101010501020102050202020207010101010500020002 +050202020207010101010502010201050202020207010101010502020202 +000202020202010201020002000200020100010000020202020202020202 +000201020102020202020002020202020102010200020202020202020202 +000201020102020202020001010101020202020200020101010201010101 +000101010102010101010002020202020000000000020102010202010101 diff --git a/train/omega-llm/tools/controller/controller.om b/train/omega-llm/tools/controller/controller.om new file mode 100644 index 0000000000000000000000000000000000000000..34014ac3410150a63f8b695f4dba50ae514db80f --- /dev/null +++ b/train/omega-llm/tools/controller/controller.om @@ -0,0 +1,207 @@ +note controller PROMPT OMC SAMPLER MERGES CALLER_MAIN REASONER NORMALIZER POLICY [DIRECT_CACHE RESTORED_CACHE] +text cpnorm "normalized.om" +text cpraw "generation.om" +text cpbody "restored.om" +text cpattempt "attempt " +text cpnext " continued\n" +text cpstop " abstained\n" +text cpaccept " returned\n" +fn adapt restore bool to long +f = int 0 +if restore +f = fdesc cpbody 577 +else +f = fdesc cpnorm 577 +end +wdkclr +wdka 7 +wdka 1 +if restore +wdkt cpraw +end +rc = wdwait wdspawn -1 f -1 +closed2 = fclose f +ret rc +end +fn sampletext p view uchar * to void +f = fdesc cpraw 577 +wdkclr +wdka 3 +wdkt samplecmd +wdka 6 +wdkt seedval +wdkt limitval +wdkt tempval +wdkt p +wdka 4 +rc = wdwait wdspawn -1 f -1 +cl = fclose f +if ne rc 0 +exit 73 +end +end +fn getproposal p view uchar 4096 a edit uchar 8192 route ulong to ulong +canon = new uchar 4096 0 +if eq argcnt 11 +ret pickload add 9 route a +end +if eq argcnt 14 +ret pickload add 12 route a +end +if eq route 0 +sampletext part p 0 get lengths 0 +ret pickread fdesc cpraw 0 a +end +if ne adapt false 0 +exit 74 +end +n = pickread fdesc cpnorm 0 canon +sampletext part canon 0 n +an = pickread fdesc cpraw 0 a +if eq an 0 +ret 0 +end +rc = adapt true +if eq rc 75 +ret 0 +end +if ne rc 0 +exit 74 +end +ret pickread fdesc cpbody 0 a +end +global cpend ulong 1 +fn checkproposal p view uchar 4096 a view uchar 8192 checker view uchar 65536 n ulong to ulong +for i ulong n +if terminates part a 0 n i +if eq compile p part a 0 add i 1 checker 0 +r = strict +if or eq r 125 eq r 126 +exit 70 +end +if eq r 77 +put cpend 0 add i 1 +ret 2 +end +ret 1 +end +end +end +ret 0 +end +fn logattempt route ulong status ulong nextstep view uchar * to void +wdot cpattempt +wdod route +wdot sep +wdod status +wdot nextstep +wdoflush 2 +end +global scmode ulong 1 +text sclearned "learned" +text scone "one" +text sctwo "two" +text scgateword "gate " +fn scmodeis key view uchar * to bool +n = wdarg 11 +if ne n len key +ret false +end +for i ulong n +if ne get wdab i get key i +ret false +end +end +ret true +end +fn scsetup to void +if scmodeis sclearned +scload 10 +put scmode 0 3 +ret +end +if scmodeis scone +put scmode 0 1 +ret +end +if scmodeis sctwo +put scmode 0 2 +ret +end +exit 2 +end +fn scverify p view uchar 4096 a view uchar 8192 c view uchar 65536 to ulong +if ne compile p part a 0 get cpend 0 c 0 +exit 74 +end +r = strict +if or eq r 125 eq r 126 +exit 70 +end +if eq r 77 +ret 2 +end +ret 1 +end +fn scapply p view uchar 4096 a view uchar 8192 to ulong +c = new uchar 65536 0 +mode = get scmode 0 +if eq mode 0 +ret 2 +end +g = scfeature part p 0 get lengths 0 part a 0 get cpend 0 +decision = or eq mode 2 and eq mode 3 scdecision g +verdict = ulong 0 +if decision +saved = get lengths 2 +put lengths 2 pickload 9 c +verdict = scverify p a c +put lengths 2 saved +end +wdot scgateword +wdod g +wdot sep +wdod verdict +wdoc 10 +wdoflush 2 +if eq verdict 1 +ret 1 +end +ret 2 +end +fn main to int +if and and ne argcnt 9 ne argcnt 11 and ne argcnt 12 ne argcnt 14 +ret 2 +end +p = new uchar 4096 0 +a = new uchar 8192 0 +checker = new uchar 65536 0 +put lengths 0 pickload 1 p +put lengths 2 pickload 5 checker +cprestore 8 +if ge argcnt 12 +scsetup +end +group = cpfeatures part p 0 get lengths 0 +route = cppredict 0 group +for turn ulong 2 +n = getproposal p a route +status = checkproposal p a checker n +if eq status 2 +status = scapply p a +end +if eq status 2 +logattempt route status cpaccept +wdwrall 1 a get cpend 0 +wdwrall 1 lf 1 +ret 0 +end +if or eq turn 1 eq cppredict retryctx route status group 0 +logattempt route status cpstop +ret 3 +end +logattempt route status cpnext +route = sub 1 route +end +ret 70 +end diff --git a/train/omega-llm/tools/controller/example/answer.om b/train/omega-llm/tools/controller/example/answer.om new file mode 100644 index 0000000000000000000000000000000000000000..7b9a5c3a333141ef6d69737f5f223fb3af783ec5 --- /dev/null +++ b/train/omega-llm/tools/controller/example/answer.om @@ -0,0 +1,3 @@ +s = mul a b +ret mul s s +end diff --git a/train/omega-llm/tools/controller/example/example.om b/train/omega-llm/tools/controller/example/example.om new file mode 100644 index 0000000000000000000000000000000000000000..0bb1de5e7d4fd9b79177a520c80761a1520a7e77 --- /dev/null +++ b/train/omega-llm/tools/controller/example/example.om @@ -0,0 +1,6 @@ +fn main to int +if ne calc ulong 17 ulong 8 ulong 18496 +ret 83 +end +ret 77 +end diff --git a/train/omega-llm/tools/controller/example/prompt.om b/train/omega-llm/tools/controller/example/prompt.om new file mode 100644 index 0000000000000000000000000000000000000000..b4a3e8eb714af1ec94ee88398ee541e781a965cb --- /dev/null +++ b/train/omega-llm/tools/controller/example/prompt.om @@ -0,0 +1,2 @@ +note return the square of the product of the inputs +fn calc a ulong b ulong to ulong diff --git a/train/omega-llm/tools/controller/example/second.om b/train/omega-llm/tools/controller/example/second.om new file mode 100644 index 0000000000000000000000000000000000000000..07ef7bb3a2abbbe9fd1477695dbdc45ac01e5c89 --- /dev/null +++ b/train/omega-llm/tools/controller/example/second.om @@ -0,0 +1,6 @@ +fn main to int +if ne calc ulong 14 ulong 23 ulong 103684 +ret 83 +end +ret 77 +end diff --git a/train/omega-llm/tools/controller/normalize.om b/train/omega-llm/tools/controller/normalize.om new file mode 100644 index 0000000000000000000000000000000000000000..895db1aa799d265ab5c43ab29a7e10b1fa608a2b --- /dev/null +++ b/train/omega-llm/tools/controller/normalize.om @@ -0,0 +1,166 @@ +note normalize PROMPT [BODY]. Rewrite the signature or restore a generated body by identifier. +global cpwordstart ulong 16 +global cpwordlen ulong 16 +global cpwords ulong 1 +global cpnames ulong 3 +text nx "x" +text ny "y" +text na "a" +text nb "b" +text ni "items" +text nc "count" +text nd "data" +text nn "n" +fn cpfile arg ulong buf edit uchar * to ulong +wdpclr +wdpa arg +n = wdload +if or lt n 1 ge ulong n len buf +exit 72 +end +for i ulong ulong n +put buf i get wdsrc i +end +ret ulong n +end +fn cpid c uchar to bool +ret or eq c 95 or and ge c 48 le c 57 or and ge c 65 le c 90 and ge c 97 le c 122 +end +fn cpwordend buf view uchar * i ulong n ulong to ulong +while lt i n bound 8192 +if not cpid get buf i +break +end +i = add i 1 +end +ret i +end +fn samebytes a view uchar * b view uchar * to bool +if ne len a len b +ret false +end +for i ulong len a +if ne get a i get b i +ret false +end +end +ret true +end +global aliaslen ulong 2 +fn setalias aliases edit uchar * k ulong v view uchar * to void +put aliaslen k len v +for j ulong len v +put aliases add mul k 32 j get v j +end +end +fn parsesig cprompt view uchar * n ulong to void +i = ulong 0 +while lt i n bound 4096 +if eq get cprompt i 10 +break +end +i = add i 1 +end +i = add i 1 +k = ulong 0 +while lt i n bound 4096 +if cpid get cprompt i +s = i +i = cpwordend cprompt i n +if ge k 16 +exit 72 +end +put cpwordstart k s +put cpwordlen k sub i s +k = add k 1 +else +i = add i 1 +end +end +if and ne k 8 ne k 10 +exit 72 +end +put cpwords 0 k +put cpnames 0 2 +put cpnames 1 sub k 4 +end +fn choosealiases cprompt view uchar * aliases edit uchar * to void +k = get cpwords 0 +second = false +if eq k 10 +second = and samebytes part cprompt get cpwordstart get cpnames 0 get cpwordlen get cpnames 0 ni samebytes part cprompt get cpwordstart get cpnames 1 get cpwordlen get cpnames 1 nc +else +second = and samebytes part cprompt get cpwordstart get cpnames 0 get cpwordlen get cpnames 0 nx samebytes part cprompt get cpwordstart get cpnames 1 get cpwordlen get cpnames 1 ny +end +if eq k 10 +if second +setalias aliases 0 nd +setalias aliases 1 nn +else +setalias aliases 0 ni +setalias aliases 1 nc +end +else +if second +setalias aliases 0 na +setalias aliases 1 nb +else +setalias aliases 0 nx +setalias aliases 1 ny +end +end +end +fn restoretoken cprompt view uchar 4096 aliases view uchar 64 v view uchar * to void +if samebytes v part aliases mul ulong 32 0 get aliaslen 0 +wdot part cprompt get cpwordstart get cpnames 0 get cpwordlen get cpnames 0 +else +if samebytes v part aliases mul ulong 32 1 get aliaslen 1 +wdot part cprompt get cpwordstart get cpnames 1 get cpwordlen get cpnames 1 +else +if or samebytes v part cprompt get cpwordstart get cpnames 0 get cpwordlen get cpnames 0 samebytes v part cprompt get cpwordstart get cpnames 1 get cpwordlen get cpnames 1 +exit 75 +end +wdot v +end +end +end +fn restorebody cprompt view uchar 4096 aliases view uchar 64 a view uchar * to void +i = ulong 0 +while lt i len a bound 8192 +if cpid get a i +s = i +i = cpwordend a i len a +restoretoken cprompt aliases part a s sub i s +else +wdoc ulong get a i +i = add i 1 +end +end +end +fn main to int +if and ne argcnt 2 ne argcnt 3 +ret 2 +end +cprompt = new uchar 4096 0 +aliases = new uchar 64 0 +a = new uchar 8192 0 +n = cpfile 1 cprompt +parsesig cprompt n +choosealiases cprompt aliases +if eq argcnt 3 +an = cpfile 2 a +restorebody cprompt aliases part a 0 an +else +s = ulong 0 +for j ulong 2 +k = get cpnames j +off = get cpwordstart k +wdot part cprompt s sub off s +wdot part aliases mul ulong 32 j get aliaslen j +s = add off get cpwordlen k +end +wdot part cprompt s sub n s +end +wdoflush 1 +ret 0 +end diff --git a/train/omega-llm/tools/controller/policy-train.om b/train/omega-llm/tools/controller/policy-train.om new file mode 100644 index 0000000000000000000000000000000000000000..f2c43aa71bb5a3e9fab1ed664c0decf0587e3640 --- /dev/null +++ b/train/omega-llm/tools/controller/policy-train.om @@ -0,0 +1,27 @@ +note train CALIBRATION_RECORDS. Each record is five bytes: features, public grades and private grades. +fn main to int +if ne argcnt 2 +ret 2 +end +wdpclr +wdpa 1 +n = wdload +if or le n 0 ne rem ulong n 5 0 +ret 72 +end +for i ulong div ulong n 5 +j = mul i 5 +g = ulong get wdsrc j +if ge g 8 +ret 72 +end +for k ulong 4 +if gt get wdsrc add add j 1 k 2 +ret 72 +end +end +cptrain j +end +cpdump +ret 0 +end diff --git a/train/omega-llm/tools/controller/policy.om b/train/omega-llm/tools/controller/policy.om new file mode 100644 index 0000000000000000000000000000000000000000..28cc77f040300cd2a931de74a9e3ab06f8408a78 --- /dev/null +++ b/train/omega-llm/tools/controller/policy.om @@ -0,0 +1,123 @@ +note Seeded Omega supervised controller for initial tool choice and retry decisions. +note Model rows are five decision contexts by eight feature groups plus one pooled group. +text cpmagic "OCP1" +text ctarray " view " +text ctleft " left " +text ctdata " data " +text ctthen "then " +text cthalf "half " +text ctsquare "square " +text cttwice "twice " +text ctthree "three plus" +global cpvotes ulong 90 +fn hastext p view uchar * needle view uchar * to bool +if lt len p len needle +ret false +end +for i ulong add 1 sub len p len needle +ok = true +for j ulong len needle +if ne get p add i j get needle j +ok = false +break +end +end +if ok +ret true +end +end +ret false +end +fn cpfeatures p view uchar * to ulong +group = ulong 0 +if hastext p ctarray +group = 1 +end +if or hastext p ctleft hastext p ctdata +group = add group 2 +end +if or hastext p ctthen or hastext p cthalf or hastext p ctsquare or hastext p cttwice hastext p ctthree +group = add group 4 +end +ret group +end +fn cell stage ulong group ulong to ulong +ret mul 2 add group mul 9 stage +end +fn addvote stage ulong group ulong choice ulong to void +i = add cell stage group choice +put cpvotes i add 1 get cpvotes i +j = add cell stage 8 choice +put cpvotes j add 1 get cpvotes j +end +fn retryctx route ulong status ulong to ulong +ret add add 1 mul 2 route status +end +fn cpbit b bool to ulong +if b +ret 1 +end +ret 0 +end +fn cptrain j ulong to void +group = ulong get wdsrc j +dp = ulong get wdsrc add j 1 +ap = ulong get wdsrc add j 2 +dh = ulong get wdsrc add j 3 +ah = ulong get wdsrc add j 4 +d = and eq dp 2 eq dh 2 +a = and eq ap 2 eq ah 2 +if ne d a +if a +addvote 0 group 1 +else +addvote 0 group 0 +end +end +if lt dp 2 +addvote retryctx 0 dp group cpbit a +end +if lt ap 2 +addvote retryctx 1 ap group cpbit d +end +end +fn cppredict stage ulong group ulong to ulong +i = cell stage group +if lt add get cpvotes i get cpvotes add i 1 4 +i = cell stage 8 +end +other = get cpvotes add i 1 +if ne stage 0 +other = mul 4 other +end +ret cpbit gt other get cpvotes i +end +fn cpdump to void +wdot cpmagic +for i ulong len cpvotes +v = get cpvotes i +if gt v 65535 +exit 72 +end +wdoc and v 255 +wdoc shr v 8 +end +wdoflush 1 +end +fn cprestore arg ulong to void +wdpclr +wdpa arg +n = wdload +if ne n 184 +exit 72 +end +for j ulong len cpmagic +if ne get wdsrc j get cpmagic j +exit 72 +end +end +for i ulong len cpvotes +k = add 4 mul 2 i +put cpvotes i add ulong get wdsrc k shl ulong get wdsrc add k 1 8 +end +end diff --git a/train/omega-llm/tools/controller/replay.sh b/train/omega-llm/tools/controller/replay.sh new file mode 100755 index 0000000000000000000000000000000000000000..cb29ce57e13c5e52300a95f765628f21be2539c9 --- /dev/null +++ b/train/omega-llm/tools/controller/replay.sh @@ -0,0 +1,74 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname "$0")" +src=$PWD +bin=$(realpath "${OUT:-../../../../build/omega-controller}") +omc=$(realpath "${OMC:-../../../../seed/out/omc}") +work=$(mktemp -d) +trap 'rm -rf "$work"' EXIT +cd "$work" +# The sampler can end immediately after the final identifier. +printf 'note multiply the arguments\nfn calc a ulong b ulong to ulong' >boundary-prompt +printf 'note multiply the arguments\nfn calc x ulong y ulong to ulong' >boundary-normalized +"$bin/normalize" boundary-prompt | cmp - boundary-normalized +for newline in no yes; do + printf 's = mul x y\nret mul s s\nend' >boundary-body + printf 's = mul a b\nret mul s s\nend' >boundary-expected + if [[ $newline == yes ]]; then printf '\n' >>boundary-body; printf '\n' >>boundary-expected; fi + "$bin/normalize" boundary-prompt boundary-body | cmp - boundary-expected +done +# Exercise real policy decisions using saved generator proposals. +cp "$src/example/prompt.om" prompt +cp "$src/example/example.om" first +cp "$src/example/second.om" second +cp "$src/example/answer.om" good +printf 'ret 0\nend\n' >wrong +controller=("$bin/controller" prompt "$omc" unused unused first unused unused "$bin/controller.ck") +"${controller[@]}" good wrong >answer 2>trace +cmp good answer +"${controller[@]}" unavailable unused one good wrong >answer 2>trace +cmp good answer +"${controller[@]}" second "$bin/second-augmented.ck" learned good wrong >answer 2>trace +cmp good answer +grep -q '^gate [0-7] 2$' trace + +printf 'note choose the larger argument\nfn calc a ulong b ulong to ulong\n' >prompt +printf 'fn main to int\nif ne calc ulong 21 ulong 10 ulong 21\nret 83\nend\nret 77\nend\n' >first +printf 'fn main to int\nif ne calc ulong 14 ulong 23 ulong 23\nret 83\nend\nret 77\nend\n' >second +printf 'ret a\nend\n' >wrong +for mode in two learned; do + rc=0 + "${controller[@]}" second "$bin/second-augmented.ck" "$mode" wrong wrong >answer 2>trace || rc=$? + test "$rc" -eq 3 + test ! -s answer + grep -q '^gate 4 1$' trace +done +printf 'bad' >corrupt +rc=0 +"${controller[@]}" second corrupt learned wrong wrong >answer 2>trace || rc=$? +test "$rc" -eq 72 +test ! -s answer + +for run in run-01 run-02; do + data="$src/$run" + for check in main first second; do + jq -c --arg k "$check" '.checks as $all | [.cases[] | {prompt,reference,main:$all[.checks][$k]}]' "$data/panel.json" >"$run-$check.json" + mkdir "$run-$check" + (cd "$run-$check" && "$bin/grade" "../$run-$check.json" "$omc" >grades) + test "$(awk '$2==2{n++} END{print n}' "$run-$check/grades")" -eq 80 + done + for mode in $(jq -r 'keys[]' "$data/scores.json"); do + mkdir "$run-$mode" + (cd "$run-$mode" + jq -er --arg mode "$mode" '.[$mode] | select(length==80) | .[] | @base64' "$data/answers.json" | + { i=0; while IFS= read -r body; do printf '%s' "$body" | base64 -d >"answer-$i"; i=$((i+1)); done; test "$i" -eq 80; } + "$bin/grade" "../$run-main.json" "$omc" cached >actual + awk -F '\t' -v mode="$mode" '$1==mode{print $2, 2*$7+$8}' "$data/cases.tsv" >expected + cmp expected actual + for key in correct wrong abstained calls second_checks; do + sum=$(awk -F '\t' -v k="$key" -v m="$mode" 'NR==1{for(i=1;i<=NF;i++)if($i==k)col=i; if(!col)exit 1} $1==m{n+=$col} END{print n+0}' "$data/cases.tsv") + test "$sum" -eq "$(jq -er --arg m "$mode" --arg k "$key" '.[$m].all[$k]' "$data/scores.json")" + done) + done +done +echo "PASS: controller interfaces, 160 references on three checks each, and all 560 archived returns and abstentions." diff --git a/train/omega-llm/tools/controller/resident.om b/train/omega-llm/tools/controller/resident.om new file mode 100644 index 0000000000000000000000000000000000000000..888dc6b73bf3f27a46168f31858925c5c1f85e34 --- /dev/null +++ b/train/omega-llm/tools/controller/resident.om @@ -0,0 +1,217 @@ +note Resident local sampling adapter for the controller. gsample ENDPOINT 42 64 0 PROMPT MERGES. +note ENDPOINT is the decimal loopback port followed by the server's exact checkpoint model ID on its own line. +text rsstart "{\"temperature\":0,\"seed\":42,\"max_tokens\":64,\"model\":" +text rsprompt ",\"prompt\":" +text rsend "}" +text rsverb "POST" +text rspath "/v1/completions" +text rshost "Host" +text rsip "127.0.0.1" +text rsct "Content-Type" +text rsjson "application/json" +text rschoices "choices" +text rsmodel "model" +text rstext "text" +text rsgsample "gsample" +text rsseed "42" +text rslimit "64" +text rszero "0" +fn rsarg i ulong s view uchar * to bool +n = wdarg i +if ne n len s +ret false +end +for j ulong n +if ne get wdab j get s j +ret false +end +end +ret true +end +fn quoted v view uchar * to void +wdoc 34 +for k ulong len v +c = get v k +if or eq c 34 eq c 92 +wdoc 92 +wdoc ulong c +else +if eq c 10 +wdoc 92 +wdoc 110 +else +if eq c 9 +wdoc 92 +wdoc 116 +else +if eq c 13 +wdoc 92 +wdoc 114 +else +if lt c 32 +exit 72 +end +wdoc ulong c +end +end +end +end +end +wdoc 34 +end +global rsmlen ulong 1 +fn endpoint mid edit uchar * to ulong +wdpclr +wdpa 2 +n = wdload +if lt n 4 +exit 72 +end +i = ulong 0 +port = ulong 0 +while and lt i ulong n ne get wdsrc i 10 bound 6 +c = get wdsrc i +if or lt c 48 gt c 57 +exit 72 +end +port = add mul port 10 sub ulong c 48 +i = add i 1 +end +if or eq port 0 gt port 65535 +exit 72 +end +start = add i 1 +if or le ulong n add start 1 ne get wdsrc sub ulong n 1 10 +exit 72 +end +lenid = sub sub ulong n start 1 +if gt lenid len mid +exit 72 +end +put rsmlen 0 lenid +for j ulong lenid +put mid j get wdsrc add start j +end +ret port +end +fn payload b edit uchar 32768 mid view uchar * to ulong +p = new uchar 4096 0 +n = argread 6 p 0 4096 +if or le n 0 ge n 4096 +exit 72 +end +wdot rsstart +quoted mid +wdot rsprompt +quoted part p 0 ulong n +wdot rsend +count = get wdon 0 +if gt count len b +exit 72 +end +for j ulong count +put b j get wdo j +end +wdoclr +ret count +end +fn rpost cs edit ulong 320 io edit uchar 65536 b view uchar * to long +r = hreqst cs io rsverb +r = hfe r hreqtg cs io rspath +r = hfe r hhname cs io rshost +r = hfe r hhval cs io rsip +r = hfe r hhname cs io rsct +r = hfe r hhval cs io rsjson +r = hfe r hhend cs io 0 len b +r = hfe r hput cs io b +r = hfe r hwfin cs io +if lt r 0 +ret r +end +ret hrsprd cs io +end +fn rsfield src view uchar 32768 tape view uint 32768 obj ulong ky view uchar * to ulong +if eq obj jsnone +exit 74 +end +k = js_first tape obj +while ne k jsnone bound 8192 +if js_streq src js_off tape k ky +ret add k 1 +end +k = js_mnext tape k +end +exit 74 +end +fn extract src view uchar 32768 n ulong mid view uchar * to void +tape = new uint 32768 0 +answerbuf = new uchar 8192 0 +if lt js_init tape 32768 128 0 +exit 74 +end +if lt js_parse src tape n 0 +exit 74 +end +m = rsfield src tape 0 rsmodel +if not js_streq src js_off tape m mid +exit 74 +end +a = rsfield src tape 0 rschoices +o = js_first tape a +f = rsfield src tape o rstext +k = js_sget src js_off tape f answerbuf +if lt k 0 +exit 74 +end +wdwrall 1 answerbuf ulong k +end +fn incoming cs edit ulong 320 io edit uchar 65536 mid view uchar * to void +b = new uchar 32768 0 +chunk = new uchar 4096 0 +n = ulong 0 +while true bound 32769 +m = hbodyrd cs io chunk +if lt m 0 +exit 74 +end +if eq m 0 +break +end +if gt add n ulong m len b +exit 74 +end +for j ulong ulong m +put b add n j get chunk j +end +n = add n ulong m +end +extract b n mid +end +fn main to int +cs = new ulong 320 0 +io = new uchar 65536 0 +a = new uchar 16 0 +b = new uchar 32768 0 +mid = new uchar 256 0 +if ne argcnt 8 +ret 2 +end +if not and rsarg 1 rsgsample and rsarg 3 rsseed and rsarg 4 rslimit rsarg 5 rszero +ret 2 +end +port = endpoint mid +n = payload b part mid 0 get rsmlen 0 +r = haddr4 a 2130706433 port +fd = hdial a 5000000000 +if lt fd 0 +ret 73 +end +r = hinit cs io int fd 0 +hsettmo cs 10000000000 10000000000 +if ne rpost cs io part b 0 n 200 +ret 74 +end +incoming cs io part mid 0 get rsmlen 0 +r = hclose cs +ret 0 +end diff --git a/train/omega-llm/tools/controller/run-01/answers.json b/train/omega-llm/tools/controller/run-01/answers.json new file mode 100644 index 0000000000000000000000000000000000000000..aded649c66c12f58efa6ab9cc44dbdb73dcb8956 --- /dev/null +++ b/train/omega-llm/tools/controller/run-01/answers.json @@ -0,0 +1 @@ +{"one":["","","","","","","s = mul a b\nret mul s s\nend\n","s = mul left right\nret mul s s\nend\n","","","s = a\nif lt b a\ns = b\nend\nret div s 2\nend\n","","s = sub a b\nif lt a b\ns = sub b a\nend\nret mul s s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret mul s s\nend\n","","","","","","","","","","","","","","","s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","","","s = add a b\nret s\nend\n","s = add left right\nret s\nend\n","","","ret mul a b\nend\n","ret mul left right\nend\n","s = mul a b\nret s\nend\n","s = mul left right\nret s\nend\n","if lt a b\nret a\nend\nret b\nend\n","","v = b\nif lt a b\nv = a\nend\nret v\nend\n","s = left\nif lt right left\ns = right\nend\nret s\nend\n","if gt a b\nret a\nend\nret b\nend\n","","","","ret or a b\nend\n","ret or left right\nend\n","ret add a b\nend\n","","","ret and left right\nend\n","","","ret a\nend\n","s = left\nret s\nend\n","","","ret b\nend\n","ret right\nend\n","","","ret xor a b\nend\n","ret xor left right\nend\n","","","s = sub a b\nif lt a b\ns = sub b a\nend\nret s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","if lt a b\nret sub b a\nend\nret sub a b\nend\n","if lt left right\nret sub right left\nend\nret sub left right\nend\n","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n"],"two":["","","","","","","s = mul a b\nret mul s s\nend\n","s = mul left right\nret mul s s\nend\n","","","s = a\nif lt b a\ns = b\nend\nret div s 2\nend\n","","s = sub a b\nif lt a b\ns = sub b a\nend\nret mul s s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret mul s s\nend\n","","","","","","","","","","","","","","","s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","","","s = add a b\nret s\nend\n","s = add left right\nret s\nend\n","","","ret mul a b\nend\n","ret mul left right\nend\n","s = mul a b\nret s\nend\n","s = mul left right\nret s\nend\n","if lt a b\nret a\nend\nret b\nend\n","","v = b\nif lt a b\nv = a\nend\nret v\nend\n","s = left\nif lt right left\ns = right\nend\nret s\nend\n","if gt a b\nret a\nend\nret b\nend\n","","","","ret or a b\nend\n","ret or left right\nend\n","","","","ret and left right\nend\n","","","ret a\nend\n","s = left\nret s\nend\n","","","ret b\nend\n","ret right\nend\n","","","ret xor a b\nend\n","ret xor left right\nend\n","","","s = sub a b\nif lt a b\ns = sub b a\nend\nret s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","if lt a b\nret sub b a\nend\nret sub a b\nend\n","if lt left right\nret sub right left\nend\nret sub left right\nend\n","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n"],"learned":["","","","","","","s = mul a b\nret mul s s\nend\n","s = mul left right\nret mul s s\nend\n","","","s = a\nif lt b a\ns = b\nend\nret div s 2\nend\n","","s = sub a b\nif lt a b\ns = sub b a\nend\nret mul s s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret mul s s\nend\n","","","","","","","","","","","","","","","s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","","","s = add a b\nret s\nend\n","s = add left right\nret s\nend\n","","","ret mul a b\nend\n","ret mul left right\nend\n","s = mul a b\nret s\nend\n","s = mul left right\nret s\nend\n","if lt a b\nret a\nend\nret b\nend\n","","v = b\nif lt a b\nv = a\nend\nret v\nend\n","s = left\nif lt right left\ns = right\nend\nret s\nend\n","if gt a b\nret a\nend\nret b\nend\n","","","","ret or a b\nend\n","ret or left right\nend\n","ret add a b\nend\n","","","ret and left right\nend\n","","","ret a\nend\n","s = left\nret s\nend\n","","","ret b\nend\n","ret right\nend\n","","","ret xor a b\nend\n","ret xor left right\nend\n","","","s = sub a b\nif lt a b\ns = sub b a\nend\nret s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","if lt a b\nret sub b a\nend\nret sub a b\nend\n","if lt left right\nret sub right left\nend\nret sub left right\nend\n","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n"]} diff --git a/train/omega-llm/tools/controller/run-01/cases.tsv b/train/omega-llm/tools/controller/run-01/cases.tsv new file mode 100644 index 0000000000000000000000000000000000000000..e04533129fab562e19f97ee75584335548cafab6 --- /dev/null +++ b/train/omega-llm/tools/controller/run-01/cases.tsv @@ -0,0 +1,241 @@ +mode id group op word names correct wrong abstained calls first_checks eligible second_checks rejected latency_ns +one 0 composition 0 0 0 0 0 1 2 2 0 0 0 150360658 +one 1 composition 0 0 1 0 0 1 1 1 0 0 0 117064666 +one 2 composition 0 1 0 0 0 1 2 2 0 0 0 103486036 +one 3 composition 0 1 1 0 0 1 1 1 0 0 0 50045189 +one 4 composition 1 0 0 0 0 1 2 2 0 0 0 112695257 +one 5 composition 1 0 1 0 0 1 1 1 0 0 0 61744957 +one 6 composition 1 1 0 1 0 0 1 1 1 0 0 64701683 +one 7 composition 1 1 1 1 0 0 1 1 1 0 0 64357264 +one 8 composition 2 0 0 0 0 1 2 1 0 0 0 182171248 +one 9 composition 2 0 1 0 0 1 1 1 0 0 0 78645051 +one 10 composition 2 1 0 1 0 0 1 1 1 0 0 103647205 +one 11 composition 2 1 1 0 0 1 1 1 0 0 0 88511893 +one 12 composition 3 0 0 1 0 0 1 1 1 0 0 113323966 +one 13 composition 3 0 1 1 0 0 1 1 1 0 0 116756760 +one 14 composition 3 1 0 0 0 1 2 2 0 0 0 216235214 +one 15 composition 3 1 1 0 0 1 1 1 0 0 0 106064600 +one 16 composition 4 0 0 0 0 1 2 2 0 0 0 376169753 +one 17 composition 4 0 1 0 0 1 1 1 0 0 0 194663725 +one 18 composition 4 1 0 0 0 1 2 2 0 0 0 291647570 +one 19 composition 4 1 1 0 0 1 1 1 0 0 0 143426767 +one 20 composition 5 0 0 0 0 1 2 2 0 0 0 378567643 +one 21 composition 5 0 1 0 0 1 1 1 0 0 0 190128188 +one 22 composition 5 1 0 0 0 1 2 2 0 0 0 296461319 +one 23 composition 5 1 1 0 0 1 1 1 0 0 0 147592878 +one 24 composition 6 0 0 0 0 1 2 2 0 0 0 366336337 +one 25 composition 6 0 1 0 0 1 1 1 0 0 0 192966194 +one 26 composition 6 1 0 0 0 1 2 2 0 0 0 380864414 +one 27 composition 6 1 1 0 0 1 1 1 0 0 0 180467173 +one 28 composition 7 0 0 1 0 0 1 1 1 0 0 185858013 +one 29 composition 7 0 1 1 0 0 1 1 1 0 0 186488514 +one 30 composition 7 1 0 0 0 1 2 2 0 0 0 361519166 +one 31 composition 7 1 1 0 0 1 1 1 0 0 0 178188740 +one 32 basic 8 0 0 1 0 0 1 1 1 0 0 49484706 +one 33 basic 8 0 1 1 0 0 1 1 1 0 0 50037478 +one 34 basic 8 1 0 0 0 1 2 2 0 0 0 80043702 +one 35 basic 8 1 1 0 0 1 2 2 0 0 0 77312146 +one 36 basic 9 0 0 1 0 0 1 1 1 0 0 37082229 +one 37 basic 9 0 1 1 0 0 2 2 1 0 0 66034317 +one 38 basic 9 1 0 1 0 0 2 2 1 0 0 82091365 +one 39 basic 9 1 1 1 0 0 2 2 1 0 0 147701760 +one 40 basic 10 0 0 1 0 0 1 1 1 0 0 64989350 +one 41 basic 10 0 1 0 0 1 2 2 0 0 0 167216354 +one 42 basic 10 1 0 1 0 0 1 1 1 0 0 88635735 +one 43 basic 10 1 1 1 0 0 1 1 1 0 0 90765463 +one 44 basic 11 0 0 1 0 0 1 1 1 0 0 66995028 +one 45 basic 11 0 1 0 0 1 2 1 0 0 0 159691674 +one 46 basic 11 1 0 0 0 1 2 0 0 0 0 187257304 +one 47 basic 11 1 1 0 0 1 2 1 0 0 0 192282958 +one 48 basic 12 0 0 1 0 0 2 2 1 0 0 91431084 +one 49 basic 12 0 1 1 0 0 1 1 1 0 0 32844949 +one 50 basic 12 1 0 0 1 0 1 1 1 0 0 33716236 +one 51 basic 12 1 1 0 0 1 2 2 0 0 0 90519061 +one 52 basic 13 0 0 0 0 1 2 2 0 0 0 68607937 +one 53 basic 13 0 1 1 0 0 1 1 1 0 0 34197856 +one 54 basic 13 1 0 0 0 1 2 2 0 0 0 138662349 +one 55 basic 13 1 1 0 0 1 2 2 0 0 0 187079096 +one 56 basic 14 0 0 1 0 0 1 1 1 0 0 25906513 +one 57 basic 14 0 1 1 0 0 1 1 1 0 0 46440187 +one 58 basic 14 1 0 0 0 1 2 1 0 0 0 280502930 +one 59 basic 14 1 1 0 0 1 2 2 0 0 0 187491403 +one 60 basic 15 0 0 1 0 0 1 1 1 0 0 24938570 +one 61 basic 15 0 1 1 0 0 1 1 1 0 0 25454878 +one 62 basic 15 1 0 0 0 1 2 2 0 0 0 154499828 +one 63 basic 15 1 1 0 0 1 2 2 0 0 0 186806838 +one 64 additional 16 0 0 1 0 0 1 1 1 0 0 38741394 +one 65 additional 16 0 1 1 0 0 1 1 1 0 0 39293366 +one 66 additional 16 1 0 0 0 1 2 2 0 0 0 185734845 +one 67 additional 16 1 1 0 0 1 2 2 0 0 0 186050752 +one 68 additional 17 0 0 1 0 0 2 2 1 0 0 149504463 +one 69 additional 17 0 1 1 0 0 2 2 1 0 0 244892873 +one 70 additional 17 1 0 1 0 0 2 2 1 0 0 153106666 +one 71 additional 17 1 1 1 0 0 1 1 1 0 0 80903246 +one 72 additional 18 0 0 0 0 1 2 2 0 0 0 122103682 +one 73 additional 18 0 1 0 0 1 1 1 0 0 0 59328796 +one 74 additional 18 1 0 0 0 1 2 2 0 0 0 66969765 +one 75 additional 18 1 1 0 0 1 2 2 0 0 0 68483056 +one 76 additional 19 0 0 1 0 0 1 1 1 0 0 141426883 +one 77 additional 19 0 1 1 0 0 1 1 1 0 0 142246873 +one 78 additional 19 1 0 1 0 0 1 1 1 0 0 140529932 +one 79 additional 19 1 1 1 0 0 2 2 1 0 0 292078570 +two 0 composition 0 0 0 0 0 1 2 2 0 0 0 144831609 +two 1 composition 0 0 1 0 0 1 1 1 0 0 0 118753574 +two 2 composition 0 1 0 0 0 1 2 2 0 0 0 104890159 +two 3 composition 0 1 1 0 0 1 1 1 0 0 0 51077837 +two 4 composition 1 0 0 0 0 1 2 2 0 0 0 114825257 +two 5 composition 1 0 1 0 0 1 1 1 0 0 0 57962560 +two 6 composition 1 1 0 1 0 0 1 1 1 1 0 68579184 +two 7 composition 1 1 1 1 0 0 1 1 1 1 0 66461664 +two 8 composition 2 0 0 0 0 1 2 1 0 0 0 180349474 +two 9 composition 2 0 1 0 0 1 1 1 0 0 0 78239704 +two 10 composition 2 1 0 1 0 0 1 1 1 1 0 104995743 +two 11 composition 2 1 1 0 0 1 1 1 0 0 0 91151576 +two 12 composition 3 0 0 1 0 0 1 1 1 1 0 121771149 +two 13 composition 3 0 1 1 0 0 1 1 1 1 0 114984330 +two 14 composition 3 1 0 0 0 1 2 2 0 0 0 217283127 +two 15 composition 3 1 1 0 0 1 1 1 0 0 0 105281026 +two 16 composition 4 0 0 0 0 1 2 2 0 0 0 371593047 +two 17 composition 4 0 1 0 0 1 1 1 0 0 0 185653130 +two 18 composition 4 1 0 0 0 1 2 2 0 0 0 284572413 +two 19 composition 4 1 1 0 0 1 1 1 0 0 0 144493576 +two 20 composition 5 0 0 0 0 1 2 2 0 0 0 381781555 +two 21 composition 5 0 1 0 0 1 1 1 0 0 0 191393942 +two 22 composition 5 1 0 0 0 1 2 2 0 0 0 297953106 +two 23 composition 5 1 1 0 0 1 1 1 0 0 0 149008329 +two 24 composition 6 0 0 0 0 1 2 2 0 0 0 366308449 +two 25 composition 6 0 1 0 0 1 1 1 0 0 0 194532094 +two 26 composition 6 1 0 0 0 1 2 2 0 0 0 365427658 +two 27 composition 6 1 1 0 0 1 1 1 0 0 0 180245027 +two 28 composition 7 0 0 1 0 0 1 1 1 1 0 187207031 +two 29 composition 7 0 1 1 0 0 1 1 1 1 0 186673571 +two 30 composition 7 1 0 0 0 1 2 2 0 0 0 359455054 +two 31 composition 7 1 1 0 0 1 1 1 0 0 0 180524341 +two 32 basic 8 0 0 1 0 0 1 1 1 1 0 52844667 +two 33 basic 8 0 1 1 0 0 1 1 1 1 0 52961996 +two 34 basic 8 1 0 0 0 1 2 2 0 0 0 74706734 +two 35 basic 8 1 1 0 0 1 2 2 0 0 0 77088480 +two 36 basic 9 0 0 1 0 0 1 1 1 1 0 37638329 +two 37 basic 9 0 1 1 0 0 2 2 1 1 0 74865823 +two 38 basic 9 1 0 1 0 0 2 2 1 1 0 82365336 +two 39 basic 9 1 1 1 0 0 2 2 1 1 0 148379125 +two 40 basic 10 0 0 1 0 0 1 1 1 1 0 67177494 +two 41 basic 10 0 1 0 0 1 2 2 0 0 0 170922782 +two 42 basic 10 1 0 1 0 0 1 1 1 1 0 92630917 +two 43 basic 10 1 1 1 0 0 1 1 1 1 0 91787630 +two 44 basic 11 0 0 1 0 0 1 1 1 1 0 66654370 +two 45 basic 11 0 1 0 0 1 2 1 0 0 0 157186391 +two 46 basic 11 1 0 0 0 1 2 0 0 0 0 186270593 +two 47 basic 11 1 1 0 0 1 2 1 0 0 0 187829148 +two 48 basic 12 0 0 1 0 0 2 2 1 1 0 94174080 +two 49 basic 12 0 1 1 0 0 1 1 1 1 0 34882149 +two 50 basic 12 1 0 0 0 1 2 2 1 1 1 79086175 +two 51 basic 12 1 1 0 0 1 2 2 0 0 0 87128540 +two 52 basic 13 0 0 0 0 1 2 2 0 0 0 66542178 +two 53 basic 13 0 1 1 0 0 1 1 1 1 0 35837788 +two 54 basic 13 1 0 0 0 1 2 2 0 0 0 139185521 +two 55 basic 13 1 1 0 0 1 2 2 0 0 0 197136578 +two 56 basic 14 0 0 1 0 0 1 1 1 1 0 27202235 +two 57 basic 14 0 1 1 0 0 1 1 1 1 0 46531596 +two 58 basic 14 1 0 0 0 1 2 1 0 0 0 279111768 +two 59 basic 14 1 1 0 0 1 2 2 0 0 0 194803857 +two 60 basic 15 0 0 1 0 0 1 1 1 1 0 26779368 +two 61 basic 15 0 1 1 0 0 1 1 1 1 0 25338397 +two 62 basic 15 1 0 0 0 1 2 2 0 0 0 156353122 +two 63 basic 15 1 1 0 0 1 2 2 0 0 0 189464138 +two 64 additional 16 0 0 1 0 0 1 1 1 1 0 41290165 +two 65 additional 16 0 1 1 0 0 1 1 1 1 0 40824097 +two 66 additional 16 1 0 0 0 1 2 2 0 0 0 187823485 +two 67 additional 16 1 1 0 0 1 2 2 0 0 0 185009528 +two 68 additional 17 0 0 1 0 0 2 2 1 1 0 161907627 +two 69 additional 17 0 1 1 0 0 2 2 1 1 0 234536299 +two 70 additional 17 1 0 1 0 0 2 2 1 1 0 156224801 +two 71 additional 17 1 1 1 0 0 1 1 1 1 0 81252832 +two 72 additional 18 0 0 0 0 1 2 2 0 0 0 120243843 +two 73 additional 18 0 1 0 0 1 1 1 0 0 0 57987506 +two 74 additional 18 1 0 0 0 1 2 2 0 0 0 69421880 +two 75 additional 18 1 1 0 0 1 2 2 0 0 0 69722906 +two 76 additional 19 0 0 1 0 0 1 1 1 1 0 144836092 +two 77 additional 19 0 1 1 0 0 1 1 1 1 0 141618948 +two 78 additional 19 1 0 1 0 0 1 1 1 1 0 141192817 +two 79 additional 19 1 1 1 0 0 2 2 1 1 0 291610118 +learned 0 composition 0 0 0 0 0 1 2 2 0 0 0 143763489 +learned 1 composition 0 0 1 0 0 1 1 1 0 0 0 117974720 +learned 2 composition 0 1 0 0 0 1 2 2 0 0 0 102079450 +learned 3 composition 0 1 1 0 0 1 1 1 0 0 0 50325112 +learned 4 composition 1 0 0 0 0 1 2 2 0 0 0 114318278 +learned 5 composition 1 0 1 0 0 1 1 1 0 0 0 56866761 +learned 6 composition 1 1 0 1 0 0 1 1 1 0 0 64249616 +learned 7 composition 1 1 1 1 0 0 1 1 1 0 0 66920883 +learned 8 composition 2 0 0 0 0 1 2 1 0 0 0 181246088 +learned 9 composition 2 0 1 0 0 1 1 1 0 0 0 78716364 +learned 10 composition 2 1 0 1 0 0 1 1 1 1 0 105466595 +learned 11 composition 2 1 1 0 0 1 1 1 0 0 0 89505004 +learned 12 composition 3 0 0 1 0 0 1 1 1 1 0 116227924 +learned 13 composition 3 0 1 1 0 0 1 1 1 1 0 117144059 +learned 14 composition 3 1 0 0 0 1 2 2 0 0 0 221511798 +learned 15 composition 3 1 1 0 0 1 1 1 0 0 0 104082313 +learned 16 composition 4 0 0 0 0 1 2 2 0 0 0 378660380 +learned 17 composition 4 0 1 0 0 1 1 1 0 0 0 192616478 +learned 18 composition 4 1 0 0 0 1 2 2 0 0 0 299899919 +learned 19 composition 4 1 1 0 0 1 1 1 0 0 0 143602433 +learned 20 composition 5 0 0 0 0 1 2 2 0 0 0 377952567 +learned 21 composition 5 0 1 0 0 1 1 1 0 0 0 194561677 +learned 22 composition 5 1 0 0 0 1 2 2 0 0 0 298611991 +learned 23 composition 5 1 1 0 0 1 1 1 0 0 0 150602885 +learned 24 composition 6 0 0 0 0 1 2 2 0 0 0 385943124 +learned 25 composition 6 0 1 0 0 1 1 1 0 0 0 187512857 +learned 26 composition 6 1 0 0 0 1 2 2 0 0 0 381373009 +learned 27 composition 6 1 1 0 0 1 1 1 0 0 0 180809240 +learned 28 composition 7 0 0 1 0 0 1 1 1 0 0 188070110 +learned 29 composition 7 0 1 1 0 0 1 1 1 0 0 184160480 +learned 30 composition 7 1 0 0 0 1 2 2 0 0 0 361226027 +learned 31 composition 7 1 1 0 0 1 1 1 0 0 0 178561910 +learned 32 basic 8 0 0 1 0 0 1 1 1 1 0 51544625 +learned 33 basic 8 0 1 1 0 0 1 1 1 1 0 50758459 +learned 34 basic 8 1 0 0 0 1 2 2 0 0 0 76256538 +learned 35 basic 8 1 1 0 0 1 2 2 0 0 0 77157041 +learned 36 basic 9 0 0 1 0 0 1 1 1 0 0 35991709 +learned 37 basic 9 0 1 1 0 0 2 2 1 0 0 66168687 +learned 38 basic 9 1 0 1 0 0 2 2 1 1 0 85789809 +learned 39 basic 9 1 1 1 0 0 2 2 1 1 0 148980489 +learned 40 basic 10 0 0 1 0 0 1 1 1 1 0 67168966 +learned 41 basic 10 0 1 0 0 1 2 2 0 0 0 167523780 +learned 42 basic 10 1 0 1 0 0 1 1 1 1 0 90263699 +learned 43 basic 10 1 1 1 0 0 1 1 1 1 0 90696070 +learned 44 basic 11 0 0 1 0 0 1 1 1 1 0 67050837 +learned 45 basic 11 0 1 0 0 1 2 1 0 0 0 154601508 +learned 46 basic 11 1 0 0 0 1 2 0 0 0 0 187969085 +learned 47 basic 11 1 1 0 0 1 2 1 0 0 0 188794387 +learned 48 basic 12 0 0 1 0 0 2 2 1 0 0 91151786 +learned 49 basic 12 0 1 1 0 0 1 1 1 0 0 33882734 +learned 50 basic 12 1 0 0 1 0 1 1 1 0 0 31965743 +learned 51 basic 12 1 1 0 0 1 2 2 0 0 0 87412894 +learned 52 basic 13 0 0 0 0 1 2 2 0 0 0 66091007 +learned 53 basic 13 0 1 1 0 0 1 1 1 0 0 31998847 +learned 54 basic 13 1 0 0 0 1 2 2 0 0 0 140549067 +learned 55 basic 13 1 1 0 0 1 2 2 0 0 0 185933758 +learned 56 basic 14 0 0 1 0 0 1 1 1 1 0 26503430 +learned 57 basic 14 0 1 1 0 0 1 1 1 1 0 45097905 +learned 58 basic 14 1 0 0 0 1 2 1 0 0 0 277714941 +learned 59 basic 14 1 1 0 0 1 2 2 0 0 0 188643283 +learned 60 basic 15 0 0 1 0 0 1 1 1 1 0 25746897 +learned 61 basic 15 0 1 1 0 0 1 1 1 1 0 25443823 +learned 62 basic 15 1 0 0 0 1 2 2 0 0 0 156718900 +learned 63 basic 15 1 1 0 0 1 2 2 0 0 0 189194599 +learned 64 additional 16 0 0 1 0 0 1 1 1 0 0 39288614 +learned 65 additional 16 0 1 1 0 0 1 1 1 0 0 39228790 +learned 66 additional 16 1 0 0 0 1 2 2 0 0 0 191823771 +learned 67 additional 16 1 1 0 0 1 2 2 0 0 0 185559484 +learned 68 additional 17 0 0 1 0 0 2 2 1 1 0 155733709 +learned 69 additional 17 0 1 1 0 0 2 2 1 1 0 235324977 +learned 70 additional 17 1 0 1 0 0 2 2 1 1 0 160382784 +learned 71 additional 17 1 1 1 0 0 1 1 1 1 0 82581194 +learned 72 additional 18 0 0 0 0 1 2 2 0 0 0 119954194 +learned 73 additional 18 0 1 0 0 1 1 1 0 0 0 59059306 +learned 74 additional 18 1 0 0 0 1 2 2 0 0 0 68642690 +learned 75 additional 18 1 1 0 0 1 2 2 0 0 0 66843924 +learned 76 additional 19 0 0 1 0 0 1 1 1 0 0 146309687 +learned 77 additional 19 0 1 1 0 0 1 1 1 0 0 145377024 +learned 78 additional 19 1 0 1 0 0 1 1 1 0 0 146817978 +learned 79 additional 19 1 1 1 0 0 2 2 1 0 0 291521318 diff --git a/train/omega-llm/tools/controller/run-01/panel.json b/train/omega-llm/tools/controller/run-01/panel.json new file mode 100644 index 0000000000000000000000000000000000000000..52fea21acb518c82cf7623730b473831481168ce --- /dev/null +++ b/train/omega-llm/tools/controller/run-01/panel.json @@ -0,0 +1,105 @@ +{ +"checks":[ +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 16\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 20\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 23\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 27\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 134\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 20\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 15\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 18\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 6561\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 0\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 272484\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 266256\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 10989225\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 44100\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 44100\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 103684\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 4\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 0\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 9\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 6\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 6\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 3\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 5\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 7\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 0\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 1089\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 1681\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 121\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 961\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 58564\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 841\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 121\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 81\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 1 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 4 ulong 20\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 12 ulong 112\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 1 ulong 14\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 4 ulong 28\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 12 ulong 96\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 6\nput buf 1 0\nput buf 2 5\nput buf 3 3\nif ne calc buf ulong 4 ulong 28\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 11\nput buf 2 7\nput buf 3 2\nput buf 4 8\nif ne calc buf ulong 5 ulong 56\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 1 ulong 3\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 4 ulong 7\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 12 ulong 13\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 1 ulong 10\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 4 ulong 3\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 12 ulong 7\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 6\nput buf 1 0\nput buf 2 5\nput buf 3 3\nif ne calc buf ulong 4 ulong 3\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 11\nput buf 2 7\nput buf 3 2\nput buf 4 8\nif ne calc buf ulong 5 ulong 9\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 1 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 4 ulong 12\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 12 ulong 30\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 1 ulong 14\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 4 ulong 14\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 12 ulong 24\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 6\nput buf 1 0\nput buf 2 5\nput buf 3 3\nif ne calc buf ulong 4 ulong 12\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 11\nput buf 2 7\nput buf 3 2\nput buf 4 8\nif ne calc buf ulong 5 ulong 22\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 1 ulong 4\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 4 ulong 4\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 12 ulong 6\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 1 ulong 3\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 4 ulong 4\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 12 ulong 6\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 6\nput buf 1 0\nput buf 2 5\nput buf 3 3\nif ne calc buf ulong 4 ulong 4\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 11\nput buf 2 7\nput buf 3 2\nput buf 4 8\nif ne calc buf ulong 5 ulong 4\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 18\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 33\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 41\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 47\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 55\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 268\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 41\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 31\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 37\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 81\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 0\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 522\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 516\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 3315\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 210\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 210\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 322\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 0\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 18\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 12\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 13\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 6\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 10\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 14\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 33\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 41\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 29\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 43\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 255\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 35\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 21\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 23\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 33\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 41\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 31\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 47\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 255\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 39\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 31\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 31\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 0\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 16\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 8\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 13\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 2\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 0\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 6\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 33\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 0\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 18\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 43\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 255\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 6\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 21\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 14\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 41\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 29\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 12\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 13\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 35\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 10\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 23\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 0\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 33\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 41\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 15\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 39\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 242\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 37\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 31\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 25\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 0\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 33\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 41\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 11\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 31\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 242\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 29\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 11\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 9\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 9 ulong 9 ulong 19\nret 83\nend\nif ne calc ulong 33 ulong 0 ulong 34\nret 83\nend\nif ne calc ulong 0 ulong 41 ulong 42\nret 83\nend\nif ne calc ulong 18 ulong 29 ulong 48\nret 83\nend\nif ne calc ulong 43 ulong 12 ulong 56\nret 83\nend\nif ne calc ulong 255 ulong 13 ulong 269\nret 83\nend\nif ne calc ulong 6 ulong 35 ulong 42\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 21 ulong 10 ulong 32\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 14 ulong 23 ulong 38\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 1 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 4 ulong 10\nret 83\nend\nput buf 0 0\nput buf 1 6\nput buf 2 1\nput buf 3 3\nput buf 4 0\nput buf 5 11\nput buf 6 9\nput buf 7 2\nput buf 8 4\nput buf 9 15\nput buf 10 0\nput buf 11 5\nif ne calc buf ulong 12 ulong 56\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 1 ulong 7\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 4 ulong 14\nret 83\nend\nput buf 0 7\nput buf 1 0\nput buf 2 2\nput buf 3 5\nput buf 4 0\nput buf 5 0\nput buf 6 12\nput buf 7 6\nput buf 8 3\nput buf 9 8\nput buf 10 4\nput buf 11 1\nif ne calc buf ulong 12 ulong 48\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 6\nput buf 1 0\nput buf 2 5\nput buf 3 3\nif ne calc buf ulong 4 ulong 14\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 11\nput buf 2 7\nput buf 3 2\nput buf 4 8\nif ne calc buf ulong 5 ulong 28\nret 83\nend\nret 77\nend\n"} +], +"cases":[ +{"op":0,"word":0,"name":0,"group":"composition","prompt":"note combine the inputs by addition, then halve that total\nfn calc a ulong b ulong to ulong\n","reference":"s = add a b\nret div s 2\nend\n","checks":0}, +{"op":0,"word":0,"name":1,"group":"composition","prompt":"note combine the inputs by addition, then halve that total\nfn calc left ulong right ulong to ulong\n","reference":"s = add left right\nret div s 2\nend\n","checks":0}, +{"op":0,"word":1,"name":0,"group":"composition","prompt":"note return the integer half of both arguments added together\nfn calc a ulong b ulong to ulong\n","reference":"s = add a b\nret div s 2\nend\n","checks":0}, +{"op":0,"word":1,"name":1,"group":"composition","prompt":"note return the integer half of both arguments added together\nfn calc left ulong right ulong to ulong\n","reference":"s = add left right\nret div s 2\nend\n","checks":0}, +{"op":1,"word":0,"name":0,"group":"composition","prompt":"note form the product of both arguments, then square it\nfn calc a ulong b ulong to ulong\n","reference":"s = mul a b\nret mul s s\nend\n","checks":1}, +{"op":1,"word":0,"name":1,"group":"composition","prompt":"note form the product of both arguments, then square it\nfn calc left ulong right ulong to ulong\n","reference":"s = mul left right\nret mul s s\nend\n","checks":1}, +{"op":1,"word":1,"name":0,"group":"composition","prompt":"note return the product of the two inputs multiplied by itself\nfn calc a ulong b ulong to ulong\n","reference":"s = mul a b\nret mul s s\nend\n","checks":1}, +{"op":1,"word":1,"name":1,"group":"composition","prompt":"note return the product of the two inputs multiplied by itself\nfn calc left ulong right ulong to ulong\n","reference":"s = mul left right\nret mul s s\nend\n","checks":1}, +{"op":2,"word":0,"name":0,"group":"composition","prompt":"note choose the minimum argument, then halve that value\nfn calc a ulong b ulong to ulong\n","reference":"s = a\nif lt b a\ns = b\nend\nret div s 2\nend\n","checks":2}, +{"op":2,"word":0,"name":1,"group":"composition","prompt":"note choose the minimum argument, then halve that value\nfn calc left ulong right ulong to ulong\n","reference":"s = left\nif lt right left\ns = right\nend\nret div s 2\nend\n","checks":2}, +{"op":2,"word":1,"name":0,"group":"composition","prompt":"note return the integer half of the lower input\nfn calc a ulong b ulong to ulong\n","reference":"s = a\nif lt b a\ns = b\nend\nret div s 2\nend\n","checks":2}, +{"op":2,"word":1,"name":1,"group":"composition","prompt":"note return the integer half of the lower input\nfn calc left ulong right ulong to ulong\n","reference":"s = left\nif lt right left\ns = right\nend\nret div s 2\nend\n","checks":2}, +{"op":3,"word":0,"name":0,"group":"composition","prompt":"note find the distance between the values, then square that distance\nfn calc a ulong b ulong to ulong\n","reference":"s = sub a b\nif lt a b\ns = sub b a\nend\nret mul s s\nend\n","checks":3}, +{"op":3,"word":0,"name":1,"group":"composition","prompt":"note find the distance between the values, then square that distance\nfn calc left ulong right ulong to ulong\n","reference":"s = sub left right\nif lt left right\ns = sub right left\nend\nret mul s s\nend\n","checks":3}, +{"op":3,"word":1,"name":0,"group":"composition","prompt":"note return the square of the unsigned gap between the arguments\nfn calc a ulong b ulong to ulong\n","reference":"s = sub a b\nif lt a b\ns = sub b a\nend\nret mul s s\nend\n","checks":3}, +{"op":3,"word":1,"name":1,"group":"composition","prompt":"note return the square of the unsigned gap between the arguments\nfn calc left ulong right ulong to ulong\n","reference":"s = sub left right\nif lt left right\ns = sub right left\nend\nret mul s s\nend\n","checks":3}, +{"op":4,"word":0,"name":0,"group":"composition","prompt":"note sum all entries in the prefix, then double that sum\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret mul s 2\nend\n","checks":4}, +{"op":4,"word":0,"name":1,"group":"composition","prompt":"note sum all entries in the prefix, then double that sum\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret mul s 2\nend\n","checks":4}, +{"op":4,"word":1,"name":0,"group":"composition","prompt":"note return twice the total of the first entries up to the bound\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret mul s 2\nend\n","checks":4}, +{"op":4,"word":1,"name":1,"group":"composition","prompt":"note return twice the total of the first entries up to the bound\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret mul s 2\nend\n","checks":4}, +{"op":5,"word":0,"name":0,"group":"composition","prompt":"note combine the prefix entries with XOR, then add three\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret add s 3\nend\n","checks":5}, +{"op":5,"word":0,"name":1,"group":"composition","prompt":"note combine the prefix entries with XOR, then add three\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret add s 3\nend\n","checks":5}, +{"op":5,"word":1,"name":0,"group":"composition","prompt":"note return three plus the exclusive OR of the entries in the prefix\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret add s 3\nend\n","checks":5}, +{"op":5,"word":1,"name":1,"group":"composition","prompt":"note return three plus the exclusive OR of the entries in the prefix\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret add s 3\nend\n","checks":5}, +{"op":6,"word":0,"name":0,"group":"composition","prompt":"note find the maximum prefix value, then double it, using zero for an empty prefix\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret mul s 2\nend\n","checks":6}, +{"op":6,"word":0,"name":1,"group":"composition","prompt":"note find the maximum prefix value, then double it, using zero for an empty prefix\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret mul s 2\nend\n","checks":6}, +{"op":6,"word":1,"name":0,"group":"composition","prompt":"note return twice the highest value in the prefix, with zero for an empty prefix\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret mul s 2\nend\n","checks":6}, +{"op":6,"word":1,"name":1,"group":"composition","prompt":"note return twice the highest value in the prefix, with zero for an empty prefix\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret mul s 2\nend\n","checks":6}, +{"op":7,"word":0,"name":0,"group":"composition","prompt":"note count the zeros before the bound, then add three\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","checks":7}, +{"op":7,"word":0,"name":1,"group":"composition","prompt":"note count the zeros before the bound, then add three\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","checks":7}, +{"op":7,"word":1,"name":0,"group":"composition","prompt":"note return three plus the count of prefix entries whose value is zero\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","checks":7}, +{"op":7,"word":1,"name":1,"group":"composition","prompt":"note return three plus the count of prefix entries whose value is zero\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","checks":7}, +{"op":8,"word":0,"name":0,"group":"basic","prompt":"note return the sum obtained from the two inputs\nfn calc a ulong b ulong to ulong\n","reference":"ret add a b\nend\n","checks":8}, +{"op":8,"word":0,"name":1,"group":"basic","prompt":"note return the sum obtained from the two inputs\nfn calc left ulong right ulong to ulong\n","reference":"ret add left right\nend\n","checks":8}, +{"op":8,"word":1,"name":0,"group":"basic","prompt":"note add both input values and give the result\nfn calc a ulong b ulong to ulong\n","reference":"ret add a b\nend\n","checks":8}, +{"op":8,"word":1,"name":1,"group":"basic","prompt":"note add both input values and give the result\nfn calc left ulong right ulong to ulong\n","reference":"ret add left right\nend\n","checks":8}, +{"op":9,"word":0,"name":0,"group":"basic","prompt":"note return both input values multiplied together\nfn calc a ulong b ulong to ulong\n","reference":"ret mul a b\nend\n","checks":9}, +{"op":9,"word":0,"name":1,"group":"basic","prompt":"note return both input values multiplied together\nfn calc left ulong right ulong to ulong\n","reference":"ret mul left right\nend\n","checks":9}, +{"op":9,"word":1,"name":0,"group":"basic","prompt":"note multiply the values from the first and second arguments\nfn calc a ulong b ulong to ulong\n","reference":"ret mul a b\nend\n","checks":9}, +{"op":9,"word":1,"name":1,"group":"basic","prompt":"note multiply the values from the first and second arguments\nfn calc left ulong right ulong to ulong\n","reference":"ret mul left right\nend\n","checks":9}, +{"op":10,"word":0,"name":0,"group":"basic","prompt":"note return whichever argument has the lesser value\nfn calc a ulong b ulong to ulong\n","reference":"if lt a b\nret a\nend\nret b\nend\n","checks":10}, +{"op":10,"word":0,"name":1,"group":"basic","prompt":"note return whichever argument has the lesser value\nfn calc left ulong right ulong to ulong\n","reference":"if lt left right\nret left\nend\nret right\nend\n","checks":10}, +{"op":10,"word":1,"name":0,"group":"basic","prompt":"note choose the minimum value among the two inputs\nfn calc a ulong b ulong to ulong\n","reference":"if lt a b\nret a\nend\nret b\nend\n","checks":10}, +{"op":10,"word":1,"name":1,"group":"basic","prompt":"note choose the minimum value among the two inputs\nfn calc left ulong right ulong to ulong\n","reference":"if lt left right\nret left\nend\nret right\nend\n","checks":10}, +{"op":11,"word":0,"name":0,"group":"basic","prompt":"note return whichever argument has the greater value\nfn calc a ulong b ulong to ulong\n","reference":"if gt a b\nret a\nend\nret b\nend\n","checks":11}, +{"op":11,"word":0,"name":1,"group":"basic","prompt":"note return whichever argument has the greater value\nfn calc left ulong right ulong to ulong\n","reference":"if gt left right\nret left\nend\nret right\nend\n","checks":11}, +{"op":11,"word":1,"name":0,"group":"basic","prompt":"note choose the maximum value among the two inputs\nfn calc a ulong b ulong to ulong\n","reference":"if gt a b\nret a\nend\nret b\nend\n","checks":11}, +{"op":11,"word":1,"name":1,"group":"basic","prompt":"note choose the maximum value among the two inputs\nfn calc left ulong right ulong to ulong\n","reference":"if gt left right\nret left\nend\nret right\nend\n","checks":11}, +{"op":12,"word":0,"name":0,"group":"basic","prompt":"note take the bitwise OR of the first input with the second\nfn calc a ulong b ulong to ulong\n","reference":"ret or a b\nend\n","checks":12}, +{"op":12,"word":0,"name":1,"group":"basic","prompt":"note take the bitwise OR of the first input with the second\nfn calc left ulong right ulong to ulong\n","reference":"ret or left right\nend\n","checks":12}, +{"op":12,"word":1,"name":0,"group":"basic","prompt":"note return the union of the bits in the two values\nfn calc a ulong b ulong to ulong\n","reference":"ret or a b\nend\n","checks":12}, +{"op":12,"word":1,"name":1,"group":"basic","prompt":"note return the union of the bits in the two values\nfn calc left ulong right ulong to ulong\n","reference":"ret or left right\nend\n","checks":12}, +{"op":13,"word":0,"name":0,"group":"basic","prompt":"note take the bitwise AND of the first input with the second\nfn calc a ulong b ulong to ulong\n","reference":"ret and a b\nend\n","checks":13}, +{"op":13,"word":0,"name":1,"group":"basic","prompt":"note take the bitwise AND of the first input with the second\nfn calc left ulong right ulong to ulong\n","reference":"ret and left right\nend\n","checks":13}, +{"op":13,"word":1,"name":0,"group":"basic","prompt":"note return the common set bits in the two values\nfn calc a ulong b ulong to ulong\n","reference":"ret and a b\nend\n","checks":13}, +{"op":13,"word":1,"name":1,"group":"basic","prompt":"note return the common set bits in the two values\nfn calc left ulong right ulong to ulong\n","reference":"ret and left right\nend\n","checks":13}, +{"op":14,"word":0,"name":0,"group":"basic","prompt":"note return the first of the two supplied values\nfn calc a ulong b ulong to ulong\n","reference":"ret a\nend\n","checks":14}, +{"op":14,"word":0,"name":1,"group":"basic","prompt":"note return the first of the two supplied values\nfn calc left ulong right ulong to ulong\n","reference":"ret left\nend\n","checks":14}, +{"op":14,"word":1,"name":0,"group":"basic","prompt":"note copy the value from the first argument to the result\nfn calc a ulong b ulong to ulong\n","reference":"ret a\nend\n","checks":14}, +{"op":14,"word":1,"name":1,"group":"basic","prompt":"note copy the value from the first argument to the result\nfn calc left ulong right ulong to ulong\n","reference":"ret left\nend\n","checks":14}, +{"op":15,"word":0,"name":0,"group":"basic","prompt":"note return the second of the two supplied values\nfn calc a ulong b ulong to ulong\n","reference":"ret b\nend\n","checks":15}, +{"op":15,"word":0,"name":1,"group":"basic","prompt":"note return the second of the two supplied values\nfn calc left ulong right ulong to ulong\n","reference":"ret right\nend\n","checks":15}, +{"op":15,"word":1,"name":0,"group":"basic","prompt":"note copy the value from the second argument to the result\nfn calc a ulong b ulong to ulong\n","reference":"ret b\nend\n","checks":15}, +{"op":15,"word":1,"name":1,"group":"basic","prompt":"note copy the value from the second argument to the result\nfn calc left ulong right ulong to ulong\n","reference":"ret right\nend\n","checks":15}, +{"op":16,"word":0,"name":0,"group":"additional","prompt":"note return the bitwise XOR of the two input values\nfn calc a ulong b ulong to ulong\n","reference":"ret xor a b\nend\n","checks":16}, +{"op":16,"word":0,"name":1,"group":"additional","prompt":"note return the bitwise XOR of the two input values\nfn calc left ulong right ulong to ulong\n","reference":"ret xor left right\nend\n","checks":16}, +{"op":16,"word":1,"name":0,"group":"additional","prompt":"note give the bits set in exactly one of the two arguments\nfn calc a ulong b ulong to ulong\n","reference":"ret xor a b\nend\n","checks":16}, +{"op":16,"word":1,"name":1,"group":"additional","prompt":"note give the bits set in exactly one of the two arguments\nfn calc left ulong right ulong to ulong\n","reference":"ret xor left right\nend\n","checks":16}, +{"op":17,"word":0,"name":0,"group":"additional","prompt":"note return the unsigned gap separating the two values\nfn calc a ulong b ulong to ulong\n","reference":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","checks":17}, +{"op":17,"word":0,"name":1,"group":"additional","prompt":"note return the unsigned gap separating the two values\nfn calc left ulong right ulong to ulong\n","reference":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","checks":17}, +{"op":17,"word":1,"name":0,"group":"additional","prompt":"note subtract the lower input from the higher input\nfn calc a ulong b ulong to ulong\n","reference":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","checks":17}, +{"op":17,"word":1,"name":1,"group":"additional","prompt":"note subtract the lower input from the higher input\nfn calc left ulong right ulong to ulong\n","reference":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","checks":17}, +{"op":18,"word":0,"name":0,"group":"additional","prompt":"note add the arguments, then increase the sum by one\nfn calc a ulong b ulong to ulong\n","reference":"ret add add a b 1\nend\n","checks":18}, +{"op":18,"word":0,"name":1,"group":"additional","prompt":"note add the arguments, then increase the sum by one\nfn calc left ulong right ulong to ulong\n","reference":"ret add add left right 1\nend\n","checks":18}, +{"op":18,"word":1,"name":0,"group":"additional","prompt":"note return one more than the sum of the input values\nfn calc a ulong b ulong to ulong\n","reference":"ret add add a b 1\nend\n","checks":18}, +{"op":18,"word":1,"name":1,"group":"additional","prompt":"note return one more than the sum of the input values\nfn calc left ulong right ulong to ulong\n","reference":"ret add add left right 1\nend\n","checks":18}, +{"op":19,"word":0,"name":0,"group":"additional","prompt":"note return the sum of the entries before the prefix bound\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","checks":19}, +{"op":19,"word":0,"name":1,"group":"additional","prompt":"note return the sum of the entries before the prefix bound\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","checks":19}, +{"op":19,"word":1,"name":0,"group":"additional","prompt":"note total the elements of the array prefix and return that total\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","checks":19}, +{"op":19,"word":1,"name":1,"group":"additional","prompt":"note total the elements of the array prefix and return that total\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","checks":19} +]} diff --git a/train/omega-llm/tools/controller/run-01/scores.json b/train/omega-llm/tools/controller/run-01/scores.json new file mode 100644 index 0000000000000000000000000000000000000000..352eaee12ab9c2e510aaa9ccc29e7822b050b521 --- /dev/null +++ b/train/omega-llm/tools/controller/run-01/scores.json @@ -0,0 +1,140 @@ +{ + "one": { + "composition": { + "correct": 7, + "wrong": 0, + "abstained": 25, + "calls": 44, + "first_checks": 43, + "eligible": 7, + "second_checks": 0, + "rejected": 0, + "prompts": 32 + }, + "basic": { + "correct": 17, + "wrong": 1, + "abstained": 14, + "calls": 50, + "first_checks": 45, + "eligible": 18, + "second_checks": 0, + "rejected": 0, + "prompts": 32 + }, + "additional": { + "correct": 10, + "wrong": 0, + "abstained": 6, + "calls": 25, + "first_checks": 25, + "eligible": 10, + "second_checks": 0, + "rejected": 0, + "prompts": 16 + }, + "all": { + "correct": 34, + "wrong": 1, + "abstained": 45, + "calls": 119, + "first_checks": 113, + "eligible": 35, + "second_checks": 0, + "rejected": 0, + "prompts": 80 + } + }, + "two": { + "composition": { + "correct": 7, + "wrong": 0, + "abstained": 25, + "calls": 44, + "first_checks": 43, + "eligible": 7, + "second_checks": 7, + "rejected": 0, + "prompts": 32 + }, + "basic": { + "correct": 17, + "wrong": 0, + "abstained": 15, + "calls": 51, + "first_checks": 46, + "eligible": 18, + "second_checks": 18, + "rejected": 1, + "prompts": 32 + }, + "additional": { + "correct": 10, + "wrong": 0, + "abstained": 6, + "calls": 25, + "first_checks": 25, + "eligible": 10, + "second_checks": 10, + "rejected": 0, + "prompts": 16 + }, + "all": { + "correct": 34, + "wrong": 0, + "abstained": 46, + "calls": 120, + "first_checks": 114, + "eligible": 35, + "second_checks": 35, + "rejected": 1, + "prompts": 80 + } + }, + "learned": { + "composition": { + "correct": 7, + "wrong": 0, + "abstained": 25, + "calls": 44, + "first_checks": 43, + "eligible": 7, + "second_checks": 3, + "rejected": 0, + "prompts": 32 + }, + "basic": { + "correct": 17, + "wrong": 1, + "abstained": 14, + "calls": 50, + "first_checks": 45, + "eligible": 18, + "second_checks": 12, + "rejected": 0, + "prompts": 32 + }, + "additional": { + "correct": 10, + "wrong": 0, + "abstained": 6, + "calls": 25, + "first_checks": 25, + "eligible": 10, + "second_checks": 4, + "rejected": 0, + "prompts": 16 + }, + "all": { + "correct": 34, + "wrong": 1, + "abstained": 45, + "calls": 119, + "first_checks": 113, + "eligible": 35, + "second_checks": 19, + "rejected": 0, + "prompts": 80 + } + } +} diff --git a/train/omega-llm/tools/controller/run-02/answers.json b/train/omega-llm/tools/controller/run-02/answers.json new file mode 100644 index 0000000000000000000000000000000000000000..89e8dc3f252f4a906fefb975230dfc90afe2bd3c --- /dev/null +++ b/train/omega-llm/tools/controller/run-02/answers.json @@ -0,0 +1 @@ +{"one":["","","","s = add left right\nret div s 2\nend\n","","","s = mul a b\nret mul s s\nend\n","","","","","","","","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret mul s 2\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret mul s 2\nend\n","","","s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret add s 3\nend\n","","","s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret mul s 2\nend\n","s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret mul s 2\nend\n","","","s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","ret add a b\nend\n","ret add left right\nend\n","ret add a b\nend\n","ret add left right\nend\n","ret mul a b\nend\n","","ret mul a b\nend\n","ret mul left right\nend\n","v = b\nif lt a b\nv = a\nend\nret v\nend\n","v = right\nif lt left right\nv = left\nend\nret v\nend\n","if lt a b\nret a\nend\nret b\nend\n","","","","v = b\nif gt a b\nv = a\nend\nret v\nend\n","v = right\nif gt left right\nv = left\nend\nret v\nend\n","","","ret or a b\nend\n","","","","","","","","v = b\nif lt a b\nv = a\nend\nret v\nend\n","","ret b\nend\n","ret right\nend\n","v = b\nif lt a b\nv = a\nend\nret v\nend\n","v = right\nif gt left right\nv = left\nend\nret v\nend\n","ret or a b\nend\n","ret xor left right\nend\n","","","s = sub a b\nif lt a b\ns = sub b a\nend\nret s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","if lt a b\nret sub b a\nend\nret sub a b\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","",""],"two":["","","","s = add left right\nret div s 2\nend\n","","","s = mul a b\nret mul s s\nend\n","","","","","","","","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret mul s 2\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret mul s 2\nend\n","","","s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret add s 3\nend\n","","","s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret mul s 2\nend\n","s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret mul s 2\nend\n","","","s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","ret add a b\nend\n","ret add left right\nend\n","ret add a b\nend\n","ret add left right\nend\n","ret mul a b\nend\n","","ret mul a b\nend\n","ret mul left right\nend\n","v = b\nif lt a b\nv = a\nend\nret v\nend\n","v = right\nif lt left right\nv = left\nend\nret v\nend\n","if lt a b\nret a\nend\nret b\nend\n","","","","v = b\nif gt a b\nv = a\nend\nret v\nend\n","v = right\nif gt left right\nv = left\nend\nret v\nend\n","","","ret or a b\nend\n","","","","","","","","","","ret b\nend\n","ret right\nend\n","","","ret xor a b\nend\n","ret xor left right\nend\n","","","s = sub a b\nif lt a b\ns = sub b a\nend\nret s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","if lt a b\nret sub b a\nend\nret sub a b\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","",""],"previous":["","","","s = add left right\nret div s 2\nend\n","","","s = mul a b\nret mul s s\nend\n","","","","","","","","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret mul s 2\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret mul s 2\nend\n","","","s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret add s 3\nend\n","","","s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret mul s 2\nend\n","s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret mul s 2\nend\n","","","s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","ret add a b\nend\n","ret add left right\nend\n","ret add a b\nend\n","ret add left right\nend\n","ret mul a b\nend\n","","ret mul a b\nend\n","ret mul left right\nend\n","v = b\nif lt a b\nv = a\nend\nret v\nend\n","v = right\nif lt left right\nv = left\nend\nret v\nend\n","if lt a b\nret a\nend\nret b\nend\n","","","","v = b\nif gt a b\nv = a\nend\nret v\nend\n","v = right\nif gt left right\nv = left\nend\nret v\nend\n","","","ret or a b\nend\n","","","","","","","","","","ret b\nend\n","ret right\nend\n","","","ret or a b\nend\n","ret xor left right\nend\n","","","s = sub a b\nif lt a b\ns = sub b a\nend\nret s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","if lt a b\nret sub b a\nend\nret sub a b\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","",""],"learned":["","","","s = add left right\nret div s 2\nend\n","","","s = mul a b\nret mul s s\nend\n","","","","","","","","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret mul s 2\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret mul s 2\nend\n","","","s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret add s 3\nend\n","","","s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret mul s 2\nend\n","s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret mul s 2\nend\n","","","s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","ret add a b\nend\n","ret add left right\nend\n","ret add a b\nend\n","ret add left right\nend\n","ret mul a b\nend\n","","ret mul a b\nend\n","ret mul left right\nend\n","v = b\nif lt a b\nv = a\nend\nret v\nend\n","v = right\nif lt left right\nv = left\nend\nret v\nend\n","if lt a b\nret a\nend\nret b\nend\n","","","","v = b\nif gt a b\nv = a\nend\nret v\nend\n","v = right\nif gt left right\nv = left\nend\nret v\nend\n","","","ret or a b\nend\n","","","","","","","","","","ret b\nend\n","ret right\nend\n","","","ret xor a b\nend\n","ret xor left right\nend\n","","","s = sub a b\nif lt a b\ns = sub b a\nend\nret s\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","if lt a b\nret sub b a\nend\nret sub a b\nend\n","s = sub left right\nif lt left right\ns = sub right left\nend\nret s\nend\n","","","","","s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","",""]} diff --git a/train/omega-llm/tools/controller/run-02/cases.tsv b/train/omega-llm/tools/controller/run-02/cases.tsv new file mode 100644 index 0000000000000000000000000000000000000000..af9ae8675362692c76cc55f05bf9bc74ff3917db --- /dev/null +++ b/train/omega-llm/tools/controller/run-02/cases.tsv @@ -0,0 +1,321 @@ +mode id group op word names correct wrong abstained calls first_checks eligible second_checks rejected latency_ns +one 0 composition 0 0 0 0 0 1 2 2 0 0 0 130974781 +one 1 composition 0 0 1 0 0 1 2 1 0 0 0 96990444 +one 2 composition 0 1 0 0 0 1 2 2 0 0 0 144568484 +one 3 composition 0 1 1 1 0 0 1 1 1 0 0 70036784 +one 4 composition 1 0 0 0 0 1 2 2 0 0 0 113193991 +one 5 composition 1 0 1 0 0 1 2 2 0 0 0 107657421 +one 6 composition 1 1 0 1 0 0 2 2 1 0 0 181653419 +one 7 composition 1 1 1 0 0 1 1 1 0 0 0 99935539 +one 8 composition 2 0 0 0 0 1 2 2 0 0 0 166961644 +one 9 composition 2 0 1 0 0 1 2 2 0 0 0 168863707 +one 10 composition 2 1 0 0 0 1 2 0 0 0 0 216773797 +one 11 composition 2 1 1 0 0 1 2 0 0 0 0 213189818 +one 12 composition 3 0 0 0 0 1 2 1 0 0 0 165988581 +one 13 composition 3 0 1 0 0 1 2 0 0 0 0 189935210 +one 14 composition 3 1 0 0 0 1 2 2 0 0 0 104254644 +one 15 composition 3 1 1 0 0 1 1 1 0 0 0 64714937 +one 16 composition 4 0 0 0 0 1 2 2 0 0 0 321969552 +one 17 composition 4 0 1 0 0 1 2 2 0 0 0 324791541 +one 18 composition 4 1 0 1 0 0 1 1 1 0 0 155948859 +one 19 composition 4 1 1 1 0 0 1 1 1 0 0 155466950 +one 20 composition 5 0 0 0 0 1 2 2 0 0 0 403612393 +one 21 composition 5 0 1 0 0 1 2 2 0 0 0 360447347 +one 22 composition 5 1 0 1 0 0 1 1 1 0 0 155773273 +one 23 composition 5 1 1 1 0 0 1 1 1 0 0 156105083 +one 24 composition 6 0 0 0 0 1 2 2 0 0 0 362006736 +one 25 composition 6 0 1 0 0 1 2 2 0 0 0 361229803 +one 26 composition 6 1 0 1 0 0 1 1 1 0 0 199515860 +one 27 composition 6 1 1 1 0 0 1 1 1 0 0 200572732 +one 28 composition 7 0 0 0 0 1 2 2 0 0 0 355571744 +one 29 composition 7 0 1 0 0 1 2 2 0 0 0 357253037 +one 30 composition 7 1 0 1 0 0 1 1 1 0 0 199130001 +one 31 composition 7 1 1 1 0 0 1 1 1 0 0 193281957 +one 32 basic 8 0 0 1 0 0 1 1 1 0 0 33708606 +one 33 basic 8 0 1 1 0 0 1 1 1 0 0 31923857 +one 34 basic 8 1 0 1 0 0 1 1 1 0 0 32096963 +one 35 basic 8 1 1 1 0 0 2 2 1 0 0 94162936 +one 36 basic 9 0 0 1 0 0 1 1 1 0 0 36167234 +one 37 basic 9 0 1 0 0 1 2 2 0 0 0 122578335 +one 38 basic 9 1 0 1 0 0 1 1 1 0 0 36477604 +one 39 basic 9 1 1 1 0 0 1 1 1 0 0 36502196 +one 40 basic 10 0 0 1 0 0 1 1 1 0 0 89472885 +one 41 basic 10 0 1 1 0 0 1 1 1 0 0 91621125 +one 42 basic 10 1 0 1 0 0 1 1 1 0 0 65056044 +one 43 basic 10 1 1 0 0 1 2 2 0 0 0 168448058 +one 44 basic 11 0 0 0 0 1 2 2 0 0 0 193524040 +one 45 basic 11 0 1 0 0 1 2 2 0 0 0 175757745 +one 46 basic 11 1 0 1 0 0 1 1 1 0 0 89452501 +one 47 basic 11 1 1 1 0 0 1 1 1 0 0 92051064 +one 48 basic 12 0 0 0 0 1 2 2 0 0 0 99025149 +one 49 basic 12 0 1 0 0 1 2 2 0 0 0 90968960 +one 50 basic 12 1 0 1 0 0 1 1 1 0 0 32616438 +one 51 basic 12 1 1 0 0 1 2 2 0 0 0 103542191 +one 52 basic 13 0 0 0 0 1 2 2 0 0 0 149537948 +one 53 basic 13 0 1 0 0 1 2 2 0 0 0 137528512 +one 54 basic 13 1 0 0 0 1 2 2 0 0 0 142696423 +one 55 basic 13 1 1 0 0 1 2 2 0 0 0 105257548 +one 56 basic 14 0 0 0 0 1 2 2 0 0 0 138953788 +one 57 basic 14 0 1 0 0 1 2 2 0 0 0 111023928 +one 58 basic 14 1 0 0 1 0 1 1 1 0 0 92059304 +one 59 basic 14 1 1 0 0 1 2 2 0 0 0 186335570 +one 60 basic 15 0 0 1 0 0 1 1 1 0 0 24840188 +one 61 basic 15 0 1 1 0 0 2 2 1 0 0 78982533 +one 62 basic 15 1 0 0 1 0 1 1 1 0 0 88996530 +one 63 basic 15 1 1 0 1 0 1 1 1 0 0 90138122 +one 64 additional 16 0 0 0 1 0 1 1 1 0 0 32687607 +one 65 additional 16 0 1 1 0 0 1 1 1 0 0 43196150 +one 66 additional 16 1 0 0 0 1 2 2 0 0 0 185106265 +one 67 additional 16 1 1 0 0 1 2 2 0 0 0 184098081 +one 68 additional 17 0 0 1 0 0 1 1 1 0 0 106606903 +one 69 additional 17 0 1 1 0 0 1 1 1 0 0 106188740 +one 70 additional 17 1 0 1 0 0 1 1 1 0 0 80153071 +one 71 additional 17 1 1 1 0 0 1 1 1 0 0 105121740 +one 72 additional 18 0 0 0 0 1 2 2 0 0 0 118162414 +one 73 additional 18 0 1 0 0 1 1 1 0 0 0 59126432 +one 74 additional 18 1 0 0 0 1 2 2 0 0 0 103551824 +one 75 additional 18 1 1 0 0 1 2 2 0 0 0 159354054 +one 76 additional 19 0 0 1 0 0 1 1 1 0 0 142503447 +one 77 additional 19 0 1 1 0 0 2 2 1 0 0 288084997 +one 78 additional 19 1 0 0 0 1 2 2 0 0 0 364423239 +one 79 additional 19 1 1 0 0 1 2 2 0 0 0 357127888 +two 0 composition 0 0 0 0 0 1 2 2 0 0 0 131224830 +two 1 composition 0 0 1 0 0 1 2 1 0 0 0 96094757 +two 2 composition 0 1 0 0 0 1 2 2 0 0 0 143845662 +two 3 composition 0 1 1 1 0 0 1 1 1 1 0 67166171 +two 4 composition 1 0 0 0 0 1 2 2 0 0 0 111560602 +two 5 composition 1 0 1 0 0 1 2 2 0 0 0 107057000 +two 6 composition 1 1 0 1 0 0 2 2 1 1 0 180809925 +two 7 composition 1 1 1 0 0 1 1 1 0 0 0 105322172 +two 8 composition 2 0 0 0 0 1 2 2 0 0 0 167719091 +two 9 composition 2 0 1 0 0 1 2 2 0 0 0 171654432 +two 10 composition 2 1 0 0 0 1 2 0 0 0 0 214332658 +two 11 composition 2 1 1 0 0 1 2 0 0 0 0 214587093 +two 12 composition 3 0 0 0 0 1 2 1 0 0 0 162698317 +two 13 composition 3 0 1 0 0 1 2 0 0 0 0 195964168 +two 14 composition 3 1 0 0 0 1 2 2 0 0 0 105954544 +two 15 composition 3 1 1 0 0 1 1 1 0 0 0 64407814 +two 16 composition 4 0 0 0 0 1 2 2 0 0 0 325408809 +two 17 composition 4 0 1 0 0 1 2 2 0 0 0 324073936 +two 18 composition 4 1 0 1 0 0 1 1 1 1 0 158681951 +two 19 composition 4 1 1 1 0 0 1 1 1 1 0 157839849 +two 20 composition 5 0 0 0 0 1 2 2 0 0 0 405142277 +two 21 composition 5 0 1 0 0 1 2 2 0 0 0 388835321 +two 22 composition 5 1 0 1 0 0 1 1 1 1 0 157177171 +two 23 composition 5 1 1 1 0 0 1 1 1 1 0 155918763 +two 24 composition 6 0 0 0 0 1 2 2 0 0 0 366203471 +two 25 composition 6 0 1 0 0 1 2 2 0 0 0 382576171 +two 26 composition 6 1 0 1 0 0 1 1 1 1 0 199048785 +two 27 composition 6 1 1 1 0 0 1 1 1 1 0 201911254 +two 28 composition 7 0 0 0 0 1 2 2 0 0 0 357141339 +two 29 composition 7 0 1 0 0 1 2 2 0 0 0 355157549 +two 30 composition 7 1 0 1 0 0 1 1 1 1 0 204082839 +two 31 composition 7 1 1 1 0 0 1 1 1 1 0 189721515 +two 32 basic 8 0 0 1 0 0 1 1 1 1 0 37360731 +two 33 basic 8 0 1 1 0 0 1 1 1 1 0 37271306 +two 34 basic 8 1 0 1 0 0 1 1 1 1 0 33125194 +two 35 basic 8 1 1 1 0 0 2 2 1 1 0 93318561 +two 36 basic 9 0 0 1 0 0 1 1 1 1 0 38202657 +two 37 basic 9 0 1 0 0 1 2 2 0 0 0 122821009 +two 38 basic 9 1 0 1 0 0 1 1 1 1 0 41620971 +two 39 basic 9 1 1 1 0 0 1 1 1 1 0 37228762 +two 40 basic 10 0 0 1 0 0 1 1 1 1 0 90484748 +two 41 basic 10 0 1 1 0 0 1 1 1 1 0 90024345 +two 42 basic 10 1 0 1 0 0 1 1 1 1 0 68147875 +two 43 basic 10 1 1 0 0 1 2 2 0 0 0 171227087 +two 44 basic 11 0 0 0 0 1 2 2 0 0 0 189272471 +two 45 basic 11 0 1 0 0 1 2 2 0 0 0 181931616 +two 46 basic 11 1 0 1 0 0 1 1 1 1 0 91055793 +two 47 basic 11 1 1 1 0 0 1 1 1 1 0 89754438 +two 48 basic 12 0 0 0 0 1 2 2 0 0 0 98794299 +two 49 basic 12 0 1 0 0 1 2 2 0 0 0 89796839 +two 50 basic 12 1 0 1 0 0 1 1 1 1 0 34669846 +two 51 basic 12 1 1 0 0 1 2 2 0 0 0 105228012 +two 52 basic 13 0 0 0 0 1 2 2 0 0 0 154090253 +two 53 basic 13 0 1 0 0 1 2 2 0 0 0 139332078 +two 54 basic 13 1 0 0 0 1 2 2 0 0 0 143216923 +two 55 basic 13 1 1 0 0 1 2 2 0 0 0 104648920 +two 56 basic 14 0 0 0 0 1 2 2 0 0 0 137181678 +two 57 basic 14 0 1 0 0 1 2 2 0 0 0 110169602 +two 58 basic 14 1 0 0 0 1 2 2 2 2 2 191979148 +two 59 basic 14 1 1 0 0 1 2 2 0 0 0 188174175 +two 60 basic 15 0 0 1 0 0 1 1 1 1 0 25232847 +two 61 basic 15 0 1 1 0 0 2 2 1 1 0 80747635 +two 62 basic 15 1 0 0 0 1 2 2 1 1 1 190446817 +two 63 basic 15 1 1 0 0 1 2 2 2 2 2 192183278 +two 64 additional 16 0 0 1 0 0 2 2 2 2 1 77847949 +two 65 additional 16 0 1 1 0 0 1 1 1 1 0 40807253 +two 66 additional 16 1 0 0 0 1 2 2 0 0 0 185193034 +two 67 additional 16 1 1 0 0 1 2 2 0 0 0 184943752 +two 68 additional 17 0 0 1 0 0 1 1 1 1 0 105025787 +two 69 additional 17 0 1 1 0 0 1 1 1 1 0 113767517 +two 70 additional 17 1 0 1 0 0 1 1 1 1 0 83259814 +two 71 additional 17 1 1 1 0 0 1 1 1 1 0 106680216 +two 72 additional 18 0 0 0 0 1 2 2 0 0 0 117632570 +two 73 additional 18 0 1 0 0 1 1 1 0 0 0 59102960 +two 74 additional 18 1 0 0 0 1 2 2 0 0 0 104493463 +two 75 additional 18 1 1 0 0 1 2 2 0 0 0 158022268 +two 76 additional 19 0 0 1 0 0 1 1 1 1 0 142777785 +two 77 additional 19 0 1 1 0 0 2 2 1 1 0 288773610 +two 78 additional 19 1 0 0 0 1 2 2 0 0 0 364784617 +two 79 additional 19 1 1 0 0 1 2 2 0 0 0 361248127 +previous 0 composition 0 0 0 0 0 1 2 2 0 0 0 132420072 +previous 1 composition 0 0 1 0 0 1 2 1 0 0 0 95767171 +previous 2 composition 0 1 0 0 0 1 2 2 0 0 0 140177122 +previous 3 composition 0 1 1 1 0 0 1 1 1 0 0 65675216 +previous 4 composition 1 0 0 0 0 1 2 2 0 0 0 110655364 +previous 5 composition 1 0 1 0 0 1 2 2 0 0 0 106760038 +previous 6 composition 1 1 0 1 0 0 2 2 1 0 0 181959214 +previous 7 composition 1 1 1 0 0 1 1 1 0 0 0 99614816 +previous 8 composition 2 0 0 0 0 1 2 2 0 0 0 164417866 +previous 9 composition 2 0 1 0 0 1 2 2 0 0 0 166622842 +previous 10 composition 2 1 0 0 0 1 2 0 0 0 0 210841224 +previous 11 composition 2 1 1 0 0 1 2 0 0 0 0 212933480 +previous 12 composition 3 0 0 0 0 1 2 1 0 0 0 163640452 +previous 13 composition 3 0 1 0 0 1 2 0 0 0 0 192902688 +previous 14 composition 3 1 0 0 0 1 2 2 0 0 0 109331210 +previous 15 composition 3 1 1 0 0 1 1 1 0 0 0 66238996 +previous 16 composition 4 0 0 0 0 1 2 2 0 0 0 328827075 +previous 17 composition 4 0 1 0 0 1 2 2 0 0 0 320955880 +previous 18 composition 4 1 0 1 0 0 1 1 1 0 0 155728600 +previous 19 composition 4 1 1 1 0 0 1 1 1 0 0 176175395 +previous 20 composition 5 0 0 0 0 1 2 2 0 0 0 408260189 +previous 21 composition 5 0 1 0 0 1 2 2 0 0 0 359948783 +previous 22 composition 5 1 0 1 0 0 1 1 1 0 0 157986330 +previous 23 composition 5 1 1 1 0 0 1 1 1 0 0 154051404 +previous 24 composition 6 0 0 0 0 1 2 2 0 0 0 449379157 +previous 25 composition 6 0 1 0 0 1 2 2 0 0 0 394319380 +previous 26 composition 6 1 0 1 0 0 1 1 1 0 0 209721921 +previous 27 composition 6 1 1 1 0 0 1 1 1 0 0 204599274 +previous 28 composition 7 0 0 0 0 1 2 2 0 0 0 357513630 +previous 29 composition 7 0 1 0 0 1 2 2 0 0 0 362990312 +previous 30 composition 7 1 0 1 0 0 1 1 1 0 0 198771791 +previous 31 composition 7 1 1 1 0 0 1 1 1 0 0 195930474 +previous 32 basic 8 0 0 1 0 0 1 1 1 0 0 35090905 +previous 33 basic 8 0 1 1 0 0 1 1 1 0 0 33792784 +previous 34 basic 8 1 0 1 0 0 1 1 1 0 0 33226171 +previous 35 basic 8 1 1 1 0 0 2 2 1 0 0 92358698 +previous 36 basic 9 0 0 1 0 0 1 1 1 0 0 35488956 +previous 37 basic 9 0 1 0 0 1 2 2 0 0 0 120415103 +previous 38 basic 9 1 0 1 0 0 1 1 1 0 0 37029256 +previous 39 basic 9 1 1 1 0 0 1 1 1 0 0 35921647 +previous 40 basic 10 0 0 1 0 0 1 1 1 1 0 91035344 +previous 41 basic 10 0 1 1 0 0 1 1 1 1 0 91792646 +previous 42 basic 10 1 0 1 0 0 1 1 1 1 0 68018434 +previous 43 basic 10 1 1 0 0 1 2 2 0 0 0 167044383 +previous 44 basic 11 0 0 0 0 1 2 2 0 0 0 188678275 +previous 45 basic 11 0 1 0 0 1 2 2 0 0 0 181870240 +previous 46 basic 11 1 0 1 0 0 1 1 1 1 0 90313899 +previous 47 basic 11 1 1 1 0 0 1 1 1 1 0 97170975 +previous 48 basic 12 0 0 0 0 1 2 2 0 0 0 97387617 +previous 49 basic 12 0 1 0 0 1 2 2 0 0 0 90954816 +previous 50 basic 12 1 0 1 0 0 1 1 1 0 0 33314348 +previous 51 basic 12 1 1 0 0 1 2 2 0 0 0 103908450 +previous 52 basic 13 0 0 0 0 1 2 2 0 0 0 149907438 +previous 53 basic 13 0 1 0 0 1 2 2 0 0 0 134744876 +previous 54 basic 13 1 0 0 0 1 2 2 0 0 0 141391421 +previous 55 basic 13 1 1 0 0 1 2 2 0 0 0 103091596 +previous 56 basic 14 0 0 0 0 1 2 2 0 0 0 141356301 +previous 57 basic 14 0 1 0 0 1 2 2 0 0 0 111391082 +previous 58 basic 14 1 0 0 0 1 2 2 2 2 2 187225161 +previous 59 basic 14 1 1 0 0 1 2 2 0 0 0 186244209 +previous 60 basic 15 0 0 1 0 0 1 1 1 1 0 26416679 +previous 61 basic 15 0 1 1 0 0 2 2 1 1 0 80336336 +previous 62 basic 15 1 0 0 0 1 2 2 1 1 1 187149832 +previous 63 basic 15 1 1 0 0 1 2 2 2 2 2 190952005 +previous 64 additional 16 0 0 0 1 0 1 1 1 0 0 33844800 +previous 65 additional 16 0 1 1 0 0 1 1 1 0 0 40073087 +previous 66 additional 16 1 0 0 0 1 2 2 0 0 0 187328697 +previous 67 additional 16 1 1 0 0 1 2 2 0 0 0 186932919 +previous 68 additional 17 0 0 1 0 0 1 1 1 1 0 106021827 +previous 69 additional 17 0 1 1 0 0 1 1 1 1 0 105312637 +previous 70 additional 17 1 0 1 0 0 1 1 1 1 0 84093276 +previous 71 additional 17 1 1 1 0 0 1 1 1 1 0 107153051 +previous 72 additional 18 0 0 0 0 1 2 2 0 0 0 120453807 +previous 73 additional 18 0 1 0 0 1 1 1 0 0 0 60147031 +previous 74 additional 18 1 0 0 0 1 2 2 0 0 0 106059282 +previous 75 additional 18 1 1 0 0 1 2 2 0 0 0 156724162 +previous 76 additional 19 0 0 1 0 0 1 1 1 0 0 141232109 +previous 77 additional 19 0 1 1 0 0 2 2 1 0 0 294882472 +previous 78 additional 19 1 0 0 0 1 2 2 0 0 0 354835694 +previous 79 additional 19 1 1 0 0 1 2 2 0 0 0 356638269 +learned 0 composition 0 0 0 0 0 1 2 2 0 0 0 128650107 +learned 1 composition 0 0 1 0 0 1 2 1 0 0 0 96993548 +learned 2 composition 0 1 0 0 0 1 2 2 0 0 0 139712878 +learned 3 composition 0 1 1 1 0 0 1 1 1 1 0 68397284 +learned 4 composition 1 0 0 0 0 1 2 2 0 0 0 109835278 +learned 5 composition 1 0 1 0 0 1 2 2 0 0 0 107204314 +learned 6 composition 1 1 0 1 0 0 2 2 1 1 0 184985556 +learned 7 composition 1 1 1 0 0 1 1 1 0 0 0 99017116 +learned 8 composition 2 0 0 0 0 1 2 2 0 0 0 167184494 +learned 9 composition 2 0 1 0 0 1 2 2 0 0 0 166806924 +learned 10 composition 2 1 0 0 0 1 2 0 0 0 0 215558188 +learned 11 composition 2 1 1 0 0 1 2 0 0 0 0 213108873 +learned 12 composition 3 0 0 0 0 1 2 1 0 0 0 163855062 +learned 13 composition 3 0 1 0 0 1 2 0 0 0 0 190423710 +learned 14 composition 3 1 0 0 0 1 2 2 0 0 0 103113483 +learned 15 composition 3 1 1 0 0 1 1 1 0 0 0 67211548 +learned 16 composition 4 0 0 0 0 1 2 2 0 0 0 324024639 +learned 17 composition 4 0 1 0 0 1 2 2 0 0 0 327406409 +learned 18 composition 4 1 0 1 0 0 1 1 1 0 0 160957040 +learned 19 composition 4 1 1 1 0 0 1 1 1 0 0 156400702 +learned 20 composition 5 0 0 0 0 1 2 2 0 0 0 394439988 +learned 21 composition 5 0 1 0 0 1 2 2 0 0 0 356747799 +learned 22 composition 5 1 0 1 0 0 1 1 1 0 0 158302892 +learned 23 composition 5 1 1 1 0 0 1 1 1 0 0 158129643 +learned 24 composition 6 0 0 0 0 1 2 2 0 0 0 415465588 +learned 25 composition 6 0 1 0 0 1 2 2 0 0 0 408273022 +learned 26 composition 6 1 0 1 0 0 1 1 1 0 0 210514887 +learned 27 composition 6 1 1 1 0 0 1 1 1 0 0 199231730 +learned 28 composition 7 0 0 0 0 1 2 2 0 0 0 360627911 +learned 29 composition 7 0 1 0 0 1 2 2 0 0 0 356511351 +learned 30 composition 7 1 0 1 0 0 1 1 1 0 0 192895938 +learned 31 composition 7 1 1 1 0 0 1 1 1 0 0 199635430 +learned 32 basic 8 0 0 1 0 0 1 1 1 1 0 38034928 +learned 33 basic 8 0 1 1 0 0 1 1 1 1 0 33324188 +learned 34 basic 8 1 0 1 0 0 1 1 1 1 0 34153554 +learned 35 basic 8 1 1 1 0 0 2 2 1 1 0 91486948 +learned 36 basic 9 0 0 1 0 0 1 1 1 1 0 36841382 +learned 37 basic 9 0 1 0 0 1 2 2 0 0 0 118911683 +learned 38 basic 9 1 0 1 0 0 1 1 1 1 0 40133856 +learned 39 basic 9 1 1 1 0 0 1 1 1 1 0 37314826 +learned 40 basic 10 0 0 1 0 0 1 1 1 1 0 92222521 +learned 41 basic 10 0 1 1 0 0 1 1 1 1 0 92447291 +learned 42 basic 10 1 0 1 0 0 1 1 1 1 0 67403486 +learned 43 basic 10 1 1 0 0 1 2 2 0 0 0 168429962 +learned 44 basic 11 0 0 0 0 1 2 2 0 0 0 189304679 +learned 45 basic 11 0 1 0 0 1 2 2 0 0 0 179342540 +learned 46 basic 11 1 0 1 0 0 1 1 1 1 0 91830007 +learned 47 basic 11 1 1 1 0 0 1 1 1 1 0 90369595 +learned 48 basic 12 0 0 0 0 1 2 2 0 0 0 97065246 +learned 49 basic 12 0 1 0 0 1 2 2 0 0 0 89565973 +learned 50 basic 12 1 0 1 0 0 1 1 1 1 0 33389452 +learned 51 basic 12 1 1 0 0 1 2 2 0 0 0 103949538 +learned 52 basic 13 0 0 0 0 1 2 2 0 0 0 151811564 +learned 53 basic 13 0 1 0 0 1 2 2 0 0 0 137039565 +learned 54 basic 13 1 0 0 0 1 2 2 0 0 0 143510766 +learned 55 basic 13 1 1 0 0 1 2 2 0 0 0 104601703 +learned 56 basic 14 0 0 0 0 1 2 2 0 0 0 145316427 +learned 57 basic 14 0 1 0 0 1 2 2 0 0 0 112367107 +learned 58 basic 14 1 0 0 0 1 2 2 2 2 2 188061439 +learned 59 basic 14 1 1 0 0 1 2 2 0 0 0 189110679 +learned 60 basic 15 0 0 1 0 0 1 1 1 1 0 30797193 +learned 61 basic 15 0 1 1 0 0 2 2 1 1 0 80450193 +learned 62 basic 15 1 0 0 0 1 2 2 1 1 1 186625716 +learned 63 basic 15 1 1 0 0 1 2 2 2 2 2 189917389 +learned 64 additional 16 0 0 1 0 0 2 2 2 2 1 78411234 +learned 65 additional 16 0 1 1 0 0 1 1 1 1 0 43048421 +learned 66 additional 16 1 0 0 0 1 2 2 0 0 0 185107881 +learned 67 additional 16 1 1 0 0 1 2 2 0 0 0 186498820 +learned 68 additional 17 0 0 1 0 0 1 1 1 1 0 104682857 +learned 69 additional 17 0 1 1 0 0 1 1 1 1 0 105644176 +learned 70 additional 17 1 0 1 0 0 1 1 1 1 0 81195782 +learned 71 additional 17 1 1 1 0 0 1 1 1 1 0 108892456 +learned 72 additional 18 0 0 0 0 1 2 2 0 0 0 120401551 +learned 73 additional 18 0 1 0 0 1 1 1 0 0 0 56940415 +learned 74 additional 18 1 0 0 0 1 2 2 0 0 0 108586278 +learned 75 additional 18 1 1 0 0 1 2 2 0 0 0 158239262 +learned 76 additional 19 0 0 1 0 0 1 1 1 0 0 143483582 +learned 77 additional 19 0 1 1 0 0 2 2 1 0 0 292811145 +learned 78 additional 19 1 0 0 0 1 2 2 0 0 0 357973926 +learned 79 additional 19 1 1 0 0 1 2 2 0 0 0 356773197 diff --git a/train/omega-llm/tools/controller/run-02/panel.json b/train/omega-llm/tools/controller/run-02/panel.json new file mode 100644 index 0000000000000000000000000000000000000000..4d1cc7c303ac649b3e70d28958812997c38fb324 --- /dev/null +++ b/train/omega-llm/tools/controller/run-02/panel.json @@ -0,0 +1,125 @@ +{ +"checks":[ +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 26\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 31\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 26\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 27\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 135\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 15\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 15\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 20\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 26\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 31\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 26\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 27\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 135\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 15\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 20\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 15\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 256\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 308025\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 171396\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 8116801\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 28224\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 101761\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 22500\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 256\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 308025\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 171396\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 8116801\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 28224\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 22500\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 101761\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 2\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 7\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 4\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 5\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 3\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 3\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 5\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 2\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 7\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 4\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 5\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 3\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 5\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 3\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 0\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 2704\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 3969\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 484\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 1369\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 61504\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 289\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 324\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 361\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 0\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 2704\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 3969\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 484\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 1369\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 61504\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 289\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 361\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 324\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 16\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 54\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 114\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 18\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 74\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 116\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 52\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 18\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 16\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 54\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 114\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 18\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 74\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 116\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 18\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 52\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 11\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 4\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 16\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 12\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 18\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 7\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 8\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 15\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 11\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 4\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 16\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 12\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 18\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 7\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 15\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 8\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 16\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 18\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 24\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 18\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 26\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 26\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 26\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 14\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 16\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 18\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 24\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 18\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 26\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 26\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 14\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 26\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 4\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 5\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 5\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 4\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 5\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 6\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 5\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 4\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 4\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 5\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 5\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 3\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 4\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 5\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 6\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 4\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 5\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 8\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 52\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 55\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 270\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 31\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 31\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 40\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 8\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 52\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 55\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 270\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 31\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 40\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 31\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 16\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 555\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 414\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 2849\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 168\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 319\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 150\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 16\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 555\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 414\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 2849\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 168\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 150\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 319\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 15\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 7\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 6\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 11\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 15\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 7\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 11\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 6\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 37\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 46\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 259\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 24\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 29\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 25\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 37\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 46\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 259\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 24\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 25\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 29\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 47\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 47\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 267\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 31\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 31\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 31\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 47\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 47\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 267\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 31\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 31\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 31\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 5\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 8\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 3\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 0\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 9\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 0\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 5\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 8\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 3\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 0\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 0\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 9\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 15\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 46\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 259\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 7\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 25\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 11\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 0\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 15\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 46\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 259\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 7\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 11\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 25\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 37\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 24\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 29\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 6\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 4\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 37\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 9\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 24\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 6\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 29\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 0\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 42\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 39\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 264\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 31\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 31\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 22\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 0\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 42\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 39\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 264\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 31\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 22\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 31\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 0\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 22\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 37\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 248\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 17\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 18\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 19\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 0\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 52\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 63\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 22\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 37\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 248\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 17\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 19\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 18\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 9\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 53\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 64\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 53\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 56\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 271\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 32\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 32\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 41\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nif ne calc ulong 0 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 4 ulong 4 ulong 9\nret 83\nend\nif ne calc ulong 52 ulong 0 ulong 53\nret 83\nend\nif ne calc ulong 0 ulong 63 ulong 64\nret 83\nend\nif ne calc ulong 15 ulong 37 ulong 53\nret 83\nend\nif ne calc ulong 46 ulong 9 ulong 56\nret 83\nend\nif ne calc ulong 259 ulong 11 ulong 271\nret 83\nend\nif ne calc ulong 7 ulong 24 ulong 32\nret 83\nend\nret 77\nend\n","first":"fn main to int\nif ne calc ulong 11 ulong 29 ulong 41\nret 83\nend\nret 77\nend\n","second":"fn main to int\nif ne calc ulong 25 ulong 6 ulong 32\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 8\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 27\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 57\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 9\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 37\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 58\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 9\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 26\nret 83\nend\nret 77\nend\n"}, +{"main":"fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 2 ulong 8\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 7 ulong 27\nret 83\nend\nput buf 0 0\nput buf 1 8\nput buf 2 4\nput buf 3 9\nput buf 4 1\nput buf 5 0\nput buf 6 5\nput buf 7 12\nput buf 8 6\nput buf 9 2\nput buf 10 7\nput buf 11 3\nif ne calc buf ulong 12 ulong 57\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 0 ulong 0\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 2 ulong 9\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 7 ulong 37\nret 83\nend\nput buf 0 9\nput buf 1 0\nput buf 2 3\nput buf 3 0\nput buf 4 10\nput buf 5 13\nput buf 6 2\nput buf 7 7\nput buf 8 0\nput buf 9 5\nput buf 10 1\nput buf 11 8\nif ne calc buf ulong 12 ulong 58\nret 83\nend\nret 77\nend\n","first":"fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 0\nput buf 2 13\nput buf 3 4\nput buf 4 6\nif ne calc buf ulong 5 ulong 26\nret 83\nend\nret 77\nend\n","second":"fn main to int\nbuf = new ulong 12 0\nput buf 0 7\nput buf 1 2\nput buf 2 0\nput buf 3 0\nif ne calc buf ulong 4 ulong 9\nret 83\nend\nret 77\nend\n"} +], +"cases":[ +{"op":0,"word":0,"name":0,"group":"composition","prompt":"note return the two inputs added together and divided by two\nfn calc a ulong b ulong to ulong\n","reference":"s = add a b\nret div s 2\nend\n","order":0,"checks":0}, +{"op":0,"word":0,"name":1,"group":"composition","prompt":"note return the two inputs added together and divided by two\nfn calc left ulong right ulong to ulong\n","reference":"s = add left right\nret div s 2\nend\n","order":1,"checks":1}, +{"op":0,"word":1,"name":0,"group":"composition","prompt":"note sum both arguments and then divide the result by two\nfn calc a ulong b ulong to ulong\n","reference":"s = add a b\nret div s 2\nend\n","order":1,"checks":1}, +{"op":0,"word":1,"name":1,"group":"composition","prompt":"note sum both arguments and then divide the result by two\nfn calc left ulong right ulong to ulong\n","reference":"s = add left right\nret div s 2\nend\n","order":0,"checks":0}, +{"op":1,"word":0,"name":0,"group":"composition","prompt":"note return the squared product of the two arguments\nfn calc a ulong b ulong to ulong\n","reference":"s = mul a b\nret mul s s\nend\n","order":1,"checks":2}, +{"op":1,"word":0,"name":1,"group":"composition","prompt":"note return the squared product of the two arguments\nfn calc left ulong right ulong to ulong\n","reference":"s = mul left right\nret mul s s\nend\n","order":0,"checks":3}, +{"op":1,"word":1,"name":0,"group":"composition","prompt":"note multiply the arguments together and then square the result\nfn calc a ulong b ulong to ulong\n","reference":"s = mul a b\nret mul s s\nend\n","order":0,"checks":3}, +{"op":1,"word":1,"name":1,"group":"composition","prompt":"note multiply the arguments together and then square the result\nfn calc left ulong right ulong to ulong\n","reference":"s = mul left right\nret mul s s\nend\n","order":1,"checks":2}, +{"op":2,"word":0,"name":0,"group":"composition","prompt":"note return the lower input divided by two\nfn calc a ulong b ulong to ulong\n","reference":"s = a\nif lt b a\ns = b\nend\nret div s 2\nend\n","order":0,"checks":4}, +{"op":2,"word":0,"name":1,"group":"composition","prompt":"note return the lower input divided by two\nfn calc left ulong right ulong to ulong\n","reference":"s = left\nif lt right left\ns = right\nend\nret div s 2\nend\n","order":1,"checks":5}, +{"op":2,"word":1,"name":0,"group":"composition","prompt":"note select the minimum and then divide its value by two\nfn calc a ulong b ulong to ulong\n","reference":"s = a\nif lt b a\ns = b\nend\nret div s 2\nend\n","order":1,"checks":5}, +{"op":2,"word":1,"name":1,"group":"composition","prompt":"note select the minimum and then divide its value by two\nfn calc left ulong right ulong to ulong\n","reference":"s = left\nif lt right left\ns = right\nend\nret div s 2\nend\n","order":0,"checks":4}, +{"op":3,"word":0,"name":0,"group":"composition","prompt":"note square the difference between the larger and the smaller input\nfn calc a ulong b ulong to ulong\n","reference":"s = sub a b\nif lt a b\ns = sub b a\nend\nret mul s s\nend\n","order":1,"checks":6}, +{"op":3,"word":0,"name":1,"group":"composition","prompt":"note square the difference between the larger and the smaller input\nfn calc left ulong right ulong to ulong\n","reference":"s = sub left right\nif lt left right\ns = sub right left\nend\nret mul s s\nend\n","order":0,"checks":7}, +{"op":3,"word":1,"name":0,"group":"composition","prompt":"note compute the unsigned distance and then multiply it by itself\nfn calc a ulong b ulong to ulong\n","reference":"s = sub a b\nif lt a b\ns = sub b a\nend\nret mul s s\nend\n","order":0,"checks":7}, +{"op":3,"word":1,"name":1,"group":"composition","prompt":"note compute the unsigned distance and then multiply it by itself\nfn calc left ulong right ulong to ulong\n","reference":"s = sub left right\nif lt left right\ns = sub right left\nend\nret mul s s\nend\n","order":1,"checks":6}, +{"op":4,"word":0,"name":0,"group":"composition","prompt":"note return double the sum of all entries in the given prefix\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret mul s 2\nend\n","order":0,"checks":8}, +{"op":4,"word":0,"name":1,"group":"composition","prompt":"note return double the sum of all entries in the given prefix\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret mul s 2\nend\n","order":1,"checks":9}, +{"op":4,"word":1,"name":0,"group":"composition","prompt":"note sum the prefix entries and then multiply that sum by two\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret mul s 2\nend\n","order":1,"checks":9}, +{"op":4,"word":1,"name":1,"group":"composition","prompt":"note sum the prefix entries and then multiply that sum by two\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret mul s 2\nend\n","order":0,"checks":8}, +{"op":5,"word":0,"name":0,"group":"composition","prompt":"note return the exclusive OR over the prefix increased by three\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret add s 3\nend\n","order":1,"checks":10}, +{"op":5,"word":0,"name":1,"group":"composition","prompt":"note return the exclusive OR over the prefix increased by three\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret add s 3\nend\n","order":0,"checks":11}, +{"op":5,"word":1,"name":0,"group":"composition","prompt":"note combine the prefix with bitwise XOR and then add 3\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret add s 3\nend\n","order":0,"checks":11}, +{"op":5,"word":1,"name":1,"group":"composition","prompt":"note combine the prefix with bitwise XOR and then add 3\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret add s 3\nend\n","order":1,"checks":10}, +{"op":6,"word":0,"name":0,"group":"composition","prompt":"note double the maximum prefix entry, treating the empty prefix maximum as zero\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret mul s 2\nend\n","order":0,"checks":12}, +{"op":6,"word":0,"name":1,"group":"composition","prompt":"note double the maximum prefix entry, treating the empty prefix maximum as zero\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret mul s 2\nend\n","order":1,"checks":13}, +{"op":6,"word":1,"name":0,"group":"composition","prompt":"note take the largest value in the prefix or zero if empty and then multiply it by two\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret mul s 2\nend\n","order":1,"checks":13}, +{"op":6,"word":1,"name":1,"group":"composition","prompt":"note take the largest value in the prefix or zero if empty and then multiply it by two\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret mul s 2\nend\n","order":0,"checks":12}, +{"op":7,"word":0,"name":0,"group":"composition","prompt":"note return the prefix zero count increased by three\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","order":1,"checks":14}, +{"op":7,"word":0,"name":1,"group":"composition","prompt":"note return the prefix zero count increased by three\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","order":0,"checks":15}, +{"op":7,"word":1,"name":0,"group":"composition","prompt":"note count all zero entries in the given prefix and then add 3\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","order":0,"checks":15}, +{"op":7,"word":1,"name":1,"group":"composition","prompt":"note count all zero entries in the given prefix and then add 3\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret add s 3\nend\n","order":1,"checks":14}, +{"op":8,"word":0,"name":0,"group":"basic","prompt":"note produce the total of the two input values\nfn calc a ulong b ulong to ulong\n","reference":"ret add a b\nend\n","order":0,"checks":16}, +{"op":8,"word":0,"name":1,"group":"basic","prompt":"note produce the total of the two input values\nfn calc left ulong right ulong to ulong\n","reference":"ret add left right\nend\n","order":1,"checks":17}, +{"op":8,"word":1,"name":0,"group":"basic","prompt":"note return their sum using unsigned addition\nfn calc a ulong b ulong to ulong\n","reference":"ret add a b\nend\n","order":1,"checks":17}, +{"op":8,"word":1,"name":1,"group":"basic","prompt":"note return their sum using unsigned addition\nfn calc left ulong right ulong to ulong\n","reference":"ret add left right\nend\n","order":0,"checks":16}, +{"op":9,"word":0,"name":0,"group":"basic","prompt":"note produce the product of the input pair\nfn calc a ulong b ulong to ulong\n","reference":"ret mul a b\nend\n","order":1,"checks":18}, +{"op":9,"word":0,"name":1,"group":"basic","prompt":"note produce the product of the input pair\nfn calc left ulong right ulong to ulong\n","reference":"ret mul left right\nend\n","order":0,"checks":19}, +{"op":9,"word":1,"name":0,"group":"basic","prompt":"note return their product using unsigned multiplication\nfn calc a ulong b ulong to ulong\n","reference":"ret mul a b\nend\n","order":0,"checks":19}, +{"op":9,"word":1,"name":1,"group":"basic","prompt":"note return their product using unsigned multiplication\nfn calc left ulong right ulong to ulong\n","reference":"ret mul left right\nend\n","order":1,"checks":18}, +{"op":10,"word":0,"name":0,"group":"basic","prompt":"note select the lower value from the input pair\nfn calc a ulong b ulong to ulong\n","reference":"if lt a b\nret a\nend\nret b\nend\n","order":0,"checks":20}, +{"op":10,"word":0,"name":1,"group":"basic","prompt":"note select the lower value from the input pair\nfn calc left ulong right ulong to ulong\n","reference":"if lt left right\nret left\nend\nret right\nend\n","order":1,"checks":21}, +{"op":10,"word":1,"name":0,"group":"basic","prompt":"note return the minimum of these unsigned values\nfn calc a ulong b ulong to ulong\n","reference":"if lt a b\nret a\nend\nret b\nend\n","order":1,"checks":21}, +{"op":10,"word":1,"name":1,"group":"basic","prompt":"note return the minimum of these unsigned values\nfn calc left ulong right ulong to ulong\n","reference":"if lt left right\nret left\nend\nret right\nend\n","order":0,"checks":20}, +{"op":11,"word":0,"name":0,"group":"basic","prompt":"note select the higher value from the input pair\nfn calc a ulong b ulong to ulong\n","reference":"if gt a b\nret a\nend\nret b\nend\n","order":1,"checks":22}, +{"op":11,"word":0,"name":1,"group":"basic","prompt":"note select the higher value from the input pair\nfn calc left ulong right ulong to ulong\n","reference":"if gt left right\nret left\nend\nret right\nend\n","order":0,"checks":23}, +{"op":11,"word":1,"name":0,"group":"basic","prompt":"note return the maximum of these unsigned values\nfn calc a ulong b ulong to ulong\n","reference":"if gt a b\nret a\nend\nret b\nend\n","order":0,"checks":23}, +{"op":11,"word":1,"name":1,"group":"basic","prompt":"note return the maximum of these unsigned values\nfn calc left ulong right ulong to ulong\n","reference":"if gt left right\nret left\nend\nret right\nend\n","order":1,"checks":22}, +{"op":12,"word":0,"name":0,"group":"basic","prompt":"note produce the bitwise union of both operands\nfn calc a ulong b ulong to ulong\n","reference":"ret or a b\nend\n","order":0,"checks":24}, +{"op":12,"word":0,"name":1,"group":"basic","prompt":"note produce the bitwise union of both operands\nfn calc left ulong right ulong to ulong\n","reference":"ret or left right\nend\n","order":1,"checks":25}, +{"op":12,"word":1,"name":0,"group":"basic","prompt":"note set each result bit that occurs in either argument\nfn calc a ulong b ulong to ulong\n","reference":"ret or a b\nend\n","order":1,"checks":25}, +{"op":12,"word":1,"name":1,"group":"basic","prompt":"note set each result bit that occurs in either argument\nfn calc left ulong right ulong to ulong\n","reference":"ret or left right\nend\n","order":0,"checks":24}, +{"op":13,"word":0,"name":0,"group":"basic","prompt":"note produce the bitwise intersection of both operands\nfn calc a ulong b ulong to ulong\n","reference":"ret and a b\nend\n","order":1,"checks":26}, +{"op":13,"word":0,"name":1,"group":"basic","prompt":"note produce the bitwise intersection of both operands\nfn calc left ulong right ulong to ulong\n","reference":"ret and left right\nend\n","order":0,"checks":27}, +{"op":13,"word":1,"name":0,"group":"basic","prompt":"note set each result bit that occurs in both arguments\nfn calc a ulong b ulong to ulong\n","reference":"ret and a b\nend\n","order":0,"checks":27}, +{"op":13,"word":1,"name":1,"group":"basic","prompt":"note set each result bit that occurs in both arguments\nfn calc left ulong right ulong to ulong\n","reference":"ret and left right\nend\n","order":1,"checks":26}, +{"op":14,"word":0,"name":0,"group":"basic","prompt":"note give back the argument that appears first\nfn calc a ulong b ulong to ulong\n","reference":"ret a\nend\n","order":0,"checks":28}, +{"op":14,"word":0,"name":1,"group":"basic","prompt":"note give back the argument that appears first\nfn calc left ulong right ulong to ulong\n","reference":"ret left\nend\n","order":1,"checks":29}, +{"op":14,"word":1,"name":0,"group":"basic","prompt":"note return the value from argument number one\nfn calc a ulong b ulong to ulong\n","reference":"ret a\nend\n","order":1,"checks":29}, +{"op":14,"word":1,"name":1,"group":"basic","prompt":"note return the value from argument number one\nfn calc left ulong right ulong to ulong\n","reference":"ret left\nend\n","order":0,"checks":28}, +{"op":15,"word":0,"name":0,"group":"basic","prompt":"note give back the argument that appears second\nfn calc a ulong b ulong to ulong\n","reference":"ret b\nend\n","order":1,"checks":30}, +{"op":15,"word":0,"name":1,"group":"basic","prompt":"note give back the argument that appears second\nfn calc left ulong right ulong to ulong\n","reference":"ret right\nend\n","order":0,"checks":31}, +{"op":15,"word":1,"name":0,"group":"basic","prompt":"note return the value from argument number two\nfn calc a ulong b ulong to ulong\n","reference":"ret b\nend\n","order":0,"checks":31}, +{"op":15,"word":1,"name":1,"group":"basic","prompt":"note return the value from argument number two\nfn calc left ulong right ulong to ulong\n","reference":"ret right\nend\n","order":1,"checks":30}, +{"op":16,"word":0,"name":0,"group":"additional","prompt":"note combine the arguments by bitwise exclusive OR\nfn calc a ulong b ulong to ulong\n","reference":"ret xor a b\nend\n","order":0,"checks":32}, +{"op":16,"word":0,"name":1,"group":"additional","prompt":"note combine the arguments by bitwise exclusive OR\nfn calc left ulong right ulong to ulong\n","reference":"ret xor left right\nend\n","order":1,"checks":33}, +{"op":16,"word":1,"name":0,"group":"additional","prompt":"note return the XOR obtained from the two operands\nfn calc a ulong b ulong to ulong\n","reference":"ret xor a b\nend\n","order":1,"checks":33}, +{"op":16,"word":1,"name":1,"group":"additional","prompt":"note return the XOR obtained from the two operands\nfn calc left ulong right ulong to ulong\n","reference":"ret xor left right\nend\n","order":0,"checks":32}, +{"op":17,"word":0,"name":0,"group":"additional","prompt":"note return the nonnegative distance between both arguments\nfn calc a ulong b ulong to ulong\n","reference":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","order":1,"checks":34}, +{"op":17,"word":0,"name":1,"group":"additional","prompt":"note return the nonnegative distance between both arguments\nfn calc left ulong right ulong to ulong\n","reference":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","order":0,"checks":35}, +{"op":17,"word":1,"name":0,"group":"additional","prompt":"note give the absolute difference of the unsigned inputs\nfn calc a ulong b ulong to ulong\n","reference":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","order":0,"checks":35}, +{"op":17,"word":1,"name":1,"group":"additional","prompt":"note give the absolute difference of the unsigned inputs\nfn calc left ulong right ulong to ulong\n","reference":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","order":1,"checks":34}, +{"op":18,"word":0,"name":0,"group":"additional","prompt":"note compute the sum of both values and then add one\nfn calc a ulong b ulong to ulong\n","reference":"ret add add a b 1\nend\n","order":0,"checks":36}, +{"op":18,"word":0,"name":1,"group":"additional","prompt":"note compute the sum of both values and then add one\nfn calc left ulong right ulong to ulong\n","reference":"ret add add left right 1\nend\n","order":1,"checks":37}, +{"op":18,"word":1,"name":0,"group":"additional","prompt":"note increment the sum of the two operands\nfn calc a ulong b ulong to ulong\n","reference":"ret add add a b 1\nend\n","order":1,"checks":37}, +{"op":18,"word":1,"name":1,"group":"additional","prompt":"note increment the sum of the two operands\nfn calc left ulong right ulong to ulong\n","reference":"ret add add left right 1\nend\n","order":0,"checks":36}, +{"op":19,"word":0,"name":0,"group":"additional","prompt":"note add the entries of the supplied prefix together\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","order":1,"checks":38}, +{"op":19,"word":0,"name":1,"group":"additional","prompt":"note add the entries of the supplied prefix together\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","order":0,"checks":39}, +{"op":19,"word":1,"name":0,"group":"additional","prompt":"note return the total of all elements before the given bound\nfn calc items view ulong 12 count ulong to ulong\n","reference":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","order":0,"checks":39}, +{"op":19,"word":1,"name":1,"group":"additional","prompt":"note return the total of all elements before the given bound\nfn calc data view ulong 12 n ulong to ulong\n","reference":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","order":1,"checks":38} +]} diff --git a/train/omega-llm/tools/controller/run-02/scores.json b/train/omega-llm/tools/controller/run-02/scores.json new file mode 100644 index 0000000000000000000000000000000000000000..1cfd3faf423ec303deeb15b5b0b6c062b7113c75 --- /dev/null +++ b/train/omega-llm/tools/controller/run-02/scores.json @@ -0,0 +1,186 @@ +{ + "one": { + "composition": { + "correct": 10, + "wrong": 0, + "abstained": 22, + "calls": 53, + "first_checks": 45, + "eligible": 10, + "second_checks": 0, + "rejected": 0, + "prompts": 32 + }, + "basic": { + "correct": 15, + "wrong": 3, + "abstained": 14, + "calls": 48, + "first_checks": 48, + "eligible": 18, + "second_checks": 0, + "rejected": 0, + "prompts": 32 + }, + "additional": { + "correct": 7, + "wrong": 1, + "abstained": 8, + "calls": 24, + "first_checks": 24, + "eligible": 8, + "second_checks": 0, + "rejected": 0, + "prompts": 16 + }, + "all": { + "correct": 32, + "wrong": 4, + "abstained": 44, + "calls": 125, + "first_checks": 117, + "eligible": 36, + "second_checks": 0, + "rejected": 0, + "prompts": 80 + } + }, + "two": { + "composition": { + "correct": 10, + "wrong": 0, + "abstained": 22, + "calls": 53, + "first_checks": 45, + "eligible": 10, + "second_checks": 10, + "rejected": 0, + "prompts": 32 + }, + "basic": { + "correct": 15, + "wrong": 0, + "abstained": 17, + "calls": 51, + "first_checks": 51, + "eligible": 20, + "second_checks": 20, + "rejected": 5, + "prompts": 32 + }, + "additional": { + "correct": 8, + "wrong": 0, + "abstained": 8, + "calls": 25, + "first_checks": 25, + "eligible": 9, + "second_checks": 9, + "rejected": 1, + "prompts": 16 + }, + "all": { + "correct": 33, + "wrong": 0, + "abstained": 47, + "calls": 129, + "first_checks": 121, + "eligible": 39, + "second_checks": 39, + "rejected": 6, + "prompts": 80 + } + }, + "previous": { + "composition": { + "correct": 10, + "wrong": 0, + "abstained": 22, + "calls": 53, + "first_checks": 45, + "eligible": 10, + "second_checks": 0, + "rejected": 0, + "prompts": 32 + }, + "basic": { + "correct": 15, + "wrong": 0, + "abstained": 17, + "calls": 51, + "first_checks": 51, + "eligible": 20, + "second_checks": 12, + "rejected": 5, + "prompts": 32 + }, + "additional": { + "correct": 7, + "wrong": 1, + "abstained": 8, + "calls": 24, + "first_checks": 24, + "eligible": 8, + "second_checks": 4, + "rejected": 0, + "prompts": 16 + }, + "all": { + "correct": 32, + "wrong": 1, + "abstained": 47, + "calls": 128, + "first_checks": 120, + "eligible": 38, + "second_checks": 16, + "rejected": 5, + "prompts": 80 + } + }, + "learned": { + "composition": { + "correct": 10, + "wrong": 0, + "abstained": 22, + "calls": 53, + "first_checks": 45, + "eligible": 10, + "second_checks": 2, + "rejected": 0, + "prompts": 32 + }, + "basic": { + "correct": 15, + "wrong": 0, + "abstained": 17, + "calls": 51, + "first_checks": 51, + "eligible": 20, + "second_checks": 20, + "rejected": 5, + "prompts": 32 + }, + "additional": { + "correct": 8, + "wrong": 0, + "abstained": 8, + "calls": 25, + "first_checks": 25, + "eligible": 9, + "second_checks": 7, + "rejected": 1, + "prompts": 16 + }, + "all": { + "correct": 33, + "wrong": 0, + "abstained": 47, + "calls": 129, + "first_checks": 121, + "eligible": 39, + "second_checks": 29, + "rejected": 6, + "prompts": 80 + } + } +} diff --git a/train/omega-llm/tools/controller/second.om b/train/omega-llm/tools/controller/second.om new file mode 100644 index 0000000000000000000000000000000000000000..2a6b16bbd3353a929fed4233168449f2f65d4a18 --- /dev/null +++ b/train/omega-llm/tools/controller/second.om @@ -0,0 +1,115 @@ +note Learned risk of an incorrect first-pass body being rejected by the other caller example. +text scmagic "OSC2" +text sccond "if " +text scret "ret " +global scseen ulong 11 +global sccaught ulong 11 +fn scstarts a view uchar * off ulong key view uchar * to bool +if gt add off len key len a +ret false +end +for j ulong len key +if ne get a add off j get key j +ret false +end +end +ret true +end +fn scletter c uchar to bool +ret or eq c 95 or and ge c 65 le c 90 and ge c 97 le c 122 +end +fn scsimple a view uchar * off ulong to bool +if ge off len a +ret false +end +if not scletter get a off +ret false +end +for j ulong sub len a off +c = get a add j off +if eq c 10 +ret true +end +if not or scletter c and ge c 48 le c 57 +ret false +end +end +ret true +end +fn scfeature p view uchar * a view uchar * to ulong +g = cpbit hastext p ctarray +line = true +for i ulong len a +if line +if scstarts a i sccond +g = or g 2 +end +if scstarts a i scret +if scsimple a add i 4 +g = or g 4 +end +end +end +line = eq get a i 10 +end +ret g +end +fn scvote k ulong y ulong to void +put scseen k add 1 get scseen k +put sccaught k add y get sccaught k +end +fn scdecision g ulong to bool +k = g +if lt get scseen k 6 +k = add 8 and g 1 +end +if lt get scseen k 6 +k = 10 +end +ret ge mul 12 get sccaught k get scseen k +end +fn scemit n ulong to void +for j ulong 4 +wdoc and shr n mul j 8 255 +end +end +fn scsave to void +wdot scmagic +for i ulong 11 +scemit get scseen i +scemit get sccaught i +end +wdoflush 1 +end +fn scu32 k ulong to ulong +v = ulong 0 +for j ulong 4 +v = or v shl ulong get wdsrc add k j mul 8 j +end +ret v +end +fn scload arg ulong to void +wdpclr +wdpa arg +if ne wdload 92 +exit 72 +end +for j ulong len scmagic +if ne get scmagic j get wdsrc j +exit 72 +end +end +for i ulong 11 +k = add 4 mul 8 i +n = scu32 k +y = scu32 add k 4 +if gt y n +exit 72 +end +put scseen i n +put sccaught i y +end +if eq get scseen 10 0 +exit 72 +end +end diff --git a/train/omega-llm/tools/controller/train-second.om b/train/omega-llm/tools/controller/train-second.om new file mode 100644 index 0000000000000000000000000000000000000000..1677efba19b08954e54da08aac040343ee2fc5c0 --- /dev/null +++ b/train/omega-llm/tools/controller/train-second.om @@ -0,0 +1,25 @@ +note train-second RECORDS. Each pair of bytes contains a feature group and a catch label. +fn main to int +if ne argcnt 2 +ret 2 +end +wdpclr +wdpa 1 +n = wdload +if or le n 0 ne rem ulong n 2 0 +ret 72 +end +for i ulong div ulong n 2 +k = mul i 2 +g = ulong get wdsrc k +y = ulong get wdsrc add k 1 +if or gt g 7 gt y 1 +ret 72 +end +scvote g y +scvote add 8 and g 1 y +scvote 10 y +end +scsave +ret 0 +end