interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

Replay Omega coding experiments and check completions against caller examples

open 6d93163e203a989c opened 2026-11-20 by z6MktvMGgxSZ19NQ...

1 commit · 24 files · 203042 bytes. Base 9fccf02150db99662c02863ff6426f4b922f7ee1. Applied head 31648bb430bc61600d2ab7d441f7a7fe701f5a67: the last commit this forge's own git am made on the base. It is in no repository; the owner applies the patch by hand.

Package and replay the Omega contrast training experiment. Public candidate 4c6834a959fa1411e28781a645383c544477150e, signed candidate d77933639c2bbe3beb00aedc223991c0f0f2beb1.
On Spark, ran make -C train/omega-llm/tools/contrast OMC="$OMC" replay using the pinned seeded AArch64 compiler. All reference functions, archived generations and fresh selections reproduced.
Ran tests/gates/run.sh evidence-immutable and tests/gates/run.sh zero-disk-secrets on both histories.
Rebuilt control/treatment mean and compared it with the original GPU-experiment checkpoint; regenerated the mixed corpus and compared it to the original.
98e5afe6c421499ab8294227fcf67729ca7f01a19d4a9f5494c2e9a6dcc535fc  ../averaged.ck
62df244e74d694698d8ed6b8da68fecf1355c123ba9d491d24c1133fe59bb600  reproduce-mix/mixed.om
first exit=0 accepted checkpoint 1
later exit=0 accepted checkpoint 3
none exit=3 no generated answer passed the example
Cold GB10 smoke covered immediate selection, third selection and abstention. The repository includes code, fixtures, archived answers, scores and digests. Weights remain in the experiment artifact store.

Apply it

git checkout -b patch-6d93163e203a989c 9fccf02150db99662c02863ff6426f4b922f7ee1
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/6d93163e203a989c.patch | git am

Raw patch (mbox) · Diff

Signature

The author's key did:key:z6MktvMGgxSZ19NQkrvXG6aRzjbFA1yBa2KJmmA9pSTJCiEZ signed this statement with ssh-keygen -Y sign -n interplane-patch; the forge checked the signature before it kept the patch. The lines are: format, repository, base, SHA-256 of the mbox, SHA-256 of the title, a line feed and the description.

interplane-patch 1
drakestapleton/omega-mv
9fccf02150db99662c02863ff6426f4b922f7ee1
16425f6422598c3b74628823a1b74cf4b735a49316f9670f5b8982a016dcb7ba
8955e5ab93131dd89080337fa0880d3dee852751888dfe0e77c00f54c9461966
-----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAg1vQ1KtWtuW5PISxEahQt4AgcBw
syuwQ4l2Qd7RBTSZ4AAAAQaW50ZXJwbGFuZS1wYXRjaAAAAAAAAAAGc2hhNTEyAAAAUwAA
AAtzc2gtZWQyNTUxOQAAAECWcbwdUQ5LP10YiFpTuT4AuZLlh+A1bO13SxxKIFwBHrl+dI
Rpev3Lp5XJhuXlsUTOxO57wk0ZxZHG+MxHXa4K
-----END SSH SIGNATURE-----

Changes

diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index eecee27ef1e85da017a9b04c9c350c685bbb2574..29fa863f755f056500d4ff1ca6786805e112c921 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -361,3 +361,4 @@ Update this table in the same commit as the work it credits.
 
 | Codex (under Drake Stapleton’s direction) | Replayed the nine-check Spark GB10 Q38 stress suite on `371a882a5` and published the [November 20 measurements](docs/gpu/Q38_27B_GB10_STRESS_20261120.md). |
 | Codex (under Drake Stapleton’s direction) | Implemented the seeded Omega training harness for native tokenization, CPU and GB10 fine-tuning and held-out evaluation. |
+| Codex (under Drake Stapleton’s direction) | Trained and evaluated Omega coding checkpoints on Spark and packaged the native example-checked chain and behavior replay. |
diff --git a/train/omega-llm/README.md b/train/omega-llm/README.md
index 73a42d13088478ffc8273c48383c603e7a41fbae..192a14fcd0d9bd09c1114f8a34741ab0be3fa251 100644
--- a/train/omega-llm/README.md
+++ b/train/omega-llm/README.md
@@ -35,6 +35,8 @@ spark-window run ./wtrain gb10 ./ollm-gb10 base.ck merges.bin training.om held-o
 
 The GPU invocation runs inside an authorized exclusive Spark window. The harness creates a private directory, writes the token streams and `candidate.ck` there, and records native tokenizer, optimizer and evaluator output in `run.log`. An existing output directory is refused. A failed run retains its partial files. A successful run ends with `TRAINING_COMPLETE` after the final evaluation. The E lines report held-out language-model loss. Coding accuracy requires separate execution tests.
 
+The [contrast-training experiment and example-checked coding chain](tools/contrast/README.md) include a CPU replay of generated functions against their expected outputs.
+
 ## 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 <pool> model adam ckpt bpe spec cli <plat> <post>`); `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/contrast/Makefile b/train/omega-llm/tools/contrast/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..2a66a514a656f3e66e27b8ac15e08e06839f22f4
--- /dev/null
+++ b/train/omega-llm/tools/contrast/Makefile
@@ -0,0 +1,41 @@
+# Build on AArch64 Linux with the repository's seeded compiler.
+ROOT := $(abspath ../../../..)
+OUT ?= $(ROOT)/build/omega-contrast
+OMC ?= $(ROOT)/seed/out/omc
+DRIVER := ../wdrive/wbuild.om
+JSON := $(ROOT)/seed/json/json.om
+MODEL := $(addprefix $(ROOT)/,$(shell awk '$$1=="ollm_aarch64" {$$1=""; print}' $(ROOT)/train/units.tsv))
+.DELETE_ON_ERROR:
+.PHONY: all replay
+all: $(addprefix $(OUT)/,contrast mix grade select with-example mean)
+
+$(OUT):
+	mkdir -p "$@"
+
+$(OUT)/driver.om: $(DRIVER) | $(OUT)
+	sed 's/^fn main to int$$/fn wbmain to int/' $< > "$@"
+
+$(OUT)/common.om: $(OUT)/driver.om $(JSON) grade.om
+	cat $^ | sed 's/^fn main to int$$/fn priorgrade to int/' > "$@"
+
+$(OUT)/contrast: $(OUT)/driver.om contrast.om $(OMC)
+	cat $(filter %.om,$^) | "$(OMC)" > "$@" && chmod +x "$@"
+
+$(OUT)/mix: mix.om $(OMC) | $(OUT)
+	"$(OMC)" < $< > "$@" && chmod +x "$@"
+
+$(OUT)/grade: $(OUT)/driver.om $(JSON) grade.om $(OMC)
+	cat $(filter %.om,$^) | "$(OMC)" > "$@" && chmod +x "$@"
+
+$(OUT)/select: $(OUT)/common.om select.om $(OMC)
+	cat $(filter %.om,$^) | "$(OMC)" > "$@" && chmod +x "$@"
+
+$(OUT)/with-example: $(OUT)/common.om read.om with-example.om $(OMC)
+	cat $(filter %.om,$^) | "$(OMC)" > "$@" && chmod +x "$@"
+
+$(OUT)/mean: $(MODEL) mean.om $(OMC) | $(OUT)
+	sed 's/^fn main to int$$/fn previousmodel to int/' $(MODEL) > "$(OUT)/model-library.om"
+	cat "$(OUT)/model-library.om" mean.om | "$(OMC)" > "$@" && chmod +x "$@"
+
+replay: all
+	bash replay.sh "$(OUT)" "$(OMC)"
diff --git a/train/omega-llm/tools/contrast/README.md b/train/omega-llm/tools/contrast/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..7a683c9f5594d4f29efd88b47f01924002d13af1
--- /dev/null
+++ b/train/omega-llm/tools/contrast/README.md
@@ -0,0 +1,46 @@
+# Contrast training and example-checked Omega completions
+
+This directory contains the seeded Omega tools and executable fixtures from the Spark contrast-training experiment. Each checkpoint gets the instruction and function signature. The example-checked chain compiles each candidate with a caller-supplied test and runs the program with `execpure`. It returns the first body that passes.
+
+## Build and replay
+
+On AArch64 Linux, grow the seeded compiler from the repository root. The replay requires GNU Make, Bash, jq and coreutils.
+
+```sh
+sh seed/omega-from-seed.sh
+make -C train/omega-llm/tools/contrast replay
+```
+
+The build places executables in `build/omega-contrast`. The replay compiles the reference functions, grades the archived generations, checks selections against their recorded outcomes and reproduces the contrast corpus hash. It runs on the CPU. The measured GPU training and inference settings and model digests are in [run-01](run-01/README.md).
+
+## Generate a function
+
+From the repository root in an authorized exclusive Spark window, set `SAMPLER`, `MERGES`, `PARENT`, `CONTROL` and `TREATMENT` to absolute file paths. Use a new private directory for each invocation. The compiler, grader and live chain use scratch files in their working directory.
+
+```sh
+root=$PWD
+fixture=$root/train/omega-llm/tools/contrast/run-01
+cd "$(mktemp -d)"
+jq -rj '.[0].prompt' "$fixture/fresh.json" > prompt.om
+jq -rj '.[0].main' "$fixture/example.json" > example-main.om
+spark-window run "$root/build/omega-contrast/with-example" prompt.om \
+  "$root/seed/out/omc" "$SAMPLER" "$MERGES" example-main.om \
+  "$PARENT" "$CONTROL" "$TREATMENT" > body.om
+```
+
+The supplied `main` returns 77 when its check passes and 83 when it fails. The chain tries the supplied checkpoints in order with seed 42, temperature zero and a 64-token generation limit. Standard output contains the accepted function body, and standard error identifies the checkpoint. Exit status 3 with empty output means every model failed. An example pass covers only the supplied input. The experiment used separate inputs to grade accepted functions.
+
+## Repeat the training comparison
+
+With absolute paths, set `TOOLS` to the build directory, `WTRAIN` to the seeded training harness, `OLD` to the previous corpus and `HELD` to the held-out language-model corpus. In a fresh private directory run the following commands. Each training invocation needs an authorized exclusive GPU window.
+
+```sh
+cp "$OLD" old.om
+"$TOOLS/contrast" > contrast.om
+"$TOOLS/mix"
+spark-window run "$WTRAIN" gb10 "$SAMPLER" "$PARENT" "$MERGES" old.om "$HELD" control 800 350 4
+spark-window run "$WTRAIN" gb10 "$SAMPLER" "$PARENT" "$MERGES" mixed.om "$HELD" treatment 800 350 4
+"$TOOLS/mean" control/candidate.ck treatment/candidate.ck averaged.ck
+```
+
+The mixer is specific to this corpus format and experiment. It shuffles complete NUL-prefixed records with a fixed seed. The mean tool accepts two checksum-valid OLLMCK02 checkpoints with matching headers, averages every parameter and clears the optimizer moments and step. Give it a fresh output path, separate from both inputs. The [seeded training harness](../../README.md) documents the trainer arguments.
diff --git a/train/omega-llm/tools/contrast/contrast.om b/train/omega-llm/tools/contrast/contrast.om
new file mode 100644
index 0000000000000000000000000000000000000000..84a64cb69b623ea5eae1abfe669f68e8c357039c
--- /dev/null
+++ b/train/omega-llm/tools/contrast/contrast.om
@@ -0,0 +1,171 @@
+note Build after wbuild.om. Write adjacent contrasting records to standard output.
+text ctl "fn "
+text hint "note "
+text spc " "
+text nl "\n"
+text fin "\nend\n"
+text retprefix "ret "
+text sig " ulong "
+text viewarg " view ulong "
+text tail " ulong to ulong\n"
+text lefts "a|x|left|first|u|val|"
+text rights "b|y|right|second|v|other|"
+text arrays "a|items|data|buf|values|arr|"
+text sizes "n|count|size|used|limit|length|"
+text names "calc|apply|compute|measure|reduce|value|"
+text verbs "return |compute |find |give |calculate |report |"
+text tasks "the absolute difference|the sum|the smaller value|the larger value|the bitwise exclusive OR|the product|the XOR of the first entries|the sum of the first entries|the largest of the first entries|the number of zeros in the first entries|"
+text other "the unsigned gap between the two operands|both values added together|the minimum of the two operands|the maximum of the two operands|the bitwise XOR of the operands|both values multiplied together|the bitwise exclusive OR of the prefix|the total across the prefix|the prefix maximum|the count of zeros in the prefix|"
+text adds "add "
+text muls "mul "
+text xors "xor "
+text subs "sub "
+text less "if lt "
+text greater "if gt "
+text closeelse "\nend\nret "
+text start "s = ulong 0\nfor i ulong "
+text value "get "
+text index " i"
+text acc "\ns = "
+text zero "\nif eq "
+text maxcond "\nif gt "
+text assign " s\ns = "
+text incr " 0\ns = add s 1"
+text finishloop "\nend\nret s"
+text endinside "\nend"
+text accum "s "
+fn entry table view uchar * which ulong to void
+k = ulong 0
+for i ulong len table
+v = get table i
+if eq v 124
+if eq k which
+ret
+end
+k = add k 1
+else
+if eq k which
+wdoc ulong v
+end
+end
+end
+exit 72
+end
+fn pair v ulong reverse bool to void
+if reverse
+entry rights v
+wdot spc
+entry lefts v
+else
+entry lefts v
+wdot spc
+entry rights v
+end
+end
+fn readitem v ulong to void
+wdot value
+entry arrays v
+wdot index
+end
+fn body op ulong v ulong to void
+if lt op 6
+if or eq op 0 or eq op 2 eq op 3
+if eq op 3
+wdot greater
+else
+wdot less
+end
+pair v false
+wdot nl
+wdot retprefix
+if eq op 0
+wdot subs
+pair v true
+wdot closeelse
+wdot subs
+pair v false
+else
+entry lefts v
+wdot closeelse
+entry rights v
+end
+else
+wdot retprefix
+if eq op 1
+wdot adds
+else
+if eq op 4
+wdot xors
+else
+wdot muls
+end
+end
+pair v false
+end
+else
+wdot start
+entry sizes v
+if lt op 8
+wdot acc
+if eq op 6
+wdot xors
+else
+wdot adds
+end
+wdot accum
+readitem v
+else
+if eq op 8
+wdot maxcond
+readitem v
+wdot assign
+readitem v
+else
+wdot zero
+readitem v
+wdot incr
+end
+wdot endinside
+end
+wdot finishloop
+end
+wdot fin
+end
+fn main to int
+put wdofd 0 1
+for g ulong 144
+v = rem g 6
+nam = rem add div g 6 rem g 6 6
+verb = rem add div g 36 div g 6 6
+for j ulong 10
+op = rem add mul j 7 g 10
+wdoc 0
+wdot hint
+entry verbs verb
+if eq rem div g 6 2 0
+entry tasks op
+else
+entry other op
+end
+wdot nl
+wdot ctl
+entry names nam
+wdot spc
+if lt op 6
+entry lefts v
+wdot sig
+entry rights v
+else
+entry arrays v
+wdot viewarg
+wdod add 4 mul 4 rem div g 6 4
+wdot spc
+entry sizes v
+end
+wdot tail
+body op v
+end
+end
+wdoflush 1
+ret 0
+end
diff --git a/train/omega-llm/tools/contrast/grade.om b/train/omega-llm/tools/contrast/grade.om
new file mode 100644
index 0000000000000000000000000000000000000000..df1922cd34432060bb4cf2ff7e39bfe1b172253e
--- /dev/null
+++ b/train/omega-llm/tools/contrast/grade.om
@@ -0,0 +1,257 @@
+note grade PANEL OMC [cached | GPU CK MERGES]. Fresh output directory for every invocation.
+text fieldprompt "prompt"
+text fieldmain "main"
+text fieldref "reference"
+text samplecmd "gsample"
+text seedval "42"
+text limitval "64"
+text tempval "0"
+text infile "input.om"
+text binary "./app"
+text nilfile "/dev/null"
+text outname "answer-"
+text sep " "
+text lf "\n"
+text cachedarg "cached"
+fn argis i ulong val view uchar * to bool
+n = wdarg i
+if ne n len val
+ret false
+end
+for k ulong n
+if ne get wdab k get val k
+ret false
+end
+end
+ret true
+end
+fn fdesc path view uchar * flags int to int
+wdpclr
+wdpt path
+fd = wdopen flags 448
+if lt fd 0
+exit 70
+end
+ret fd
+end
+fn jsontext src view uchar 262144 tape view uint 262144 obj ulong which ulong dst edit uchar * to ulong
+k = js_first tape obj
+while ne k jsnone bound 4294967295
+off = js_off tape k
+ok = false
+if eq which 0
+ok = js_streq src off fieldprompt
+else
+if eq which 1
+ok = js_streq src off fieldmain
+else
+ok = js_streq src off fieldref
+end
+end
+if ok
+n = js_sget src js_off tape add k 1 dst
+if lt n 0
+exit 72
+end
+ret ulong n
+end
+k = js_mnext tape k
+end
+exit 72
+end
+fn sampleone prompt view uchar * fd int to void
+wdkclr
+wdka 3
+wdkt samplecmd
+wdka 4
+wdkt seedval
+wdkt limitval
+wdkt tempval
+wdkt prompt
+wdka 5
+if ne wdwait wdspawn -1 fd -1 0
+exit 73
+end
+end
+fn strict to long
+wdkclr
+wdkt binary
+pn = wdkfin
+pid = fork
+if lt pid 0
+exit 70
+end
+if eq pid 0
+fd = fdesc nilfile 2
+for i ulong 3
+if ne dupfd fd int i 0 long i
+exit 125
+end
+end
+rc = execpure wdk 0 pn
+exit 126
+end
+ret wdwait pid
+end
+global lengths ulong 3
+fn compile prompt view uchar 4096 answer view uchar * checker view uchar 65536 to long
+fd = fdesc infile 577
+wdwrall fd prompt get lengths 0
+wdwrall fd answer len answer
+wdwrall fd lf 1
+wdwrall fd checker get lengths 2
+cc = fclose fd
+fi = fdesc infile 0
+fo = fdesc binary 577
+fe = fdesc nilfile 1
+wdkclr
+wdka 2
+rc = wdwait wdspawn fi fo fe
+ca = fclose fi
+cb = fclose fo
+cd = fclose fe
+if eq rc 127
+exit 73
+end
+ret rc
+end
+fn terminates a view uchar * i ulong to bool
+if lt i 2
+ret false
+end
+if gt i 2
+if ne get a sub i 3 10
+ret false
+end
+end
+if lt add i 1 len a
+if ne get a add i 1 10
+ret false
+end
+end
+if ne get a sub i 2 101
+ret false
+end
+if ne get a sub i 1 110
+ret false
+end
+ret eq get a i 100
+end
+fn testanswer p view uchar 4096 ans view uchar 8192 checker view uchar 65536 to ulong
+for i ulong get lengths 1
+if terminates part ans 0 get lengths 1 i
+rc = compile p part ans 0 add i 1 checker
+if eq rc 0
+r = strict
+if or eq r 125 eq r 126
+exit 70
+end
+if eq r 77
+ret 2
+end
+ret 1
+end
+end
+end
+ret 0
+end
+fn pathfor j ulong to void
+wdpclr
+wdpt outname
+wdpd j
+end
+fn readanswer j ulong ans edit uchar * to ulong
+pathfor j
+fi = wdopen 0 0
+n = read fi ans 0 len ans
+c2 = fclose fi
+if or lt n 0 eq n long len ans
+exit 72
+end
+ret ulong n
+end
+fn genrow src view uchar 262144 tape view uint 262144 obj ulong j ulong to void
+p = new uchar 4096 0
+ans = new uchar 8192 0
+pn = jsontext src tape obj 0 p
+pathfor j
+fd = wdopen 193 384
+if lt fd 0
+exit 70
+end
+if eq argcnt 3
+an = jsontext src tape obj 2 ans
+wdwrall fd ans an
+else
+sampleone part p 0 pn fd
+end
+cl = fclose fd
+end
+fn checkrow p view uchar 4096 ans view uchar 8192 ck view uchar 65536 to ulong
+ret testanswer p ans ck
+end
+fn testrow src view uchar 262144 tape view uint 262144 obj ulong j ulong to ulong
+p = new uchar 4096 0
+ck = new uchar 65536 0
+ans = new uchar 8192 0
+pn = jsontext src tape obj 0 p
+cn = jsontext src tape obj 1 ck
+n = readanswer j ans
+put lengths 0 pn
+put lengths 1 n
+put lengths 2 cn
+ret checkrow p ans ck
+end
+fn main to int
+if and ne argcnt 4 and ne argcnt 3 ne argcnt 6
+ret 2
+end
+if eq argcnt 4
+if not argis 3 cachedarg
+ret 2
+end
+end
+src = new uchar 262144 0
+tape = new uint 262144 0
+wdpclr
+wdpa 1
+fd = wdopen 0 0
+if lt fd 0
+ret 70
+end
+n = read fd src 0 len src
+if or lt n 1 eq n long len src
+ret 72
+end
+if lt js_init tape 262144 128 0
+ret 72
+end
+if lt js_parse src tape ulong n 0
+ret 72
+end
+if ne js_type tape 0 jsarr
+ret 72
+end
+obj = js_first tape 0
+j = ulong 0
+while ne obj jsnone bound 4294967295
+if ne argcnt 4
+genrow src tape obj j
+end
+res = testrow src tape obj j
+wdod j
+wdot sep
+wdod res
+wdot lf
+wdoflush 1
+if and eq argcnt 3 ne res 2
+ret 1
+end
+j = add j 1
+obj = js_enext tape obj
+end
+if eq j 0
+ret 72
+end
+ret 0
+end
diff --git a/train/omega-llm/tools/contrast/mean.om b/train/omega-llm/tools/contrast/mean.om
new file mode 100644
index 0000000000000000000000000000000000000000..760c9ae4da8bb9cf96f33281dbe1f61f23599e7d
--- /dev/null
+++ b/train/omega-llm/tools/contrast/mean.om
@@ -0,0 +1,85 @@
+note mean CONTROL TREATMENT NEW_OUTPUT. Link after the pinned native model source with main renamed.
+global meanheader uchar 112
+fn meaninputs to void
+ockload 1
+if ne get og 46 2
+exit 12
+end
+if ne oprd 1 0 0 112 112
+exit 10
+end
+for i ulong 112
+put meanheader i get opw i
+end
+ockload 2
+if ne get og 46 2
+exit 12
+end
+if ne oprd 2 0 0 112 112
+exit 10
+end
+for i ulong 112
+if ne get meanheader i get opw i
+exit 12
+end
+end
+end
+fn meanblock start ulong n ulong to void
+nb = mul n 8
+if ne oprd 1 add 120 mul start 8 0 nb nb
+exit 10
+end
+for k ulong n
+i = add start k
+left = bitcast f64 opw8 mul k 8
+right = owg i
+owp i mul add left right 0.5f64
+omvp add get og 11 i 0.0f64
+omvp add get og 12 i 0.0f64
+end
+end
+note Reserve a new file before writing. Publish its valid CK02 header only after the payload is complete.
+fn meansave to void
+pl = oargp 3
+fd = int fopen oarg 0 pl 193 384
+if lt fd 0
+exit 73
+end
+put ocfd 0 fd
+digest = ocbody 0 3 120
+ochead 3616473253210246223 0
+ocput8 104 get og 44
+ocput8 112 digest
+ocwput 0 120
+if ne fsync fd 0
+exit 70
+end
+if ne fclose fd 0
+exit 70
+end
+end
+fn main to int
+if ne oargc 4
+ret 2
+end
+pl = oargp 3
+fd = fopen oarg 0 pl 0 0
+if ge fd 0
+cl = fclose int fd
+ret 73
+end
+meaninputs
+p = get og 8
+i = ulong 0
+while lt i p bound 999999
+n = sub p i
+if gt n OCKC
+n = OCKC
+end
+meanblock i n
+i = add i n
+end
+put og 41 0
+meansave
+ret 0
+end
diff --git a/train/omega-llm/tools/contrast/mix.om b/train/omega-llm/tools/contrast/mix.om
new file mode 100644
index 0000000000000000000000000000000000000000..d35db2563231c75951f0e269a1ecc846aad4a1c2
--- /dev/null
+++ b/train/omega-llm/tools/contrast/mix.om
@@ -0,0 +1,101 @@
+om2
+note Mix the two NUL-separated source corpora. Each retained record is copied whole.
+text old "old.om"
+text newpath "contrast.om"
+text target "mixed.om"
+global starts ulong 16384
+global widths ulong 16384
+global origin ulong 16384
+global counts ulong 1
+fn loadfile path view uchar * buf edit uchar * to ulong
+fd = fopen path 0 len path 0 0
+if lt fd 0
+exit 70
+end
+n = ulong 0
+while lt n len buf bound 1048577
+r = read int fd buf n sub len buf n
+if lt r 0
+exit 70
+end
+if eq r 0
+break
+end
+n = add n ulong r
+end
+if eq n len buf
+exit 70
+end
+rc = fclose int fd
+ret n
+end
+fn scan buf view uchar * n ulong kind ulong to void
+if or eq n 0 ne get buf 0 0
+exit 72
+end
+for i ulong n
+if eq get buf i 0
+k = get counts 0
+if ge k len starts
+exit 72
+end
+put starts k i
+put origin k kind
+put widths k sub n i
+if gt i 0
+z = sub k 1
+put widths z sub i get starts z
+end
+put counts 0 add k 1
+end
+end
+end
+fn putrecord fd int buf view uchar * k ulong to void
+off = get starts k
+n = get widths k
+while gt n 0 bound 1048577
+r = write fd buf off n
+if le r 0
+exit 70
+end
+off = add off ulong r
+n = sub n ulong r
+end
+end
+fn main to int
+a = new uchar 1048576 0
+b = new uchar 1048576 0
+ids = new ulong 16384 0
+na = loadfile old a
+nb = loadfile newpath b
+scan a na 0
+for rep ulong 1
+scan b nb 1
+end
+n = get counts 0
+for i ulong n
+put ids i i
+end
+seed = ulong 123456789
+for i ulong sub n 1
+last = sub sub n i 1
+seed = add mul seed 6364136223846793005 1442695040888963407
+j = rem shr seed 16 add last 1
+tmp = get ids last
+put ids last get ids j
+put ids j tmp
+end
+fd = fopen target 0 len target 193 384
+if lt fd 0
+ret 70
+end
+for i ulong n
+k = get ids i
+if eq get origin k 0
+putrecord int fd a k
+else
+putrecord int fd b k
+end
+end
+ret int fclose int fd
+end
diff --git a/train/omega-llm/tools/contrast/read.om b/train/omega-llm/tools/contrast/read.om
new file mode 100644
index 0000000000000000000000000000000000000000..633e661675355ecdcc984dff8a78fc94f9ba9c82
--- /dev/null
+++ b/train/omega-llm/tools/contrast/read.om
@@ -0,0 +1,26 @@
+fn pickread fd int dest edit uchar * to ulong
+if lt fd 0
+exit 74
+end
+used = ulong 0
+while lt used len dest bound 8193
+n = read fd dest used sub len dest used
+if lt n 0
+exit 74
+end
+if eq n 0
+break
+end
+used = add used ulong n
+end
+cl = fclose fd
+if eq used len dest
+exit 74
+end
+ret used
+end
+fn pickload a ulong dest edit uchar * to ulong
+wdpclr
+wdpa a
+ret pickread wdopen 0 0 dest
+end
diff --git a/train/omega-llm/tools/contrast/replay.sh b/train/omega-llm/tools/contrast/replay.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2a2c6376ce45d20b9116b62190fac6a696ffeb03
--- /dev/null
+++ b/train/omega-llm/tools/contrast/replay.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+bin=$(realpath "$1")
+omc=$(realpath "$2")
+data=$(realpath run-01)
+work=$(mktemp -d)
+trap 'rm -rf "$work"' EXIT
+cd "$work"
+for panel in fresh example earlier; do
+  mkdir "gold-$panel"
+  (cd "gold-$panel" && "$bin/grade" "$data/$panel.json" "$omc" >grades)
+  test "$(wc -l <"gold-$panel/grades")" -eq "$(jq length "$data/$panel.json")"
+done
+for model in parent control treatment mean starting focused; do
+  for panel in $(jq -r --arg m "$model" '.[$m]|keys[]' "$data/generations.json"); do
+    dir="$model-$panel"
+    mkdir "$dir"
+    (cd "$dir"
+     jq -r --arg m "$model" --arg p "$panel" '.[$m][$p][] | .body | @base64' "$data/generations.json" |
+       { i=0; while IFS= read -r encoded; do printf %s "$encoded" | base64 -d >"answer-$i"; i=$((i+1)); done; }
+     "$bin/grade" "$data/$panel.json" "$omc" cached >grades
+     jq -r --arg m "$model" --arg p "$panel" '.[$m][$p] | to_entries[] | "\(.key) \(.value.grade)"' "$data/generations.json" | cmp - grades)
+  done
+done
+for mode in example compile; do
+  dir="selected-$mode"
+  mkdir "$dir"
+  args=()
+  if [[ $mode == compile ]]; then args+=(compile); fi
+  (cd "$dir"
+   "$bin/select" "$data/example.json" "$omc" ../parent-fresh ../control-fresh ../treatment-fresh "${args[@]}" >choices
+   "$bin/grade" "$data/fresh.json" "$omc" cached >grades
+   cmp grades "$data/$dir.grades" && cmp choices "$data/$dir.choices")
+done
+"$bin/contrast" > contrast.om
+sha256sum -c "$data/contrast.sha256"
+echo "All reference functions, archived generations and fresh chain selections reproduced."
diff --git a/train/omega-llm/tools/contrast/run-01/README.md b/train/omega-llm/tools/contrast/run-01/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..ce152820a6ca27e6ba11c1eda00ac26671f438a3
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/README.md
@@ -0,0 +1,18 @@
+# Spark GB10 contrast experiment
+
+The two training arms started from the same previously mixed checkpoint and ran 800 steps at a learning rate of 0.000350. The control reused the old corpus. The treatment shuffled the old corpus with 1,440 contrast records. The average gave the two sets of trained weights equal weight. The coefficient and test panels were fixed before inspection of the treatment scores.
+
+| Generator | Fresh functions correct | Earlier functions correct |
+|---|---:|---:|
+| Parent | 5/24 | 28/79 |
+| Control | 7/24 | 30/79 |
+| Treatment | 5/24 | 30/79 |
+| Average | 6/24 | 31/79 |
+| First compilable body from parent, control, treatment | 8/24 | 29/79 |
+| First body that passed one supplied example in the same order | 9/24 | Untested |
+
+The example-checked chain returned nine functions and abstained on 15. All nine passed their hidden inputs. Seven of the eight fresh composition prompts produced a compilable answer in the three-checkpoint chain. None passed the hidden tests. Single-checkpoint median warm latency on four fixed prompts with three measured repetitions was 166.8 ms for the parent, 163.1 ms for control, 147.9 ms for treatment and 150.6 ms for the average. Three live cold chain calls took 2.27 s for first-checkpoint acceptance, 6.70 s for third-checkpoint acceptance and 7.04 s for abstention.
+
+The archived panels and generations allow independent behavior replay without model weights. Each generation records a body and a grade of 0 for no compilable function, 1 for compiled but incorrect or 2 for correct on every hidden case. The fresh scalar checks cover eight pairs and the array checks cover twelve cases across two arrays. The distinct caller example is visible only to the selector. [Full scores](scores.tsv) include the earlier single-checkpoint and chain comparisons. Identifiers `starting` and `focused` refer to the two members of the previous compile fallback, and `parent` refers to the mixed checkpoint used to start this experiment.
+
+[Artifact digests](artifacts.sha256) identify the original experiment inputs, trained checkpoints and tokenizer held outside Git. The saved experiment directory is named `ollm-contrast-vR2SLMbY` and the parent directory for prerequisite artifacts is `ollm-native-coding-4esuIP3a`.
diff --git a/train/omega-llm/tools/contrast/run-01/artifacts.sha256 b/train/omega-llm/tools/contrast/run-01/artifacts.sha256
new file mode 100644
index 0000000000000000000000000000000000000000..80d6bf47bf3eea9396bf1b78712caf8793078151
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/artifacts.sha256
@@ -0,0 +1,8 @@
+090462538b3608ec6b4a6b4f2b072f12d810c0ad59866b0e4cdd551d88302fa4  control/candidate.ck
+a33a01c39d3f0de006bf57ad22da74e0caa360467fa31e5ca6cc42d0e1186eb9  treatment/candidate.ck
+98e5afe6c421499ab8294227fcf67729ca7f01a19d4a9f5494c2e9a6dcc535fc  mean/candidate.ck
+62df244e74d694698d8ed6b8da68fecf1355c123ba9d491d24c1133fe59bb600  inputs/mixed.om
+145975be6286cc5911a5ae968914d29615b929774f932558a76d780c1dafb098  inputs/old.om
+80b06e11429c546df52efa6fbd353eea13031b53b024ae82594212eae64d71bb  parent.ck
+73a29baf97619a746a21232c403bf08af71a76e48b3b2cde6d64dab766083882  merges4096.bin
+54d253a666ab6aa116b43df50b9031b6f17ca32996d5d29c51c96b1102fc055d  held.om
diff --git a/train/omega-llm/tools/contrast/run-01/contrast.sha256 b/train/omega-llm/tools/contrast/run-01/contrast.sha256
new file mode 100644
index 0000000000000000000000000000000000000000..e6335479e55d64babd461a42128125d501d54b3c
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/contrast.sha256
@@ -0,0 +1 @@
+b5102075b3f4c9e07c4eba7310da5684b4f080bdb274cc38a6684c04b80c3dfa  contrast.om
diff --git a/train/omega-llm/tools/contrast/run-01/earlier.json b/train/omega-llm/tools/contrast/run-01/earlier.json
new file mode 100644
index 0000000000000000000000000000000000000000..bf023466dd58de4061b8245892a686b9995dab1a
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/earlier.json
@@ -0,0 +1,1780 @@
+[
+  {
+    "prompt": "note return the sum of the inputs\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 14\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 8\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 13\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 266\nret 83\nend\nret 77\nend\n",
+    "reference": "ret add a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        14
+      ],
+      [
+        5,
+        3,
+        8
+      ],
+      [
+        2,
+        11,
+        13
+      ],
+      [
+        257,
+        9,
+        266
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the product of the inputs\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 49\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 15\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 22\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 2313\nret 83\nend\nret 77\nend\n",
+    "reference": "ret mul a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        49
+      ],
+      [
+        5,
+        3,
+        15
+      ],
+      [
+        2,
+        11,
+        22
+      ],
+      [
+        257,
+        9,
+        2313
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the smaller input\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 3\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 9\nret 83\nend\nret 77\nend\n",
+    "reference": "if lt a b\nret a\nend\nret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        3
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        9
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the larger input\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 257\nret 83\nend\nret 77\nend\n",
+    "reference": "if gt a b\nret a\nend\nret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        5
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        257
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the bitwise union\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 7\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 265\nret 83\nend\nret 77\nend\n",
+    "reference": "ret or a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        7
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        265
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the bitwise intersection\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 1\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 1\nret 83\nend\nret 77\nend\n",
+    "reference": "ret and a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        1
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        1
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the first input\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 257\nret 83\nend\nret 77\nend\n",
+    "reference": "ret a\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        5
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        257
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the second input\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 3\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 9\nret 83\nend\nret 77\nend\n",
+    "reference": "ret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        3
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        9
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note sum a and b together\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 14\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 8\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 13\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 266\nret 83\nend\nret 77\nend\n",
+    "reference": "ret add a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        14
+      ],
+      [
+        5,
+        3,
+        8
+      ],
+      [
+        2,
+        11,
+        13
+      ],
+      [
+        257,
+        9,
+        266
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note what is the result of adding the inputs\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 14\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 8\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 13\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 266\nret 83\nend\nret 77\nend\n",
+    "reference": "ret add a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        14
+      ],
+      [
+        5,
+        3,
+        8
+      ],
+      [
+        2,
+        11,
+        13
+      ],
+      [
+        257,
+        9,
+        266
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note multiply a by b\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 49\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 15\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 22\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 2313\nret 83\nend\nret 77\nend\n",
+    "reference": "ret mul a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        49
+      ],
+      [
+        5,
+        3,
+        15
+      ],
+      [
+        2,
+        11,
+        22
+      ],
+      [
+        257,
+        9,
+        2313
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the product of both arguments\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 49\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 15\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 22\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 2313\nret 83\nend\nret 77\nend\n",
+    "reference": "ret mul a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        49
+      ],
+      [
+        5,
+        3,
+        15
+      ],
+      [
+        2,
+        11,
+        22
+      ],
+      [
+        257,
+        9,
+        2313
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note take the lower of the values\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 3\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 9\nret 83\nend\nret 77\nend\n",
+    "reference": "if lt a b\nret a\nend\nret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        3
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        9
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note which input has the smaller value\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 3\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 9\nret 83\nend\nret 77\nend\n",
+    "reference": "if lt a b\nret a\nend\nret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        3
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        9
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note take the higher of the values\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 257\nret 83\nend\nret 77\nend\n",
+    "reference": "if gt a b\nret a\nend\nret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        5
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        257
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note which input has the larger value\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 257\nret 83\nend\nret 77\nend\n",
+    "reference": "if gt a b\nret a\nend\nret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        5
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        257
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note use OR on the two operands\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 7\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 265\nret 83\nend\nret 77\nend\n",
+    "reference": "ret or a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        7
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        265
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note include a bit when either value has it\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 7\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 265\nret 83\nend\nret 77\nend\n",
+    "reference": "ret or a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        7
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        265
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note use AND on the two operands\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 1\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 1\nret 83\nend\nret 77\nend\n",
+    "reference": "ret and a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        1
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        1
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note include a bit when both values have it\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 1\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 1\nret 83\nend\nret 77\nend\n",
+    "reference": "ret and a b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        1
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        1
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note choose argument a\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 257\nret 83\nend\nret 77\nend\n",
+    "reference": "ret a\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        5
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        257
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the value on the left\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 257\nret 83\nend\nret 77\nend\n",
+    "reference": "ret a\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        1,
+        0
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        5
+      ],
+      [
+        2,
+        11,
+        2
+      ],
+      [
+        257,
+        9,
+        257
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note choose argument b\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 3\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 9\nret 83\nend\nret 77\nend\n",
+    "reference": "ret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        3
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        9
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note return the value on the right\nfn calc a ulong b ulong to ulong\n",
+    "main": "fn main to int\nif ne calc ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc ulong 5 ulong 3 ulong 3\nret 83\nend\nif ne calc ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc ulong 257 ulong 9 ulong 9\nret 83\nend\nret 77\nend\n",
+    "reference": "ret b\nend\n",
+    "vectors": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        1,
+        1
+      ],
+      [
+        7,
+        7,
+        7
+      ],
+      [
+        5,
+        3,
+        3
+      ],
+      [
+        2,
+        11,
+        11
+      ],
+      [
+        257,
+        9,
+        9
+      ]
+    ],
+    "group": "retention"
+  },
+  {
+    "prompt": "note calculate the sum\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret add m n\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 14\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 8\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 13\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 266\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 767\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 49\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the sum then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret add add m n 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 10\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 10\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 23\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 17\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 22\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 275\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 776\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 58\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note calculate the product\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret mul m n\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 49\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 15\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 22\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 2313\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 130816\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 528\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the product then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret add mul m n 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 9\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 58\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 24\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 31\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 2322\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 130825\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 537\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note calculate the bitwise intersection\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret and m n\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 1\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 1\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 256\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 0\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the bitwise intersection then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret add and m n 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 9\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 16\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 10\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 10\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 265\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 9\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note calculate the bitwise union\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret or m n\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 7\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 265\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 511\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 49\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the bitwise union then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret add or m n 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 10\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 10\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 16\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 16\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 20\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 274\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 520\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 58\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note calculate the exclusive OR\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret xor m n\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 0\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 6\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 9\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 264\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 255\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 49\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the exclusive OR then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret add xor m n 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 10\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 10\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 9\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 15\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 18\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 273\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 264\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 58\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note calculate the minimum\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "v = n\nif lt m n\nv = m\nend\nret v\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 3\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 9\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 256\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 16\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the minimum then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "v = n\nif lt m n\nv = m\nend\nret add v 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 9\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 16\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 12\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 18\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 265\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 25\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note calculate the maximum\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "v = n\nif gt m n\nv = m\nend\nret v\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 257\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 511\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 33\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the maximum then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "v = n\nif gt m n\nv = m\nend\nret add v 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 10\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 10\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 16\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 14\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 20\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 266\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 520\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 42\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note calculate the first argument\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret m\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 0\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 2\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 257\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 511\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 16\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the first argument then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret add m 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 9\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 10\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 16\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 14\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 266\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 520\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 25\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note calculate the second argument\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret n\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 3\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 9\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 256\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 33\nret 83\nend\nret 77\nend\n",
+    "group": "new-signature"
+  },
+  {
+    "prompt": "note calculate the second argument then add 9\nfn calc_value m ulong n ulong to ulong\n",
+    "reference": "ret add n 9\nend\n",
+    "main": "fn main to int\nif ne calc_value ulong 0 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 0 ulong 1 ulong 10\nret 83\nend\nif ne calc_value ulong 1 ulong 0 ulong 9\nret 83\nend\nif ne calc_value ulong 7 ulong 7 ulong 16\nret 83\nend\nif ne calc_value ulong 5 ulong 3 ulong 12\nret 83\nend\nif ne calc_value ulong 2 ulong 11 ulong 20\nret 83\nend\nif ne calc_value ulong 257 ulong 9 ulong 18\nret 83\nend\nif ne calc_value ulong 511 ulong 256 ulong 265\nret 83\nend\nif ne calc_value ulong 16 ulong 33 ulong 42\nret 83\nend\nret 77\nend\n",
+    "group": "new-composition-prompts"
+  },
+  {
+    "prompt": "note return the maximum then mask with 3\nfn resolve_value m ulong n ulong to ulong\n",
+    "reference": "v = n\nif gt m n\nv = m\nend\nret and v 3\nend\n",
+    "main": "fn main to int\nif ne resolve_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne resolve_value ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne resolve_value ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne resolve_value ulong 7 ulong 7 ulong 3\nret 83\nend\nif ne resolve_value ulong 5 ulong 3 ulong 1\nret 83\nend\nif ne resolve_value ulong 2 ulong 11 ulong 3\nret 83\nend\nif ne resolve_value ulong 257 ulong 9 ulong 1\nret 83\nend\nif ne resolve_value ulong 511 ulong 256 ulong 3\nret 83\nend\nif ne resolve_value ulong 16 ulong 33 ulong 1\nret 83\nend\nret 77\nend\n",
+    "group": "untrained-combinations"
+  },
+  {
+    "prompt": "note return the maximum then mask with 15\nfn resolve_value m ulong n ulong to ulong\n",
+    "reference": "v = n\nif gt m n\nv = m\nend\nret and v 15\nend\n",
+    "main": "fn main to int\nif ne resolve_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne resolve_value ulong 0 ulong 1 ulong 1\nret 83\nend\nif ne resolve_value ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne resolve_value ulong 7 ulong 7 ulong 7\nret 83\nend\nif ne resolve_value ulong 5 ulong 3 ulong 5\nret 83\nend\nif ne resolve_value ulong 2 ulong 11 ulong 11\nret 83\nend\nif ne resolve_value ulong 257 ulong 9 ulong 1\nret 83\nend\nif ne resolve_value ulong 511 ulong 256 ulong 15\nret 83\nend\nif ne resolve_value ulong 16 ulong 33 ulong 1\nret 83\nend\nret 77\nend\n",
+    "group": "untrained-combinations"
+  },
+  {
+    "prompt": "note return the minimum then XOR with 3\nfn resolve_value m ulong n ulong to ulong\n",
+    "reference": "v = n\nif lt m n\nv = m\nend\nret xor v 3\nend\n",
+    "main": "fn main to int\nif ne resolve_value ulong 0 ulong 0 ulong 3\nret 83\nend\nif ne resolve_value ulong 0 ulong 1 ulong 3\nret 83\nend\nif ne resolve_value ulong 1 ulong 0 ulong 3\nret 83\nend\nif ne resolve_value ulong 7 ulong 7 ulong 4\nret 83\nend\nif ne resolve_value ulong 5 ulong 3 ulong 0\nret 83\nend\nif ne resolve_value ulong 2 ulong 11 ulong 1\nret 83\nend\nif ne resolve_value ulong 257 ulong 9 ulong 10\nret 83\nend\nif ne resolve_value ulong 511 ulong 256 ulong 259\nret 83\nend\nif ne resolve_value ulong 16 ulong 33 ulong 19\nret 83\nend\nret 77\nend\n",
+    "group": "untrained-combinations"
+  },
+  {
+    "prompt": "note return the minimum then XOR with 15\nfn resolve_value m ulong n ulong to ulong\n",
+    "reference": "v = n\nif lt m n\nv = m\nend\nret xor v 15\nend\n",
+    "main": "fn main to int\nif ne resolve_value ulong 0 ulong 0 ulong 15\nret 83\nend\nif ne resolve_value ulong 0 ulong 1 ulong 15\nret 83\nend\nif ne resolve_value ulong 1 ulong 0 ulong 15\nret 83\nend\nif ne resolve_value ulong 7 ulong 7 ulong 8\nret 83\nend\nif ne resolve_value ulong 5 ulong 3 ulong 12\nret 83\nend\nif ne resolve_value ulong 2 ulong 11 ulong 13\nret 83\nend\nif ne resolve_value ulong 257 ulong 9 ulong 6\nret 83\nend\nif ne resolve_value ulong 511 ulong 256 ulong 271\nret 83\nend\nif ne resolve_value ulong 16 ulong 33 ulong 31\nret 83\nend\nret 77\nend\n",
+    "group": "untrained-combinations"
+  },
+  {
+    "prompt": "note return the product then XOR with 3\nfn resolve_value m ulong n ulong to ulong\n",
+    "reference": "ret xor mul m n 3\nend\n",
+    "main": "fn main to int\nif ne resolve_value ulong 0 ulong 0 ulong 3\nret 83\nend\nif ne resolve_value ulong 0 ulong 1 ulong 3\nret 83\nend\nif ne resolve_value ulong 1 ulong 0 ulong 3\nret 83\nend\nif ne resolve_value ulong 7 ulong 7 ulong 50\nret 83\nend\nif ne resolve_value ulong 5 ulong 3 ulong 12\nret 83\nend\nif ne resolve_value ulong 2 ulong 11 ulong 21\nret 83\nend\nif ne resolve_value ulong 257 ulong 9 ulong 2314\nret 83\nend\nif ne resolve_value ulong 511 ulong 256 ulong 130819\nret 83\nend\nif ne resolve_value ulong 16 ulong 33 ulong 531\nret 83\nend\nret 77\nend\n",
+    "group": "untrained-combinations"
+  },
+  {
+    "prompt": "note return the product then XOR with 15\nfn resolve_value m ulong n ulong to ulong\n",
+    "reference": "ret xor mul m n 15\nend\n",
+    "main": "fn main to int\nif ne resolve_value ulong 0 ulong 0 ulong 15\nret 83\nend\nif ne resolve_value ulong 0 ulong 1 ulong 15\nret 83\nend\nif ne resolve_value ulong 1 ulong 0 ulong 15\nret 83\nend\nif ne resolve_value ulong 7 ulong 7 ulong 62\nret 83\nend\nif ne resolve_value ulong 5 ulong 3 ulong 0\nret 83\nend\nif ne resolve_value ulong 2 ulong 11 ulong 25\nret 83\nend\nif ne resolve_value ulong 257 ulong 9 ulong 2310\nret 83\nend\nif ne resolve_value ulong 511 ulong 256 ulong 130831\nret 83\nend\nif ne resolve_value ulong 16 ulong 33 ulong 543\nret 83\nend\nret 77\nend\n",
+    "group": "untrained-combinations"
+  },
+  {
+    "prompt": "note return the exclusive OR then multiply by 3\nfn resolve_value m ulong n ulong to ulong\n",
+    "reference": "ret mul xor m n 3\nend\n",
+    "main": "fn main to int\nif ne resolve_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne resolve_value ulong 0 ulong 1 ulong 3\nret 83\nend\nif ne resolve_value ulong 1 ulong 0 ulong 3\nret 83\nend\nif ne resolve_value ulong 7 ulong 7 ulong 0\nret 83\nend\nif ne resolve_value ulong 5 ulong 3 ulong 18\nret 83\nend\nif ne resolve_value ulong 2 ulong 11 ulong 27\nret 83\nend\nif ne resolve_value ulong 257 ulong 9 ulong 792\nret 83\nend\nif ne resolve_value ulong 511 ulong 256 ulong 765\nret 83\nend\nif ne resolve_value ulong 16 ulong 33 ulong 147\nret 83\nend\nret 77\nend\n",
+    "group": "untrained-combinations"
+  },
+  {
+    "prompt": "note return the exclusive OR then multiply by 15\nfn resolve_value m ulong n ulong to ulong\n",
+    "reference": "ret mul xor m n 15\nend\n",
+    "main": "fn main to int\nif ne resolve_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne resolve_value ulong 0 ulong 1 ulong 15\nret 83\nend\nif ne resolve_value ulong 1 ulong 0 ulong 15\nret 83\nend\nif ne resolve_value ulong 7 ulong 7 ulong 0\nret 83\nend\nif ne resolve_value ulong 5 ulong 3 ulong 90\nret 83\nend\nif ne resolve_value ulong 2 ulong 11 ulong 135\nret 83\nend\nif ne resolve_value ulong 257 ulong 9 ulong 3960\nret 83\nend\nif ne resolve_value ulong 511 ulong 256 ulong 3825\nret 83\nend\nif ne resolve_value ulong 16 ulong 33 ulong 735\nret 83\nend\nret 77\nend\n",
+    "group": "untrained-combinations"
+  },
+  {
+    "prompt": "note return twice a plus b\nfn fresh_twice_plus a ulong b ulong to ulong\n",
+    "reference": "ret add add a a b\nend\n",
+    "tests": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        2
+      ],
+      [
+        0,
+        9,
+        9
+      ],
+      [
+        7,
+        7,
+        21
+      ],
+      [
+        8,
+        3,
+        19
+      ],
+      [
+        15,
+        17,
+        47
+      ],
+      [
+        256,
+        511,
+        1023
+      ],
+      [
+        257,
+        2,
+        516
+      ]
+    ],
+    "main": "fn main to int\nif ne fresh_twice_plus ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fresh_twice_plus ulong 1 ulong 0 ulong 2\nret 83\nend\nif ne fresh_twice_plus ulong 0 ulong 9 ulong 9\nret 83\nend\nif ne fresh_twice_plus ulong 7 ulong 7 ulong 21\nret 83\nend\nif ne fresh_twice_plus ulong 8 ulong 3 ulong 19\nret 83\nend\nif ne fresh_twice_plus ulong 15 ulong 17 ulong 47\nret 83\nend\nif ne fresh_twice_plus ulong 256 ulong 511 ulong 1023\nret 83\nend\nif ne fresh_twice_plus ulong 257 ulong 2 ulong 516\nret 83\nend\nret 77\nend\n",
+    "controls": [
+      {
+        "exit": 77,
+        "stderr": ""
+      },
+      {
+        "exit": 83,
+        "stderr": ""
+      }
+    ],
+    "group": "earlier-composite-functions"
+  },
+  {
+    "prompt": "note return the common set bits of a and b plus one\nfn fresh_shared_plus a ulong b ulong to ulong\n",
+    "reference": "ret add and a b 1\nend\n",
+    "tests": [
+      [
+        0,
+        0,
+        1
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        9,
+        1
+      ],
+      [
+        7,
+        7,
+        8
+      ],
+      [
+        8,
+        3,
+        1
+      ],
+      [
+        15,
+        17,
+        2
+      ],
+      [
+        256,
+        511,
+        257
+      ],
+      [
+        257,
+        2,
+        1
+      ]
+    ],
+    "main": "fn main to int\nif ne fresh_shared_plus ulong 0 ulong 0 ulong 1\nret 83\nend\nif ne fresh_shared_plus ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne fresh_shared_plus ulong 0 ulong 9 ulong 1\nret 83\nend\nif ne fresh_shared_plus ulong 7 ulong 7 ulong 8\nret 83\nend\nif ne fresh_shared_plus ulong 8 ulong 3 ulong 1\nret 83\nend\nif ne fresh_shared_plus ulong 15 ulong 17 ulong 2\nret 83\nend\nif ne fresh_shared_plus ulong 256 ulong 511 ulong 257\nret 83\nend\nif ne fresh_shared_plus ulong 257 ulong 2 ulong 1\nret 83\nend\nret 77\nend\n",
+    "controls": [
+      {
+        "exit": 77,
+        "stderr": ""
+      },
+      {
+        "exit": 83,
+        "stderr": ""
+      }
+    ],
+    "group": "earlier-composite-functions"
+  },
+  {
+    "prompt": "note return the low four bits of the sum\nfn fresh_low_sum a ulong b ulong to ulong\n",
+    "reference": "ret and add a b 15\nend\n",
+    "tests": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        9,
+        9
+      ],
+      [
+        7,
+        7,
+        14
+      ],
+      [
+        8,
+        3,
+        11
+      ],
+      [
+        15,
+        17,
+        0
+      ],
+      [
+        256,
+        511,
+        15
+      ],
+      [
+        257,
+        2,
+        3
+      ]
+    ],
+    "main": "fn main to int\nif ne fresh_low_sum ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fresh_low_sum ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne fresh_low_sum ulong 0 ulong 9 ulong 9\nret 83\nend\nif ne fresh_low_sum ulong 7 ulong 7 ulong 14\nret 83\nend\nif ne fresh_low_sum ulong 8 ulong 3 ulong 11\nret 83\nend\nif ne fresh_low_sum ulong 15 ulong 17 ulong 0\nret 83\nend\nif ne fresh_low_sum ulong 256 ulong 511 ulong 15\nret 83\nend\nif ne fresh_low_sum ulong 257 ulong 2 ulong 3\nret 83\nend\nret 77\nend\n",
+    "controls": [
+      {
+        "exit": 77,
+        "stderr": ""
+      },
+      {
+        "exit": 83,
+        "stderr": ""
+      }
+    ],
+    "group": "earlier-composite-functions"
+  },
+  {
+    "prompt": "note return one plus the unsigned distance between a and b\nfn fresh_distance_plus a ulong b ulong to ulong\n",
+    "reference": "if lt a b\nret add sub b a 1\nend\nret add sub a b 1\nend\n",
+    "tests": [
+      [
+        0,
+        0,
+        1
+      ],
+      [
+        1,
+        0,
+        2
+      ],
+      [
+        0,
+        9,
+        10
+      ],
+      [
+        7,
+        7,
+        1
+      ],
+      [
+        8,
+        3,
+        6
+      ],
+      [
+        15,
+        17,
+        3
+      ],
+      [
+        256,
+        511,
+        256
+      ],
+      [
+        257,
+        2,
+        256
+      ]
+    ],
+    "main": "fn main to int\nif ne fresh_distance_plus ulong 0 ulong 0 ulong 1\nret 83\nend\nif ne fresh_distance_plus ulong 1 ulong 0 ulong 2\nret 83\nend\nif ne fresh_distance_plus ulong 0 ulong 9 ulong 10\nret 83\nend\nif ne fresh_distance_plus ulong 7 ulong 7 ulong 1\nret 83\nend\nif ne fresh_distance_plus ulong 8 ulong 3 ulong 6\nret 83\nend\nif ne fresh_distance_plus ulong 15 ulong 17 ulong 3\nret 83\nend\nif ne fresh_distance_plus ulong 256 ulong 511 ulong 256\nret 83\nend\nif ne fresh_distance_plus ulong 257 ulong 2 ulong 256\nret 83\nend\nret 77\nend\n",
+    "controls": [
+      {
+        "exit": 77,
+        "stderr": ""
+      },
+      {
+        "exit": 83,
+        "stderr": ""
+      }
+    ],
+    "group": "earlier-composite-functions"
+  },
+  {
+    "prompt": "note return three times the sum of the inputs\nfn fresh_scale_sum a ulong b ulong to ulong\n",
+    "reference": "ret mul add a b 3\nend\n",
+    "tests": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        3
+      ],
+      [
+        0,
+        9,
+        27
+      ],
+      [
+        7,
+        7,
+        42
+      ],
+      [
+        8,
+        3,
+        33
+      ],
+      [
+        15,
+        17,
+        96
+      ],
+      [
+        256,
+        511,
+        2301
+      ],
+      [
+        257,
+        2,
+        777
+      ]
+    ],
+    "main": "fn main to int\nif ne fresh_scale_sum ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fresh_scale_sum ulong 1 ulong 0 ulong 3\nret 83\nend\nif ne fresh_scale_sum ulong 0 ulong 9 ulong 27\nret 83\nend\nif ne fresh_scale_sum ulong 7 ulong 7 ulong 42\nret 83\nend\nif ne fresh_scale_sum ulong 8 ulong 3 ulong 33\nret 83\nend\nif ne fresh_scale_sum ulong 15 ulong 17 ulong 96\nret 83\nend\nif ne fresh_scale_sum ulong 256 ulong 511 ulong 2301\nret 83\nend\nif ne fresh_scale_sum ulong 257 ulong 2 ulong 777\nret 83\nend\nret 77\nend\n",
+    "controls": [
+      {
+        "exit": 77,
+        "stderr": ""
+      },
+      {
+        "exit": 83,
+        "stderr": ""
+      }
+    ],
+    "group": "earlier-composite-functions"
+  },
+  {
+    "prompt": "note return twice the larger input\nfn fresh_greater_dbl a ulong b ulong to ulong\n",
+    "reference": "if lt a b\nret add b b\nend\nret add a a\nend\n",
+    "tests": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        2
+      ],
+      [
+        0,
+        9,
+        18
+      ],
+      [
+        7,
+        7,
+        14
+      ],
+      [
+        8,
+        3,
+        16
+      ],
+      [
+        15,
+        17,
+        34
+      ],
+      [
+        256,
+        511,
+        1022
+      ],
+      [
+        257,
+        2,
+        514
+      ]
+    ],
+    "main": "fn main to int\nif ne fresh_greater_dbl ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fresh_greater_dbl ulong 1 ulong 0 ulong 2\nret 83\nend\nif ne fresh_greater_dbl ulong 0 ulong 9 ulong 18\nret 83\nend\nif ne fresh_greater_dbl ulong 7 ulong 7 ulong 14\nret 83\nend\nif ne fresh_greater_dbl ulong 8 ulong 3 ulong 16\nret 83\nend\nif ne fresh_greater_dbl ulong 15 ulong 17 ulong 34\nret 83\nend\nif ne fresh_greater_dbl ulong 256 ulong 511 ulong 1022\nret 83\nend\nif ne fresh_greater_dbl ulong 257 ulong 2 ulong 514\nret 83\nend\nret 77\nend\n",
+    "controls": [
+      {
+        "exit": 77,
+        "stderr": ""
+      },
+      {
+        "exit": 83,
+        "stderr": ""
+      }
+    ],
+    "group": "earlier-composite-functions"
+  },
+  {
+    "prompt": "note return a xor the low byte of b\nfn fresh_mix_low a ulong b ulong to ulong\n",
+    "reference": "ret xor a and b 255\nend\n",
+    "tests": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        1
+      ],
+      [
+        0,
+        9,
+        9
+      ],
+      [
+        7,
+        7,
+        0
+      ],
+      [
+        8,
+        3,
+        11
+      ],
+      [
+        15,
+        17,
+        30
+      ],
+      [
+        256,
+        511,
+        511
+      ],
+      [
+        257,
+        2,
+        259
+      ]
+    ],
+    "main": "fn main to int\nif ne fresh_mix_low ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fresh_mix_low ulong 1 ulong 0 ulong 1\nret 83\nend\nif ne fresh_mix_low ulong 0 ulong 9 ulong 9\nret 83\nend\nif ne fresh_mix_low ulong 7 ulong 7 ulong 0\nret 83\nend\nif ne fresh_mix_low ulong 8 ulong 3 ulong 11\nret 83\nend\nif ne fresh_mix_low ulong 15 ulong 17 ulong 30\nret 83\nend\nif ne fresh_mix_low ulong 256 ulong 511 ulong 511\nret 83\nend\nif ne fresh_mix_low ulong 257 ulong 2 ulong 259\nret 83\nend\nret 77\nend\n",
+    "controls": [
+      {
+        "exit": 77,
+        "stderr": ""
+      },
+      {
+        "exit": 83,
+        "stderr": ""
+      }
+    ],
+    "group": "earlier-composite-functions"
+  },
+  {
+    "prompt": "note return the low byte of the product\nfn fresh_low_product a ulong b ulong to ulong\n",
+    "reference": "ret and mul a b 255\nend\n",
+    "tests": [
+      [
+        0,
+        0,
+        0
+      ],
+      [
+        1,
+        0,
+        0
+      ],
+      [
+        0,
+        9,
+        0
+      ],
+      [
+        7,
+        7,
+        49
+      ],
+      [
+        8,
+        3,
+        24
+      ],
+      [
+        15,
+        17,
+        255
+      ],
+      [
+        256,
+        511,
+        0
+      ],
+      [
+        257,
+        2,
+        2
+      ]
+    ],
+    "main": "fn main to int\nif ne fresh_low_product ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fresh_low_product ulong 1 ulong 0 ulong 0\nret 83\nend\nif ne fresh_low_product ulong 0 ulong 9 ulong 0\nret 83\nend\nif ne fresh_low_product ulong 7 ulong 7 ulong 49\nret 83\nend\nif ne fresh_low_product ulong 8 ulong 3 ulong 24\nret 83\nend\nif ne fresh_low_product ulong 15 ulong 17 ulong 255\nret 83\nend\nif ne fresh_low_product ulong 256 ulong 511 ulong 0\nret 83\nend\nif ne fresh_low_product ulong 257 ulong 2 ulong 2\nret 83\nend\nret 77\nend\n",
+    "controls": [
+      {
+        "exit": 77,
+        "stderr": ""
+      },
+      {
+        "exit": 83,
+        "stderr": ""
+      }
+    ],
+    "group": "earlier-composite-functions"
+  },
+  {
+    "prompt": "note return the sum of the first n items\nfn process_items a view ulong 8 n ulong to ulong\n",
+    "reference": "total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 8 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 4 8\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 8 28\nret 83\nend\nret 77\nend\n",
+    "group": "array-sum"
+  },
+  {
+    "prompt": "note return the sum of the first n items\nfn process_items data view ulong 12 n ulong to ulong\n",
+    "reference": "total = ulong 0\nfor i ulong n\ntotal = add total get data i\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 12 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 6 27\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 12 48\nret 83\nend\nret 77\nend\n",
+    "group": "array-sum"
+  },
+  {
+    "prompt": "note return the sum of the first n items\nfn process_items buf view ulong 24 count ulong to ulong\n",
+    "reference": "total = ulong 0\nfor j ulong count\ntotal = add total get buf j\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 24 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 12 48\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 24 92\nret 83\nend\nret 77\nend\n",
+    "group": "array-sum"
+  },
+  {
+    "prompt": "note return the bitwise XOR over the first n items\nfn process_items a view ulong 8 n ulong to ulong\n",
+    "reference": "total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 8 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 4 6\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 8 12\nret 83\nend\nret 77\nend\n",
+    "group": "array-xor"
+  },
+  {
+    "prompt": "note return the bitwise XOR over the first n items\nfn process_items data view ulong 12 n ulong to ulong\n",
+    "reference": "total = ulong 0\nfor i ulong n\ntotal = xor total get data i\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 12 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 6 13\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 12 6\nret 83\nend\nret 77\nend\n",
+    "group": "array-xor"
+  },
+  {
+    "prompt": "note return the bitwise XOR over the first n items\nfn process_items buf view ulong 24 count ulong to ulong\n",
+    "reference": "total = ulong 0\nfor j ulong count\ntotal = xor total get buf j\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 24 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 12 6\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 24 10\nret 83\nend\nret 77\nend\n",
+    "group": "array-xor"
+  },
+  {
+    "prompt": "note return the union of bits in the first n items\nfn process_items a view ulong 8 n ulong to ulong\n",
+    "reference": "total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 8 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 4 7\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 8 15\nret 83\nend\nret 77\nend\n",
+    "group": "array-or"
+  },
+  {
+    "prompt": "note return the union of bits in the first n items\nfn process_items data view ulong 12 n ulong to ulong\n",
+    "reference": "total = ulong 0\nfor i ulong n\ntotal = or total get data i\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 12 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 6 15\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 12 15\nret 83\nend\nret 77\nend\n",
+    "group": "array-or"
+  },
+  {
+    "prompt": "note return the union of bits in the first n items\nfn process_items buf view ulong 24 count ulong to ulong\n",
+    "reference": "total = ulong 0\nfor j ulong count\ntotal = or total get buf j\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 24 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 1 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 12 15\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 24 15\nret 83\nend\nret 77\nend\n",
+    "group": "array-or"
+  },
+  {
+    "prompt": "note how many of the first n items are zero\nfn process_items a view ulong 8 n ulong to ulong\n",
+    "reference": "total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 8 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 1 1\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 4 2\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nif ne process_items arr ulong 8 3\nret 83\nend\nret 77\nend\n",
+    "group": "array-zero"
+  },
+  {
+    "prompt": "note how many of the first n items are zero\nfn process_items data view ulong 12 n ulong to ulong\n",
+    "reference": "total = ulong 0\nfor i ulong n\nif eq get data i 0\ntotal = add total 1\nend\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 12 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 1 1\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 6 2\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nif ne process_items arr ulong 12 4\nret 83\nend\nret 77\nend\n",
+    "group": "array-zero"
+  },
+  {
+    "prompt": "note how many of the first n items are zero\nfn process_items buf view ulong 24 count ulong to ulong\n",
+    "reference": "total = ulong 0\nfor j ulong count\nif eq get buf j 0\ntotal = add total 1\nend\nend\nret total\nend\n",
+    "main": "fn main to int\narr = new ulong 24 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 0 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 1 1\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 12 4\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nif ne process_items arr ulong 24 7\nret 83\nend\nret 77\nend\n",
+    "group": "array-zero"
+  },
+  {
+    "prompt": "note add one in place to the first n items\nfn process_items a edit ulong 8 n ulong to void\n",
+    "reference": "for i ulong n\nput a i add get a i 1\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 8 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 1\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 4\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 4\nret 83\nend\nif ne get arr 2 6\nret 83\nend\nif ne get arr 3 1\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 8\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 4\nret 83\nend\nif ne get arr 2 6\nret 83\nend\nif ne get arr 3 1\nret 83\nend\nif ne get arr 4 13\nret 83\nend\nif ne get arr 5 8\nret 83\nend\nif ne get arr 6 2\nret 83\nend\nif ne get arr 7 1\nret 83\nend\nret 77\nend\n",
+    "group": "array-increment"
+  },
+  {
+    "prompt": "note add one in place to the first n items\nfn process_items data edit ulong 12 n ulong to void\n",
+    "reference": "for i ulong n\nput data i add get data i 1\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 12 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 1\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 6\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 4\nret 83\nend\nif ne get arr 2 6\nret 83\nend\nif ne get arr 3 1\nret 83\nend\nif ne get arr 4 13\nret 83\nend\nif ne get arr 5 8\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 12\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 4\nret 83\nend\nif ne get arr 2 6\nret 83\nend\nif ne get arr 3 1\nret 83\nend\nif ne get arr 4 13\nret 83\nend\nif ne get arr 5 8\nret 83\nend\nif ne get arr 6 2\nret 83\nend\nif ne get arr 7 1\nret 83\nend\nif ne get arr 8 4\nret 83\nend\nif ne get arr 9 6\nret 83\nend\nif ne get arr 10 1\nret 83\nend\nif ne get arr 11 13\nret 83\nend\nret 77\nend\n",
+    "group": "array-increment"
+  },
+  {
+    "prompt": "note add one in place to the first n items\nfn process_items buf edit ulong 24 count ulong to void\n",
+    "reference": "for j ulong count\nput buf j add get buf j 1\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 24 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 1\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 12\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 4\nret 83\nend\nif ne get arr 2 6\nret 83\nend\nif ne get arr 3 1\nret 83\nend\nif ne get arr 4 13\nret 83\nend\nif ne get arr 5 8\nret 83\nend\nif ne get arr 6 2\nret 83\nend\nif ne get arr 7 1\nret 83\nend\nif ne get arr 8 4\nret 83\nend\nif ne get arr 9 6\nret 83\nend\nif ne get arr 10 1\nret 83\nend\nif ne get arr 11 13\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 24\nif ne get arr 0 1\nret 83\nend\nif ne get arr 1 4\nret 83\nend\nif ne get arr 2 6\nret 83\nend\nif ne get arr 3 1\nret 83\nend\nif ne get arr 4 13\nret 83\nend\nif ne get arr 5 8\nret 83\nend\nif ne get arr 6 2\nret 83\nend\nif ne get arr 7 1\nret 83\nend\nif ne get arr 8 4\nret 83\nend\nif ne get arr 9 6\nret 83\nend\nif ne get arr 10 1\nret 83\nend\nif ne get arr 11 13\nret 83\nend\nif ne get arr 12 8\nret 83\nend\nif ne get arr 13 2\nret 83\nend\nif ne get arr 14 1\nret 83\nend\nif ne get arr 15 4\nret 83\nend\nif ne get arr 16 6\nret 83\nend\nif ne get arr 17 1\nret 83\nend\nif ne get arr 18 13\nret 83\nend\nif ne get arr 19 8\nret 83\nend\nif ne get arr 20 2\nret 83\nend\nif ne get arr 21 1\nret 83\nend\nif ne get arr 22 4\nret 83\nend\nif ne get arr 23 6\nret 83\nend\nret 77\nend\n",
+    "group": "array-increment"
+  },
+  {
+    "prompt": "note replace each of the first n items with twice its value\nfn process_items a edit ulong 8 n ulong to void\n",
+    "reference": "for i ulong n\nput a i mul get a i 2\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 8 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 1\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 4\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 6\nret 83\nend\nif ne get arr 2 10\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 8\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 6\nret 83\nend\nif ne get arr 2 10\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 24\nret 83\nend\nif ne get arr 5 14\nret 83\nend\nif ne get arr 6 2\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nret 77\nend\n",
+    "group": "array-double"
+  },
+  {
+    "prompt": "note replace each of the first n items with twice its value\nfn process_items data edit ulong 12 n ulong to void\n",
+    "reference": "for i ulong n\nput data i mul get data i 2\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 12 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 1\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 6\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 6\nret 83\nend\nif ne get arr 2 10\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 24\nret 83\nend\nif ne get arr 5 14\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 12\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 6\nret 83\nend\nif ne get arr 2 10\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 24\nret 83\nend\nif ne get arr 5 14\nret 83\nend\nif ne get arr 6 2\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 6\nret 83\nend\nif ne get arr 9 10\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 24\nret 83\nend\nret 77\nend\n",
+    "group": "array-double"
+  },
+  {
+    "prompt": "note replace each of the first n items with twice its value\nfn process_items buf edit ulong 24 count ulong to void\n",
+    "reference": "for j ulong count\nput buf j mul get buf j 2\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 24 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 1\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 12\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 6\nret 83\nend\nif ne get arr 2 10\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 24\nret 83\nend\nif ne get arr 5 14\nret 83\nend\nif ne get arr 6 2\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 6\nret 83\nend\nif ne get arr 9 10\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 24\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 24\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 6\nret 83\nend\nif ne get arr 2 10\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 24\nret 83\nend\nif ne get arr 5 14\nret 83\nend\nif ne get arr 6 2\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 6\nret 83\nend\nif ne get arr 9 10\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 24\nret 83\nend\nif ne get arr 12 14\nret 83\nend\nif ne get arr 13 2\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 6\nret 83\nend\nif ne get arr 16 10\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 24\nret 83\nend\nif ne get arr 19 14\nret 83\nend\nif ne get arr 20 2\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 6\nret 83\nend\nif ne get arr 23 10\nret 83\nend\nret 77\nend\n",
+    "group": "array-double"
+  },
+  {
+    "prompt": "note overwrite the first n items with zeros\nfn process_items a edit ulong 8 n ulong to void\n",
+    "reference": "for i ulong n\nput a i 0\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 8 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 1\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 4\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 0\nret 83\nend\nif ne get arr 2 0\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nprocess_items arr ulong 8\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 0\nret 83\nend\nif ne get arr 2 0\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 0\nret 83\nend\nif ne get arr 5 0\nret 83\nend\nif ne get arr 6 0\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nret 77\nend\n",
+    "group": "array-clear"
+  },
+  {
+    "prompt": "note overwrite the first n items with zeros\nfn process_items data edit ulong 12 n ulong to void\n",
+    "reference": "for i ulong n\nput data i 0\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 12 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 1\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 6\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 0\nret 83\nend\nif ne get arr 2 0\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 0\nret 83\nend\nif ne get arr 5 0\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nprocess_items arr ulong 12\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 0\nret 83\nend\nif ne get arr 2 0\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 0\nret 83\nend\nif ne get arr 5 0\nret 83\nend\nif ne get arr 6 0\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 0\nret 83\nend\nif ne get arr 9 0\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 0\nret 83\nend\nret 77\nend\n",
+    "group": "array-clear"
+  },
+  {
+    "prompt": "note overwrite the first n items with zeros\nfn process_items buf edit ulong 24 count ulong to void\n",
+    "reference": "for j ulong count\nput buf j 0\nend\nend\n",
+    "main": "fn main to int\narr = new ulong 24 0\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 0\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 1\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 3\nret 83\nend\nif ne get arr 2 5\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 12\nret 83\nend\nif ne get arr 5 7\nret 83\nend\nif ne get arr 6 1\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 3\nret 83\nend\nif ne get arr 9 5\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 12\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 12\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 0\nret 83\nend\nif ne get arr 2 0\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 0\nret 83\nend\nif ne get arr 5 0\nret 83\nend\nif ne get arr 6 0\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 0\nret 83\nend\nif ne get arr 9 0\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 0\nret 83\nend\nif ne get arr 12 7\nret 83\nend\nif ne get arr 13 1\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 3\nret 83\nend\nif ne get arr 16 5\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 12\nret 83\nend\nif ne get arr 19 7\nret 83\nend\nif ne get arr 20 1\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 3\nret 83\nend\nif ne get arr 23 5\nret 83\nend\nput arr 0 0\nput arr 1 3\nput arr 2 5\nput arr 3 0\nput arr 4 12\nput arr 5 7\nput arr 6 1\nput arr 7 0\nput arr 8 3\nput arr 9 5\nput arr 10 0\nput arr 11 12\nput arr 12 7\nput arr 13 1\nput arr 14 0\nput arr 15 3\nput arr 16 5\nput arr 17 0\nput arr 18 12\nput arr 19 7\nput arr 20 1\nput arr 21 0\nput arr 22 3\nput arr 23 5\nprocess_items arr ulong 24\nif ne get arr 0 0\nret 83\nend\nif ne get arr 1 0\nret 83\nend\nif ne get arr 2 0\nret 83\nend\nif ne get arr 3 0\nret 83\nend\nif ne get arr 4 0\nret 83\nend\nif ne get arr 5 0\nret 83\nend\nif ne get arr 6 0\nret 83\nend\nif ne get arr 7 0\nret 83\nend\nif ne get arr 8 0\nret 83\nend\nif ne get arr 9 0\nret 83\nend\nif ne get arr 10 0\nret 83\nend\nif ne get arr 11 0\nret 83\nend\nif ne get arr 12 0\nret 83\nend\nif ne get arr 13 0\nret 83\nend\nif ne get arr 14 0\nret 83\nend\nif ne get arr 15 0\nret 83\nend\nif ne get arr 16 0\nret 83\nend\nif ne get arr 17 0\nret 83\nend\nif ne get arr 18 0\nret 83\nend\nif ne get arr 19 0\nret 83\nend\nif ne get arr 20 0\nret 83\nend\nif ne get arr 21 0\nret 83\nend\nif ne get arr 22 0\nret 83\nend\nif ne get arr 23 0\nret 83\nend\nret 77\nend\n",
+    "group": "array-clear"
+  }
+]
\ No newline at end of file
diff --git a/train/omega-llm/tools/contrast/run-01/example.json b/train/omega-llm/tools/contrast/run-01/example.json
new file mode 100644
index 0000000000000000000000000000000000000000..4d00d597a78d8754887bccb79a82991425900419
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/example.json
@@ -0,0 +1,170 @@
+[
+ {
+  "group": "familiar",
+  "operation": 0,
+  "prompt": "note return the difference between the larger and smaller arguments\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if lt x y\nret sub y x\nend\nret sub x y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 5\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 0,
+  "prompt": "note compute the unsigned distance separating these inputs\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if lt left right\nret sub right left\nend\nret sub left right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 5\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 1,
+  "prompt": "note add the pair and return their total\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "ret add x y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 19\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 1,
+  "prompt": "note return the two arguments added together\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "ret add left right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 19\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 2,
+  "prompt": "note select the lower of the arguments\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if lt x y\nret x\nend\nret y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 7\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 2,
+  "prompt": "note return whichever input is smaller\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if lt left right\nret left\nend\nret right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 7\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 3,
+  "prompt": "note select the higher of the arguments\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if gt x y\nret x\nend\nret y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 12\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 3,
+  "prompt": "note return whichever input is larger\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if gt left right\nret left\nend\nret right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 12\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 4,
+  "prompt": "note combine the requested prefix using bitwise XOR\nfn fold_value 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 3\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 4,
+  "prompt": "note return the cumulative exclusive OR through the given count\nfn evaluate_pair 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 3\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 5,
+  "prompt": "note add up the entries before the given bound\nfn fold_value 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",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 13\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 5,
+  "prompt": "note return the running total through the requested count\nfn evaluate_pair 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",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 13\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 6,
+  "prompt": "note return the highest entry in the given prefix, or zero if empty\nfn fold_value 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 5\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 6,
+  "prompt": "note report the largest value before the bound, defaulting to zero\nfn evaluate_pair 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 5\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 7,
+  "prompt": "note count zero-valued entries before the limit\nfn fold_value 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 1\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 7,
+  "prompt": "note return how many entries equal zero in the requested prefix\nfn evaluate_pair 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 1\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 8,
+  "prompt": "note return three plus the absolute distance between the inputs\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if lt x y\nret add 3 sub y x\nend\nret add 3 sub x y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 8\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 8,
+  "prompt": "note compute the unsigned gap and add three\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if lt left right\nret add 3 sub right left\nend\nret add 3 sub left right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 8\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 9,
+  "prompt": "note return twice the smaller argument\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if lt x y\nret mul 2 x\nend\nret mul 2 y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 14\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 9,
+  "prompt": "note find the lower of the inputs and double it\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if lt left right\nret mul 2 left\nend\nret mul 2 right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 14\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 10,
+  "prompt": "note sum the requested prefix and add three\nfn fold_value 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 add s 3\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 16\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 10,
+  "prompt": "note return three more than the total before the bound\nfn evaluate_pair 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 add s 3\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 16\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 11,
+  "prompt": "note double the number of zeros in the requested prefix\nfn fold_value 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 mul s 2\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 2\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 11,
+  "prompt": "note return twice the count of zero values before the bound\nfn evaluate_pair 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 mul s 2\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 2\nret 83\nend\nret 77\nend\n"
+ }
+]
diff --git a/train/omega-llm/tools/contrast/run-01/fresh.json b/train/omega-llm/tools/contrast/run-01/fresh.json
new file mode 100644
index 0000000000000000000000000000000000000000..aa205422bc75e87244b9c050bc54b272e5919e3c
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/fresh.json
@@ -0,0 +1,170 @@
+[
+ {
+  "group": "familiar",
+  "operation": 0,
+  "prompt": "note return the difference between the larger and smaller arguments\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if lt x y\nret sub y x\nend\nret sub x y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fold_value ulong 1 ulong 7 ulong 6\nret 83\nend\nif ne fold_value ulong 19 ulong 3 ulong 16\nret 83\nend\nif ne fold_value ulong 5 ulong 5 ulong 0\nret 83\nend\nif ne fold_value ulong 0 ulong 258 ulong 258\nret 83\nend\nif ne fold_value ulong 66 ulong 256 ulong 190\nret 83\nend\nif ne fold_value ulong 17 ulong 32 ulong 15\nret 83\nend\nif ne fold_value ulong 1001 ulong 999 ulong 2\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 0,
+  "prompt": "note compute the unsigned distance separating these inputs\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if lt left right\nret sub right left\nend\nret sub left right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair ulong 1 ulong 7 ulong 6\nret 83\nend\nif ne evaluate_pair ulong 19 ulong 3 ulong 16\nret 83\nend\nif ne evaluate_pair ulong 5 ulong 5 ulong 0\nret 83\nend\nif ne evaluate_pair ulong 0 ulong 258 ulong 258\nret 83\nend\nif ne evaluate_pair ulong 66 ulong 256 ulong 190\nret 83\nend\nif ne evaluate_pair ulong 17 ulong 32 ulong 15\nret 83\nend\nif ne evaluate_pair ulong 1001 ulong 999 ulong 2\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 1,
+  "prompt": "note add the pair and return their total\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "ret add x y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fold_value ulong 1 ulong 7 ulong 8\nret 83\nend\nif ne fold_value ulong 19 ulong 3 ulong 22\nret 83\nend\nif ne fold_value ulong 5 ulong 5 ulong 10\nret 83\nend\nif ne fold_value ulong 0 ulong 258 ulong 258\nret 83\nend\nif ne fold_value ulong 66 ulong 256 ulong 322\nret 83\nend\nif ne fold_value ulong 17 ulong 32 ulong 49\nret 83\nend\nif ne fold_value ulong 1001 ulong 999 ulong 2000\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 1,
+  "prompt": "note return the two arguments added together\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "ret add left right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair ulong 1 ulong 7 ulong 8\nret 83\nend\nif ne evaluate_pair ulong 19 ulong 3 ulong 22\nret 83\nend\nif ne evaluate_pair ulong 5 ulong 5 ulong 10\nret 83\nend\nif ne evaluate_pair ulong 0 ulong 258 ulong 258\nret 83\nend\nif ne evaluate_pair ulong 66 ulong 256 ulong 322\nret 83\nend\nif ne evaluate_pair ulong 17 ulong 32 ulong 49\nret 83\nend\nif ne evaluate_pair ulong 1001 ulong 999 ulong 2000\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 2,
+  "prompt": "note select the lower of the arguments\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if lt x y\nret x\nend\nret y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fold_value ulong 1 ulong 7 ulong 1\nret 83\nend\nif ne fold_value ulong 19 ulong 3 ulong 3\nret 83\nend\nif ne fold_value ulong 5 ulong 5 ulong 5\nret 83\nend\nif ne fold_value ulong 0 ulong 258 ulong 0\nret 83\nend\nif ne fold_value ulong 66 ulong 256 ulong 66\nret 83\nend\nif ne fold_value ulong 17 ulong 32 ulong 17\nret 83\nend\nif ne fold_value ulong 1001 ulong 999 ulong 999\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 2,
+  "prompt": "note return whichever input is smaller\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if lt left right\nret left\nend\nret right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair ulong 1 ulong 7 ulong 1\nret 83\nend\nif ne evaluate_pair ulong 19 ulong 3 ulong 3\nret 83\nend\nif ne evaluate_pair ulong 5 ulong 5 ulong 5\nret 83\nend\nif ne evaluate_pair ulong 0 ulong 258 ulong 0\nret 83\nend\nif ne evaluate_pair ulong 66 ulong 256 ulong 66\nret 83\nend\nif ne evaluate_pair ulong 17 ulong 32 ulong 17\nret 83\nend\nif ne evaluate_pair ulong 1001 ulong 999 ulong 999\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 3,
+  "prompt": "note select the higher of the arguments\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if gt x y\nret x\nend\nret y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fold_value ulong 1 ulong 7 ulong 7\nret 83\nend\nif ne fold_value ulong 19 ulong 3 ulong 19\nret 83\nend\nif ne fold_value ulong 5 ulong 5 ulong 5\nret 83\nend\nif ne fold_value ulong 0 ulong 258 ulong 258\nret 83\nend\nif ne fold_value ulong 66 ulong 256 ulong 256\nret 83\nend\nif ne fold_value ulong 17 ulong 32 ulong 32\nret 83\nend\nif ne fold_value ulong 1001 ulong 999 ulong 1001\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 3,
+  "prompt": "note return whichever input is larger\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if gt left right\nret left\nend\nret right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair ulong 1 ulong 7 ulong 7\nret 83\nend\nif ne evaluate_pair ulong 19 ulong 3 ulong 19\nret 83\nend\nif ne evaluate_pair ulong 5 ulong 5 ulong 5\nret 83\nend\nif ne evaluate_pair ulong 0 ulong 258 ulong 258\nret 83\nend\nif ne evaluate_pair ulong 66 ulong 256 ulong 256\nret 83\nend\nif ne evaluate_pair ulong 17 ulong 32 ulong 32\nret 83\nend\nif ne evaluate_pair ulong 1001 ulong 999 ulong 1001\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 4,
+  "prompt": "note combine the requested prefix using bitwise XOR\nfn fold_value 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 0\nret 83\nend\nif ne fold_value buf ulong 2 ulong 9\nret 83\nend\nif ne fold_value buf ulong 5 ulong 0\nret 83\nend\nif ne fold_value buf ulong 9 ulong 1\nret 83\nend\nif ne fold_value buf ulong 12 ulong 19\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 6\nret 83\nend\nif ne fold_value buf ulong 2 ulong 6\nret 83\nend\nif ne fold_value buf ulong 5 ulong 14\nret 83\nend\nif ne fold_value buf ulong 9 ulong 34\nret 83\nend\nif ne fold_value buf ulong 12 ulong 45\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 4,
+  "prompt": "note return the cumulative exclusive OR through the given count\nfn evaluate_pair 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 9\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 1\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 19\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 6\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 6\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 14\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 34\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 45\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 5,
+  "prompt": "note add up the entries before the given bound\nfn fold_value 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",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 0\nret 83\nend\nif ne fold_value buf ulong 2 ulong 9\nret 83\nend\nif ne fold_value buf ulong 5 ulong 26\nret 83\nend\nif ne fold_value buf ulong 9 ulong 87\nret 83\nend\nif ne fold_value buf ulong 12 ulong 107\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 6\nret 83\nend\nif ne fold_value buf ulong 2 ulong 6\nret 83\nend\nif ne fold_value buf ulong 5 ulong 20\nret 83\nend\nif ne fold_value buf ulong 9 ulong 82\nret 83\nend\nif ne fold_value buf ulong 12 ulong 97\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 5,
+  "prompt": "note return the running total through the requested count\nfn evaluate_pair 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",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 9\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 26\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 87\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 107\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 6\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 6\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 20\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 82\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 97\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 6,
+  "prompt": "note return the highest entry in the given prefix, or zero if empty\nfn fold_value 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 0\nret 83\nend\nif ne fold_value buf ulong 2 ulong 9\nret 83\nend\nif ne fold_value buf ulong 5 ulong 13\nret 83\nend\nif ne fold_value buf ulong 9 ulong 30\nret 83\nend\nif ne fold_value buf ulong 12 ulong 30\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 6\nret 83\nend\nif ne fold_value buf ulong 2 ulong 6\nret 83\nend\nif ne fold_value buf ulong 5 ulong 11\nret 83\nend\nif ne fold_value buf ulong 9 ulong 42\nret 83\nend\nif ne fold_value buf ulong 12 ulong 42\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 6,
+  "prompt": "note report the largest value before the bound, defaulting to zero\nfn evaluate_pair 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 9\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 13\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 30\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 30\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 6\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 6\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 11\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 42\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 42\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 7,
+  "prompt": "note count zero-valued entries before the limit\nfn fold_value 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 1\nret 83\nend\nif ne fold_value buf ulong 2 ulong 1\nret 83\nend\nif ne fold_value buf ulong 5 ulong 2\nret 83\nend\nif ne fold_value buf ulong 9 ulong 3\nret 83\nend\nif ne fold_value buf ulong 12 ulong 3\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 0\nret 83\nend\nif ne fold_value buf ulong 2 ulong 1\nret 83\nend\nif ne fold_value buf ulong 5 ulong 2\nret 83\nend\nif ne fold_value buf ulong 9 ulong 2\nret 83\nend\nif ne fold_value buf ulong 12 ulong 3\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "familiar",
+  "operation": 7,
+  "prompt": "note return how many entries equal zero in the requested prefix\nfn evaluate_pair 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 s\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 1\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 1\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 2\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 3\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 3\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 1\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 2\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 2\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 3\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 8,
+  "prompt": "note return three plus the absolute distance between the inputs\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if lt x y\nret add 3 sub y x\nend\nret add 3 sub x y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 0 ulong 0 ulong 3\nret 83\nend\nif ne fold_value ulong 1 ulong 7 ulong 9\nret 83\nend\nif ne fold_value ulong 19 ulong 3 ulong 19\nret 83\nend\nif ne fold_value ulong 5 ulong 5 ulong 3\nret 83\nend\nif ne fold_value ulong 0 ulong 258 ulong 261\nret 83\nend\nif ne fold_value ulong 66 ulong 256 ulong 193\nret 83\nend\nif ne fold_value ulong 17 ulong 32 ulong 18\nret 83\nend\nif ne fold_value ulong 1001 ulong 999 ulong 5\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 8,
+  "prompt": "note compute the unsigned gap and add three\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if lt left right\nret add 3 sub right left\nend\nret add 3 sub left right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 0 ulong 0 ulong 3\nret 83\nend\nif ne evaluate_pair ulong 1 ulong 7 ulong 9\nret 83\nend\nif ne evaluate_pair ulong 19 ulong 3 ulong 19\nret 83\nend\nif ne evaluate_pair ulong 5 ulong 5 ulong 3\nret 83\nend\nif ne evaluate_pair ulong 0 ulong 258 ulong 261\nret 83\nend\nif ne evaluate_pair ulong 66 ulong 256 ulong 193\nret 83\nend\nif ne evaluate_pair ulong 17 ulong 32 ulong 18\nret 83\nend\nif ne evaluate_pair ulong 1001 ulong 999 ulong 5\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 9,
+  "prompt": "note return twice the smaller argument\nfn fold_value x ulong y ulong to ulong\n",
+  "reference": "if lt x y\nret mul 2 x\nend\nret mul 2 y\nend\n",
+  "main": "fn main to int\nif ne fold_value ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne fold_value ulong 1 ulong 7 ulong 2\nret 83\nend\nif ne fold_value ulong 19 ulong 3 ulong 6\nret 83\nend\nif ne fold_value ulong 5 ulong 5 ulong 10\nret 83\nend\nif ne fold_value ulong 0 ulong 258 ulong 0\nret 83\nend\nif ne fold_value ulong 66 ulong 256 ulong 132\nret 83\nend\nif ne fold_value ulong 17 ulong 32 ulong 34\nret 83\nend\nif ne fold_value ulong 1001 ulong 999 ulong 1998\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 9,
+  "prompt": "note find the lower of the inputs and double it\nfn evaluate_pair left ulong right ulong to ulong\n",
+  "reference": "if lt left right\nret mul 2 left\nend\nret mul 2 right\nend\n",
+  "main": "fn main to int\nif ne evaluate_pair ulong 0 ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair ulong 1 ulong 7 ulong 2\nret 83\nend\nif ne evaluate_pair ulong 19 ulong 3 ulong 6\nret 83\nend\nif ne evaluate_pair ulong 5 ulong 5 ulong 10\nret 83\nend\nif ne evaluate_pair ulong 0 ulong 258 ulong 0\nret 83\nend\nif ne evaluate_pair ulong 66 ulong 256 ulong 132\nret 83\nend\nif ne evaluate_pair ulong 17 ulong 32 ulong 34\nret 83\nend\nif ne evaluate_pair ulong 1001 ulong 999 ulong 1998\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 10,
+  "prompt": "note sum the requested prefix and add three\nfn fold_value 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 add s 3\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne fold_value buf ulong 0 ulong 3\nret 83\nend\nif ne fold_value buf ulong 1 ulong 3\nret 83\nend\nif ne fold_value buf ulong 2 ulong 12\nret 83\nend\nif ne fold_value buf ulong 5 ulong 29\nret 83\nend\nif ne fold_value buf ulong 9 ulong 90\nret 83\nend\nif ne fold_value buf ulong 12 ulong 110\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne fold_value buf ulong 0 ulong 3\nret 83\nend\nif ne fold_value buf ulong 1 ulong 9\nret 83\nend\nif ne fold_value buf ulong 2 ulong 9\nret 83\nend\nif ne fold_value buf ulong 5 ulong 23\nret 83\nend\nif ne fold_value buf ulong 9 ulong 85\nret 83\nend\nif ne fold_value buf ulong 12 ulong 100\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 10,
+  "prompt": "note return three more than the total before the bound\nfn evaluate_pair 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 add s 3\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne evaluate_pair buf ulong 0 ulong 3\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 3\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 12\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 29\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 90\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 110\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne evaluate_pair buf ulong 0 ulong 3\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 9\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 9\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 23\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 85\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 100\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 11,
+  "prompt": "note double the number of zeros in the requested prefix\nfn fold_value 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 mul s 2\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 2\nret 83\nend\nif ne fold_value buf ulong 2 ulong 2\nret 83\nend\nif ne fold_value buf ulong 5 ulong 4\nret 83\nend\nif ne fold_value buf ulong 9 ulong 6\nret 83\nend\nif ne fold_value buf ulong 12 ulong 6\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne fold_value buf ulong 0 ulong 0\nret 83\nend\nif ne fold_value buf ulong 1 ulong 0\nret 83\nend\nif ne fold_value buf ulong 2 ulong 2\nret 83\nend\nif ne fold_value buf ulong 5 ulong 4\nret 83\nend\nif ne fold_value buf ulong 9 ulong 4\nret 83\nend\nif ne fold_value buf ulong 12 ulong 6\nret 83\nend\nret 77\nend\n"
+ },
+ {
+  "group": "composition",
+  "operation": 11,
+  "prompt": "note return twice the count of zero values before the bound\nfn evaluate_pair 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 mul s 2\nend\n",
+  "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 0\nput buf 1 9\nput buf 2 13\nput buf 3 0\nput buf 4 4\nput buf 5 30\nput buf 6 22\nput buf 7 9\nput buf 8 0\nput buf 9 17\nput buf 10 2\nput buf 11 1\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 2\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 2\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 4\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 6\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 6\nret 83\nend\nput buf 0 6\nput buf 1 0\nput buf 2 11\nput buf 3 3\nput buf 4 0\nput buf 5 7\nput buf 6 7\nput buf 7 6\nput buf 8 42\nput buf 9 7\nput buf 10 8\nput buf 11 0\nif ne evaluate_pair buf ulong 0 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 1 ulong 0\nret 83\nend\nif ne evaluate_pair buf ulong 2 ulong 2\nret 83\nend\nif ne evaluate_pair buf ulong 5 ulong 4\nret 83\nend\nif ne evaluate_pair buf ulong 9 ulong 4\nret 83\nend\nif ne evaluate_pair buf ulong 12 ulong 6\nret 83\nend\nret 77\nend\n"
+ }
+]
diff --git a/train/omega-llm/tools/contrast/run-01/generations.json b/train/omega-llm/tools/contrast/run-01/generations.json
new file mode 100644
index 0000000000000000000000000000000000000000..db527868c72aa4849cd02efe2c8a763cac0a4bf1
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/generations.json
@@ -0,0 +1 @@
+{"parent":{"fresh":[{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":2},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":2},{"body":"ret add x y\nend\n","grade":2},{"body":"ret or left right\nend\n","grade":1},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"total = ulong 0\nfor j ulong count\ntotal = add total get buf j\nend\nret total\nend\n","grade":0},{"body":"if gt left right\nv = left\nend\nret v\nend\n","grade":0},{"body":"total = ulong 0\nfor j ulong count\ntotal = xor total get items i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong count\ntotal = add total get items i\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get data i\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\nif eq get items i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor j ulong count\nif eq get items i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"ret add left right\nend\n","grade":1},{"body":"v = y\nif lt x y\nv = x\nend\nret v\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"total = ulong 0\nfor k ulong count\ntotal = add total get items k\nend\nret total\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0}],"earlier":[{"body":"ret add a b\nend\n","grade":2},{"body":"ret mul a b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"ret or a b\nend\n","grade":2},{"body":"ret and a b\nend\n","grade":2},{"body":"ret a\nend\n","grade":2},{"body":"ret b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"ret mul a b\nend\n","grade":2},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"v = b\nif lt a b\nv = a\nend\nret v\nend\n","grade":2},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"v = b\nif gt a b\nv = a\nend\nret v\nend\n","grade":2},{"body":"ret or a b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"ret and a b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":1},{"body":"ret a\nend\n","grade":2},{"body":"v = b\nif gt a b\nv = a\nend\nret v\nend\n","grade":1},{"body":"ret b\nend\n","grade":2},{"body":"v = b\nif gt a b\nv = a\nend\nret v\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"if gt get a i s\ns = get a i\nend\nend\nret s\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"v = v2\nif lt u v2\nv = u\nend\nret v\nend\n","grade":0},{"body":"v = v x ulong 0\nfor i ulong n\nif eq get a i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":0},{"body":"v = y\nif gt x y\nv = x\nend\nret v\nend\n","grade":0},{"body":"v = y\nif gt x y\nv = x\nend\nret add v 7\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"v = y\nif gt get items x y\nv = get items i\nend\nret and v 3\nend\n","grade":0},{"body":"v = y\nif gt x y\nv = x\nend\nret and v 15\nend\n","grade":0},{"body":"v = b\nif lt x y\nv = x\nend\nret xor v 3\nend\n","grade":0},{"body":"v = b\nif lt a b\nv = a\nend\nret xor v 15\nend\n","grade":0},{"body":"ret xor xor x y 3\nend\n","grade":0},{"body":"ret xor xor x y 15\nend\n","grade":0},{"body":"ret mul xor x y 3\nend\n","grade":0},{"body":"ret mul or 15\nend\n","grade":0},{"body":"total = b\nfn calc a ulong b ulong to ulong\ntotal = b\nfn calc a ulong b ulong to ulong\ntotal = ulong 0\nfor ","grade":0},{"body":"if gt a b\nv = a\nend\nret mul v 3\nend\n","grade":0},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if gt a b\nv = a\nend\nret s\nend\n","grade":0},{"body":"if gt a b\nv = a\nend\nret v\nend\n","grade":0},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"ret mul a b\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\nif gt get a i s\ns = get a i\nend\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret s\nend\n","grade":1},{"body":"total = ulong 0\nfor j ulong count\ntotal = add total get buf j\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\ntotal = xor total get buf j\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor j ulong count\ntotal = or total get buf j\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\nif eq get buf j 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j add get buf j 1\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j 0\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i 0\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j 0\nend\nend\n","grade":2}]},"control":{"fresh":[{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":2},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":2},{"body":"ret add x y\nend\n","grade":2},{"body":"ret or left right\nend\n","grade":1},{"body":"total = ulong 0\nfor j ulong count\ntotal = xor total get buf j\nend\nret total\nend\n","grade":0},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"total = ulong 0\nfor j ulong count\ntotal = add total get buf j\nend\nret total\nend\n","grade":0},{"body":"if gt left right\nv = left\nend\nret v\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong count\ntotal = add total get items k\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong count\nif eq get items i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"ret add left right\nend\n","grade":1},{"body":"v = y\nif lt x y\nv = x\nend\nret v\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"total = ulong 0\nfor k ulong count\ntotal = add total get items k\nend\nret total\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0}],"earlier":[{"body":"ret add a b\nend\n","grade":2},{"body":"ret mul a b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"ret or a b\nend\n","grade":2},{"body":"ret and a b\nend\n","grade":2},{"body":"ret a\nend\n","grade":2},{"body":"ret b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":2},{"body":"ret mul a b\nend\n","grade":2},{"body":"ret mul a b\nend\n","grade":2},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"v = b\nif lt a b\nv = a\nend\nret v\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"v = b\nif gt a b\nv = a\nend\nret v\nend\n","grade":2},{"body":"ret or a b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"ret and a b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":1},{"body":"ret a\nend\n","grade":2},{"body":"v = b\nif lt a b\nv = a\nend\nret v\nend\n","grade":1},{"body":"ret b\nend\n","grade":2},{"body":"v = b\nif gt a b\nv = a\nend\nret v\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"v = b\nif lt a b\nv = a\nend\nret v\nend\n","grade":0},{"body":"v = v x ulong 0\nfor i ulong n\nif eq get a i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":0},{"body":"v = v2\nif gt u v2\nv = u\nend\nret v\nend\n","grade":0},{"body":"v = v2\nif gt u v2\nv = u\nend\nret add v 2\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"v = y\nif gt get x y\nv = x\nend\nret and v 3\nend\n","grade":0},{"body":"v = v2\nif gt u v2\nv = u\nend\nret and v 15\nend\n","grade":0},{"body":"v = y\nif lt x y\nv = x\nend\nret xor v 3\nend\n","grade":0},{"body":"v = b\nif lt a b\nv = a\nend\nret xor v 15\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"ret mul xor x y 3\nend\n","grade":0},{"body":"ret mul or 15\nend\n","grade":0},{"body":"total = ulong 0\nfor j ulong count\ntotal = add total get buf j\nend\nret total\nend\n","grade":0},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if gt a b\nv = a\nend\nret v\nend\n","grade":0},{"body":"if gt a b\nv = a\nend\nret v\nend\n","grade":0},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"ret mul a b\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\nif gt get a i s\ns = get a i\nend\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret s\nend\n","grade":1},{"body":"total = ulong 0\nfor j ulong count\ntotal = add total get buf j\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\nif eq get buf j 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret s\nend\n","grade":1},{"body":"total = ulong 0\nfor j ulong count\ntotal = or total get buf j\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\nif eq get buf j 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j add get buf j 1\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j mul get buf j 2\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j 0\nend\nend\n","grade":2}]},"treatment":{"fresh":[{"body":"if lt x y\nret x\nend\nret y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":2},{"body":"ret add y x y\nend\n","grade":0},{"body":"ret add left right\nend\n","grade":2},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if gt left right\nv = left\nend\nret v\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif gt get a i s\ns = get a i\nend\nend\nret s\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong length\ntotal = add total get items k\nend\nret total\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","grade":2},{"body":"if lt x y\nret sub y 1\nend\nret sub x y\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong count\nif eq get items i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":2},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"ret add left right\nend\n","grade":1},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"total = ulong 0\nfor k ulong count\ntotal = add total get items k\nend\nret total\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":1}],"earlier":[{"body":"ret add a b\nend\n","grade":2},{"body":"ret mul a b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"ret or a b\nend\n","grade":2},{"body":"ret and a b\nend\n","grade":2},{"body":"ret a\nend\n","grade":2},{"body":"ret b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":2},{"body":"ret mul a b\nend\n","grade":2},{"body":"ret mul a b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"ret add a b\nend\n","grade":1},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"ret add a b\nend\n","grade":1},{"body":"ret a\nend\n","grade":2},{"body":"ret a\nend\n","grade":2},{"body":"ret b\nend\n","grade":2},{"body":"v = b\nif gt a b\nv = a\nend\nret v\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"ret add add left right 7\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get buf j\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"if lt x y\nret and x y\nend\nret y\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"ret add or u v2 7\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"ret add xor u v2 5\nend\n","grade":0},{"body":"v = y\nif lt x y\nv = x\nend\nret v\nend\n","grade":0},{"body":"v = y\nif lt x y\nv = x\nend\nret add v 7\nend\n","grade":0},{"body":"v = y\nif gt x y\nv = x\nend\nret v\nend\n","grade":0},{"body":"v = y\nif gt x y\nv = x\nend\nret add v 7\nend\n","grade":0},{"body":"ret u\nend\n","grade":0},{"body":"ret add x 15\nend\n","grade":0},{"body":"if gt u v\nret u\nend\nret v\nend\n","grade":0},{"body":"ret add mul = y\nend\n","grade":0},{"body":"v = y\nif gt get a i s\ns = get a i\nend\nend\nret s\nend\n","grade":0},{"body":"v = y\nif gt x y\nv = x\nend\nret and v 15\nend\n","grade":0},{"body":"v = y\nif lt x y\nv = x\nend\nret xor v 3\nend\n","grade":0},{"body":"v = y\nif lt x y\nv = x\nend\nret xor v 15\nend\n","grade":0},{"body":"ret xor xor x y 3\nend\n","grade":0},{"body":"ret xor xor x y 15\nend\n","grade":0},{"body":"ret mul xor x y 3\nend\n","grade":0},{"body":"ret mul x 15\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"if gt a b\nv = a\nend\nret v\nend\n","grade":0},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"ret mul a b\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\ns = add s get a i\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong count\ns = add s get buf j i\nend\nret s\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\ntotal = xor total get buf j\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif gt get a i s\ns = get a i\nend\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong count\ns = add s get buf j i\nend\nret s\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\nif eq get buf j 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j add get buf j 1\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j add get buf j 1\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i 0\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i 0\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j 0\nend\nend\n","grade":2}]},"mean":{"fresh":[{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":2},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":2},{"body":"ret add y x y\nend\n","grade":0},{"body":"ret or left right\nend\n","grade":1},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if gt left right\nv = left\nend\nret v\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong count\ntotal = add total get items k\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\nif eq get items i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong count\nif eq get items k 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"ret add left right\nend\n","grade":1},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"total = ulong 0\nfor k ulong count\ntotal = add total get items k\nend\nret total\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0}],"earlier":[{"body":"ret add a b\nend\n","grade":2},{"body":"ret mul a b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"ret or a b\nend\n","grade":2},{"body":"ret and a b\nend\n","grade":2},{"body":"ret a\nend\n","grade":2},{"body":"ret b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":2},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"ret mul a b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"if lt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":2},{"body":"ret or a b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":1},{"body":"ret and a b\nend\n","grade":2},{"body":"ret add a b\nend\n","grade":1},{"body":"ret a\nend\n","grade":2},{"body":"ret a\nend\n","grade":2},{"body":"ret b\nend\n","grade":2},{"body":"v = b\nif gt a b\nv = a\nend\nret v\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"if gt x y\nret add get a b\nend\nret add a b\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"v = v2\nif lt u v2\nv = u\nend\nret v\nend\n","grade":0},{"body":"v = v2\nif lt u v2\nv = u\nend\nret add v 7\nend\n","grade":0},{"body":"v = y\nif gt x y\nv = x\nend\nret v\nend\n","grade":0},{"body":"v = v2\nif gt u v2\nv = u\nend\nret add v 7\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = add total get a i\nend\nret total\nend\n","grade":0},{"body":"v = y\nif gt get items i s\ns = get items i\nend\nend\nret s\nend\n","grade":0},{"body":"v = v2\nif gt u v2\nv = u\nend\nret and v 15\nend\n","grade":0},{"body":"v = y\nif lt x y\nv = x\nend\nret xor v 3\nend\n","grade":0},{"body":"v = y\nif lt x y\nv = x\nend\nret xor v 15\nend\n","grade":0},{"body":"ret xor xor x y 3\nend\n","grade":0},{"body":"ret xor xor x y 15\nend\n","grade":0},{"body":"ret mul xor x y 3\nend\n","grade":0},{"body":"ret mul or 15\nend\n","grade":0},{"body":"total = ulong 0\nfor j ulong count\ntotal = add total get buf j\nend\nret total\nend\n","grade":0},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"if gt a b\nret a\nend\nret b\nend\n","grade":1},{"body":"if gt a b\nv = a\nend\nret v\nend\n","grade":0},{"body":"if lt a b\nret sub b a\nend\nret sub a b\nend\n","grade":1},{"body":"ret mul a b\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\ns = add s get a i\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong count\nif gt get buf j 0\ns = get buf j i\nend\nend\nret s\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\ntotal = xor total get buf j\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif gt get a i s\ns = get a i\nend\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong count\ns = add s get buf j i\nend\nret s\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\nif eq get buf j 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j add get buf j 1\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j add get buf j 1\nend\nend\n","grade":1},{"body":"for i ulong n\nput a i 0\nend\nend\n","grade":2},{"body":"for i ulong n\nput a i add get a i 1\nend\nend\n","grade":0},{"body":"for j ulong count\nput buf j 0\nend\nend\n","grade":2}]},"starting":{"fresh":[{"body":"v = y\nif lt x y\nv = x\nend\nret v\nend\n","grade":1},{"body":"ret right\nend\n","grade":1},{"body":"ret add y 2\nend\n","grade":1},{"body":"ret right\nend\n","grade":1},{"body":"ret add x y\nend\n","grade":1},{"body":"if lt left right\nv = left\nend\nret v\nend\n","grade":0},{"body":"ret add y 1\nend\n","grade":1},{"body":"v = right\nif gt left right\nv = left\nend\nret v\nend\n","grade":2},{"body":"total = ulong 0\nfor j ulong count\ntotal = xor total get buf j\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong count\ntotal = add total get items k\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong length\ntotal = xor total get items k\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong count\nif eq get items k 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":2},{"body":"total = ulong 0\nfor i ulong n\nif eq get a i 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"ret add x y\nend\n","grade":1},{"body":"ret add xor left right 3\nend\n","grade":1},{"body":"v = y\nif lt x y\nv = x\nend\nret v\nend\n","grade":1},{"body":"ret left\nend\n","grade":1},{"body":"total = ulong 0\nfor k ulong count\ntotal = add total get items k\nend\nret total\nend\n","grade":1},{"body":"total = ulong 0\nfor i ulong n\ntotal = or total get a i\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor k ulong count\nif eq get buf j 0\ntotal = add total 1\nend\nend\nret total\nend\n","grade":0},{"body":"total = ulong 0\nfor i ulong n\ntotal = xor total get a i\nend\nret total\nend\n","grade":0}]},"focused":{"fresh":[{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":2},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":2},{"body":"ret add x y\nend\n","grade":2},{"body":"ret add left right\nend\n","grade":2},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = xor s get a i\nend\nret s\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\ns = add s get a i\nend\nret s\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif eq get a i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":2},{"body":"s = ulong 0\nfor i ulong n\nif eq get a i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":0},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"ret add left right\nend\n","grade":1},{"body":"if lt x y\nret sub y x\nend\nret sub x y\nend\n","grade":1},{"body":"if lt left right\nret sub right left\nend\nret sub left right\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\ns = add s get a i\nend\nret s\nend\n","grade":0},{"body":"s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret s\nend\n","grade":1},{"body":"s = ulong 0\nfor i ulong n\ns = add s get a i\nend\nret s\nend\n","grade":0}]}}
diff --git a/train/omega-llm/tools/contrast/run-01/scores.tsv b/train/omega-llm/tools/contrast/run-01/scores.tsv
new file mode 100644
index 0000000000000000000000000000000000000000..63cb256c0fa530cce27f91af9a6d96186c19c97f
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/scores.tsv
@@ -0,0 +1,33 @@
+model	panel	count	compiled	correct
+starting	familiar	16	9	3
+starting	composition	8	5	0
+starting	fresh	24	14	3
+focused	familiar	16	12	8
+focused	composition	8	6	0
+focused	fresh	24	18	8
+prior-chain	familiar	16	12	5
+prior-chain	composition	8	6	0
+prior-chain	fresh	24	18	5
+parent	familiar	16	8	5
+parent	composition	8	6	0
+parent	fresh	24	14	5
+parent	earlier	79	45	28
+control	familiar	16	9	7
+control	composition	8	5	0
+control	fresh	24	14	7
+control	earlier	79	47	30
+treatment	familiar	16	9	5
+treatment	composition	8	7	0
+treatment	fresh	24	16	5
+treatment	earlier	79	45	30
+mean	familiar	16	10	6
+mean	composition	8	6	0
+mean	fresh	24	16	6
+mean	earlier	79	46	31
+selected-compile	familiar	16	12	8
+selected-compile	composition	8	7	0
+selected-compile	fresh	24	19	8
+selected-example	familiar	16	9	9
+selected-example	composition	8	0	0
+selected-example	fresh	24	9	9
+selected-compile	earlier	79	48	29
diff --git a/train/omega-llm/tools/contrast/run-01/selected-compile.choices b/train/omega-llm/tools/contrast/run-01/selected-compile.choices
new file mode 100644
index 0000000000000000000000000000000000000000..d0a790b73abd021538cc6ef0c4c436fc6e8970aa
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/selected-compile.choices
@@ -0,0 +1,24 @@
+0 1
+1 1
+2 1
+3 1
+4 1
+5 1
+6 3
+7 0
+8 2
+9 0
+10 1
+11 1
+12 2
+13 0
+14 0
+15 3
+16 1
+17 1
+18 1
+19 1
+20 1
+21 0
+22 1
+23 3
diff --git a/train/omega-llm/tools/contrast/run-01/selected-compile.grades b/train/omega-llm/tools/contrast/run-01/selected-compile.grades
new file mode 100644
index 0000000000000000000000000000000000000000..f9b3d3adf9ddd4ebb4b6dd1167e94c07685a8337
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/selected-compile.grades
@@ -0,0 +1,24 @@
+0 2
+1 2
+2 2
+3 1
+4 1
+5 1
+6 1
+7 0
+8 2
+9 0
+10 2
+11 2
+12 2
+13 0
+14 0
+15 2
+16 1
+17 1
+18 1
+19 1
+20 1
+21 0
+22 1
+23 1
diff --git a/train/omega-llm/tools/contrast/run-01/selected-example.choices b/train/omega-llm/tools/contrast/run-01/selected-example.choices
new file mode 100644
index 0000000000000000000000000000000000000000..744ecaf7e304c1c58181225af8f72ae27b89b0a3
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/selected-example.choices
@@ -0,0 +1,24 @@
+0 1
+1 1
+2 1
+3 3
+4 0
+5 0
+6 0
+7 0
+8 2
+9 0
+10 1
+11 1
+12 2
+13 0
+14 0
+15 3
+16 0
+17 0
+18 0
+19 0
+20 0
+21 0
+22 0
+23 0
diff --git a/train/omega-llm/tools/contrast/run-01/selected-example.grades b/train/omega-llm/tools/contrast/run-01/selected-example.grades
new file mode 100644
index 0000000000000000000000000000000000000000..a13213f70db18e9295501ee03a48fc3fe64f5e59
--- /dev/null
+++ b/train/omega-llm/tools/contrast/run-01/selected-example.grades
@@ -0,0 +1,24 @@
+0 2
+1 2
+2 2
+3 2
+4 0
+5 0
+6 0
+7 0
+8 2
+9 0
+10 2
+11 2
+12 2
+13 0
+14 0
+15 2
+16 0
+17 0
+18 0
+19 0
+20 0
+21 0
+22 0
+23 0
diff --git a/train/omega-llm/tools/contrast/select.om b/train/omega-llm/tools/contrast/select.om
new file mode 100644
index 0000000000000000000000000000000000000000..cad976698fd56de0afbe06f1a3e9cfb90641502f
--- /dev/null
+++ b/train/omega-llm/tools/contrast/select.om
@@ -0,0 +1,87 @@
+note select EXAMPLE_PANEL OMC FIRST_DIR SECOND_DIR THIRD_DIR [compile]. Each directory contains answer-N.
+note Use a fresh working directory. Selected function bodies are written as answer-N for independent grading.
+text slash "/"
+text compilearg "compile"
+fn copyanswer a ulong j ulong to void
+wdpclr
+wdpa a
+wdpt slash
+wdpt outname
+wdpd j
+fi = wdopen 0 0
+if lt fi 0
+exit 74
+end
+pathfor j
+fo = wdopen 577 384
+if lt fo 0
+exit 74
+end
+wdcopyfd fi fo
+ca = fclose fi
+cb = fclose fo
+end
+fn choose src view uchar 262144 tape view uint 262144 obj ulong j ulong to ulong
+for k ulong 3
+copyanswer add k 3 j
+grade = testrow src tape obj j
+if or eq grade 2 and eq argcnt 7 eq grade 1
+ret add k 1
+end
+end
+pathfor j
+empty = wdopen 577 384
+if lt empty 0
+exit 74
+end
+cl = fclose empty
+ret 0
+end
+fn main to int
+if and ne argcnt 6 ne argcnt 7
+ret 2
+end
+if eq argcnt 7
+if not argis 6 compilearg
+ret 2
+end
+end
+src = new uchar 262144 0
+tape = new uint 262144 0
+wdpclr
+wdpa 1
+fd = wdopen 0 0
+if lt fd 0
+ret 70
+end
+n = read fd src 0 len src
+cl = fclose fd
+if or lt n 1 eq n long len src
+ret 72
+end
+if lt js_init tape 262144 128 0
+ret 72
+end
+if lt js_parse src tape ulong n 0
+ret 72
+end
+if ne js_type tape 0 jsarr
+ret 72
+end
+obj = js_first tape 0
+j = ulong 0
+while ne obj jsnone bound 4294967295
+chosen = choose src tape obj j
+wdod j
+wdot sep
+wdod chosen
+wdot lf
+wdoflush 1
+j = add j 1
+obj = js_enext tape obj
+end
+if eq j 0
+ret 72
+end
+ret 0
+end
diff --git a/train/omega-llm/tools/contrast/with-example.om b/train/omega-llm/tools/contrast/with-example.om
new file mode 100644
index 0000000000000000000000000000000000000000..5f95e22d1b9ef15bf790fdec2f64f03a49ff1b9b
--- /dev/null
+++ b/train/omega-llm/tools/contrast/with-example.om
@@ -0,0 +1,65 @@
+note with-example PROMPT OMC SAMPLER MERGES EXAMPLE_MAIN CK [CK ...]
+note EXAMPLE_MAIN defines a seeded main that returns 77 for success. Use a fresh working directory.
+text genfile "sample.raw"
+text okmsg "accepted checkpoint "
+text none "no generated answer passed the example\n"
+fn draw p view uchar * j ulong a edit uchar * to ulong
+fd = fdesc genfile 577
+wdkclr
+wdka 3
+wdkt samplecmd
+wdka add 6 j
+wdkt seedval
+wdkt limitval
+wdkt tempval
+wdkt p
+wdka 4
+rc = wdwait wdspawn -1 fd -1
+cl = fclose fd
+if ne rc 0
+exit 73
+end
+ret pickread fdesc genfile 0 a
+end
+fn accepted p view uchar 4096 a view uchar * n ulong c view uchar 65536 to bool
+for i ulong n
+if terminates part a 0 n i
+if eq compile p part a 0 add i 1 c 0
+r = strict
+if or eq r 125 eq r 126
+exit 70
+end
+if eq r 77
+wdwrall 1 a add i 1
+wdwrall 1 lf 1
+ret true
+end
+break
+end
+end
+end
+ret false
+end
+fn main to int
+if lt argcnt 7
+ret 2
+end
+p = new uchar 4096 0
+a = new uchar 8192 0
+c = new uchar 65536 0
+pn = pickload 1 p
+put lengths 0 pn
+put lengths 2 pickload 5 c
+for j ulong sub ulong argcnt 6
+n = draw part p 0 pn j a
+if accepted p a n c
+wdot okmsg
+wdod add j 1
+wdot lf
+wdoflush 2
+ret 0
+end
+end
+wdwrall 2 none len none
+ret 3
+end