interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

perf(attention): add scoped Omega-controlled cached history

merged 774e42d6e6e68efc #260 · opened 2026-11-01 21:46 UTC · closed 2026-11-02 00:27 UTC · merged 2026-11-02 00:27 UTC

Imported from GitHub aien-dev/CUDApp#260, by drakestapleton

Base e6598c7f0547f37a2a6e304306f0b1c65ede2ba6 · Head 4fdc157c391892d0b7362a6b6e5b3b5e237238be

Merged on GitHub as 183fa4f161de512094e47cd68285dcfde9c53a0c; reachable from main 21d8de285f713adf09e0d6ba6db2b37139d0674e (observed 2026-11-18T16:38:20Z)

drakestapleton wrote on 2026-11-01 21:46 UTC

The same immutable server delivered the first visible response for 32,768 input tokens in 104.728 seconds with cached history versus 108.372 seconds before; fresh follow-up was 103.074 versus 108.918 seconds. Full-model reading measured 109.500 versus 103.451 seconds with identical scores. These are single shared-machine observations; repeated 5,017-token total was essentially unchanged.

This carries the 30B cached-history mechanism into 27B attention. Omega validates requests and directs allocation, preparation, completed full-history copy and attention through one reusable buffer. Original history and arithmetic remain authoritative. The per-call API has no global selector: mode 0 preserves ordinary behavior, mode 1 mirrors supported calls, and mode 2 applies a provisional 1,024-row threshold. Failures cannot advance to output publication.

Completed verification includes the complete 83-target native host suite, full Core preflight, 63 physical attention checks, six complete-score cases, seven threshold/tail cases, long32 plus short-after-long, and deliberate corruption controls. Every compared score bit matches. Short serving covers streaming, seeded sampling, seven coding cases and prose; paired32K serving matches answers and token IDs across settings. The 65,536-token candidate run passes retrieval and saved/fresh continuation parity. Its first visible response was 237.355 seconds, saved follow-up 0.531 seconds and fresh follow-up 237.970 seconds. This candidate-only 64K run is a correctness observation, not a paired speed claim.

The host-suite registration defect is fixed: carried-tests.mk appends instead of replacing targets registered by earlier fragments. The actual graph retains all 81 previous targets plus both new attention targets. The full 83-target run exits 0 at 9ade9f52; production source and the tested binary remain unchanged. Earlier failures and historical receipts remain preserved.

Integration evidence and host83/64K follow-up pin sources, binaries and original logs. The 128,000-token serving test now passes retrieval and saved/fresh continuation parity; first visible response was 570.312 seconds, saved follow-up 0.778 seconds and fresh follow-up 570.967 seconds. This is a candidate-only correctness run, not a paired speed claim. Five alternating quiet timing pairs and independent review remain open; no quiet qualification or default promotion is claimed.

Stacked on #259; tracked by aien-dev/aien-sovereign-core-mv#710. Native/stub compatibility, API 0.13, pinned Bridge regeneration and Crumb checks pass. No new kernel, production dependency, default change or deployment. Apache-2.0 WITH LLVM-exception notices retained.

Completed 128K evidence preserves the immutable server/source identity and original event hashes. All planned short/32K/64K/128K serving correctness gates now pass; quiet alternating timing and independent review remain open.

cursor[bot] reviewed (COMMENTED) on 2026-11-01 23:47 UTC

Risk: high. I left a non-blocking comment and did not approve: this stacked attention/runtime/nvrm change is above the medium approval threshold. Cursor Security Agent completed with no findings, Cursor Bugbot was not present, and aien-spark was assigned for human review.

<div><a href="https://cursor.com/agents/bc-067b44f5-95c2-4180-9be5-7a5b4d76fe2c?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/automations/ca4a13aa-d616-11f1-a7e4-4605a90eab71"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/view-automation-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/view-automation-light.png"><img alt="View Automation" width="141" height="28" src="https://cursor.com/assets/images/view-automation-dark.png"></picture></a> </div>

<sub>Sent by Cursor Approval Agent: Pull Request Router and Approver</sub>

Fetch it

A git bundle of the pull request's head, 192020 bytes.

curl -fsSL https://interplane.io/drakestapleton/CUDApp/patches/774e42d6e6e68efc.bundle -o 774e42d6e6e68efc.bundle
git fetch 774e42d6e6e68efc.bundle refs/pull/260/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/CUDApp
260
4fdc157c391892d0b7362a6b6e5b3b5e237238be
{"kind":"github-import","owner":"aien-dev","repo":"CUDApp","number":260,"url":"https://github.com/aien-dev/CUDApp/pull/260","export_sha256":"0aafd51b77ff5776d6baaf9b88b48c8b36a6e27c8d829ae8ded561b71712b17a","imported_utc":"2026-11-18T16:38:20Z"}

Changes

diff --git a/docs/runtime/API.md b/docs/runtime/API.md
index fb29c98b..f49a0b58 100644
--- a/docs/runtime/API.md
+++ b/docs/runtime/API.md
@@ -1,6 +1,6 @@
 # Omega Runtime API v0
 
-Omega Runtime API version: 0.9.0
+Omega Runtime API version: 0.13.0
 
 Status: first written version, 2026-10-19 (slice R1, omega-mv#594, tracking #593). Source of truth is the C headers in
 `src/`. This file describes them; `docs/runtime/omega_runtime_api.manifest` lists them; `make test-runtime-api` checks the
@@ -36,8 +36,12 @@ signature against the headers on every run.
 
 ## 2. Version and compatibility rule
 
-The version is MAJOR.MINOR.PATCH (semantic versioning), currently **0.9.0**. It is a property of the list of entries and
+The version is MAJOR.MINOR.PATCH (semantic versioning), currently **0.13.0**. It is a property of the list of entries and
 their behaviour, not of the library build. Changes so far:
+- 0.13.0: adds experimental `omega_gpu_prefill_attn256_scoped` in `omega_gpu_attention_mirror.h`. Mode 0 preserves ordinary attention; mode 1 copies the complete original 27B K/V into one GPU-private reusable buffer before attention; mode 2 uses the provisional Omega-selected 1024-row threshold. Omega checks geometry, bounds, allocation capacity and completed PREP/copy/ATTEND ordering. Other modes and unsupported mirrored shapes are refused. `copy_ns` reports copy chip time separately from the unchanged attention info layout; total call time includes allocation and copying. Existing host/device/recorded entries and defaults are unchanged. See `om/attention-mirror/README.md` for qualification status.
+- 0.12.0: adds experimental `omega_gpu_pf_qgemm_reading_option` with `(rows, index)`. The checked Omega policy returns the scoped rt, warps, wait and group values at indices 0..3, or UINT32_MAX for invalid input. This proposed adaptive profile uses 64 rows for requests at most 64 rows and 128 above that threshold. Callers obtain the checked height and use `omega_gpu_pf_qgemm_workspace_fits` to check existing row, padded-row and tile capacities before switching profiles. The query returns 1 only when all capacities cover the request; otherwise callers allocate a compatible workspace.
+- 0.11.0: adds experimental `omega_gpu_pf_qgemm_scoped` per-call options and the checked `omega_gpu_pf_qgemm_scoped_bm` tile-height query. Explicit calls neither read nor modify process-global tuning knobs. Tile storage must use the queried height; actual projection dimensions are validated on every call.
+- 0.10.0: adds the experimental `omega_gpu_pf_qgemm_set_group` selector. Existing entry signatures and the default execution order are unchanged.
 - 0.9.0 (AmperePort, CUDApp#170): grows STABLE `OmegaGpuLaunch` with `target_sm` (a MAJOR-class change
   taken as MINOR under the major-version-zero rule); adds EXPERIMENTAL
   `omega_gpu_session_target_sm`. Zero-initialized legacy launches still mean sm_121, not auto-detect.
@@ -593,7 +597,7 @@ values, poison patterns) are in the INTERNAL list.
 | `src/omega_gpu_prefill_attn_api.h` | `OmegaGpuPrefillAttnInfo`, `OmegaGpuPrefillAttnMirrorView`, `omega_gpu_prefill_attn`, `omega_gpu_prefill_attn_release`, `omega_gpu_prefill_attn_dev`, `omega_gpu_prefill_attn_set_warps`, `omega_gpu_prefill_attn_set_fused`, `omega_gpu_prefill_attn_set_kv_mirror`, `omega_gpu_prefill_attn_kv_mirror_view`, `omega_gpu_prefill_attn_kv_mirror_invalidate`, `omega_gpu_prefill_attn_kv_mirror_forget`, `omega_gpu_prefill_attn_kv_mirror_available` | Causal prefill attention for Qwen3-30B-A3B, with an optional KV mirror; one model. |
 | `src/omega_gpu_moe_api.h` | `omega_gpu_moe_tensor_upload_bf16`, `omega_gpu_moe_tensor_upload_f32`, `omega_gpu_moe_tensor_free`, `omega_gpu_moe_tensor_shape`, `omega_gpu_matmul_resident_window_f32`, `omega_gpu_matmul_resident_window_bf16`, `omega_gpu_matmul_resident_windows_f32`, `omega_gpu_moe_reserve`, `omega_gpu_moe_prepare`, `omega_gpu_moe_seal`, `omega_gpu_moe_unreserve`, `omega_gpu_moe_cache_clear`, `omega_gpu_moe_set_cta_budget`, `omega_gpu_moe_cta_budget`, `omega_gpu_moe_window_byte_offset` | Column windows over a resident bf16 expert tensor (OWN-30B); tied to the serving pool. |
 | `src/omega_gpu_decode_graph.h` | `OmegaGpuDecodeGraphConfig`, `OmegaGpuDecodeGraphStats`, `OmegaGpuDecodeGraphVas`, `omega_gpu_decode_graph_create`, `omega_gpu_decode_graph_free`, `omega_gpu_decode_graph_set_layer`, `omega_gpu_decode_graph_set_final_norm`, `omega_gpu_decode_graph_token`, `omega_gpu_decode_graph_begin_token`, `omega_gpu_decode_graph_record_layer`, `omega_gpu_decode_graph_record_final`, `omega_gpu_decode_graph_end_token`, `omega_gpu_decode_graph_abort_token`, `omega_gpu_decode_graph_record_res`, `omega_gpu_decode_graph_record_swiglu`, `omega_gpu_decode_graph_list`, `omega_gpu_decode_graph_vas`, `omega_gpu_decode_graph_read`, `omega_gpu_decode_graph_set_stamps`, `omega_gpu_decode_graph_set_barrier`, `omega_gpu_decode_graph_barrier`, `omega_gpu_decode_graph_stamps`, `omega_gpu_decode_graph_kind_name`, `omega_gpu_decode_graph_set_flush_each`, `omega_gpu_decode_graph_set_prefetch`, `omega_gpu_decode_graph_prefetch` | One Qwen3-30B-A3B decode token as one command list; scheduling, barrier and prefetch modes are still measured. |
-| `src/omega_gpu_prefill.h` | `OmegaPfWeights`, `omega_gpu_pf_rc_name`, `omega_gpu_pf_alloc_dev`, `omega_gpu_pf_alloc_host`, `omega_gpu_pf_free`, `omega_gpu_pf_upload`, `omega_gpu_pf_download`, `omega_gpu_pf_copy_va`, `omega_gpu_pf_stats`, `omega_gpu_pf_stats_reset`, `omega_gpu_pf_weights_upload`, `omega_gpu_pf_weights_free`, `omega_gpu_pf_weights_host_form`, `omega_gpu_pf_gemm_bm`, `omega_gpu_pf_gemm_tiles`, `omega_gpu_pf_gemm`, `omega_gpu_pf_gemm_set_shape`, `omega_gpu_pf_quant`, `omega_gpu_pf_qgemm_bm`, `omega_gpu_pf_qgemm_tiles`, `omega_gpu_pf_qgemm_tiles_va`, `omega_gpu_pf_qgemm`, `omega_gpu_pf_qgemm_set_shape`, `omega_gpu_pf_quant_record`, `omega_gpu_pf_qgemm_record` | Device-resident one-pass prefill for OWN-30B; arguments carry raw device addresses. |
+| `src/omega_gpu_prefill.h` | `OmegaPfWeights`, `omega_gpu_pf_rc_name`, `omega_gpu_pf_alloc_dev`, `omega_gpu_pf_alloc_host`, `omega_gpu_pf_free`, `omega_gpu_pf_upload`, `omega_gpu_pf_download`, `omega_gpu_pf_copy_va`, `omega_gpu_pf_stats`, `omega_gpu_pf_stats_reset`, `omega_gpu_pf_weights_upload`, `omega_gpu_pf_weights_free`, `omega_gpu_pf_weights_host_form`, `omega_gpu_pf_gemm_bm`, `omega_gpu_pf_gemm_tiles`, `omega_gpu_pf_gemm`, `omega_gpu_pf_gemm_set_shape`, `omega_gpu_pf_quant`, `omega_gpu_pf_qgemm_bm`, `omega_gpu_pf_qgemm_tiles`, `omega_gpu_pf_qgemm_tiles_va`, `omega_gpu_pf_qgemm`, `omega_gpu_pf_qgemm_set_shape`, `omega_gpu_pf_qgemm_set_group`, `omega_gpu_pf_quant_record`, `omega_gpu_pf_qgemm_record` | Device-resident one-pass prefill for OWN-30B; arguments carry raw device addresses. |
 | `src/omega_gpu_pfhost.h` | `omega_gpu_pf_router_rows`, `omega_gpu_pf_router_packed_bytes`, `omega_gpu_pf_router_pack`, `omega_gpu_pf_router_logits`, `omega_gpu_pf_moe_combine`, `omega_gpu_pf_router_set_rows` | Whole-prompt prefill router logits and MoE combine for OWN-30B; arguments carry raw device addresses. |
 
 ### 9.8 General matrix multiply (`src/omega_gpu_gemm_ex.h`, added in 0.8.0)
diff --git a/docs/runtime/PORTABILITY.md b/docs/runtime/PORTABILITY.md
index 707a1aa8..4962bd41 100644
--- a/docs/runtime/PORTABILITY.md
+++ b/docs/runtime/PORTABILITY.md
@@ -23,7 +23,7 @@ Porting Omega means answering two questions that are easy to mix up:
 2. **Operating system and driver.** Does this file need Linux, the NVIDIA open driver, or a C library?
 
 The table `docs/runtime/portability_table.tsv` answers both, one row per `src/omega_gpu_*`, `src/omega_blackwell_*`,
-`src/omega_bw_*` and `src/omega_ampere_*` file (136 rows; the M17/M18 gate suite `omega_blackwell_gates.{c,h}` stays in Omega, which runs it against this library):
+`src/omega_bw_*` and `src/omega_ampere_*` file. The table is the current inventory; the M17/M18 gate suite `omega_blackwell_gates.{c,h}` stays in Omega, which runs it against this library:
 
 | Column | Values | Meaning |
 |---|---|---|
@@ -38,7 +38,7 @@ carries (#120, #121) brought (15 `NO_HOSTED_INCLUDE`, 6 `HOSTED_LIBC`). The sync
 r2 #972) adds 5 `CHIP_SPECIFIC` rows (`src/omega_bw_hazard.{c,h}`, omega-mv#554; `src/omega_gpu_fp8_slots.{c,h}` and
 `src/omega_gpu_fp8_internal.h`, #961) and carries omega's review of the public headers (#954): `omega_gpu_matmul_api.h`,
 `omega_gpu_moe_api.h`, `omega_gpu_platform.h`, `omega_gpu_serving.{c,h}` and `omega_gpu_session.h` become `CHIP_SPECIFIC`,
-`omega_gpu_scan_ref.c` becomes `PORTABLE` (section 3). Totals now: 120 `CHIP_SPECIFIC`, 11 `PORTABLE`; 13
+`omega_gpu_scan_ref.c` becomes `PORTABLE` (section 3). At that sync, the totals were 120 `CHIP_SPECIFIC`, 11 `PORTABLE`; 13
 `FREESTANDING_PROVEN`, 98 `NO_HOSTED_INCLUDE`, 17 `HOSTED_LIBC`, 3 `LINUX_DRIVER`. Command to recount: section 7.
 
 `make test-runtime-portability` (host only, no compiler, no GPU) checks the table against the tree: every file has a row,
diff --git a/docs/runtime/omega_runtime_api.internal b/docs/runtime/omega_runtime_api.internal
index 96e0a62f..daf5f68a 100644
--- a/docs/runtime/omega_runtime_api.internal
+++ b/docs/runtime/omega_runtime_api.internal
@@ -199,3 +199,6 @@ const OMEGA_GPU_ATTN_GMUT_TAIL_DIMS # TEST ONLY: general attention mutant ids fo
 const OMEGA_GPU_ATTN_GMUT_CAUSAL # TEST ONLY: general attention mutant ids for the sweep
 const OMEGA_GPU_ATTN_GMUT_SCALE # TEST ONLY: general attention mutant ids for the sweep
 const OMEGA_GPU_ATTN_GMUT_COUNT # TEST ONLY: general attention mutant ids for the sweep
+
+fn omega_gpu_pf_alloc_dev_locked # internal device-private allocation transport; caller already holds session lock
+fn omega_gpu_pf_copy_va_locked # internal copy transport and chip-time result; caller already holds session lock
diff --git a/docs/runtime/omega_runtime_api.manifest b/docs/runtime/omega_runtime_api.manifest
index a91cd5e3..dd9110f6 100644
--- a/docs/runtime/omega_runtime_api.manifest
+++ b/docs/runtime/omega_runtime_api.manifest
@@ -12,7 +12,7 @@
 # After a deliberate header change: edit the line here, run `tools/runtime_api_check.sh --bless` to refresh numbers, review the diff,
 # and bump the version (MAJOR/MINOR/PATCH, rule in API.md section 2; tools/runtime_api_semver.sh checks the bump against the base).
 # Names a manifest header declares that are NOT API go in omega_runtime_api.internal, each with a reason (the check fails otherwise).
-abi omega_runtime 0.9.0
+abi omega_runtime 0.13.0
 header src/omega_runtime_api.h
 header src/omega_gpu_platform.h
 header src/omega_gpu_session.h
@@ -31,6 +31,7 @@ header src/omega_gpu_router_api.h
 header src/omega_gpu_tern_api.h
 header src/omega_gpu_tcgemm_api.h
 header src/omega_gpu_prefill_attn_api.h
+header src/omega_gpu_attention_mirror.h
 header src/omega_gpu_moe_api.h
 header src/omega_gpu_decode_graph.h
 header src/omega_gpu_prefill.h
@@ -38,9 +39,9 @@ header src/omega_gpu_pfhost.h
 header src/omega_gpu_gemm_ex.h
 # ---- version ----
 const OMEGA_RUNTIME_API_VERSION_MAJOR 0
-const OMEGA_RUNTIME_API_VERSION_MINOR 9
+const OMEGA_RUNTIME_API_VERSION_MINOR 13
 const OMEGA_RUNTIME_API_VERSION_PATCH 0
-const OMEGA_RUNTIME_API_VERSION 9
+const OMEGA_RUNTIME_API_VERSION 13
 # ---- platform contract (src/omega_gpu_platform.h, ABI 1.2) ----
 struct OmegaGpuDeviceHandle 8 4 # STABLE
 field OmegaGpuDeviceHandle index 0 4 u32 1
@@ -953,7 +954,10 @@ fn omega_gpu_pf_qgemm_bm fn() -> u32 # EXPERIMENTAL
 fn omega_gpu_pf_qgemm_tiles fn(*const OmegaGpuFp8Tensor, *const u32, *mut c_void, u32) -> u32 # EXPERIMENTAL
 fn omega_gpu_pf_qgemm_tiles_va fn(u32, *const u64, *const u64, *const u32, *mut c_void, u32) -> u32 # EXPERIMENTAL
 fn omega_gpu_pf_qgemm fn(u32, u32, u32, u64, u32, u64, u64, u64, u64, *mut u64) -> i32 # EXPERIMENTAL
+fn omega_gpu_pf_qgemm_scoped_bm fn(u32, u32, u32, u32) -> u32 # EXPERIMENTAL
+fn omega_gpu_pf_qgemm_scoped fn(u32, u32, u32, u32, u32, u32, u32, u64, u32, u64, u64, u64, u64, *mut u64) -> i32 # EXPERIMENTAL
 fn omega_gpu_pf_qgemm_set_shape fn(u32, u32, u32) -> () # EXPERIMENTAL
+fn omega_gpu_pf_qgemm_set_group fn(u32) -> () # EXPERIMENTAL
 fn omega_gpu_pf_quant_record fn(*mut OmegaGpuCmdList, u32, u32, u32, u64, u64, u64) -> i32 # EXPERIMENTAL
 fn omega_gpu_pf_qgemm_record fn(*mut OmegaGpuCmdList, u32, u32, u32, u64, u32, u64, u64, u64, u64) -> i32 # EXPERIMENTAL
 fn omega_gpu_pf_router_rows fn() -> u32 # EXPERIMENTAL
@@ -1091,3 +1095,7 @@ const OMEGA_GEMM_ROUTE_WIDEN 2 # EXPERIMENTAL
 const OMEGA_GEMM_ROUTE_BF16X3 3 # EXPERIMENTAL
 const OMEGA_GEMM_ROUTE_FAST_BF16 4 # EXPERIMENTAL
 const OMEGA_GEMM_ROUTE_FFMA 5 # EXPERIMENTAL
+fn omega_gpu_pf_qgemm_reading_option fn(u32, u32) -> u32 # EXPERIMENTAL
+fn omega_gpu_pf_qgemm_workspace_fits fn(u64, u64, u64, u64, u64) -> i32 # EXPERIMENTAL
+
+fn omega_gpu_prefill_attn256_scoped fn(*mut OmegaGpuDecodeAttn256Cache, u32, u32, u32, *const f32, f32, f32, *mut f32, *mut OmegaGpuPrefillAttn256Info, u32, *mut u64) -> i32 # EXPERIMENTAL
diff --git a/docs/runtime/portability_table.tsv b/docs/runtime/portability_table.tsv
index 50eb4c3c..e9820ec6 100644
--- a/docs/runtime/portability_table.tsv
+++ b/docs/runtime/portability_table.tsv
@@ -62,6 +62,7 @@ src/omega_bw_em_q.h	CHIP_SPECIFIC	Private emitters for the FP8 QMMA placeholders
 src/omega_bw_hazard.c	CHIP_SPECIFIC	Static scoreboard hazard checker over encoded sm_121 kernel bytes (RAW, WAR, WAW against the Blackwell write and read barriers); decodes the operand positions the encoder writes. Includes stdlib.h.	HOSTED_LIBC
 src/omega_bw_hazard.h	CHIP_SPECIFIC	Interface of the sm_121 scoreboard hazard checker; includes only stddef.h and stdint.h.	NO_HOSTED_INCLUDE
 src/omega_bw_reconv.h	CHIP_SPECIFIC	Warp reconvergence regions (BSSY, BSYNC) for the Blackwell IR emitters.	NO_HOSTED_INCLUDE
+src/omega_gpu_attention_mirror.h	CHIP_SPECIFIC	Scoped native attention history placement; declares GPU-private cached-copy behavior and includes omega_gpu_prefill_attn256_api.h.	NO_HOSTED_INCLUDE
 src/omega_gpu_attention_api.c	CHIP_SPECIFIC	Builds and launches its own sm_121 attention kernels (stall counts as nvcc writes them for sm_121) through the session: the tuned head_dim 64/128 kernels and, since runtime API 0.6.0, the general fallback kernel (head_dim 1..256, any GQA ratio). In the freestanding closure.	FREESTANDING_PROVEN
 src/omega_gpu_attention_api.h	CHIP_SPECIFIC	Attention API; its kernel type OmegaBlackwellKernel comes from omega_blackwell_matmul.h.	NO_HOSTED_INCLUDE
 src/omega_gpu_bf16_gemv_api.c	CHIP_SPECIFIC	Launches the bf16 GEMV through a command list; uses the Blackwell bf16 generator.	NO_HOSTED_INCLUDE
diff --git a/mk/attention-mirror.mk b/mk/attention-mirror.mk
new file mode 100644
index 00000000..4fe1fbdf
--- /dev/null
+++ b/mk/attention-mirror.mk
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+CARRIED_HOST_TESTS += test-attention-mirror-policy
+.PHONY: test-attention-mirror-policy
+$(OUT_DIR)/attention-mirror-policy.so: src/cudapp_om_attn_mirror_plan.c src/cudapp_om_attn_mirror_step.c
+	@mkdir -p $(OUT_DIR)
+	$(CC) $(filter-out -MMD -MP,$(CFLAGS)) -shared -fPIC $^ -o $@
+test-attention-mirror-policy: $(OUT_DIR)/attention-mirror-policy.so
+	python3 om/attention-mirror/check.py $(abspath $(OUT_DIR))/attention-mirror-policy.so
+ifeq ($(CUDAPP_OMC_HOST),1)
+	OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" python3 om/attention-mirror/mutants.py
+endif
+
+CARRIED_HOST_TESTS += test-attention-mirror-dispatch
+.PHONY: test-attention-mirror-dispatch
+ATTN_MIRROR_WRAP = omega_gpu_session_lock omega_gpu_session_unlock omega_gpu_session_open omega_gpu_session_on_close omega_gpu_decode_attn256_cache_view omega_gpu_session_sync_to_gpu omega_gpu_session_sync_to_cpu omega_gpu_session_free omega_gpu_pf_alloc_dev_locked omega_gpu_pf_copy_va_locked omega_gpu_session_launch
+$(OUT_DIR)/attention-mirror-dispatch: om/attention-mirror/dispatch-check.c src/omega_gpu_prefill_attn256_api.c $(OUT_DIR)/libomega_gpu.a
+	$(CC) $(CFLAGS) -o $@ $< $(OUT_DIR)/libomega_gpu.a $(foreach f,$(ATTN_MIRROR_WRAP),-Wl,--wrap=$(f)) -lpthread -lm
+test-attention-mirror-dispatch: $(OUT_DIR)/attention-mirror-dispatch
+	$(abspath $(OUT_DIR))/attention-mirror-dispatch
+	CC="$(CC)" python3 om/attention-mirror/dispatch-mutants.py $(abspath $(OUT_DIR))/libomega_gpu.a
diff --git a/mk/carried-tests.mk b/mk/carried-tests.mk
index 7bdc6e2d..853f2e81 100644
--- a/mk/carried-tests.mk
+++ b/mk/carried-tests.mk
@@ -65,5 +65,6 @@ test-gpu-isolation: $(GPU_ISOLATION_TEST)
 # Chip-only binaries: built here so the host suite at least compiles them.
 test-carried-bins: $(GPU_DATTN256_MULTI_TEST) $(GPU_GDN_MULTI_TEST) $(GPU_PATTN256_TEST) $(GPU_EXACT_HEAD_TEST)
 
-CARRIED_HOST_TESTS = test-bw-encode-control test-gpu-decode-attn256 test-gpu-gdn test-gpu-q38-graph-host \
+# Other fragments may register tests before this file in the wildcard include order.
+CARRIED_HOST_TESTS += test-bw-encode-control test-gpu-decode-attn256 test-gpu-gdn test-gpu-q38-graph-host \
 	test-gpu-streams test-gpu-isolation test-carried-bins
diff --git a/mk/prefill-shape.mk b/mk/prefill-shape.mk
new file mode 100644
index 00000000..113f0ab5
--- /dev/null
+++ b/mk/prefill-shape.mk
@@ -0,0 +1,57 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+CARRIED_HOST_TESTS += test-prefill-shape
+.PHONY: test-prefill-shape
+$(OUT_DIR)/prefill-shape.so: src/cudapp_om_prefill_shape.c
+	@mkdir -p $(OUT_DIR)
+	$(CC) $(filter-out -MMD -MP,$(CFLAGS)) -shared -fPIC $< -o $@
+$(OUT_DIR)/prefill-cache-check: om/prefill-shape/cache-check.c $(OUT_DIR)/libomega_gpu.a
+	$(CC) $(CFLAGS) -o $@ $< $(OUT_DIR)/libomega_gpu.a -Wl,--wrap=omega_gpu_session_alloc_code -lpthread -lm
+test-prefill-shape: $(OUT_DIR)/prefill-shape.so $(OUT_DIR)/gpu_qgemm_test $(OUT_DIR)/prefill-cache-check
+	$(abspath $(OUT_DIR))/prefill-cache-check
+	python3 om/prefill-shape/check.py $(abspath $(OUT_DIR))/prefill-shape.so
+	$(abspath $(OUT_DIR))/gpu_qgemm_test --host-only
+	$(abspath $(OUT_DIR))/gpu_qgemm_test --sim
+ifeq ($(CUDAPP_OMC_HOST),1)
+	OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" python3 om/prefill-shape/mutants.py
+endif
+
+CARRIED_HOST_TESTS += test-prefill-order
+.PHONY: test-prefill-order
+$(OUT_DIR)/prefill-order.so: src/cudapp_om_prefill_order.c
+	@mkdir -p $(OUT_DIR)
+	$(CC) $(filter-out -MMD -MP,$(CFLAGS)) -shared -fPIC $< -o $@
+test-prefill-order: $(OUT_DIR)/prefill-order.so $(OUT_DIR)/gpu_qgemm_test
+	python3 om/prefill-shape/order-check.py $(abspath $(OUT_DIR))/prefill-order.so
+ifeq ($(CUDAPP_OMC_HOST),1)
+	OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" python3 om/prefill-shape/order-mutants.py
+endif
+
+CARRIED_HOST_TESTS += test-prefill-scoped
+.PHONY: test-prefill-scoped
+$(OUT_DIR)/prefill-scoped-check: om/prefill-shape/scoped-check.c $(OUT_DIR)/libomega_gpu.a
+	$(CC) $(CFLAGS) -o $@ $< $(OUT_DIR)/libomega_gpu.a -Wl,--wrap=omega_gpu_pf_open_locked -Wl,--wrap=omega_gpu_pf_kernel_locked -lpthread -lm
+test-prefill-scoped: $(OUT_DIR)/prefill-scoped-check
+	$(abspath $(OUT_DIR))/prefill-scoped-check
+	CC="$(CC)" python3 om/prefill-shape/scoped-mutants.py $(abspath $(OUT_DIR))/libomega_gpu.a
+
+CARRIED_HOST_TESTS += test-prefill-reading
+.PHONY: test-prefill-reading
+$(OUT_DIR)/prefill-reading.so: src/cudapp_om_prefill_reading.c
+	@mkdir -p $(OUT_DIR)
+	$(CC) $(filter-out -MMD -MP,$(CFLAGS)) -shared -fPIC $< -o $@
+test-prefill-reading: $(OUT_DIR)/prefill-reading.so
+	python3 om/prefill-shape/reading-check.py $(abspath $(OUT_DIR))/prefill-reading.so
+ifeq ($(CUDAPP_OMC_HOST),1)
+	OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" python3 om/prefill-shape/reading-mutants.py
+endif
+
+CARRIED_HOST_TESTS += test-prefill-workspace
+.PHONY: test-prefill-workspace
+$(OUT_DIR)/prefill-workspace.so: src/cudapp_om_prefill_workspace.c
+	@mkdir -p $(OUT_DIR)
+	$(CC) $(filter-out -MMD -MP,$(CFLAGS)) -shared -fPIC $< -o $@
+test-prefill-workspace: $(OUT_DIR)/prefill-workspace.so
+	python3 om/prefill-shape/workspace-check.py $(abspath $(OUT_DIR))/prefill-workspace.so
+ifeq ($(CUDAPP_OMC_HOST),1)
+	OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" python3 om/prefill-shape/workspace-mutants.py
+endif
diff --git a/mk/q38-head.mk b/mk/q38-head.mk
new file mode 100644
index 00000000..3ec5c28c
--- /dev/null
+++ b/mk/q38-head.mk
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# Host-only verification. The --chip switch is never passed by make test.
+.PHONY: test-q38-head-bounds
+ifeq ($(CUDAPP_OMC_HOST),1)
+CARRIED_HOST_TESTS += test-q38-head-bounds
+test-q38-head-bounds: $(OUT_DIR)/libomega_gpu.a
+	OMEGA_OMC="$(OMEGA_OMC)" Q38_GPU_OUT="$(abspath $(OUT_DIR))/q38-head" \
+	  Q38_GPU_LIB="$(OUT_DIR)/libomega_gpu.a" CC="$(CC)" sh om/q38-head/run.sh
+else
+test-q38-head-bounds:
+	@echo "test-q38-head-bounds: NOT_RUN (requires a runnable pinned AArch64 omc)"
+	@exit 2
+endif
diff --git a/mk/seal-reuse.mk b/mk/seal-reuse.mk
new file mode 100644
index 00000000..3b6b8fd1
--- /dev/null
+++ b/mk/seal-reuse.mk
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+CARRIED_HOST_TESTS += test-seal-reuse
+# Integer-only generated Omega unit. Use distinct OUT_DIRs when comparing settings.
+CUDAPP_SEAL_OPT ?= -O3
+$(OUT_DIR)/cudapp_om_closure_reseal.o: private CFLAGS += $(CUDAPP_SEAL_OPT)
+.PHONY: test-seal-reuse
+$(OUT_DIR)/seal-reuse.so: src/cudapp_om_closure_reseal.c
+	@mkdir -p $(OUT_DIR)
+	$(CC) $(filter-out -MMD -MP,$(CFLAGS)) $(CUDAPP_SEAL_OPT) -shared -fPIC $< -o $@
+test-seal-reuse: $(OUT_DIR)/seal-reuse.so
+	python3 om/pipeline/seal-reuse-check.py $(abspath $(OUT_DIR))/seal-reuse.so
+ifeq ($(CUDAPP_OMC_HOST),1)
+	OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" CUDAPP_SEAL_OPT="$(CUDAPP_SEAL_OPT)" python3 om/pipeline/seal-reuse-mutants.py
+endif
diff --git a/nvrm/nvrm.c b/nvrm/nvrm.c
index 663e5b70..127435b6 100644
--- a/nvrm/nvrm.c
+++ b/nvrm/nvrm.c
@@ -56,13 +56,15 @@ static int fail(Nvrm *rm, const char *fmt, ...);
 
 /* Pure class admission lives in seeded Omega. Class IDs are vendor constants:
  * open-gpu-doc clc7c0.h, clc56f.h, and vendored clc361.h / clc661.h. */
-static int select_classes(Nvrm *rm, const uint32_t *classes, uint32_t count) {
+static int select_classes(Nvrm *rm, const uint32_t *classes, uint32_t count,
+                          uint16_t vendor_id, uint16_t device_id) {
     rm->compute_class = rm->gpfifo_class = rm->usermode_class = 0;
     rm->target_sm = 0; rm->discrete = 0;
     uint64_t m[16] = {1, rm->sm_version,
         NV2080_CTRL_GR_INFO_SM_VERSION_8_06, NV2080_CTRL_GR_INFO_SM_VERSION_12_01,
         OMEGA_AMPERE_COMPUTE_B, OMEGA_AMPERE_GPFIFO_A, VOLTA_USERMODE_A,
-        BLACKWELL_COMPUTE_B, BLACKWELL_CHANNEL_GPFIFO_A, HOPPER_USERMODE_A};
+        BLACKWELL_COMPUTE_B, BLACKWELL_CHANNEL_GPFIFO_A, HOPPER_USERMODE_A,
+        0, 0, NV2080_CTRL_GR_INFO_SM_VERSION_10_04, vendor_id, device_id};
     /* Marshal the vendor's class-list presence, without selecting a target. */
     for (uint32_t i = 0; i < count; i++) {
         for (uint32_t k = 0; k < 3; k++) {
@@ -427,7 +429,8 @@ int nvrm_open(Nvrm *rm) {
     if (cl.numClasses > 512) return fail(rm, "too many classes");
     cl.classList = NV_PTR_TO_NvP64(classes);
     if (rm_control(rm, rm->device, NV0080_CTRL_CMD_GPU_GET_CLASSLIST, &cl, sizeof cl)) return -1;
-    if (cl.numClasses > 512 || select_classes(rm, classes, cl.numClasses)) return -1;
+    if (cl.numClasses > 512 || select_classes(rm, classes, cl.numClasses,
+            cards[found].pci_info.vendor_id, cards[found].pci_info.device_id)) return -1;
     if (rm_alloc(rm, rm->subdevice, rm->usermode_class, NULL, 0, &rm->usermode)) return -1;
     void *mmio = map_to_cpu(rm, rm->usermode, 0x10000, NULL, 0, 0);
     if (mmio == MAP_FAILED) return -1;
diff --git a/om/attention-mirror/.crumb b/om/attention-mirror/.crumb
new file mode 100644
index 00000000..c221c387
--- /dev/null
+++ b/om/attention-mirror/.crumb
@@ -0,0 +1,20 @@
+{
+  "extensions": {
+    "generated": {
+      "children": [],
+      "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+      "compiled_at": "2026-11-01T22:59:52Z",
+      "compiler": "crumb-compile/1",
+      "digest": "sha256:d945c7e493aceb0c4db2d77ad277e777d0b7aca26704247439187df02febbc56",
+      "evidence_files": 0,
+      "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+      "files": 11,
+      "generated_at_commit": "245122b1fc2f36e65d6ece23399179eeea22b34f",
+      "source_tree": "sha256:2ad25d88f25e9abde53b73a4add0af1e11c14b67bf08e7a5071df44b4784021e"
+    }
+  },
+  "layer": "native-policy",
+  "name": "attention-mirror",
+  "purpose": "Checked Omega admission and copy ordering for scoped GPU-cached attention history",
+  "schema_version": "1.0.0"
+}
diff --git a/om/attention-mirror/README.md b/om/attention-mirror/README.md
new file mode 100644
index 00000000..691a8d6a
--- /dev/null
+++ b/om/attention-mirror/README.md
@@ -0,0 +1,15 @@
+# Scoped attention history mirror
+
+This candidate carries the existing 30B GPU-cached history mechanism into 27B attention. Omega owns request admission, bounded allocation reuse and the operation sequence. Existing native transport allocates device-private memory and runs the existing copy and attention kernels. It adds no attention arithmetic, reduction-order change, dependency or persistent-prefix validity assumption.
+
+`plan.om` accepts an exact seven-element request: mode, query heads, K/V heads, capacity in positions, starting position, row count and bytes per K/V plane. Zero means bypass, all-ones means refusal, and another value is the required mirror size. Bounds and geometry are checked before multiplication. The layout constants come from `omega_gpu_decode_attn256_api.h` and `omega_blackwell_codegen_attn256.h`, including the tail slack; they are implementation contracts, not claimed chip limits.
+
+`step.om` directs allocation when capacity is insufficient, PREP, full K/V copy and ATTEND. Each operation must report successful completion before the next action is selected. A failure prevents attention or output publication. One buffer is reused across layers and requests, and released by the existing attention cleanup/session-close path. The CPU never reads or writes it. Original cache contents remain authoritative for decode and saved state.
+
+The new per-call entry has modes 0 (ordinary), 1 (mirror all supported requests) and 2 (provisional threshold at 1024 rows). Mode 2 avoids copying on tiny calls. This threshold needs further performance qualification. No process-global selector or deployed default changes. Existing host, device and recorded calls keep their behavior.
+
+The integrated production candidate passes 63 physical attention checks, six complete-score cases, seven threshold and tail cases, and a 32,768-token read followed by a short request. Every compared score bit matches. The complete native host suite now passes all 83 manifest targets, including both attention checks; Core's full preflight also passes. The registration repair preserves targets contributed by earlier build fragments. The first full-suite attempts caught a missing portability row and an omitted pinned Bridge path in the external runner. Both failures and their repairs are preserved.
+
+The production long read measured 109.500 seconds before and 103.451 seconds with cached history, including allocation and copy cost. The same immutable server passed short correctness, streaming, seeded sampling, and paired 32,768-token retrieval and continuation checks. First visible response was 108.372 seconds before and 104.728 seconds with the candidate; fresh follow-up was 108.918 versus 103.074 seconds. The repeated 5,017-token full-model total was essentially unchanged. These are single shared-machine observations, not quiet performance qualification. The 65,536-token candidate serving check also passes retrieval and saved/fresh continuation parity; first visible response was 237.355 seconds and saved follow-up 0.531 seconds. This is a candidate-only correctness observation, not a paired speed claim. The 128,000-token serving check also passes retrieval and saved/fresh continuation parity: first visible response was 570.312 seconds, saved follow-up 0.778 seconds, and fresh follow-up 570.967 seconds. [128K evidence](serving128-validation.json) pins the completed run. All planned short/32K/64K/128K serving correctness gates now pass. Quiet alternating timing and independent review remain open; no default promotion or deployment. [Follow-up evidence](followup-validation.json) records the complete 83-target suite and 64K check. [Integration evidence](integration-validation.json) pins the checked sources, binaries, receipts, original log hashes and remaining work; it supersedes the pending status in the historical targeted host receipt.
+
+Run `make test-attention-mirror-policy test-attention-mirror-dispatch` with the repository's pinned Omega compiler and Bridge. The independent host oracle checks admission and transitions, including malformed inputs and failed completion; source mutations challenge geometry, bounds, short-call bypass, both-plane copy, capacity and ordering. Python is external verification only. The actual native dispatch instrument substitutes fake device transport to inspect the executed sequence and its failure paths without opening a GPU.
diff --git a/om/attention-mirror/check.py b/om/attention-mirror/check.py
new file mode 100644
index 00000000..9d785cf5
--- /dev/null
+++ b/om/attention-mirror/check.py
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# Independent external oracle. Not a production dependency.
+import ctypes,itertools,random,sys
+lib=ctypes.CDLL(sys.argv[1]);U=ctypes.c_uint64;bad=2**64-1
+plan=lib.omega_native_attnmirplan;plan.restype=ctypes.c_uint32;plan.argtypes=[ctypes.POINTER(U),ctypes.POINTER(U),U]
+step=lib.omega_native_attnmirnext;step.restype=ctypes.c_uint32;step.argtypes=[ctypes.POINTER(U)]+[U]*4
+
+def expected(a):
+ mode,qh,kh,limit,pos,rows,plane=a
+ if not (mode in (0,1,2) and qh==24 and kh==4 and 0<limit<=131072 and 0<rows<=32768 and pos+rows<=limit and plane==limit*4*512+4*4*512+64):return bad
+ return 2*plane if mode==1 or (mode==2 and rows>=1024) else 0
+
+cases=[]
+for limit in (1,30,1023,1024,4096,40960,131072):
+ for rows in (1,30,1023,1024,1025,4096,32768):
+  for pos in (0,max(0,limit-rows),limit):
+   for mode in (0,1,2,3):cases.append((mode,24,4,limit,pos,rows,limit*2048+8256))
+base=(2,24,4,40960,0,4096,40960*2048+8256)
+for i in range(7):
+ for v in (0,1,3,23,25,1023,1024,32768,32769,131072,131073,2**32,2**64-1):
+  a=list(base);a[i]=v;cases.append(tuple(a))
+rng=random.Random(710)
+for _ in range(1000):
+ limit=rng.randrange(1,131073);rows=rng.randrange(1,min(limit,32768)+1);pos=rng.randrange(limit-rows+1)
+ cases.append((rng.randrange(3),24,4,limit,pos,rows,limit*2048+8256))
+for a in cases:
+ out=U(99);assert plan(ctypes.byref(out),(U*7)(*a),7)==0;assert out.value==expected(a),('plan',a,out.value,expected(a))
+assert plan(None,(U*7)(*base),7)==32
+assert plan(ctypes.byref(U()),None,7)==32
+assert plan(ctypes.byref(U()),(U*7)(*base),6)==32
+
+def next_expected(phase,need,have,ok):
+ if ok!=1 or (need and (need<20608 or need>536887424 or need%16)):return 0
+ if phase==0:return 1 if need>have else 2
+ if phase==1:return 2 if have>=need else 0
+ if phase==2:return 3 if need else 4
+ if phase==3:return 4 if need else 0
+ if phase==4:return 5
+ return 0
+n=0
+for a in itertools.product(range(7),(0,16,20608,20609,33570944,536887424,536887440,2**64-1),(0,16,20608,33570944,536887424,2**64-1),(0,1,2)):
+ out=U(99);assert step(ctypes.byref(out),*a)==0;assert out.value==next_expected(*a),('step',a,out.value,next_expected(*a));n+=1
+assert step(None,0,20608,0,1)==32
+print('PASS independent attention mirror oracle',len(cases),'plans',n,'transitions')
diff --git a/om/attention-mirror/dispatch-check.c b/om/attention-mirror/dispatch-check.c
new file mode 100644
index 00000000..3c975615
--- /dev/null
+++ b/om/attention-mirror/dispatch-check.c
@@ -0,0 +1,85 @@
+/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
+/* Host-only integration instrument: execute the actual adapter with fake device transport. */
+#include <assert.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "../../src/omega_gpu_prefill_attn256_api.c"
+
+static int depth, n, fail, allocs, copies;
+static unsigned events[16];
+static OmegaGpuDecodeAttn256CacheView cv;
+static OmegaGpuSession fake_session;
+static unsigned current_m;
+static void event(unsigned x) { assert(depth == 1 && n < 16); events[n++] = x; }
+void __wrap_omega_gpu_session_lock(void) { assert(depth++ == 0); }
+void __wrap_omega_gpu_session_unlock(void) { assert(--depth == 0); }
+OmegaGpuSession *__wrap_omega_gpu_session_open(void) { assert(depth == 1); return &fake_session; }
+int __wrap_omega_gpu_session_on_close(void (*f)(void)) { (void)f; return fail == 9 ? -1 : 0; }
+int __wrap_omega_gpu_decode_attn256_cache_view(const OmegaGpuDecodeAttn256Cache *c, uint32_t layer, OmegaGpuDecodeAttn256CacheView *v) {
+    assert(c && layer == 0); *v = cv; return 0;
+}
+int __wrap_omega_gpu_session_sync_to_gpu(const OmegaGpuMem *m) { assert(depth == 1 && m->cpu); return 0; }
+int __wrap_omega_gpu_session_sync_to_cpu(const OmegaGpuMem *m) { assert(depth == 1 && m->cpu); return 0; }
+void __wrap_omega_gpu_session_free(OmegaGpuMem *m) { assert(depth == 1); free(m->cpu); memset(m, 0, sizeof *m); }
+int __wrap_omega_gpu_pf_alloc_dev_locked(size_t bytes, OmegaGpuMem *m) {
+    event(1); allocs++;
+    assert(bytes == 2*(cv.v_va-cv.k_va));
+    if (fail == 1) return -1;
+    memset(m, 0, sizeof *m); m->va = 0x100123450ull; m->size = bytes; return 0;
+}
+int __wrap_omega_gpu_pf_copy_va_locked(uint64_t dst, uint64_t src, size_t bytes, uint64_t *ns) {
+    event(3); copies++;
+    assert(n >= 2 && events[n-2] == 2);
+    assert(dst == g.mirror.va && src == cv.k_va && bytes == 2*(cv.v_va-cv.k_va));
+    if (ns) *ns = 17;
+    return fail == 3 ? -1 : 0;
+}
+static uint64_t ptr(const uint32_t *a, unsigned i) { return a[i] | (uint64_t)a[i+1]<<32; }
+int __wrap_omega_gpu_session_launch(const OmegaGpuLaunch *l, uint64_t *ns, uint32_t *marker) {
+    (void)marker;
+    unsigned action = l->n_args == OMEGA_DATTN256_ARGS_WORDS ? 2 : 4;
+    event(action);
+    if (ns) *ns = action;
+    if (action == 2) { assert(ptr(l->args,2) == cv.k_va && ptr(l->args,4) == cv.v_va); }
+    else {
+        assert(l->n_args == OMEGA_PATTN256_ARGS_WORDS);
+        const int copied = n >= 2 && events[n-2] == 3;
+        assert(ptr(l->args,2) == (copied ? g.mirror.va : cv.k_va));
+        assert(ptr(l->args,4) == (copied ? g.mirror.va + cv.v_va-cv.k_va : cv.v_va));
+        for (size_t i = 0; i < (size_t)current_m*cv.out_words; i++) ((float *)g.out.cpu)[i] = 1.0f;
+    }
+    return fail == (int)action ? -1 : 0;
+}
+static void run(unsigned mode, unsigned m, const unsigned *want, size_t count, int failure) {
+    float *q = calloc((size_t)m*cv.qkv_words,4), *out = calloc((size_t)m*cv.out_words,4);
+    assert(q && out); n = 0; fail = failure; current_m = m; uint64_t copy_ns = 99;
+    OmegaGpuPrefillAttn256Info info;
+    int rc = omega_gpu_prefill_attn256_scoped((void *)1,0,0,m,q,1e-6f,1.0f,out,&info,mode,&copy_ns);
+    assert(depth == 0); assert((rc != 0) == (failure != 0)); assert((size_t)n == count);
+    for (size_t i = 0; i < count; i++) assert(events[i] == want[i]);
+    if (!rc) { assert(out[0] == 1.0f && out[(size_t)m*cv.out_words-1] == 1.0f); assert(copy_ns == ((mode==1 || (mode==2 && m>=1024)) ? 17u : 0u)); }
+    free(q); free(out);
+}
+int main(void) {
+    cv.max_pos=8192;cv.q_heads=24;cv.kv_heads=4;cv.q_per_cta=2;cv.qkv_words=8192;cv.out_words=6144;
+    cv.k_va=0x200345670ull;cv.v_va=cv.k_va+(uint64_t)cv.max_pos*4*OMEGA_DATTN256_ROW_BYTES+OMEGA_DATTN256_PLANE_SLACK;
+    uint32_t sh[3]={cv.q_heads,cv.kv_heads,cv.q_per_cta};
+    for(unsigned k=0;k<KK_N;k++){spec_of(k,sh,&g.slot[k]);g.slot[k].valid=true;g.slot[k].kernel.gpr_count=8;g.slot[k].code.va=0x300000000ull+k*4096;}
+    g.have_qf=true;g.qf_size=qf_bytes(1024,24);g.qf.va=0x400000000ull;
+    g.have_bufs=true;g.qkv_size=1024*8192*4;g.out_size=1024*6144*4;g.qkv.cpu=calloc(1,g.qkv_size);g.out.cpu=calloc(1,g.out_size);assert(g.qkv.cpu&&g.out.cpu);g.qkv.va=0x500000000ull;g.out.va=0x600000000ull;
+    const unsigned small[]={2,4},first[]={1,2,3,4},reuse[]={2,3,4},prep_fail[]={2},copy_fail[]={2,3},alloc_fail[]={1};
+    run(2,30,small,2,0);assert(!allocs&&!copies);
+    run(2,1024,first,4,0);assert(allocs==1&&copies==1);
+    run(1,30,reuse,3,0);assert(allocs==1&&copies==2);
+    run(0,30,small,2,0);run(2,30,small,2,0);
+    run(1,30,prep_fail,1,2);run(1,30,copy_fail,2,3);run(1,30,reuse,3,4);
+    __wrap_omega_gpu_session_lock();__wrap_omega_gpu_session_free(&g.mirror);__wrap_omega_gpu_session_unlock();
+    run(1,30,alloc_fail,1,1);
+    g.hooked=false;run(1,30,small,0,9);fail=0;
+    float q[1]={0},out[1]={0};n=0;
+    assert(omega_gpu_prefill_attn256_scoped((void*)1,0,0,30,q,1e-6f,1,out,NULL,3,NULL)==OMEGA_GPU_DATTN_BAD_ARGS);assert(!n);
+    cv.q_heads=23;assert(omega_gpu_prefill_attn256_scoped((void*)1,0,0,30,q,1e-6f,1,out,NULL,1,NULL)==OMEGA_GPU_DATTN_BAD_ARGS);assert(!n);
+    cv.q_heads=24;cv.v_va-=16;assert(omega_gpu_prefill_attn256_scoped((void*)1,0,0,30,q,1e-6f,1,out,NULL,1,NULL)==OMEGA_GPU_DATTN_BAD_ARGS);assert(!n);
+    omega_gpu_prefill_attn256_release();assert(!g.mirror.size);puts("PASS actual attention adapter: scoped order, reuse, bypass, isolation, geometry and operation failures");return 0;
+}
diff --git a/om/attention-mirror/dispatch-mutants.py b/om/attention-mirror/dispatch-mutants.py
new file mode 100644
index 00000000..0fda98e1
--- /dev/null
+++ b/om/attention-mirror/dispatch-mutants.py
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External transport mutants: the actual-dispatch checker must reject each fault.
+from pathlib import Path
+import os,subprocess,sys,tempfile
+root=Path(__file__).resolve().parents[2]
+source=(root/'src/omega_gpu_prefill_attn256_api.c').read_text()
+test=(root/'om/attention-mirror/dispatch-check.c').read_text()
+wrap=['omega_gpu_session_lock','omega_gpu_session_unlock','omega_gpu_session_open','omega_gpu_session_on_close','omega_gpu_decode_attn256_cache_view','omega_gpu_session_sync_to_gpu','omega_gpu_session_sync_to_cpu','omega_gpu_session_free','omega_gpu_pf_alloc_dev_locked','omega_gpu_pf_copy_va_locked','omega_gpu_session_launch']
+mutants={
+ 'copy_failure_ignored':('if (omega_gpu_pf_copy_va_locked(g.mirror.va, v.k_va, (size_t)mirror_bytes, copy_ns) != OMEGA_GPU_PF_OK)','if (omega_gpu_pf_copy_va_locked(g.mirror.va, v.k_va, (size_t)mirror_bytes, copy_ns) != OMEGA_GPU_PF_OK && 0)'),
+ 'wrong_k_pointer':('aa[2] = (uint32_t)g.mirror.va;', 'aa[2] = (uint32_t)v.k_va;'),
+ 'scoped_option_ignored':('uint64_t mirror_bytes = 0;', 'mirror_mode = 0; uint64_t mirror_bytes = 0;'),
+ 'failed_hook_ignored':('if (omega_gpu_session_on_close(on_session_close) != 0)', 'if (omega_gpu_session_on_close(on_session_close) != 0 && 0)'),
+}
+with tempfile.TemporaryDirectory(prefix='attention-dispatch-mutants-') as td:
+ t=Path(td)
+ for name,(old,new) in mutants.items():
+  assert source.count(old)==1,(name,source.count(old))
+  c=t/(name+'.c');c.write_text(source.replace(old,new));check=t/(name+'-check.c');check.write_text(test.replace('#include "../../src/omega_gpu_prefill_attn256_api.c"','#include "'+str(c)+'"'))
+  exe=t/name
+  subprocess.run([os.environ.get('CC','cc'),'-std=gnu11','-O2','-I'+str(root/'src'),str(check),sys.argv[1],*['-Wl,--wrap='+x for x in wrap],'-lpthread','-lm','-o',str(exe)],check=True)
+  p=subprocess.run([str(exe)],capture_output=True,text=True)
+  assert p.returncode!=0 and 'Assertion' in p.stderr,(name,p.returncode,p.stderr)
+  print(name+': caught',flush=True)
diff --git a/om/attention-mirror/followup-validation.json b/om/attention-mirror/followup-validation.json
new file mode 100644
index 00000000..2af56576
--- /dev/null
+++ b/om/attention-mirror/followup-validation.json
@@ -0,0 +1,323 @@
+{
+  "status": "PASS_HOST83_AND_SERVING64K",
+  "utc": "2026-11-01T22:44:26.101228+00:00",
+  "scope": "Follow-up evidence for the opt-in attention candidate. Shared-machine serving correctness; no quiet performance qualification.",
+  "native_host_revision": "9ade9f52c9179acdf42aeb6d096a0e8e1c76b99d",
+  "core_implementation": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+  "native_implementation": "ede9c14ca71fca1fe8503d09a0a11edb02a3fef6",
+  "unchanged_binary": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+  "native_archive": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+  "registration_repair": "carried-tests.mk now appends instead of replacing previously registered host targets. Actual graph retains all 81 previous targets and both attention targets. The complete 83-target suite exits 0.",
+  "manifest_probe_note": "make -pRrq -f Makefile : exits 2 because the artificial colon target is absent; its parsed database is only a graph probe. The independent full-suite command and exit 0 establish test success.",
+  "receipts": {
+    "attention-native-registered-host.json": {
+      "original_sha256": "a93fd3c01da66134291a22f464fee2c4fa0ccb012c6f5ef5d2065477b1af8895",
+      "content": {
+        "command": [
+          "taskset",
+          "-c",
+          "0-3",
+          "nice",
+          "-n",
+          "19",
+          "make",
+          "-j4",
+          "OUT_DIR=build-attention-mirror",
+          "test",
+          "test-runtime-api-semver",
+          "RUNTIME_API_BASE=6820ff0f95ca798a44d42767e5ecb1ee6592eeeb"
+        ],
+        "source_head": "9ade9f52c9179acdf42aeb6d096a0e8e1c76b99d",
+        "started": "2026-11-01T22:31:44.277614+00:00",
+        "repair": "Preserve CARRIED_HOST_TESTS from earlier fragments; actual Makefile graph verified83 unique targets including both new attention tests, retaining all81prior. Native implementation unchanged.",
+        "environment": {
+          "OMEGA_OMC": "$TMP/ribbon-seed-compiler/seed/out/omc",
+          "OMEGA_BRIDGE": "$TMP/optimize27-bridge"
+        },
+        "exit_code": 0,
+        "ended": "2026-11-01T22:41:50.172684+00:00",
+        "log_sha256": "f9e3ca6dec4cf153660b50091db058153193a772d817a87ab573a44c998b763a"
+      }
+    },
+    "attention-host-manifest-before.json": {
+      "original_sha256": "280a1a53e04aae3f070c5d7d02de44f97720c115d49357a524f34aa56d4c2947",
+      "content": {
+        "command": [
+          "make",
+          "-pRrq",
+          "-f",
+          "Makefile",
+          ":"
+        ],
+        "make_exit_code": 2,
+        "test_prerequisites": [
+          "test-drift",
+          "test-gpu-matmul-api",
+          "test-gpu-elementwise",
+          "test-gpu-reconv",
+          "test-gpu-attention",
+          "test-gpu-moe-window",
+          "test-gpu-fp8",
+          "test-gpu-decode-attn",
+          "test-gpu-router",
+          "test-gpu-bf16-gemv",
+          "test-gpu-fp8gemm",
+          "test-gpu-tern-sched",
+          "test-gpu-gpr-boundary",
+          "test-gpu-cmdlist",
+          "test-gpu-decode-graph",
+          "test-gpu-code-alloc",
+          "test-gpu-engine-compile",
+          "test-gpu-engine",
+          "test-gpu-engine-mutants",
+          "test-gpu-engine-backend-compile",
+          "test-gpu-engine-prod-build",
+          "test-gpu-engine-sim",
+          "test-gpu-engine-backend-mutants",
+          "test-gpu-engine-gb10-compile",
+          "test-gpu-serving-alloc",
+          "test-gpu-engine-freestanding",
+          "test-codegen-freestanding",
+          "test-gpu-session-platform",
+          "test-gpu-native-runtime",
+          "test-gpu-wait",
+          "test-gpu-wait-mutants",
+          "host-tests-m16",
+          "test-runtime-api",
+          "test-runtime-portability",
+          "test-doctor",
+          "test-hello-sim",
+          "test-native-artifact-manifest",
+          "test-gemm-selectors",
+          "test-native-artifact",
+          "zero-cuda-gate",
+          "verify-vendored",
+          "test-swap-cli",
+          "test-om-encoder",
+          "test-om-spec-encoder",
+          "test-om-cubin",
+          "test-ampere-encoder",
+          "test-ampere-cubin",
+          "test-ampere-numeric-host",
+          "test-ampere-f16-host",
+          "test-ampere-runtime",
+          "test-ampere-plan",
+          "test-portable-receipts",
+          "test-gpu-qmd-shared",
+          "test-model-capacity",
+          "test-gpu-qmd-shared-clean-build",
+          "test-omega-slice-runner",
+          "test-omega-arch-guard",
+          "test-omega-barrier-contract",
+          "test-omega-binding-portable",
+          "test-gpu-imadhi-rc",
+          "test-dagsim",
+          "test-costmodel",
+          "test-gpu-fp8-slots",
+          "test-bw-hazard",
+          "test-mufu-ftz",
+          "test-bw-encode-control",
+          "test-gpu-decode-attn256",
+          "test-gpu-gdn",
+          "test-gpu-q38-graph-host",
+          "test-gpu-streams",
+          "test-gpu-isolation",
+          "test-carried-bins",
+          "test-gpu-gemm-ex",
+          "test-gpu-gemm-ex-sim",
+          "test-prefill-shape",
+          "test-prefill-order",
+          "test-prefill-scoped",
+          "test-prefill-reading",
+          "test-prefill-workspace",
+          "test-q38-head-bounds",
+          "test-seal-reuse"
+        ],
+        "missing": [
+          "test-attention-mirror-policy",
+          "test-attention-mirror-dispatch"
+        ],
+        "status": "REPRODUCED_NEW_TESTS_OMITTED"
+      }
+    },
+    "attention-host-manifest-after.json": {
+      "original_sha256": "fc44affa9e92db36dd33cd3770f14bb70b4cb1f20b35ba88c18004e8d0abdc2b",
+      "content": {
+        "command": [
+          "make",
+          "-pRrq",
+          "-f",
+          "Makefile",
+          ":"
+        ],
+        "make_exit_code": 2,
+        "test_prerequisites": [
+          "test-drift",
+          "test-gpu-matmul-api",
+          "test-gpu-elementwise",
+          "test-gpu-reconv",
+          "test-gpu-attention",
+          "test-gpu-moe-window",
+          "test-gpu-fp8",
+          "test-gpu-decode-attn",
+          "test-gpu-router",
+          "test-gpu-bf16-gemv",
+          "test-gpu-fp8gemm",
+          "test-gpu-tern-sched",
+          "test-gpu-gpr-boundary",
+          "test-gpu-cmdlist",
+          "test-gpu-decode-graph",
+          "test-gpu-code-alloc",
+          "test-gpu-engine-compile",
+          "test-gpu-engine",
+          "test-gpu-engine-mutants",
+          "test-gpu-engine-backend-compile",
+          "test-gpu-engine-prod-build",
+          "test-gpu-engine-sim",
+          "test-gpu-engine-backend-mutants",
+          "test-gpu-engine-gb10-compile",
+          "test-gpu-serving-alloc",
+          "test-gpu-engine-freestanding",
+          "test-codegen-freestanding",
+          "test-gpu-session-platform",
+          "test-gpu-native-runtime",
+          "test-gpu-wait",
+          "test-gpu-wait-mutants",
+          "host-tests-m16",
+          "test-runtime-api",
+          "test-runtime-portability",
+          "test-doctor",
+          "test-hello-sim",
+          "test-native-artifact-manifest",
+          "test-gemm-selectors",
+          "test-native-artifact",
+          "zero-cuda-gate",
+          "verify-vendored",
+          "test-swap-cli",
+          "test-om-encoder",
+          "test-om-spec-encoder",
+          "test-om-cubin",
+          "test-ampere-encoder",
+          "test-ampere-cubin",
+          "test-ampere-numeric-host",
+          "test-ampere-f16-host",
+          "test-ampere-runtime",
+          "test-ampere-plan",
+          "test-portable-receipts",
+          "test-gpu-qmd-shared",
+          "test-model-capacity",
+          "test-gpu-qmd-shared-clean-build",
+          "test-omega-slice-runner",
+          "test-omega-arch-guard",
+          "test-omega-barrier-contract",
+          "test-omega-binding-portable",
+          "test-gpu-imadhi-rc",
+          "test-dagsim",
+          "test-costmodel",
+          "test-gpu-fp8-slots",
+          "test-bw-hazard",
+          "test-mufu-ftz",
+          "test-attention-mirror-policy",
+          "test-attention-mirror-dispatch",
+          "test-bw-encode-control",
+          "test-gpu-decode-attn256",
+          "test-gpu-gdn",
+          "test-gpu-q38-graph-host",
+          "test-gpu-streams",
+          "test-gpu-isolation",
+          "test-carried-bins",
+          "test-gpu-gemm-ex",
+          "test-gpu-gemm-ex-sim",
+          "test-prefill-shape",
+          "test-prefill-order",
+          "test-prefill-scoped",
+          "test-prefill-reading",
+          "test-prefill-workspace",
+          "test-q38-head-bounds",
+          "test-seal-reuse"
+        ],
+        "status": "PASS_83_UNIQUE_TARGETS_RETAIN_ALL_PREVIOUS"
+      }
+    },
+    "attention-serving-long64-final.json": {
+      "original_sha256": "0be30d7189d163eb1ae7551489d16ccb23379289d727ddde85fc794272745f5a",
+      "content": {
+        "status": "PASS",
+        "scope": "Shared-machine serving correctness, not quiet timing qualification",
+        "directory": "$RECEIPTS/attention-clean-reading-long64-20261101T222942Z",
+        "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+        "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+        "native_archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+        "events_sha256": "53fe6b8518865cd32a397413594ac58e248a09716b0943447bfeca474bee4e43",
+        "checker_sha256": "bb57a6d0a9c8cbdfe96c8cf1a3f725f775cdca6cb4a780121e73495311786052",
+        "server_exit": 0,
+        "ttft": [
+          {
+            "trial": 0,
+            "first_visible_s": 0.3346217739745043,
+            "completed_s": 0.33481363201281056
+          },
+          {
+            "trial": 1,
+            "first_visible_s": 0.2968471809872426,
+            "completed_s": 0.2970446230028756
+          },
+          {
+            "trial": 2,
+            "first_visible_s": 0.3006646389840171,
+            "completed_s": 0.30085772898746654
+          }
+        ],
+        "rows": [
+          {
+            "name": "long-cold",
+            "wall_s": 238.99866039201152,
+            "first_visible_s": 237.35461701999884
+          },
+          {
+            "name": "long-resumed",
+            "wall_s": 2.1802543210214935,
+            "first_visible_s": 0.5313490010448731
+          },
+          {
+            "name": "long-follow-cold",
+            "wall_s": 239.62686519796262,
+            "first_visible_s": 237.97034902794985
+          }
+        ],
+        "actual_prompt_tokens": 65536,
+        "retrieval_and_followup_parity": true
+      }
+    },
+    "attention-clean-serving-long64.json": {
+      "original_sha256": "1a89afdecd55b22583e4aad0ac96d483722857cb47cfcc2f74c8d73a0f390b18",
+      "content": {
+        "started": "2026-11-01T22:29:42.079443+00:00",
+        "command": [
+          "python3",
+          "$RECEIPTS/attention-qualification-runner.py",
+          "long64"
+        ],
+        "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+        "runner_sha256": "8a3c97944f742a73c3c651f1f6f33014e7052a07b954fb213772f128a6446a88",
+        "environment": {
+          "TRIAL_BIN": "$RECEIPTS/server-attention-mirror-clean",
+          "TRIAL_BINARY_SHA256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+          "TRIAL_ARM": "attention-clean-reading",
+          "TRIAL_EXACT": "1",
+          "AIEN_Q38_READING_FAST": "1",
+          "AIEN_Q38_ATTENTION_MIRROR": "1",
+          "TRIAL_SOURCE_CORE": "7d5141008012c53f9c7dcd7c9e045652dd96db5e"
+        },
+        "exit_code": 0,
+        "ended": "2026-11-01T22:38:35.199848+00:00"
+      }
+    }
+  },
+  "open": [
+    "New-candidate 128K serving is running; no PASS claimed here.",
+    "Five alternating quiet timing pairs.",
+    "Independent review and dependency-ordered merge."
+  ],
+  "historical_receipts": "Previous 81-target and integration receipts remain unchanged. This follow-up supersedes only their pending host-registration and 64K status."
+}
diff --git a/om/attention-mirror/host-validation.json b/om/attention-mirror/host-validation.json
new file mode 100644
index 00000000..62e0c2b5
--- /dev/null
+++ b/om/attention-mirror/host-validation.json
@@ -0,0 +1,19 @@
+{
+  "status": "PASS targeted host policy, actual dispatch, source mutants, API and semver. Full host suite and chip/model verification pending.",
+  "base": "6820ff0f95ca798a44d42767e5ecb1ee6592eeeb",
+  "compiler_sha256": "2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f",
+  "policy_cases": 1679,
+  "transition_cases": 1008,
+  "policy_mutants_caught": 9,
+  "dispatch_mutants_caught": 4,
+  "logs": {
+    "attention-mirror-policy.log": "c19e10348405b26268442240f338b9e76149ad74c437e500fdff7cc864236e61",
+    "attention-mirror-dispatch-mutants.log": "0007aa5e3ab5a6043de014517e8938bf464c8c57f12c766271d4f0d3b13fcf50",
+    "attention-mirror-api.log": "1640f212b8d8f74b48cb88bf408322f0b1c4e2e29bfecce08310e702342ca395"
+  },
+  "scope": "Host-only evidence. External measuring prototype results do not qualify this source.",
+  "repairs": [
+    "Seven scalar arguments exceeded pinned compiler function-argument limit; replaced with exact seven-element view and exercised length/null refusals.",
+    "Initial transport mutant changed only a zero low address word; strengthened fake addresses with distinct nonzero low words, then allfouractualdispatch mutants were caught."
+  ]
+}
diff --git a/om/attention-mirror/integration-validation.json b/om/attention-mirror/integration-validation.json
new file mode 100644
index 00000000..8c2d1806
--- /dev/null
+++ b/om/attention-mirror/integration-validation.json
@@ -0,0 +1,730 @@
+{
+  "status": "PASS integrated native, Core preflight, full-model parity, short and paired 32768-token serving; longer serving and quiet performance remain open",
+  "recorded_utc": "2026-11-01T22:28:34.897900+00:00",
+  "scope": "Opt-in production candidate, shared-machine measurements, not quiet qualification or deployment. Paths below are presentation substitutions; hashes identify original local receipts.",
+  "source": {
+    "native_implementation": "ede9c14ca71fca1fe8503d09a0a11edb02a3fef6",
+    "native_full_host_checked_head": "878c2cd4c5db8f9c79a73333770b5f650147e5ba",
+    "core_implementation_and_preflight": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+    "archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+    "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c"
+  },
+  "host_suite": {
+    "manifest_targets": 81,
+    "additional_targeted_attention_policy_and_dispatch": "PASS; see historical host-validation.json, 1679 admission cases, 1008 transitions, 9 policy mutants and 4 transport mutants",
+    "note": "Earlier board estimates of 83 host targets were incorrect; the terminal make-test manifest reports 81. The two new targeted attention checks passed separately."
+  },
+  "remaining": [
+    "New candidate 65536-token serving and 128000-token serving",
+    "Five alternating quiet-machine timing pairs",
+    "Independent review and dependency-order merge",
+    "Default promotion or deployment not requested by this receipt"
+  ],
+  "original_receipt_sha256": {
+    "attention-native-full-host.json": "c93873ca595a99ac98b90da25390420800240367c695d39f2c1916196fc5dd05",
+    "attention-preflight.json": "a5d2615541c77ee31429cb76943b53f0186ec22a2b5dcded59f2ee0b142e8ca0",
+    "attention-native-quick-receipt.json": "5b3d6fd9bf6a02922c11444ae7eac9613c15138823c11fc41d730d35d74901a4",
+    "attention-native-quick.json": "ff319e973d2492cbd6c7ca3a24a5b8444c59edf422a1c28edc27e3a275593ec9",
+    "attention-native-comparison.json": "fdee5e3dda895d4fbfc61ff0e835561de971b52755bbf9315bfe944dc9111d34",
+    "attention-native-boundaries-comparison.json": "f29d5a4ed859ce02a732796f44923c28b6cf682daac5a0e3b6b49debfc22ecfc",
+    "attention-native-long32-comparison.json": "6fb3ad4010b237c660d53f410897b26aa2aca1406715a14f98f46b64c2eb1099",
+    "attention-native-long32-frozen-reference.json": "b5d60350fe7440db5a9eedabf9de4be8d5f6fbcc76896820acb71dd942d80296",
+    "attention-native-negative.json": "2ce9a76f9ba5036bf0af7a907459e539d3ef0e0adc41cf67bddf625d4e683abd",
+    "attention-core-old-archive.json": "2ddc1c2b219e02411a2ba283f77ed97f3e54f0f93c3e536df5d69eb6fe7fdd95",
+    "attention-serving-short-final.json": "27872253e76320cd1a03484774fa215938e91aa6fc3f3c2f71ce660aeecea3b0",
+    "attention-baseline-serving-long32-final.json": "27dfb04b3a2758b2e788d3b494686f09b6ac4fb76b2668647f26154380c67730",
+    "attention-serving-long32-final.json": "dec104c1bae391a419ced54777e1c6ba1fed9378575ccd7ff53fcb5499fde0e9",
+    "attention-serving-long32-pair.json": "09a0a1d33e7ff6b13064835cc8e0ebbedf2666e07931d2ea932b72da142547ad",
+    "attention-clean-server-build.json": "c8c635249feba7560091d66c765eae98cba25486f5a4b7def12e9978c23f57ae",
+    "attention-native-pinned-tool-repair.json": "64020277c129eab29f6cb7f824c468c32d685e664c844d6283df74556aa68bdf"
+  },
+  "evidence": {
+    "attention-native-full-host.json": {
+      "command": [
+        "taskset",
+        "-c",
+        "10-13",
+        "nice",
+        "-n",
+        "19",
+        "make",
+        "-j4",
+        "OUT_DIR=build-attention-mirror",
+        "test",
+        "test-runtime-api-semver",
+        "RUNTIME_API_BASE=6820ff0f95ca798a44d42767e5ecb1ee6592eeeb"
+      ],
+      "source_head": "878c2cd4c5db8f9c79a73333770b5f650147e5ba",
+      "started": "2026-11-01T22:10:09.344385+00:00",
+      "repair": "Portability row repaired; exact pinned compiler and Bridge paths restored in runner. Both prior incomplete full-suite runs preserved. Native implementation unchanged from ede9c14c.",
+      "environment": {
+        "OMEGA_OMC": "$TMP/ribbon-seed-compiler/seed/out/omc",
+        "OMEGA_BRIDGE": "$TMP/optimize27-bridge"
+      },
+      "exit_code": 0,
+      "ended": "2026-11-01T22:20:04.012344+00:00",
+      "log_sha256": "7bf31296e92022e6068a9c21b8fde8c388a25ea3c6f847edbf715ad2ae259c41"
+    },
+    "attention-preflight.json": {
+      "command": [
+        "taskset",
+        "-c",
+        "14-15",
+        "nice",
+        "-n",
+        "19",
+        "bash",
+        "scripts/agent-preflight.sh"
+      ],
+      "started": "2026-11-01T21:53:25.222765+00:00",
+      "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+      "environment": {
+        "AIEN_FORCE_CPU_STUB": "1",
+        "AIEN_PROOF_OFF": "1",
+        "CARGO_TARGET_DIR": "$TMP/optimize27-scratch-host-target",
+        "CARGO_BUILD_JOBS": "2",
+        "CARGO_NET_OFFLINE": "true",
+        "RUST_TEST_THREADS": "1"
+      },
+      "exit_code": 0,
+      "ended": "2026-11-01T22:25:03.264658+00:00",
+      "log_sha256": "5a6afbe670b997d97e0707eca28fa5086dcb66997c92bd3c55bc307328a224ce"
+    },
+    "attention-native-quick-receipt.json": {
+      "started": "2026-11-01T21:46:04.154031+00:00",
+      "command": [
+        "timeout",
+        "--signal=TERM",
+        "--kill-after=10s",
+        "120s",
+        "flock",
+        "-w",
+        "2",
+        "$TMP/aien-gb10.lock",
+        "$RECEIPTS/attention-native-quick-test",
+        "--quick",
+        "--out",
+        "$RECEIPTS/attention-native-quick.json"
+      ],
+      "source_head": "ede9c14ca71fca1fe8503d09a0a11edb02a3fef6",
+      "native_archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+      "binary_sha256": "4effe6800dd7a75126cbc45437814f16bd0aa0a4b45448d0753c243a5092d7ee",
+      "exit_code": 0,
+      "ended": "2026-11-01T21:46:04.679544+00:00"
+    },
+    "attention-native-quick.json": {
+      "test": "gpu_prefill_attn256",
+      "rotary_dim": 64,
+      "points": [],
+      "checks": 63,
+      "failed": 0
+    },
+    "attention-native-comparison.json": {
+      "status": "PASS_EXACT_SCORES_AND_SCOPED_POLICY",
+      "scope": "Production Omega policy with an external counting observer; shared-machine screen, not quiet qualification or server TTFT.",
+      "formula": "seconds=nanoseconds/1e9; reduction_percent=100*(baseline-candidate)/baseline",
+      "binary_sha256": "91fbf9959a21b1e8e4db8e811d58ee3783e816760a8a149c576cb7cb5e9f38c6",
+      "inputs": {
+        "$RECEIPTS/attention-native-profile-probe0-20261101T215541Z": {
+          "receipt_sha256": "e7fcc3205cf8f2481b1d50e38a6924d350b1ed66c91fd558e3a5618b5da78a94",
+          "report_sha256": "542e0ecee64b90be4f8f0587013501e98d9108511172840d23bd8df928a902b2"
+        },
+        "$RECEIPTS/attention-native-profile-probe1-20261101T215711Z": {
+          "receipt_sha256": "a059bbf53a75efe0b39243aebfd3d133a292de969b446d842dc232c06d65a8c9",
+          "report_sha256": "2f7707eda4e4d598d37f9da7d1aa1786f484dde09f4f35e8029fb5f4b7d4326e"
+        }
+      },
+      "rows": [
+        {
+          "trial": 0,
+          "prompt_tokens": 30,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+          "baseline_s": 0.32255004,
+          "candidate_s": 0.326229207,
+          "reduction_percent": -1.1406499903084806,
+          "baseline_attention_call_s": 0.007236356,
+          "candidate_attention_call_s": 0.007342884,
+          "copy_chip_s": 0.0,
+          "scoped_calls": 16,
+          "mirror_copies": 0,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 1,
+          "prompt_tokens": 513,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "751c59e6812c98bedc12ccb72bf878cb7c52fe6734a51a96646b1d0bd5937396",
+          "baseline_s": 1.763473547,
+          "candidate_s": 1.815083543,
+          "reduction_percent": -2.926610160260034,
+          "baseline_attention_call_s": 0.084508389,
+          "candidate_attention_call_s": 0.084548614,
+          "copy_chip_s": 0.0,
+          "scoped_calls": 32,
+          "mirror_copies": 0,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 2,
+          "prompt_tokens": 941,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "36dabb2803481bdd0e552d3c631557e3047d2e233e43f5636dccceae143661c0",
+          "baseline_s": 2.854637079,
+          "candidate_s": 2.853120004,
+          "reduction_percent": 0.053144233680711604,
+          "baseline_attention_call_s": 0.162417473,
+          "candidate_attention_call_s": 0.161741703,
+          "copy_chip_s": 0.0,
+          "scoped_calls": 16,
+          "mirror_copies": 0,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 3,
+          "prompt_tokens": 5017,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+          "baseline_s": 14.534902234,
+          "candidate_s": 14.505424645,
+          "reduction_percent": 0.20280555400672812,
+          "baseline_attention_call_s": 1.247529488,
+          "candidate_attention_call_s": 1.085637108,
+          "copy_chip_s": 0.005656449,
+          "scoped_calls": 32,
+          "mirror_copies": 16,
+          "mirror_allocations": 1
+        },
+        {
+          "trial": 4,
+          "prompt_tokens": 30,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+          "baseline_s": 0.327650407,
+          "candidate_s": 0.319271237,
+          "reduction_percent": 2.557350707029642,
+          "baseline_attention_call_s": 0.005868565,
+          "candidate_attention_call_s": 0.006324492,
+          "copy_chip_s": 0.0,
+          "scoped_calls": 16,
+          "mirror_copies": 0,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 5,
+          "prompt_tokens": 5017,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+          "baseline_s": 14.373191108,
+          "candidate_s": 14.365210285,
+          "reduction_percent": 0.05552575583273181,
+          "baseline_attention_call_s": 1.235630627,
+          "candidate_attention_call_s": 1.047434019,
+          "copy_chip_s": 0.005471651,
+          "scoped_calls": 32,
+          "mirror_copies": 16,
+          "mirror_allocations": 0
+        }
+      ]
+    },
+    "attention-native-boundaries-comparison.json": {
+      "status": "PASS_EXACT_SCORES_AND_SCOPED_POLICY",
+      "scope": "Production Omega policy with an external counting observer; shared-machine screen, not quiet qualification or server TTFT.",
+      "formula": "seconds=nanoseconds/1e9; reduction_percent=100*(baseline-candidate)/baseline",
+      "binary_sha256": "4f259bad1f2c3e0bb1aed92d708e3d64651ab9f61ed1850421723d32a2d573b0",
+      "inputs": {
+        "$RECEIPTS/attention-native-boundaries-probe0-20261101T220526Z": {
+          "receipt_sha256": "123ee46d47aebd6778bc2577d3595f2435456920e9c761d737d4e260c7ad13ea",
+          "report_sha256": "9b4b6d6aad765c8da6240245e0e72d1c69631152c9d24ae57147d62525ec9105"
+        },
+        "$RECEIPTS/attention-native-boundaries-probe1-20261101T220639Z": {
+          "receipt_sha256": "068271887940717917f4123c68856507b3add35ef95e240989c97832fd7582e6",
+          "report_sha256": "fa94e122a98476f89b5caacefa140c2f9c22a58fc8a80842d1d6dbc5700a08c9"
+        }
+      },
+      "rows": [
+        {
+          "trial": 0,
+          "prompt_tokens": 1023,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "9c78df7b97b7850efdd8aae55e2996c28f8370a1ff196cae231cac2031581f7b",
+          "baseline_s": 2.98146795,
+          "candidate_s": 2.940379828,
+          "reduction_percent": 1.378117178821258,
+          "baseline_attention_call_s": 0.192015815,
+          "candidate_attention_call_s": 0.17664932,
+          "copy_chip_s": 0.0,
+          "scoped_calls": 16,
+          "mirror_copies": 0,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 1,
+          "prompt_tokens": 1024,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "330012ebacdc7b58f19cd3dc251f104c3e5d31c6b445f912b4bb067ca26ef479",
+          "baseline_s": 2.974827245,
+          "candidate_s": 2.954201348,
+          "reduction_percent": 0.6933477241297755,
+          "baseline_attention_call_s": 0.178152425,
+          "candidate_attention_call_s": 0.165616685,
+          "copy_chip_s": 0.005454094,
+          "scoped_calls": 16,
+          "mirror_copies": 16,
+          "mirror_allocations": 1
+        },
+        {
+          "trial": 2,
+          "prompt_tokens": 1025,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "1b81e6713689f99540764226ab8258f484ca8a1b503fb77e586b44a7da6f234f",
+          "baseline_s": 3.135915799,
+          "candidate_s": 3.139989463,
+          "reduction_percent": -0.1299034878837957,
+          "baseline_attention_call_s": 0.179553366,
+          "candidate_attention_call_s": 0.16586277,
+          "copy_chip_s": 0.005708974,
+          "scoped_calls": 16,
+          "mirror_copies": 16,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 3,
+          "prompt_tokens": 2049,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "302240174ce7ad0120cef305bda6f1dd6725c07459a80aeaf666732cfc03a414",
+          "baseline_s": 6.089043099,
+          "candidate_s": 6.141841808,
+          "reduction_percent": -0.8671101212712897,
+          "baseline_attention_call_s": 0.395871141,
+          "candidate_attention_call_s": 0.375040216,
+          "copy_chip_s": 0.005551945,
+          "scoped_calls": 48,
+          "mirror_copies": 16,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 4,
+          "prompt_tokens": 2049,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "302240174ce7ad0120cef305bda6f1dd6725c07459a80aeaf666732cfc03a414",
+          "baseline_s": 6.114124817,
+          "candidate_s": 6.116345962,
+          "reduction_percent": -0.036328093823407466,
+          "baseline_attention_call_s": 0.392014981,
+          "candidate_attention_call_s": 0.392963091,
+          "copy_chip_s": 0.0,
+          "scoped_calls": 48,
+          "mirror_copies": 0,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 5,
+          "prompt_tokens": 30,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+          "baseline_s": 0.287883813,
+          "candidate_s": 0.284561521,
+          "reduction_percent": 1.154039181772266,
+          "baseline_attention_call_s": 0.00605,
+          "candidate_attention_call_s": 0.006076961,
+          "copy_chip_s": 0.0,
+          "scoped_calls": 16,
+          "mirror_copies": 0,
+          "mirror_allocations": 0
+        },
+        {
+          "trial": 6,
+          "prompt_tokens": 1024,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "330012ebacdc7b58f19cd3dc251f104c3e5d31c6b445f912b4bb067ca26ef479",
+          "baseline_s": 2.922651369,
+          "candidate_s": 2.925919289,
+          "reduction_percent": -0.1118135414528807,
+          "baseline_attention_call_s": 0.177778925,
+          "candidate_attention_call_s": 0.152960959,
+          "copy_chip_s": 0.005381641,
+          "scoped_calls": 16,
+          "mirror_copies": 16,
+          "mirror_allocations": 0
+        }
+      ]
+    },
+    "attention-native-long32-comparison.json": {
+      "status": "PASS_EXACT_SCORES_AND_SCOPED_POLICY",
+      "scope": "Production Omega policy with an external counting observer; shared-machine screen, not quiet qualification or server TTFT.",
+      "formula": "seconds=nanoseconds/1e9; reduction_percent=100*(baseline-candidate)/baseline",
+      "binary_sha256": "b1b76f84307f722983e4a145bf873c0551aec38ba0106c0e49ef62d54fa77a2f",
+      "inputs": {
+        "$RECEIPTS/attention-native-long32-probe0-20261101T215933Z": {
+          "receipt_sha256": "2205c279a7988122779f8fd13cc0089fe200115bf4c72573d02263df1e69f0f3",
+          "report_sha256": "1cc837509db08fc8ea17eaff4a7642f810c752b6773225d805c557053c359ca9"
+        },
+        "$RECEIPTS/attention-native-long32-probe1-20261101T220233Z": {
+          "receipt_sha256": "88442434113b57c946eaeb9c42b7ad8230f76fdf3936e3a0f5cdecbf23086337",
+          "report_sha256": "2c74702bea21d55b0abbd8736a2312b68bdc772be46d357d5cbf37e12b9557c9"
+        }
+      },
+      "rows": [
+        {
+          "trial": 0,
+          "prompt_tokens": 32768,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "5968be65d82c7850ff7ffa41cc030da9fe6c2a8582874f5290555bf9df026bfd",
+          "baseline_s": 109.500214625,
+          "candidate_s": 103.451106286,
+          "reduction_percent": 5.524289025109296,
+          "baseline_attention_call_s": 24.057411949,
+          "candidate_attention_call_s": 18.384451928,
+          "copy_chip_s": 0.21355748,
+          "scoped_calls": 128,
+          "mirror_copies": 128,
+          "mirror_allocations": 1
+        },
+        {
+          "trial": 1,
+          "prompt_tokens": 30,
+          "all_score_bits_and_next_equal": true,
+          "score_sha256": "35f781e4c3ccf8f232c13bdfccc1bf4d95c31ab628fd0c3382bab50d2468627d",
+          "baseline_s": 0.303417755,
+          "candidate_s": 0.292779797,
+          "reduction_percent": 3.5060433427832858,
+          "baseline_attention_call_s": 0.006147739,
+          "candidate_attention_call_s": 0.006220015,
+          "copy_chip_s": 0.0,
+          "scoped_calls": 16,
+          "mirror_copies": 0,
+          "mirror_allocations": 0
+        }
+      ]
+    },
+    "attention-native-long32-frozen-reference.json": {
+      "status": "PASS_FROZEN_LONG32_REFERENCE",
+      "scope": "New production baseline matches earlier independent ordinary-path long32 complete-score files, including short-after-long.",
+      "directories": [
+        "$RECEIPTS/attention-model-mirror-long32-probe0-20261101T213344Z",
+        "$RECEIPTS/attention-native-long32-probe0-20261101T215933Z"
+      ],
+      "fixture_sha256": "89f7865eeac4424984c11ace38314f66a36eb99ca2e9d928d646e09622f7a06a",
+      "rows": [
+        {
+          "trial": 0,
+          "score_sha256": "5968be65d82c7850ff7ffa41cc030da9fe6c2a8582874f5290555bf9df026bfd"
+        },
+        {
+          "trial": 1,
+          "score_sha256": "35f781e4c3ccf8f232c13bdfccc1bf4d95c31ab628fd0c3382bab50d2468627d"
+        }
+      ]
+    },
+    "attention-native-negative.json": {
+      "status": "PASS_EXPECTED_NONFINITE_REJECTION",
+      "directory": "$RECEIPTS/attention-native-profile-probecorrupt-20261101T215839Z",
+      "binary_sha256": "91fbf9959a21b1e8e4db8e811d58ee3783e816760a8a149c576cb7cb5e9f38c6",
+      "receipt_sha256": "f6fe36f122084b4b2bcc3693ea84ceb87cff7845920f6fe4ee1e9b74ab443f97",
+      "log_sha256": "00d27dd2a17899d507a5eaee9ba2bc584b90646d74a75a68c7c4c326d49a6ccb",
+      "scope": "External observer damages first returned attention output; full-score checker rejects before writing any passing row."
+    },
+    "attention-core-old-archive.json": {
+      "started": "2026-11-01T22:08:11.313839+00:00",
+      "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+      "archive_sha256": "752564da817349a38ced23a8beda735f221afce78b1dce0a2e20ea09be1d5ce0",
+      "command": [
+        "taskset",
+        "-c",
+        "12-13",
+        "nice",
+        "-n",
+        "19",
+        "cargo",
+        "test",
+        "--locked",
+        "--offline",
+        "--release",
+        "--lib",
+        "-p",
+        "aien-omega-q38"
+      ],
+      "scope": "Older native archive has prefill but lacks scoped mirror entry; explicit selection must refuse while legacy adapter builds.",
+      "exit_code": 0,
+      "ended": "2026-11-01T22:08:22.380979+00:00"
+    },
+    "attention-serving-short-final.json": {
+      "status": "PASS",
+      "scope": "Shared-machine serving correctness, not quiet timing qualification",
+      "directory": "$RECEIPTS/attention-clean-reading-short-20261101T220744Z",
+      "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+      "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+      "native_archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+      "events_sha256": "dc17a311cb3d1a8360ed56714eb77d2a20a907fbabfb584a052df560266378ce",
+      "checker_sha256": "bb57a6d0a9c8cbdfe96c8cf1a3f725f775cdca6cb4a780121e73495311786052",
+      "server_exit": 0,
+      "ttft": [
+        {
+          "trial": 0,
+          "first_visible_s": 0.3048270510043949,
+          "completed_s": 0.30504918098449707
+        },
+        {
+          "trial": 1,
+          "first_visible_s": 0.3035210730158724,
+          "completed_s": 0.30372265801997855
+        },
+        {
+          "trial": 2,
+          "first_visible_s": 0.3018241479876451,
+          "completed_s": 0.3020443099667318
+        }
+      ],
+      "correctness_summary_sha256": "3646bdefd15d3d4687fce707cd74a3778da60adc0510ad4b8d82ce683a3cee5a",
+      "quality": {
+        "coding_seven_cases_pass": true,
+        "coding_repeat_tokens_identical": true,
+        "prose_repeat_tokens_identical": true,
+        "prose_word_count": 115
+      },
+      "sampled32_exact": true,
+      "sampled_reference_sha256": "b5a60ca8dd005ba3e5daa0d1a365375ba8af03661580f33dee590b76c6659e68",
+      "sampled_file_sha256": "fd8676cff89ef6f3b626d428dc90922bfab78662909b840dd5db64c5e3634ac2",
+      "stream": [
+        {
+          "first_visible_s": 0.2814186100149527,
+          "completed_s": 31.78127289697295
+        }
+      ]
+    },
+    "attention-baseline-serving-long32-final.json": {
+      "status": "PASS",
+      "scope": "Shared-machine serving correctness, not quiet timing qualification",
+      "directory": "$RECEIPTS/attention-baseline-reading-long32-20261101T221317Z",
+      "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+      "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+      "native_archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+      "events_sha256": "d7576288c2983b3299c568814a9331fc0f1951ea2b34fddbbead4058747707f5",
+      "checker_sha256": "4622d985058ce2f316d4448a09ccec6fe3aad75d2774cabbeecb503560c28fa5",
+      "server_exit": 0,
+      "ttft": [
+        {
+          "trial": 0,
+          "first_visible_s": 0.2966060619801283,
+          "completed_s": 0.29693475196836516
+        },
+        {
+          "trial": 1,
+          "first_visible_s": 0.2766931710066274,
+          "completed_s": 0.27700125402770936
+        },
+        {
+          "trial": 2,
+          "first_visible_s": 0.2764042890048586,
+          "completed_s": 0.27671019500121474
+        }
+      ],
+      "rows": [
+        {
+          "name": "long-cold",
+          "wall_s": 109.73309939197497,
+          "first_visible_s": 108.37207425601082
+        },
+        {
+          "name": "long-resumed",
+          "wall_s": 1.7773851879755966,
+          "first_visible_s": 0.41870647098403424
+        },
+        {
+          "name": "long-follow-cold",
+          "wall_s": 110.28245649801102,
+          "first_visible_s": 108.91847210697597
+        }
+      ],
+      "actual_prompt_tokens": 32768,
+      "retrieval_and_followup_parity": true
+    },
+    "attention-serving-long32-final.json": {
+      "status": "PASS",
+      "scope": "Shared-machine serving correctness, not quiet timing qualification",
+      "directory": "$RECEIPTS/attention-clean-reading-long32-20261101T221801Z",
+      "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+      "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+      "native_archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+      "events_sha256": "54c32226828da4b3a1f2036ac7cbbcacee0d927e970e5cbeb3e232985cc6c331",
+      "checker_sha256": "bb57a6d0a9c8cbdfe96c8cf1a3f725f775cdca6cb4a780121e73495311786052",
+      "server_exit": 0,
+      "ttft": [
+        {
+          "trial": 0,
+          "first_visible_s": 0.28204494796227664,
+          "completed_s": 0.28234910999890417
+        },
+        {
+          "trial": 1,
+          "first_visible_s": 0.26950368704274297,
+          "completed_s": 0.2697978650103323
+        },
+        {
+          "trial": 2,
+          "first_visible_s": 0.2774197229882702,
+          "completed_s": 0.2777193739893846
+        }
+      ],
+      "rows": [
+        {
+          "name": "long-cold",
+          "wall_s": 106.08346427499782,
+          "first_visible_s": 104.72773140401114
+        },
+        {
+          "name": "long-resumed",
+          "wall_s": 1.7694314229884185,
+          "first_visible_s": 0.39178861398249865
+        },
+        {
+          "name": "long-follow-cold",
+          "wall_s": 104.4376475510071,
+          "first_visible_s": 103.07380026899045
+        }
+      ],
+      "actual_prompt_tokens": 32768,
+      "retrieval_and_followup_parity": true
+    },
+    "attention-serving-long32-pair.json": {
+      "status": "PASS_SAME_BINARY_SERVING_PAIR",
+      "scope": "same immutable server; shared-machine correctness and TTFT comparison, not quiet qualification",
+      "formula": "reduction_percent=100*(baseline-candidate)/baseline; all time values in seconds",
+      "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+      "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+      "archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+      "prompt_tokens": 32768,
+      "rows": [
+        {
+          "name": "long-cold",
+          "baseline_first_visible_s": 108.37207425601082,
+          "candidate_first_visible_s": 104.72773140401114,
+          "reduction_percent": 3.362806218316477
+        },
+        {
+          "name": "long-resumed",
+          "baseline_first_visible_s": 0.41870647098403424,
+          "candidate_first_visible_s": 0.39178861398249865,
+          "reduction_percent": 6.428813230011437
+        },
+        {
+          "name": "long-follow-cold",
+          "baseline_first_visible_s": 108.91847210697597,
+          "candidate_first_visible_s": 103.07380026899045,
+          "reduction_percent": 5.36609789406987
+        }
+      ],
+      "inputs": {
+        "$RECEIPTS/attention-baseline-serving-long32-final.json": "27dfb04b3a2758b2e788d3b494686f09b6ac4fb76b2668647f26154380c67730",
+        "$RECEIPTS/attention-serving-long32-final.json": "dec104c1bae391a419ced54777e1c6ba1fed9378575ccd7ff53fcb5499fde0e9"
+      }
+    },
+    "attention-clean-server-build.json": {
+      "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+      "archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+      "command": [
+        "taskset",
+        "-c",
+        "12-13",
+        "nice",
+        "-n",
+        "19",
+        "cargo",
+        "build",
+        "--locked",
+        "--offline",
+        "--release",
+        "-p",
+        "aien-serve-http",
+        "--bin",
+        "aien-serve-http"
+      ],
+      "started": "2026-11-01T21:55:39.013560+00:00",
+      "exit_code": 0,
+      "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+      "ended": "2026-11-01T21:57:04.444320+00:00"
+    },
+    "attention-native-pinned-tool-repair.json": {
+      "started": "2026-11-01T22:09:38.656710+00:00",
+      "command": [
+        "taskset",
+        "-c",
+        "10-13",
+        "nice",
+        "-n",
+        "19",
+        "make",
+        "-j2",
+        "OUT_DIR=build-attention-mirror",
+        "test-om-spec-encoder",
+        "test-om-units"
+      ],
+      "tool_pins": {
+        "$TMP/ribbon-seed-compiler/seed/out/omc": "2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f",
+        "$TMP/optimize27-bridge/src/toc.om": "3a416aea14770bd3fab4880337e89020c10476214d7a3c139d8cd1a8ba1423e6",
+        "$TMP/optimize27-bridge/tools/bridge-seeded": "23ff7a2356bb5d980060a4685a27ac46587013069b7d24b37c2873d7ee659b37",
+        "$TMP/optimize27-bridge/src/freest.om": "836cbf9ef8a3c4ee82b0458070884405bc8296f83b10f933556bf27750bb3661",
+        "$TMP/optimize27-bridge/tools/bridge-freest": "51b41794e7001c5606b715fd7de8a34ec935a6e4e4bc1da36ad08102c009537d",
+        "$TMP/optimize27-bridge/src/native.om": "45935a64f46408ba2c964748603b5e5c696a6bda584e4f16a0a0d68b1e71ea06"
+      },
+      "exit_code": 0,
+      "ended": "2026-11-01T22:09:41.975459+00:00"
+    }
+  },
+  "physical_selector": {
+    "source": "/* External call selector for exercising the production scoped entry. No policy or copying here. */\n#include \"omega_gpu_attention_mirror.h\"\nint __wrap_omega_gpu_prefill_attn256(OmegaGpuDecodeAttn256Cache *c, uint32_t layer, uint32_t pos, uint32_t m,\n const float *qkv, float eps, float scale, float *out, OmegaGpuPrefillAttn256Info *info) {\n return omega_gpu_prefill_attn256_scoped(c,layer,pos,m,qkv,eps,scale,out,info,1,0);\n}\n",
+    "sha256": "143a9816bc56ef2d69f08c2e579f0817a0c74cfae743e869fabf899218d3ce33",
+    "build": {
+      "started": "2026-11-01T21:45:56.985848+00:00",
+      "command": [
+        "taskset",
+        "-c",
+        "12-13",
+        "nice",
+        "-n",
+        "19",
+        "cc",
+        "-std=gnu11",
+        "-O2",
+        "-ffp-contract=off",
+        "-DWS_MAX_THREADS=256",
+        "-I$TMP/optimize27-attention-mirror-cudapp/src",
+        "-I$TMP/optimize27-attention-mirror-cudapp/tests",
+        "$TMP/optimize27-attention-mirror-cudapp/tests/gpu_prefill_attn256_test.c",
+        "$RECEIPTS/attention-native-selector.c",
+        "$TMP/optimize27-attention-mirror-cudapp/build-attention-mirror/libomega_gpu.a",
+        "-Wl,--wrap=omega_gpu_prefill_attn256",
+        "-lpthread",
+        "-lm",
+        "-o",
+        "$RECEIPTS/attention-native-quick-test"
+      ],
+      "source_head": "ede9c14ca71fca1fe8503d09a0a11edb02a3fef6",
+      "selector_sha256": "143a9816bc56ef2d69f08c2e579f0817a0c74cfae743e869fabf899218d3ce33",
+      "native_archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+      "exit_code": 0,
+      "ended": "2026-11-01T21:45:57.912485+00:00",
+      "binary_sha256": "4effe6800dd7a75126cbc45437814f16bd0aa0a4b45448d0753c243a5092d7ee"
+    }
+  },
+  "preserved_failed_full_suites": [
+    {
+      "receipt_sha256": "68d46b19afdee216c1d607a910bbc454285efbf5ff7de2aaa9bd9a55a217a083",
+      "log_sha256": "1e16a7457e69b8de74d8853c6e33ed56ac9e9af84484932b94e65581c5e9c383",
+      "repair": "Add omitted public header row to portability table; gate and controls pass."
+    },
+    {
+      "receipt_sha256": "71d4202dd3e294a946a722c396561e13b1d31c8d9ce59eb3db34fbc4c826285b",
+      "log_sha256": "bd107c92c14654932ed779af5f8f6542e5c07c4fdf47b0ab539d671f24e57902",
+      "repair": "Restore explicit pinned compiler and Bridge paths in external runner; regenerated bindings unchanged; full suite passes."
+    }
+  ],
+  "calculation": {
+    "formula": "seconds = nanoseconds / 1e9; reduction_percent = 100 * (baseline - candidate) / baseline",
+    "independent_wolfram_receipt_sha256": {
+      "wolfram-reading-reduction.json": "a434b297f3ce540a8e52e4dfc7c518702332e74741d862580b67b4e252eadfe7",
+      "wolfram-server-pair.json": "c6c2d0debf8ad2870859b6c4dfbe3d8bf9fa1a1ad34235177fbd03c10ef4b771"
+    }
+  }
+}
diff --git a/om/attention-mirror/mutants.py b/om/attention-mirror/mutants.py
new file mode 100644
index 00000000..9baaa7f2
--- /dev/null
+++ b/om/attention-mirror/mutants.py
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External source-mutant verification, not a production dependency.
+import hashlib,os,subprocess,tempfile
+from pathlib import Path
+root=Path(__file__).resolve().parents[2]
+source=(root/'om/attention-mirror/plan.om').read_text()
+mutants={
+ 'lose_plane_slack':('add mul maxpos 2048 8256','mul maxpos 2048'),
+ 'admit_wrong_shape':('ne qheads 24','eq qheads 24'),
+ 'lose_position_bound':('if gt rows sub maxpos pos','if lt rows sub maxpos pos'),
+ 'copy_tiny_requests':('lt rows 1024','lt rows 1'),
+ 'copy_one_plane':('ret mul plane 2','ret plane'),
+}
+
+
+ident=(root/'src/cudapp_om_attn_mirror_plan.ident').read_text().strip()
+pins=dict(part.split('=',1) for part in ident.split() if '=' in part)
+assert hashlib.sha256(Path(os.environ['OMEGA_OMC']).read_bytes()).hexdigest()==pins['omc']
+env=dict(os.environ,OMEGA_SEEDED_OMC=os.environ['OMEGA_OMC'])
+bridge=Path(os.environ['OMEGA_BRIDGE'])/'tools/bridge-seeded'
+assert hashlib.sha256(bridge.read_bytes()).hexdigest()==pins['frontend']
+assert hashlib.sha256((bridge.parent.parent/'src/toc.om').read_bytes()).hexdigest()==pins['converter']
+with tempfile.TemporaryDirectory(prefix='prefill-shape-mutants-') as t:
+ t=Path(t)
+ for name,(old,new) in mutants.items():
+  assert source.count(old)==1
+  om=t/(name+'.om');om.write_text(source.replace(old,new))
+  c=t/(name+'.c');so=t/(name+'.so')
+  with c.open('w') as f:subprocess.run(['sh',str(bridge),'c',str(om)],env=env,stdout=f,check=True)
+  subprocess.run([os.environ.get('CC','cc'),'-O2','-shared','-fPIC',str(c),str(root/'src/cudapp_om_attn_mirror_step.c'),'-o',str(so)],check=True)
+  p=subprocess.run(['python3',str(root/'om/attention-mirror/check.py'),str(so)],capture_output=True,text=True)
+  assert p.returncode!=0,name+' escaped oracle'
+  assert 'AssertionError' in p.stderr,(name,p.stderr)
+  print(name+': caught',flush=True)
+
+source=(root/'om/attention-mirror/step.om').read_text()
+mutants={
+ 'advance_failed_copy':('if ne ok 1','if gt ok 1'),
+ 'skip_copy':('ret 3','ret 4'),
+ 'reuse_too_small':('if gt need have','if lt need have'),
+ 'accept_short_allocation':('if lt have need','if gt have need'),
+}
+with tempfile.TemporaryDirectory(prefix='attention-step-mutants-') as t:
+ t=Path(t)
+ for name,(old,new) in mutants.items():
+  assert source.count(old)==1
+  om=t/(name+'.om');om.write_text(source.replace(old,new))
+  c=t/(name+'.c');so=t/(name+'.so')
+  with c.open('w') as f:subprocess.run(['sh',str(bridge),'c',str(om)],env=env,stdout=f,check=True)
+  subprocess.run([os.environ.get('CC','cc'),'-O2','-shared','-fPIC',str(c),str(root/'src/cudapp_om_attn_mirror_plan.c'),'-o',str(so)],check=True)
+  p=subprocess.run(['python3',str(root/'om/attention-mirror/check.py'),str(so)],capture_output=True,text=True)
+  assert p.returncode!=0 and 'AssertionError' in p.stderr,(name,p.stderr)
+  print(name+': caught',flush=True)
diff --git a/om/attention-mirror/plan.om b/om/attention-mirror/plan.om
new file mode 100644
index 00000000..64f1aa70
--- /dev/null
+++ b/om/attention-mirror/plan.om
@@ -0,0 +1,35 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Scoped 27B attention mirror plan. Zero bypasses, all-ones refuses, otherwise bytes.
+note The native layout has four heads, 512 bytes per row and 8256 bytes tail slack per plane.
+note Modes: 0 ordinary, 1 mirror all rows, 2 provisional adaptive threshold at 1024 rows.
+fn native_attnmirplan q view ulong 7 to ulong
+mode = get q 0
+qheads = get q 1
+kvheads = get q 2
+maxpos = get q 3
+pos = get q 4
+rows = get q 5
+plane = get q 6
+if or gt mode 2 or ne qheads 24 ne kvheads 4
+ret 18446744073709551615
+end
+if or eq maxpos 0 gt maxpos 131072
+ret 18446744073709551615
+end
+if or eq rows 0 gt rows 32768
+ret 18446744073709551615
+end
+if gt pos maxpos
+ret 18446744073709551615
+end
+if gt rows sub maxpos pos
+ret 18446744073709551615
+end
+if ne plane add mul maxpos 2048 8256
+ret 18446744073709551615
+end
+if or eq mode 0 and eq mode 2 lt rows 1024
+ret 0
+end
+ret mul plane 2
+end
diff --git a/om/attention-mirror/serving128-validation.json b/om/attention-mirror/serving128-validation.json
new file mode 100644
index 00000000..e5ba028a
--- /dev/null
+++ b/om/attention-mirror/serving128-validation.json
@@ -0,0 +1,60 @@
+{
+  "status": "PASS_SERVING128K",
+  "utc": "2026-11-01T22:59:52.036456+00:00",
+  "scope": "Candidate serving correctness on shared machine; not a paired speed comparison or quiet performance qualification.",
+  "receipt": {
+    "status": "PASS",
+    "scope": "Shared-machine serving correctness, not quiet timing qualification",
+    "directory": "$RECEIPTS/attention-clean-reading-long128-20261101T223835Z",
+    "server_sha256": "1ce91df0454acbb77ade0c0e06c5ac4acbe3312045439497f96b6316bc7fe43c",
+    "source_core": "7d5141008012c53f9c7dcd7c9e045652dd96db5e",
+    "native_archive_sha256": "965bfedc062aa9b5594468198a8b1d4c5cfd23b65d39777e7fb2a06ba7cb5a2d",
+    "events_sha256": "2e13cb3b697ef1392eb8e3d2e9bb92c6c570b0afb72c65b150f9b4ed498d9d5b",
+    "checker_sha256": "bb57a6d0a9c8cbdfe96c8cf1a3f725f775cdca6cb4a780121e73495311786052",
+    "server_exit": 0,
+    "ttft": [
+      {
+        "trial": 0,
+        "first_visible_s": 0.30572278797626495,
+        "completed_s": 0.305960037978366
+      },
+      {
+        "trial": 1,
+        "first_visible_s": 0.29659820400411263,
+        "completed_s": 0.296798846044112
+      },
+      {
+        "trial": 2,
+        "first_visible_s": 0.29343546996824443,
+        "completed_s": 0.29363678401568905
+      }
+    ],
+    "rows": [
+      {
+        "name": "long-cold",
+        "wall_s": 572.4547912859707,
+        "first_visible_s": 570.3117875239695
+      },
+      {
+        "name": "long-resumed",
+        "wall_s": 2.898457432980649,
+        "first_visible_s": 0.7781901069683954
+      },
+      {
+        "name": "long-follow-cold",
+        "wall_s": 573.0986176449805,
+        "first_visible_s": 570.9670559570077
+      }
+    ],
+    "actual_prompt_tokens": 128000,
+    "retrieval_and_followup_parity": true
+  },
+  "original_receipt_sha256": "585aad9d5b0024b901a1be64297e78b83e6955399668648d75b88e663132cdb0",
+  "raw_runner_receipt_sha256": "66aadd1943105a5c2f15cd5bbaa17f28820baf31fa4efadd3b7de407675ddba6",
+  "earlier_serving_receipts": {
+    "attention-serving-short-final.json": "27872253e76320cd1a03484774fa215938e91aa6fc3f3c2f71ce660aeecea3b0",
+    "attention-serving-long32-pair.json": "09a0a1d33e7ff6b13064835cc8e0ebbedf2666e07931d2ea932b72da142547ad",
+    "attention-serving-long64-final.json": "0be30d7189d163eb1ae7551489d16ccb23379289d727ddde85fc794272745f5a"
+  },
+  "meaning": "Short, paired32K,64K and128K planned serving correctness gates now pass for the immutable candidate. Full-model scores and host checks are in prior immutable receipts. Independent review and quiet timing remain open; no default change or deployment."
+}
diff --git a/om/attention-mirror/step.om b/om/attention-mirror/step.om
new file mode 100644
index 00000000..7518d62e
--- /dev/null
+++ b/om/attention-mirror/step.om
@@ -0,0 +1,42 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Step 0 starts; actions 1 allocate, 2 prep, 3 copy, 4 attend, 5 complete; 0 refuses.
+note Caller reports completion only after each synchronous operation succeeds.
+note A failed allocation or copy cannot advance to attention. No trusted-prefix state exists.
+fn native_attnmirnext phase ulong need ulong have ulong ok ulong to ulong
+if ne ok 1
+ret 0
+end
+if ne need 0
+if or lt need 20608 or gt need 536887424 ne rem need 16 0
+ret 0
+end
+end
+if eq phase 0
+if gt need have
+ret 1
+end
+ret 2
+end
+if eq phase 1
+if lt have need
+ret 0
+end
+ret 2
+end
+if eq phase 2
+if ne need 0
+ret 3
+end
+ret 4
+end
+if eq phase 3
+if eq need 0
+ret 0
+end
+ret 4
+end
+if eq phase 4
+ret 5
+end
+ret 0
+end
diff --git a/om/encoder/amp_runtime.om b/om/encoder/amp_runtime.om
index 35ae9514..afc19fca 100644
--- a/om/encoder/amp_runtime.om
+++ b/om/encoder/amp_runtime.om
@@ -3,6 +3,7 @@ note Pure Ampere runtime decisions and QMD serialization. Host ioctls stay in nv
 note Vendor fields: NVIDIA open-gpu-doc classes/compute/clc7c0qmd.h QMDV03_00.
 note m[0] operation: 1 class-set admission, 2 byte reserve admission, 3 QMD.
 note Class selection m[1]=rawSM,m[2..3]=vendorSM86/121,m[4..9]=Ampere then Blackwell classes,m[10..11]=presence masks.
+note m[12]=vendorSM10.04,m[13..14]=PCI vendor/device. GB10 identity follows the existing qualified chip row.
 note Reserve m[1]=available bytes, m[2]=request bytes, m[3]=reserve bytes.
 note QMD m[1..9]=code,cbank,semaphore,threadsX,threadsY,gridX,gridY,registers,sharedBytes.
 note q is 64 zero-extended uint words, not a native struct. Return 1 accepted or 0 refused.
@@ -30,7 +31,11 @@ put q 3 get m 5
 put q 4 get m 6
 ret 1
 end
-if eq get m 1 get m 3
+gb10 = false
+if and ne get m 12 0 eq get m 1 get m 12
+gb10 = and eq get m 13 4318 eq get m 14 11794
+end
+if or eq get m 1 get m 3 gb10
 if ne get m 11 7
 ret 0
 end
diff --git a/om/pipeline/.crumb b/om/pipeline/.crumb
index 32e75e50..a4daf3fe 100644
--- a/om/pipeline/.crumb
+++ b/om/pipeline/.crumb
@@ -3,14 +3,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-28T15:50:30Z",
+      "compiled_at": "2026-11-01T17:01:19Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:805faf2db4f652d19178a20ad182a980644ef12732768f10ae2c46e756f37fc4",
+      "digest": "sha256:d5d4031eca1d9472f7371fc922a4120f4fbd5bf4f869116ebef7ba0df6622470",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 14,
-      "generated_at_commit": "017069c63f80dca6ebb97f4426296bba9e01ad76",
-      "source_tree": "sha256:ef9e40937892c5ea51254ecf2d8e927c88956fd983eba03e1de48109cb66eba1"
+      "files": 19,
+      "generated_at_commit": "6d51834ad2b46dc23ae11879819694f9d753741d",
+      "source_tree": "sha256:b93ea04280b61be18982e971e6da1ef42f0b93d6cf0ae8747fece6ce9e257254"
     },
     "owner_lane": "PipelineSelect",
     "seed": {
diff --git a/om/pipeline/SEAL_REUSE.md b/om/pipeline/SEAL_REUSE.md
new file mode 100644
index 00000000..356b91f5
--- /dev/null
+++ b/om/pipeline/SEAL_REUSE.md
@@ -0,0 +1,13 @@
+# Reusing a normalized command seal
+
+The native command-list path hashes the driver bank, arguments, and normalized QMD bytes when recording each launch. The two QMD fields that submission changes are zeroed exactly as in `mcc_seal`. In a decode graph many of these images are unchanged from the previous token.
+
+`native_mcreseal` owns the reuse decision in Omega. Each command-list slot has an optional, private 2048-byte memo. A hit requires the argument count and every normalized image byte to match. A miss computes the original SHA256, then replaces the memo. Invalid argument counts clear the output and refuse. Allocation failure uses the original uncached function. The memo stays across successful list resets and is freed with the list.
+
+The memo supplies a digest only. Native lease acquisition, revision and epoch checks, recording ownership, completion tracking, and submit-time intent checks still run. It does not admit an artifact or authorize a launch. The cache is caller-owned internal state, never an external serialized credential.
+
+`make test-seal-reuse` compares the result with Python's independent SHA256. It changes every byte of both input arrays, tests every argument count in both directions, includes all-zero images, and checks invalid counts and repeated hits. On a host that runs the pinned Omega compiler, five source mutants prove the oracle catches missing comparisons, a missing count check, a skipped byte, incorrect normalization, and a dirty refusal output. Python is an external verification tool only.
+
+The full-model speed result remains pending. Initial shared-machine diagnostic data is recorded separately; no default-serving or first-token improvement is asserted here.
+
+The generated integer seal unit is compiled at `-O3`, including its independent oracle and source mutants. Other library units keep their existing settings. No fast-math option is added. `CUDAPP_SEAL_OPT=-O2` selects the comparison build; use a distinct `OUT_DIR` per setting. Host screening found faster cold hashing and repeated-byte comparison with identical SHA256 results; full-model evidence remains a separate requirement.
diff --git a/om/pipeline/seal-build-validation.json b/om/pipeline/seal-build-validation.json
new file mode 100644
index 00000000..eaf4eec3
--- /dev/null
+++ b/om/pipeline/seal-build-validation.json
@@ -0,0 +1,229 @@
+{
+  "status": "PASS correctness; shared-machine timing diagnostic only",
+  "core_source": "f0acdc7dc460e1984aa72bba515ea35c3eac2d55",
+  "cudapp_source_base": "009ada7602c70755e3fb8cd6d9cd776a30ad9c39",
+  "change": "Only generated integer seal unit compiled at O3; no fast math",
+  "compiler": "cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0",
+  "library_sha256": "21590c04cadece115fc4b96e94128301af07c800c13e5df7baf1622869157be5",
+  "object_diff": {
+    "added": [],
+    "removed": [],
+    "changed": [
+      "cudapp_om_closure_reseal.o"
+    ]
+  },
+  "oracle_cases": 6304,
+  "source_mutants_caught": 5,
+  "native_runtime_tests_passed": 27,
+  "host_timing": {
+    "scope": "host diagnostic only",
+    "rows": [
+      {
+        "mode": "cold",
+        "pair": 0,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 142387205
+      },
+      {
+        "mode": "cold",
+        "pair": 0,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 64496545
+      },
+      {
+        "mode": "cold",
+        "pair": 1,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 64521633
+      },
+      {
+        "mode": "cold",
+        "pair": 1,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 141692080
+      },
+      {
+        "mode": "cold",
+        "pair": 2,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 141659664
+      },
+      {
+        "mode": "cold",
+        "pair": 2,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 64570033
+      },
+      {
+        "mode": "cold",
+        "pair": 3,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 64029005
+      },
+      {
+        "mode": "cold",
+        "pair": 3,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 141439406
+      },
+      {
+        "mode": "cold",
+        "pair": 4,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 141299069
+      },
+      {
+        "mode": "cold",
+        "pair": 4,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 64607490
+      },
+      {
+        "mode": "warm",
+        "pair": 0,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 12080890
+      },
+      {
+        "mode": "warm",
+        "pair": 0,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 5116070
+      },
+      {
+        "mode": "warm",
+        "pair": 1,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 5120183
+      },
+      {
+        "mode": "warm",
+        "pair": 1,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 12078906
+      },
+      {
+        "mode": "warm",
+        "pair": 2,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 12079354
+      },
+      {
+        "mode": "warm",
+        "pair": 2,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 5117750
+      },
+      {
+        "mode": "warm",
+        "pair": 3,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 5117238
+      },
+      {
+        "mode": "warm",
+        "pair": 3,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 12079418
+      },
+      {
+        "mode": "warm",
+        "pair": 4,
+        "optimization": "O2",
+        "calls": 512,
+        "total_ns": 12079754
+      },
+      {
+        "mode": "warm",
+        "pair": 4,
+        "optimization": "O3",
+        "calls": 512,
+        "total_ns": 5118470
+      }
+    ]
+  },
+  "serving": {
+    "workers-default": {
+      "binary_sha256": "50159c11f87b0140818324254011c9f8f237bb52fcae2722ef34a82ec34c20f5",
+      "first_visible_seconds": [
+        0.4953926330199465,
+        0.502205659984611,
+        0.48923380399355665
+      ],
+      "requests": [
+        {
+          "name": "exact128",
+          "wall_seconds": 16.66915816598339,
+          "token_ids_sha256": "8d3ae59b4eb2f5be2a7e705c081d3654f8dacedd62d719dac7503fb5fa54c004",
+          "model_stats": "aien-serve-http: qwen38: lock wait 0 ms, prompt 30 tok, reuse Snapshot(23) (23 tok), fed 7 (0 stepped), prefill 235 ms (gemm chip 152 ms, gdn chip 5 ms, attn chip 0 ms, host 44 ms, restore 11 ms, snapshot 0 ms), decode 128 tok in 16432 ms, graph chip 120.1 ms/token, wall 129.4 ms/token, chip greedy true"
+        },
+        {
+          "name": "sampled",
+          "wall_seconds": 4.818427950027399,
+          "token_ids_sha256": "8900051ea281633f9ef7ae4562d24af8433c04821c9b9cb73faa5c78ef16356c",
+          "model_stats": "aien-serve-http: qwen38: lock wait 0 ms, prompt 21 tok, reuse Cold (0 tok), fed 21 (0 stepped), prefill 467 ms (gemm chip 308 ms, gdn chip 12 ms, attn chip 1 ms, host 100 ms, restore 0 ms, snapshot 10 ms), decode 32 tok in 4350 ms, graph chip 127.0 ms/token, wall 140.3 ms/token, chip greedy false"
+        },
+        {
+          "name": "exact128-after-sampling",
+          "wall_seconds": 16.77317768597277,
+          "token_ids_sha256": "8d3ae59b4eb2f5be2a7e705c081d3654f8dacedd62d719dac7503fb5fa54c004",
+          "model_stats": "aien-serve-http: qwen38: lock wait 0 ms, prompt 30 tok, reuse Cold (0 tok), fed 30 (0 stepped), prefill 477 ms (gemm chip 311 ms, gdn chip 13 ms, attn chip 2 ms, host 93 ms, restore 0 ms, snapshot 10 ms), decode 128 tok in 16294 ms, graph chip 119.6 ms/token, wall 128.3 ms/token, chip greedy true"
+        }
+      ],
+      "owned_server_exit": 0
+    },
+    "seal-o3": {
+      "binary_sha256": "5310d2cb4734e750628a109e18cc0ded3588ab3e06d9962db008d3939bbf4363",
+      "first_visible_seconds": [
+        0.5581696779699996,
+        0.5268060020171106,
+        0.5595134629984386
+      ],
+      "requests": [
+        {
+          "name": "exact128",
+          "wall_seconds": 15.436602974019479,
+          "token_ids_sha256": "8d3ae59b4eb2f5be2a7e705c081d3654f8dacedd62d719dac7503fb5fa54c004",
+          "model_stats": "aien-serve-http: qwen38: lock wait 0 ms, prompt 30 tok, reuse Snapshot(23) (23 tok), fed 7 (0 stepped), prefill 255 ms (gemm chip 149 ms, gdn chip 5 ms, attn chip 0 ms, host 71 ms, restore 8 ms, snapshot 0 ms), decode 128 tok in 15180 ms, graph chip 116.5 ms/token, wall 119.5 ms/token, chip greedy true"
+        },
+        {
+          "name": "sampled",
+          "wall_seconds": 4.559978285979014,
+          "token_ids_sha256": "8900051ea281633f9ef7ae4562d24af8433c04821c9b9cb73faa5c78ef16356c",
+          "model_stats": "aien-serve-http: qwen38: lock wait 0 ms, prompt 21 tok, reuse Cold (0 tok), fed 21 (0 stepped), prefill 522 ms (gemm chip 302 ms, gdn chip 12 ms, attn chip 1 ms, host 162 ms, restore 0 ms, snapshot 9 ms), decode 32 tok in 4036 ms, graph chip 123.8 ms/token, wall 130.2 ms/token, chip greedy false"
+        },
+        {
+          "name": "exact128-after-sampling",
+          "wall_seconds": 15.926157885987777,
+          "token_ids_sha256": "8d3ae59b4eb2f5be2a7e705c081d3654f8dacedd62d719dac7503fb5fa54c004",
+          "model_stats": "aien-serve-http: qwen38: lock wait 0 ms, prompt 30 tok, reuse Cold (0 tok), fed 30 (0 stepped), prefill 554 ms (gemm chip 305 ms, gdn chip 13 ms, attn chip 2 ms, host 177 ms, restore 0 ms, snapshot 10 ms), decode 128 tok in 15370 ms, graph chip 117.8 ms/token, wall 121.0 ms/token, chip greedy true"
+        }
+      ],
+      "owned_server_exit": 0
+    }
+  },
+  "limits": [
+    "Single fresh-process server screen per build, not alternating performance qualification.",
+    "Other CPU work was active. First-response probes show no accepted gain.",
+    "The earlier full host suite tests the unchanged O2 sources; optimized unit has separate oracle, mutation and native-runtime coverage.",
+    "No serving default or deployment changed."
+  ]
+}
diff --git a/om/pipeline/seal-reuse-check.py b/om/pipeline/seal-reuse-check.py
new file mode 100644
index 00000000..40dd53c3
--- /dev/null
+++ b/om/pipeline/seal-reuse-check.py
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External independent SHA256 oracle for the Omega normalized-command memo.
+import ctypes,hashlib,json,random,sys,time
+from pathlib import Path
+l=ctypes.CDLL(sys.argv[1]);fn=l.omega_native_mcreseal
+fn.argtypes=[ctypes.POINTER(ctypes.c_uint64),ctypes.c_void_p,ctypes.c_uint64,ctypes.c_void_p,ctypes.c_uint64,ctypes.c_uint64,ctypes.c_void_p,ctypes.c_uint64,ctypes.c_void_p,ctypes.c_uint64]
+U=ctypes.c_ubyte
+b=(U*1024)();q=(U*1024)();c=(U*2048)();o=(U*32)();r=ctypes.c_uint64()
+rng=random.Random(710)
+for a in (b,q):
+ for i in range(1024):a[i]=rng.randrange(256)
+def digest(n):
+ v=bytearray(q[:384]);v[40:44]=bytes(4);v[48:52]=bytes(4)
+ return hashlib.sha256(bytes(b[:896+n*4])+v+bytes(q[512:896])).digest()
+cases=0
+def check(n):
+ global cases
+ for i in range(32):o[i]=255
+ rc=fn(ctypes.byref(r),b,1024,q,1024,n,c,2048,o,32)
+ assert rc==0,(rc,n)
+ if 1<=n<=32:assert r.value==0 and bytes(o)==digest(n),(n,r.value,bytes(o).hex(),digest(n).hex())
+ else:assert r.value==2**64-1 and bytes(o)==bytes(32)
+ cases+=1
+for n in (0,1,2,10,31,32,33,2**64-1,10):check(n);check(n)
+# Every byte of both inputs: covered mutations must refresh, ignored bytes must retain exact digest.
+for a in (b,q):
+ for i in range(1024):
+  a[i]^=1;check(32);check(32);a[i]^=1;check(32)
+# Same bytes interpreted with each argument count, both directions.
+for n in list(range(1,33))+list(range(32,0,-1)):check(n);check(n)
+# Zero commands have equal overlapping prefixes across argument counts.
+for a in (b,q):
+ for i in range(1024):a[i]=0
+for n in (32,1,32,2,31,10):check(n);check(n)
+check(10);start=time.perf_counter_ns()
+for i in range(256):
+ assert fn(ctypes.byref(r),b,1024,q,1024,10,c,2048,o,32)==0 and r.value==0
+elapsed=time.perf_counter_ns()-start
+# Refresh cold memo as well, proving no prior command is required.
+for i in range(2048):c[i]=0
+check(10)
+print(json.dumps({'pass':True,'oracle_cases':cases,'warm_calls':256,'warm_total_ns':elapsed,'all_input_byte_mutations':2048,'oracle':'Python hashlib.sha256 over original normalized byte contract'}))
diff --git a/om/pipeline/seal-reuse-mutants.py b/om/pipeline/seal-reuse-mutants.py
new file mode 100644
index 00000000..3f5e157f
--- /dev/null
+++ b/om/pipeline/seal-reuse-mutants.py
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External source-mutant verification, not a production dependency.
+import hashlib,os,subprocess,tempfile
+from pathlib import Path
+root=Path(__file__).resolve().parents[2]
+source=(root/'om/pipeline/seal_reuse.om').read_text()
+mutants={
+ 'ignore_all_bytes':('same = false','same = same'),
+ 'ignore_count':('same = and eq get cache 0 1 eq ulong get cache 1 n','same = eq get cache 0 1'),
+ 'ignore_one_byte':('if ne get b i get cache add 64 i\nsame = false\nend','if ne i 1024\nif ne get b i get cache add 64 i\nsame = false\nend\nend'),
+ 'wrong_normalization':('and ge i 48 lt i 52','and ge i 49 lt i 52'),
+ 'dirty_refusal':('mc_clear edit out\nif or eq n 0','if or eq n 0'),
+}
+ident=(root/'src/cudapp_om_closure_reseal.ident').read_text().strip()
+pins=dict(part.split('=',1) for part in ident.split() if '=' in part)
+assert hashlib.sha256(Path(os.environ['OMEGA_OMC']).read_bytes()).hexdigest()==pins['omc']
+paths=ident.split(' path=',1)[1].split('=',1)[1].split(',')
+assert paths[-1]=='om/pipeline/seal_reuse.om'
+prefix='\n'.join((root/p).read_text() for p in paths[:-1])+'\n'
+env=dict(os.environ,OMEGA_SEEDED_OMC=os.environ['OMEGA_OMC'])
+bridge=Path(os.environ['OMEGA_BRIDGE'])/'tools/bridge-seeded'
+assert hashlib.sha256(bridge.read_bytes()).hexdigest()==pins['frontend']
+assert hashlib.sha256((bridge.parent.parent/'src/toc.om').read_bytes()).hexdigest()==pins['converter']
+with tempfile.TemporaryDirectory(prefix='seal-reuse-mutants-') as t:
+ t=Path(t)
+ for name,(old,new) in mutants.items():
+  assert source.count(old)==1,(name,source.count(old))
+  om=t/(name+'.om');om.write_text(prefix+source.replace(old,new))
+  c=t/(name+'.c');so=t/(name+'.so')
+  with c.open('w') as f:subprocess.run(['sh',str(bridge),'c',str(om)],env=env,stdout=f,check=True)
+  subprocess.run([os.environ.get('CC','cc'),os.environ.get('CUDAPP_SEAL_OPT','-O3'),'-shared','-fPIC',str(c),'-o',str(so)],check=True)
+  p=subprocess.run(['python3',str(root/'om/pipeline/seal-reuse-check.py'),str(so)],capture_output=True,text=True)
+  assert p.returncode!=0,name+' escaped oracle'
+  assert 'AssertionError' in p.stderr,(name,p.stderr)
+  print(name+': caught',flush=True)
diff --git a/om/pipeline/seal_reuse.om b/om/pipeline/seal_reuse.om
new file mode 100644
index 00000000..6ff1ec11
--- /dev/null
+++ b/om/pipeline/seal_reuse.om
@@ -0,0 +1,54 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Private command-list memo. Zero-initialized cache is owned by the caller under the session lock.
+note No authority is cached: exact normalized bytes must match before their prior SHA256 is reused.
+note Cache0 valid,1 argument count,32..63 digest,64..1855 normalized image. Other cells unused.
+note Ownership, epoch, revision, admission, and submit-time intent checks still run separately.
+fn native_mcreseal bank view uchar 1024 qmd view uchar 1024 n ulong cache edit uchar 2048 out edit uchar 32 to long
+mc_clear edit out
+if or eq n 0 gt n 32
+ret -1
+end
+b = new uchar 16384 0
+off = add ulong 896 mul n 4
+for i ulong off
+put b i get bank i
+end
+for i ulong 384
+v = get qmd i
+if or and ge i 40 lt i 44 and ge i 48 lt i 52
+v = 0
+end
+put b add off i v
+end
+off = add off 384
+for i ulong 384
+put b add off i get qmd add 512 i
+end
+size = add off 384
+same = and eq get cache 0 1 eq ulong get cache 1 n
+for i ulong size
+if ne get b i get cache add 64 i
+same = false
+end
+end
+if same
+for i ulong 32
+put out i get cache add 32 i
+end
+ret 0
+end
+put cache 0 0
+if ne kc_codesha b size edit out 0
+mc_clear edit out
+ret -1
+end
+for i ulong size
+put cache add 64 i get b i
+end
+for i ulong 32
+put cache add 32 i get out i
+end
+put cache 1 uchar n
+put cache 0 1
+ret 0
+end
diff --git a/om/prefill-shape/.crumb b/om/prefill-shape/.crumb
new file mode 100644
index 00000000..d6d39e3b
--- /dev/null
+++ b/om/prefill-shape/.crumb
@@ -0,0 +1,20 @@
+{
+  "extensions": {
+    "generated": {
+      "children": [],
+      "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+      "compiled_at": "2026-11-01T20:39:42Z",
+      "compiler": "crumb-compile/1",
+      "digest": "sha256:50312e9b639e794fd27ea8c0a76f6834b7d9fe8401615e55dd09a5c80eadaae1",
+      "evidence_files": 0,
+      "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+      "files": 29,
+      "generated_at_commit": "88379395296357571618ebf7f701a6e2cdf8be31",
+      "source_tree": "sha256:d9d47631c2b8d7c2bfed72eaa9d4334eecc4933a233e94fb992f15a828d6a17e"
+    }
+  },
+  "layer": "native-policy",
+  "name": "prefill-shape",
+  "purpose": "Checked Omega admission and work ordering for bounded prompt matrix tiles, with independent parity verification",
+  "schema_version": "1.0.0"
+}
diff --git a/om/prefill-shape/README.md b/om/prefill-shape/README.md
new file mode 100644
index 00000000..b6c2f165
--- /dev/null
+++ b/om/prefill-shape/README.md
@@ -0,0 +1,63 @@
+# Experimental prompt matrix shapes
+
+The Omega policy admits the existing 64-row, eight-warp matrix kernel, an experimental 32-row, four-warp kernel, and the 128-row experiment described below. The default remains 64 rows. The current parameterized emitter, arithmetic order, wait distance, tail masks and device ownership checks are retained.
+
+The 32-row shape reduces padded work for short prompts. This is a hypothesis until chip and full-model measurements establish a benefit. The emitter stages scales in paired row groups; a 16-row shape is not admitted. Shapes outside the explicit admission list remain refused.
+
+`make test-prefill-shape` checks the portable admission boundary, host numerical references and simulated direct/indexed matrix cases, including row tails, natural SwiGLU order and deliberate faults. It does not open a GPU. `om/units.sh --check` verifies generated bindings with the pinned Omega compiler and Bridge.
+
+Hardware reference: NVIDIA PTX ISA9.4, physical page605, warp matrix instruction examples. This change reuses the existing instruction generator and changes its work grouping. The manual is not evidence that this implementation runs correctly; simulator and chip receipts supply that evidence.
+
+The existing `omega_gpu_pf_qgemm_set_shape(2, 4, 45)` test knob selects the candidate. Call it before sizing prefill buffers or building tile tables. Never change shape while a model operation is in flight. No serving option or automatic policy is introduced here.
+
+The separate serving screen in `serving-validation.json` passes two128-token reference runs with a seeded sampled request between them. First-visible latency remains about0.5seconds on the shared machine. The four-matrix chip comparison is mixed; this shape is not promoted as a speed improvement. Longer contexts, the full conversation/streaming gate and controlled pairs remain pending.
+
+
+## 128-row experiment
+
+This branch additionally admits `rt=8, warps=8` and restores the original `rt=4, warps=16` policy entry. The latter still fails the emitter's existing staging-slot divisibility guard, as it did before the policy was extracted. Only the 128-row candidate opts its generated program into the existing extended register limit. The launcher retains its declared-register and thread-product checks. Defaults, arithmetic order, instruction encodings and wait distance stay unchanged.
+
+The hardware basis is NVIDIA Blackwell Tuning Guide, physical page13: 255 registers per thread and64K registers per SM. The project already provides a conservative246-register allocation limit and rounds the declared requirement separately. These limits make an experiment reasonable; they do not prove it is faster or even that this generated kernel passes.
+
+The checked Omega policy also bounds the actual largest emitted store offset, including the final column offset for F32 output. This replaces the conservative full-tile extent test that rejected a valid 27B projection. Width, epilogue and row-group bounds are checked before multiplication. The independent oracle enumerates the emitted offsets at both sides of the admission boundary, and mutation controls remove each important part of the bound.
+
+Before the change, all four 27B projection shapes refused 128-row generation. The candidate is still UNQUALIFIED: host generation and simulator checks pass locally, but chip/full-model parity and timing remain pending. The existing 64-row kernel bytes and resource metadata match the original build for the tested direct and indexed 27B projections. Earlier32-row receipts remain historical and do not certify this branch. The current64-row/eight-warp default is unchanged.
+
+[The host receipt](large-shape-host-validation.json) pins the changed sources and archive and records the targeted host, simulator and mutation checks. The full host suite was still running when this draft was published. No chip or full-model result is implied by this receipt.
+
+The subsequent [full host-suite receipt](large-shape-full-host-validation.json) records all 77 targets passing on the candidate source. It includes the failed absolute-output-path invocation and its correction. GPU and full-model qualification remain pending.
+
+## Grouped work-order experiment
+
+The separate grouped-order candidate revisits the mechanism in historical Omega commit `86211a39965bd903b6be482cfc784c7dd58733a5`. It schedules nearby matrix jobs over the same weight panel before advancing to another panel. Historical chip screens motivated that work, but their shared-machine measurements and sampled-row checks do not qualify this implementation or a full model.
+
+`order.om` owns the grid and coordinate-remapping instruction plan. Group 0 keeps the original order. Groups 1 through 5 gather consecutive row tiles into groups of powers of two. The Omega plan checks input and grid bounds before returning success. Jobs beyond the last tile branch out before reading the tile table. The existing C emitter interprets only the plan's primitive instructions; it does not calculate the coordinate mapping.
+
+The private plan is 64 unsigned words: grid x, grid y, instruction count, then five-word records `(operation, destination, source1, source2, immediate)`. Register roles are column coordinate, row coordinate, temporary and tile count. Operations are AND-immediate, shift-right-immediate, multiply-add-immediate, constant load, unsigned greater-or-equal predicate, and predicate branch. The prefix emits the mapping plus a tail guard; the output-store prefix repeats the same mapping. Matrix arithmetic and the existing wait distance are unchanged.
+
+Select a candidate with `omega_gpu_pf_qgemm_set_group(group)` before model work begins. Never change it while a model operation is in flight. This composes with the existing shape test knob. Default group 0 remains unchanged. `order-check.py` independently interprets the plan and verifies coverage, uniqueness and boundaries; `order-mutants.py` checks source faults. The matrix simulator exercises groups 0, 1, 3 and 4 across direct/indexed inputs and partial tiles. GPU and full-model correctness and speed remain unqualified.
+
+The complete 78-target host suite and API version check pass. On the full 27B reader, group4 and group0 preserve every output-score bit and next-token choice in all six frozen cases. Repeated 5,017-token reading was 18.817 seconds with group0 and 16.199 seconds with group4 in this shared-machine screen. This is not quiet-machine qualification. Group0 remains the default. `order-validation.json` records source identities, checks and per-case observations. The separate 128-row full-model attempt was refused by an older prefill-cache register cap before its first matrix; that correction is being verified on the parent branch and is not part of this tested group4 binary.
+The first full-model 128-row trial exposed an older cache-admission cap: it refused the generated 152-register declaration before the first matrix launch. The cache now honors the generator's existing opt-in budget, bounded by the allocator's hardware ceiling. The default declaration cap and the launch/record register-file checks remain enforced. `cache-check.c` reproduces the real cache call without a GPU by stopping at code allocation: it fails on the original library and passes the correction, including absent-opt-in and over-budget refusals. The correction also passes the matrix simulator and admission mutants. The corrected full-model run passed all six complete-score comparisons. The repeated 5,017-token read was 14.759 seconds versus 18.817 seconds in the comparison run. These are shared-machine observations, not quiet qualification; the full-host correction suite remains pending. See `large-shape-gpu-validation.json`. See `cache-admission-regression.json`.
+
+With the cache-budget correction included, the 128-row/group4 combination passed all six full-model score and next-token comparisons. The repeated 5,017-token read took 14.348 seconds versus 18.817 seconds for 64-row/group0. Group5 at 128 rows took 15.379 seconds in the same screening series. These are shared-machine observations. `order-combined-validation.json` records every compared setting and the complete selected-candidate comparison. The combined host rerun and serving qualification remain pending; no default changed.
+
+## Per-call reading options
+
+`omega_gpu_pf_qgemm_scoped` carries explicit row, warp, wait and order settings into the existing validated kernel specification and cache key. It neither reads nor modifies process-global tuning controls. `omega_gpu_pf_qgemm_scoped_bm` checks a profile and returns its tile height, or zero on refusal. Callers must construct and pad their tile buffers with that height; each projection is validated again at execution. Original calls retain their behavior. API version 0.11.0 adds these entries.
+
+The host isolation test interleaves two scoped configurations and a different legacy configuration through the real dispatch path, intercepting the cache boundary before any device use. Three source faults are caught. API and semantic-version gates pass. `scoped-validation.json` records the exact source and library. Full host and full-model scoped qualification remain pending; previous global-knob speed screens do not prove this new entry.
+
+The subsequent full host rerun completed successfully: all 78 targets passed at runtime source `28b533c95a2dce42cb14c9d8bc4a05847a5981a0`. See `order-combined-full-host-validation.json` for the command, timing and log digest. This does not qualify the later scoped API or serving performance.
+
+The subsequent full host rerun completed successfully: all 77 targets passed at runtime source `572a73bfd138b78154172f7746504842a7168f9c`. See `cache-full-host-validation.json` for the command, timing and log digest. This does not qualify the later scoped API or serving performance.
+
+The scoped entry subsequently passed the complete 79-target host suite and API version gate. `scoped-validation.json` records the exact command and log digest. Scoped full-model and server qualification remain separate.
+
+The scoped adapter also passed all six full-score comparisons and the initial serving correctness and quality suite. Its repeated 5,017-token read took 14.515 seconds versus 19.123 seconds with the setting off. The repeated 30-token case was slower, 0.358 versus 0.282 seconds. These shared-machine screens support an adaptive-batch experiment, not promotion of the fixed profile. See `scoped-model-validation.json` and its linked Ribbon receipt.
+
+The adaptive experiment adds `reading.om`, a separate checked Omega unit. It returns the full matrix profile for a request, choosing the existing 64-row/group0 profile through 64 rows and the 128-row/group4 profile above that proposed boundary. `omega_gpu_pf_qgemm_reading_option` transports one option; it adds no host-side numerical policy. The profile oracle covers the boundary, invalid inputs and option order, and five source faults must be caught. Full-model measurements determine whether this policy is retained.
+
+`workspace.om` admits existing storage only when its row, padded-row and tile capacities all cover the newly selected profile. This lets the adapter rebuild each tile table without reallocating otherwise sufficient storage. The independent oracle passes 1,575 cases and catches five source faults. Incompatible storage is refused. Revised full-model reuse measurements and the complete host suite remain pending.
+
+The revised adaptive profile and capacity reuse pass the complete 81-target host suite and version gate at native source `88379395296357571618ebf7f701a6e2cdf8be31`. Core source `f440df0e3f9fd4c6b5d37deb1b635037f140bb32` preserves all score bits and next-token choices in six model cases and 14 boundary cases. The repeated 5,017-token read took 14.497 seconds versus 18.901 seconds with the setting off. The repeated 30-token case took 0.290 versus 0.274 seconds. These shared-machine observations do not establish quiet timing or eliminate the small-request penalty. Exact commands, identities and raw observations are in `adaptive-validation.json`. Serving and long-context validation remain separate.
diff --git a/om/prefill-shape/adaptive-validation.json b/om/prefill-shape/adaptive-validation.json
new file mode 100644
index 00000000..1abfd239
--- /dev/null
+++ b/om/prefill-shape/adaptive-validation.json
@@ -0,0 +1,300 @@
+{
+  "status": "PASS all81 native host targets, runtime version gate, six complete-model score comparisons, 14 profile-boundary comparisons. Serving and controlled timing remain pending.",
+  "base": "6068d94a8ad8",
+  "source_sha256": {
+    "om/prefill-shape/reading.om": "5415d3146b00c74e75592866d37833cd80fc7523cbdd4b4b9502ce1ecce51749",
+    "om/prefill-shape/reading-check.py": "2ce18d71296f1a1a11414904ac69cf7df2a12f3b0fd232164d95c0b9d2da35fc",
+    "om/prefill-shape/reading-mutants.py": "d9585e059c0f8ace7105696793500c9623aed305d7f3498d34623ad5cafc8f0b",
+    "om/prefill-shape/scoped-check.c": "a3e030e15eaa558e5b68e17715cbbe36981985b9b3c1006eaf286ae64dcea3e5",
+    "om/units.sh": "87b79c8f4230be5a3a2ad9f6676c6fd5e714dde7558b79b8eeecb2dc6be3317e",
+    "src/cudapp_om_prefill_reading.c": "82ba2d9c34ffd2e006f7b3028f509068d80c5c6f6cc27bdfea81ee972323108d",
+    "src/cudapp_om_prefill_reading.ident": "2eb37ac0c9280ea5e4e78246f7ddd4f759de8c4c238e2db1f00687e429bf9d42",
+    "src/cudapp_native.h": "c474fc5969b745715d9c4f2cbd22c56a973e59f07a315fbb487bbe578338d6c4",
+    "src/cudapp_om_units.ident": "607e3cf5e2a80a182facb97b76d8ef8c34c5394f2c240a5da17428d0938a154c",
+    "src/omega_gpu_pfgemm.c": "31ade74e532bf70c53db02a00094d12d797dc03200af0dd68eaaf7a32066be10",
+    "src/omega_gpu_prefill.h": "5ef3810afc3976654b4c86d5774f02d9a4211c6f05610ce9e9eaf4dd30b66fda",
+    "src/omega_runtime_api.h": "937712e9cc2b6b644a8d14b58375740ce592dd29cfd57292b3a2c8435a2094af",
+    "mk/prefill-shape.mk": "42eb254bdc284fcee2e8a450803f64eabfb9825f958abec7bebf993716dbbf2f",
+    "docs/runtime/omega_runtime_api.manifest": "1107dd42566a97c09e2060b995daabe115ebab2cf847cf63e9f8ab561bad76c9",
+    "om/prefill-shape/workspace.om": "6b6f9342a66a73667fa3a2c4d0392ab2817a6a6f2c623dc38119de99d45f12e8",
+    "om/prefill-shape/workspace-check.py": "2e76c25e0adffb654dec29066fe57c2a33b2caf65d651868f5370c8057260a25",
+    "om/prefill-shape/workspace-mutants.py": "e2c35f673d3936217350d538a961a90ff578ba594a8e96f83360dedec6445775",
+    "src/cudapp_om_prefill_workspace.c": "893d9ede96e003d763d8022e2fa60b9619b92399d186460043125c4c974fe7fb",
+    "src/cudapp_om_prefill_workspace.ident": "25692a15e87cfc1e210a6a4fd95cc1a2b8fde2c429a9a1c4b6e9cc9b31c730e2"
+  },
+  "build": {
+    "command": [
+      "taskset",
+      "-c",
+      "12-15",
+      "nice",
+      "-n",
+      "19",
+      "make",
+      "-j4",
+      "OUT_DIR=../optimize27-adaptive-reading-build",
+      "all",
+      "test-prefill-workspace",
+      "test-prefill-reading",
+      "test-prefill-scoped",
+      "test-prefill-shape",
+      "test-runtime-api",
+      "test-runtime-api-semver",
+      "RUNTIME_API_BASE=6068d94a8ad8"
+    ],
+    "cwd": "/tmp/optimize27-adaptive-reading-cudapp",
+    "started": "2026-11-01T20:27:09.626673+00:00",
+    "exit_code": 0,
+    "ended": "2026-11-01T20:28:48.214809+00:00",
+    "archive_sha256": "752564da817349a38ced23a8beda735f221afce78b1dce0a2e20ea09be1d5ce0"
+  },
+  "log_sha256": "7d9f8fd613960d6c4a536925333cb3165a3483ca49b206d9113688399c066772",
+  "earlier_attempts": [
+    "First API check refused missing exact function-name documentation and stale version labels.",
+    "Second API check still refused stale version labels. Both logs are preserved; final labels and function documentation pass."
+  ],
+  "scope": "Omega owns profile selection and reuse admission across row, padded-row and tile capacities. C transports scalar results; no second allocation cache is introduced.",
+  "workspace_cases": 1575,
+  "full_host": {
+    "command": [
+      "taskset",
+      "-c",
+      "12-15",
+      "nice",
+      "-n",
+      "19",
+      "make",
+      "-j4",
+      "OUT_DIR=../optimize27-adaptive-reading-build",
+      "test",
+      "test-runtime-api-semver",
+      "RUNTIME_API_BASE=6068d94a8ad8"
+    ],
+    "source_head": "88379395296357571618ebf7f701a6e2cdf8be31",
+    "started": "2026-11-01T20:31:20.278500+00:00",
+    "exit_code": 0,
+    "ended": "2026-11-01T20:38:18.004647+00:00",
+    "log_sha256": "9ed03fc7cffeca1ea7893251ebe3b4a4e612358c56852ce2f13168344405e5e7"
+  },
+  "model_source_core": "f440df0e3f9fd4c6b5d37deb1b635037f140bb32",
+  "model_archive_sha256": "752564da817349a38ced23a8beda735f221afce78b1dce0a2e20ea09be1d5ce0",
+  "full_scores": {
+    "status": "PASS_EXACT_SCORES",
+    "scope": "Shared-machine single-run diagnostic. Not quiet or statistically qualified.",
+    "formula": "seconds=ns/1e9; reduction_percent=100*(baseline_ns-candidate_ns)/baseline_ns",
+    "inputs": {
+      "/home/drakestapleton/handoffs/Optimize27-checkpoint-20261101/adaptive-workspace-profile-mode0-20261101T203344Z/data": "e01c57860f40dd6bc272fcb40c31e14284b7878135301a037f4ea30189f704af",
+      "/home/drakestapleton/handoffs/Optimize27-checkpoint-20261101/adaptive-workspace-profile-mode1-20261101T203500Z/data": "4c2dca37deb05f102fbb92509e7428a89d7b0a785b92e49d2853af32e38a6b88",
+      "/home/drakestapleton/handoffs/Optimize27-checkpoint-20261101/scratch-baseline-data": "44e4cb62fc06712f3728c26d0ba0a70dc4e516fb4557f80060f756720e8d26d6"
+    },
+    "rows": [
+      {
+        "trial": 0,
+        "prompt_tokens": 30,
+        "chunk": 4096,
+        "all_score_bits_and_next_equal": true,
+        "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+        "baseline_s": 0.298454205,
+        "candidate_s": 0.288015902,
+        "wall_reduction_percent": 3.4974554974020218,
+        "baseline_gemm_s": 0.164497227,
+        "candidate_gemm_s": 0.164053323
+      },
+      {
+        "trial": 1,
+        "prompt_tokens": 513,
+        "chunk": 512,
+        "all_score_bits_and_next_equal": true,
+        "score_sha256": "751c59e6812c98bedc12ccb72bf878cb7c52fe6734a51a96646b1d0bd5937396",
+        "baseline_s": 2.237638067,
+        "candidate_s": 1.787905271,
+        "wall_reduction_percent": 20.098549565835572,
+        "baseline_gemm_s": 1.32816245,
+        "candidate_gemm_s": 0.875335721
+      },
+      {
+        "trial": 2,
+        "prompt_tokens": 941,
+        "chunk": 4096,
+        "all_score_bits_and_next_equal": true,
+        "score_sha256": "36dabb2803481bdd0e552d3c631557e3047d2e233e43f5636dccceae143661c0",
+        "baseline_s": 3.639586159,
+        "candidate_s": 2.82594369,
+        "wall_reduction_percent": 22.35535672065402,
+        "baseline_gemm_s": 2.204775979,
+        "candidate_gemm_s": 1.388874326
+      },
+      {
+        "trial": 3,
+        "prompt_tokens": 5017,
+        "chunk": 4096,
+        "all_score_bits_and_next_equal": true,
+        "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+        "baseline_s": 19.011002207,
+        "candidate_s": 14.495573323,
+        "wall_reduction_percent": 23.751661458107577,
+        "baseline_gemm_s": 11.542581134,
+        "candidate_gemm_s": 7.106313296
+      },
+      {
+        "trial": 4,
+        "prompt_tokens": 30,
+        "chunk": 4096,
+        "all_score_bits_and_next_equal": true,
+        "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+        "baseline_s": 0.273931474,
+        "candidate_s": 0.290243282,
+        "wall_reduction_percent": -5.954703839544922,
+        "baseline_gemm_s": 0.162181131,
+        "candidate_gemm_s": 0.162219472
+      },
+      {
+        "trial": 5,
+        "prompt_tokens": 5017,
+        "chunk": 4096,
+        "all_score_bits_and_next_equal": true,
+        "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+        "baseline_s": 18.900996682,
+        "candidate_s": 14.497095094,
+        "wall_reduction_percent": 23.299837897934616,
+        "baseline_gemm_s": 11.594070291,
+        "candidate_gemm_s": 7.178247109
+      }
+    ]
+  },
+  "boundary_scores": {
+    "status": "PASS_EXACT_BOUNDARY_SCORES",
+    "scope": "Two shared-machine observations per size, not quiet qualification or a statistical claim",
+    "formula": "seconds=ns/1e9; reduction_percent=100*(baseline_ns-candidate_ns)/baseline_ns",
+    "baseline": "adaptive-workspace-boundary-profile-mode0-20261101T203626Z/data",
+    "candidate": "adaptive-workspace-boundary-profile-mode1-20261101T203816Z/data",
+    "rows": [
+      {
+        "trial": 0,
+        "prompt_tokens": 3,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "a67a5840407ff2b55fcfac379446fdd1e786585a5ba03220661c10db1a31798e",
+        "baseline_s": 0.221802577,
+        "candidate_s": 0.208090229,
+        "wall_reduction_percent": 6.182231146935682
+      },
+      {
+        "trial": 1,
+        "prompt_tokens": 63,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "f3661f250ea50c41aa37ef8829094d16ae7acf6ad7e3f6f8b571b864aca9a6da",
+        "baseline_s": 0.366342819,
+        "candidate_s": 0.352700871,
+        "wall_reduction_percent": 3.723820228614881
+      },
+      {
+        "trial": 2,
+        "prompt_tokens": 64,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "106f5f371937128d2527fcd8db3f0f7e030a2fed76697ee3d47f14882efc7ccc",
+        "baseline_s": 0.358343964,
+        "candidate_s": 0.361493718,
+        "wall_reduction_percent": -0.8789750397470069
+      },
+      {
+        "trial": 3,
+        "prompt_tokens": 65,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "bb41da526ea6f0f81b2fda8c6e23b725cdf742b62a321bee6b7979eb1830fc18",
+        "baseline_s": 0.466726558,
+        "candidate_s": 0.364658402,
+        "wall_reduction_percent": 21.86894108562813
+      },
+      {
+        "trial": 4,
+        "prompt_tokens": 127,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "ee377fd9bcb7a76a43688c1531b5ae78b35a888cf756af5a8f40bca047b6ab01",
+        "baseline_s": 0.592993214,
+        "candidate_s": 0.517265899,
+        "wall_reduction_percent": 12.770351027996755
+      },
+      {
+        "trial": 5,
+        "prompt_tokens": 128,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "606d7ae396d5f0cee66142918b877813d6995fa0ea53482a8f11b45cdb0bc96e",
+        "baseline_s": 0.587665487,
+        "candidate_s": 0.498192786,
+        "wall_reduction_percent": 15.225107306667475
+      },
+      {
+        "trial": 6,
+        "prompt_tokens": 129,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "ae912b406cc3ebb51401164941c01c41c637587c01cc7fac8605ba56904db038",
+        "baseline_s": 0.721145008,
+        "candidate_s": 0.607569309,
+        "wall_reduction_percent": 15.749356612061579
+      },
+      {
+        "trial": 7,
+        "prompt_tokens": 3,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "a67a5840407ff2b55fcfac379446fdd1e786585a5ba03220661c10db1a31798e",
+        "baseline_s": 0.212806256,
+        "candidate_s": 0.21332082,
+        "wall_reduction_percent": -0.24179928244214777
+      },
+      {
+        "trial": 8,
+        "prompt_tokens": 63,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "f3661f250ea50c41aa37ef8829094d16ae7acf6ad7e3f6f8b571b864aca9a6da",
+        "baseline_s": 0.350606135,
+        "candidate_s": 0.347893789,
+        "wall_reduction_percent": 0.7736162403433129
+      },
+      {
+        "trial": 9,
+        "prompt_tokens": 64,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "106f5f371937128d2527fcd8db3f0f7e030a2fed76697ee3d47f14882efc7ccc",
+        "baseline_s": 0.349292236,
+        "candidate_s": 0.341890904,
+        "wall_reduction_percent": 2.1189511924908633
+      },
+      {
+        "trial": 10,
+        "prompt_tokens": 65,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "bb41da526ea6f0f81b2fda8c6e23b725cdf742b62a321bee6b7979eb1830fc18",
+        "baseline_s": 0.466400475,
+        "candidate_s": 0.353046795,
+        "wall_reduction_percent": 24.3039375120705
+      },
+      {
+        "trial": 11,
+        "prompt_tokens": 127,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "ee377fd9bcb7a76a43688c1531b5ae78b35a888cf756af5a8f40bca047b6ab01",
+        "baseline_s": 0.615423734,
+        "candidate_s": 0.465094876,
+        "wall_reduction_percent": 24.426886662775342
+      },
+      {
+        "trial": 12,
+        "prompt_tokens": 128,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "606d7ae396d5f0cee66142918b877813d6995fa0ea53482a8f11b45cdb0bc96e",
+        "baseline_s": 0.608295302,
+        "candidate_s": 0.493256086,
+        "wall_reduction_percent": 18.91173836486411
+      },
+      {
+        "trial": 13,
+        "prompt_tokens": 129,
+        "exact_full_scores_and_next": true,
+        "score_sha256": "ae912b406cc3ebb51401164941c01c41c637587c01cc7fac8605ba56904db038",
+        "baseline_s": 0.745165077,
+        "candidate_s": 0.612998524,
+        "wall_reduction_percent": 17.736546851081158
+      }
+    ]
+  }
+}
diff --git a/om/prefill-shape/admit.om b/om/prefill-shape/admit.om
new file mode 100644
index 00000000..56053f54
--- /dev/null
+++ b/om/prefill-shape/admit.om
@@ -0,0 +1,49 @@
+note Exact maximum store immediate of the existing qgemm epilogue.
+note F32 has additional column offsets up to 36 bytes; packed SwiGLU has none.
+fn qg_offset n ulong rt ulong epi ulong to ulong
+if or eq n 0 gt n 4294967295
+ret 0
+end
+if or lt rt 1 gt rt 8
+ret 0
+end
+if gt epi 1
+ret 0
+end
+stride = n
+if eq epi 0
+stride = mul n 4
+end
+last = mul sub mul rt 16 8 stride
+if eq epi 0
+last = add last 36
+end
+if le last 8388607
+ret 1
+end
+ret 0
+end
+
+
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Retain the incumbent 64-row shape and admit one paired-scale 32-row shape.
+note Keep prior shapes and admit only one extended-register 128-row candidate.
+fn native_qgshape rt ulong warps ulong n ulong epi ulong to ulong
+ok = qg_offset n rt epi
+if eq ok 0
+ret 0
+end
+if and eq rt 4 eq warps 8
+ret 1
+end
+if and eq rt 2 eq warps 4
+ret 1
+end
+if and eq rt 4 eq warps 16
+ret 1
+end
+if and eq rt 8 eq warps 8
+ret 1
+end
+ret 0
+end
diff --git a/om/prefill-shape/cache-admission-regression.json b/om/prefill-shape/cache-admission-regression.json
new file mode 100644
index 00000000..3e10f932
--- /dev/null
+++ b/om/prefill-shape/cache-admission-regression.json
@@ -0,0 +1,19 @@
+{
+  "status": "PASS targeted regression, matrix simulator and six-case full-model exact scores; full host correction suite pending",
+  "base": "ecb672c77f6f9145f0983348277ae8f58c74c8d3",
+  "trigger": "128-row full-model trial refused before first matrix by old 128-register cache cap",
+  "original_trial": "reading-screen-rows128-20261101T194347Z",
+  "old_test_exit": 1,
+  "old_test_stdout": "prefill cache admission: FAIL\n",
+  "old_test_stderr": "cache case 1 rc=-2 allocations=0 wanted=1\n",
+  "new_test_exit": 0,
+  "new_test_stdout": "prefill cache admission: PASS\n",
+  "source_sha256": {
+    "src/omega_gpu_prefill.c": "bbcd2f3699de02c08994c71cb1f76557ab66af2431adef98979c7f97f3773e0c",
+    "om/prefill-shape/cache-check.c": "050eed09c5606e8d19a06e766d4e987a70d42d93151bdb8589e311365465714b",
+    "mk/prefill-shape.mk": "ffd88a70f7192bc4a014933263d51f54530106bb1beec82401d301fcc65db38d"
+  },
+  "matrix_host_simulator_and_mutants_exit": 0,
+  "matrix_log_sha256": "3574d0dd85c2ba74d88716c6e42c7be747eed6b875e177d56a86bb83131d4304",
+  "limits": "Default declared limit remains128. Opt-in allocator budget is honored only within246 peak; launch and record still enforce threads times declared <=65536. Blackwell Tuning Guide physicalp13."
+}
diff --git a/om/prefill-shape/cache-check.c b/om/prefill-shape/cache-check.c
new file mode 100644
index 00000000..90d30379
--- /dev/null
+++ b/om/prefill-shape/cache-check.c
@@ -0,0 +1,36 @@
+/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
+/* Exercise the real prefill cache admission without opening a GPU. Stop exactly
+ * at code allocation, after the generator and resource checks have run. */
+#include "omega_gpu_prefill.h"
+#include "omega_blackwell_codegen_qg.h"
+#include <stdio.h>
+#include <string.h>
+static unsigned allocations;
+int __wrap_omega_gpu_session_alloc_code(size_t bytes, OmegaGpuMem *out) {
+    (void)bytes; (void)out; allocations++; return -1;
+}
+static int gen(const OmegaPfKey *key, void *vp) {
+    BlackwellIRProgram *p = vp;
+    OmegaQgSpec s; memset(&s, 0, sizeof s);
+    s.k=5120; s.n=16384; s.rt=key->words[0]; s.warps=8; s.wait=45; s.direct=1;
+    int rc=omega_blackwell_codegen_qgemm_prog(&s,p);
+    if (!rc && key->words[1]==1) p->regalloc.gpr_limit=0;
+    if (!rc && key->words[1]==2) p->regalloc.gpr_limit=BW_PHYS_GPR_HW_LIMIT+1;
+    if (!rc && key->words[1]==3) p->regalloc.peak_gpr_usage=BW_PHYS_GPR_HW_LIMIT+1;
+    return rc;
+}
+int main(void) {
+    unsigned failed=0;
+    for(unsigned i=0;i<5;i++) {
+        OmegaPfKey key; memset(&key,0,sizeof key); key.kind=999;
+        key.words[0]=i==0?4:8; key.words[1]=i>1?i-1:0;
+        OmegaPfKernel out; allocations=0;
+        int rc=omega_gpu_pf_kernel_locked(&key,gen,&out);
+        unsigned want=i<2;
+        if(allocations!=want || rc!=(want?OMEGA_GPU_PF_CHIP_FAIL:OMEGA_GPU_PF_TOO_LARGE)) {
+            fprintf(stderr,"cache case %u rc=%d allocations=%u wanted=%u\n",i,rc,allocations,want); failed++;
+        }
+    }
+    printf("prefill cache admission: %s\n",failed?"FAIL":"PASS");
+    return failed?1:0;
+}
diff --git a/om/prefill-shape/cache-full-host-validation.json b/om/prefill-shape/cache-full-host-validation.json
new file mode 100644
index 00000000..24d842d3
--- /dev/null
+++ b/om/prefill-shape/cache-full-host-validation.json
@@ -0,0 +1,16 @@
+{
+  "status": "PASS",
+  "runtime_source_commit": "572a73bfd138b78154172f7746504842a7168f9c",
+  "targets": 77,
+  "exit_code": 0,
+  "started": "2026-11-01T19:45:51.631716+00:00",
+  "ended": "2026-11-01T19:54:34.887727+00:00",
+  "command": [
+    "make",
+    "-j4",
+    "OUT_DIR=../optimize27-prefill128-fixed-build",
+    "test"
+  ],
+  "log_sha256": "748502861fb0d8189164c443cca81c0c0816fa8eb1cda5b569837608d1d74fd1",
+  "scope": "Complete local host suite at the named runtime source. Not server performance qualification."
+}
diff --git a/om/prefill-shape/check.py b/om/prefill-shape/check.py
new file mode 100644
index 00000000..38b27b31
--- /dev/null
+++ b/om/prefill-shape/check.py
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External admission oracle, not a production dependency.
+import ctypes,sys
+lib=ctypes.CDLL(sys.argv[1]);f=lib.omega_native_qgshape
+f.argtypes=[ctypes.POINTER(ctypes.c_uint64)]+[ctypes.c_uint64]*4;f.restype=ctypes.c_uint32
+cases=[(4,8,1),(2,4,1),(0,0,0),(1,2,0),(2,8,0),(4,4,0),(4,16,1),(8,16,0),(8,8,1),(8,4,0),(8,32,0),(2,0,0),(0,4,0),(2,2,0),(16,32,0),(2**32-1,4,0),(2,2**32-1,0),(2**64-1,4,0),(4,2**64-1,0)]
+cases += [(rt,warps,int((rt,warps) in {(4,8),(4,16),(2,4),(8,8)})) for rt in range(17) for warps in range(33)]
+for rt,warps,want in cases:
+ out=ctypes.c_uint64(999)
+ assert f(ctypes.byref(out),rt,warps,128,0)==0
+ assert out.value==want,(rt,warps,out.value,want)
+assert f(None,2,4,128,0)==32
+print('PASS shape admission and unsafe-shape refusal controls')
+
+# Independent exact-integer enumeration of every emitted store immediate.
+count=0
+for rt in [0,2,4,8,9,2**64-1]:
+ warps=4 if rt==2 else 8
+ for epi in [0,1,2,2**64-1]:
+  widths={0,1,128,5120,6144,16384,17408,34816,2**32-1,2**32,2**64-1}
+  if 1<=rt<=8 and epi in (0,1):
+   top=((1<<23)-1-(36 if epi==0 else 0))//((16*rt-8)*(4 if epi==0 else 1))
+   widths.update([top-1,top,top+1])
+  for n in sorted(widths):
+   valid=1<=n<2**32 and rt in (2,4,8) and epi in (0,1)
+   if valid:
+    stride=n*(4 if epi==0 else 1)
+    emitted=[(16*i+8*h)*stride+(32*j+4*q if epi==0 else 0) for i in range(rt) for h in range(2) for j in range(2) for q in range(2)]
+    want=int(all(0<=x<(1<<23) for x in emitted))
+   else:want=0
+   out=ctypes.c_uint64(999)
+   assert f(ctypes.byref(out),rt,warps,n,epi)==0
+   assert out.value==want,(n,rt,epi,out.value,want)
+   count+=1
+assert f(None,8,8,16384,0)==32
+print('PASS exact emitted-offset boundary oracle',count,'cases')
diff --git a/om/prefill-shape/large-shape-full-host-validation.json b/om/prefill-shape/large-shape-full-host-validation.json
new file mode 100644
index 00000000..5aeb0a2f
--- /dev/null
+++ b/om/prefill-shape/large-shape-full-host-validation.json
@@ -0,0 +1,15 @@
+{
+  "status": "PASS_FULL_HOST_SUITE_GPU_NOT_RUN",
+  "tested_source_commit": "370c9b00bbd9f8b20efdbc3fa0cc844cb1d47b87",
+  "archive_sha256": "2372e067481f23ca7d8ef0126a900c1152ea1572d4e89ccb1c816ce433c6febe",
+  "command": "make -j4 OUT_DIR=../optimize27-prefill128-build test",
+  "execution": "CPUs12-15 at nice19; existing128K GPU qualification active; this suite opens no GPU",
+  "tool_configuration": "OMEGA_OMC and OMEGA_BRIDGE set to the versions pinned by om/units.sh and om/omega-bridge.lock",
+  "started_utc": "2026-11-01T19:25:38Z",
+  "ended_utc": "2026-11-01T19:33:46Z",
+  "exit_code": 0,
+  "final_line": "CUDA++ HOST TESTS PASS (77 targets)",
+  "log_sha256": "145212e485e6f8bcd5404e20c6c6bef5e85dc2c3106de59ef5ba7e8a23759f3f",
+  "earlier_attempt": "The first full-suite invocation used an absolute OUT_DIR. Existing recipes prefix ./ and could not execute that path. The corrected relative path names the same build directory. No test or production code was changed to obtain the pass.",
+  "limits": "Host validation only. No128-row chip/full-model parity or performance result yet. Default64rows unchanged."
+}
diff --git a/om/prefill-shape/large-shape-gpu-validation.json b/om/prefill-shape/large-shape-gpu-validation.json
new file mode 100644
index 00000000..7ec173fd
--- /dev/null
+++ b/om/prefill-shape/large-shape-gpu-validation.json
@@ -0,0 +1,87 @@
+{
+  "status": "PASS_EXACT_SCORES",
+  "scope": "Shared-machine single-run diagnostic. Not quiet or statistically qualified.",
+  "formula": "seconds=ns/1e9; reduction_percent=100*(baseline_ns-candidate_ns)/baseline_ns",
+  "inputs": {
+    "reading-screen-group0-20261101T194419Z": "b8bcb76500664674cfc9ef99003f23df731a90fb121794abb79f6c0a581b2537",
+    "reading-screen-rows128fixed-20261101T194649Z": "3564f28863eb8f308decd70532fb7e094d85cb07d6cb1ebe2592ae776c616225",
+    "Optimize27-checkpoint-20261101": "44e4cb62fc06712f3728c26d0ba0a70dc4e516fb4557f80060f756720e8d26d6"
+  },
+  "rows": [
+    {
+      "trial": 0,
+      "prompt_tokens": 30,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+      "baseline_s": 0.332722031,
+      "candidate_s": 0.328368153,
+      "wall_reduction_percent": 1.308563183181579,
+      "baseline_gemm_s": 0.164627506,
+      "candidate_gemm_s": 0.170593682
+    },
+    {
+      "trial": 1,
+      "prompt_tokens": 513,
+      "chunk": 512,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "751c59e6812c98bedc12ccb72bf878cb7c52fe6734a51a96646b1d0bd5937396",
+      "baseline_s": 2.258274006,
+      "candidate_s": 1.87290192,
+      "wall_reduction_percent": 17.064894914262233,
+      "baseline_gemm_s": 1.337981532,
+      "candidate_gemm_s": 0.924764204
+    },
+    {
+      "trial": 2,
+      "prompt_tokens": 941,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "36dabb2803481bdd0e552d3c631557e3047d2e233e43f5636dccceae143661c0",
+      "baseline_s": 3.650990357,
+      "candidate_s": 2.994418683,
+      "wall_reduction_percent": 17.98338559676453,
+      "baseline_gemm_s": 2.213912136,
+      "candidate_gemm_s": 1.491434136
+    },
+    {
+      "trial": 3,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 19.126557271,
+      "candidate_s": 14.864002664,
+      "wall_reduction_percent": 22.28605256348436,
+      "baseline_gemm_s": 11.546749839,
+      "candidate_gemm_s": 7.405340297
+    },
+    {
+      "trial": 4,
+      "prompt_tokens": 30,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+      "baseline_s": 0.3078444,
+      "candidate_s": 0.304199012,
+      "wall_reduction_percent": 1.1841657668614405,
+      "baseline_gemm_s": 0.165410748,
+      "candidate_gemm_s": 0.173194736
+    },
+    {
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 14.759224384,
+      "wall_reduction_percent": 21.563375211300812,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 7.419917663
+    }
+  ],
+  "binary_sha256": "e2f9423accd4819a7657e2353b5af69b8a9a48be059a85ff299905711151dbbb",
+  "archive_sha256": "83faae846cad12f77bdbe8ff53bc84e58b267d3c89bab545308dacb781c1cf5b",
+  "source": "cache-admission-regression.json source identities"
+}
diff --git a/om/prefill-shape/large-shape-host-validation.json b/om/prefill-shape/large-shape-host-validation.json
new file mode 100644
index 00000000..d4582561
--- /dev/null
+++ b/om/prefill-shape/large-shape-host-validation.json
@@ -0,0 +1,104 @@
+{
+  "status": "HOST_SIMULATOR_PASS_GPU_NOT_RUN",
+  "native_parent": "2d7a41c0173c544630cc43d12eb9740bff4b8c4e",
+  "source_sha256": {
+    "om/prefill-shape/admit.om": "5720ae7a311677f31e065e8d68b8470dfb94e3d13424f41ef211a5ace163e46f",
+    "om/prefill-shape/check.py": "fd7ceab17cc2abcf66b89b9b261393735d0dd8a60ba72af06e2a278e095af966",
+    "om/prefill-shape/mutants.py": "8c40880bb2fb0f25898aa3fce75f8651abc614659e9ab3d451a6e1d9c7fb14a1",
+    "src/cudapp_native.h": "3ba96c9c0c9a6b18e4d1f08ac34fffa483c296a94980808f40162c911c99770e",
+    "src/cudapp_om_prefill_shape.c": "4dca73ff1821f73bdc6d13050a1a1be4762354ee9c6d082145adf057c49530b6",
+    "src/cudapp_om_prefill_shape.ident": "795a51ff3375bf0fc5ea52974957e85319ff837dbb8d48788e1b7af3f3f35d6c",
+    "src/cudapp_om_units.ident": "f1a152db38968a8819cef9d318343b7da895cdc8f36a757031fbdedc92ff0053",
+    "src/omega_blackwell_codegen_qg.c": "f30ecf540459b32eb6be229e0239d8df9b6d3ee4305814a48219cd0faa930ec2",
+    "src/omega_blackwell_codegen_qg.h": "fd13c4f148b651bc0dd0de20045e9642c74ba37930e5d9c7da5ef9f0e1109a67",
+    "tests/gpu_qgemm_test.c": "a769cfdde2f9321a5697497fe7c52d68a1e0735561432e91f03fd7c9b9c9ac2a"
+  },
+  "archive_sha256": "2372e067481f23ca7d8ef0126a900c1152ea1572d4e89ccb1c816ce433c6febe",
+  "command": "make -j4 OUT_DIR=build test-prefill-shape",
+  "tool_configuration": "OMEGA_OMC is the compiler pinned by om/units.sh; OMEGA_BRIDGE is the source pinned by om/omega-bridge.lock. The recorded run used a separate output directory.",
+  "host_and_simulator_exit_code": 0,
+  "selected_output": [
+    "PASS shape admission and unsafe-shape refusal controls",
+    "PASS exact emitted-offset boundary oracle 282 cases",
+    "PASS qgemm SwiGLU: MUFU flush vs IEEE, 15859204 inputs, 0 differ (t-cap keeps it unobservable, #462)",
+    "PASS 128-row shape 0 peak 144 declared 152 max-store 7864356",
+    "PASS 128-row shape 1 peak 144 declared 152 max-store 6881316",
+    "PASS 128-row shape 2 peak 144 declared 152 max-store 2457636",
+    "PASS 128-row shape 3 peak 145 declared 152 max-store 4177920",
+    "PASS 128-row shape 4 peak 144 declared 152 max-store 2457636",
+    "GPU_QGEMM: PASS",
+    "sim quantiser k 2048 f32 groups 0: ran, 0 differ",
+    "sim quantiser k 768 bf16 groups 0: ran, 0 differ",
+    "sim quantiser k 4096 f32 groups 0: ran, 0 differ",
+    "sim quantiser k 128 bf16 groups 0: ran, 0 differ",
+    "sim quantiser k 5120 f32 groups 20: ran, 0 differ",
+    "sim quantiser k 6144 bf16 groups 24: ran, 0 differ",
+    "sim quantiser k 17408 bf16 groups 17: ran, 0 differ",
+    "sim quantiser k 2048 f32 groups 4: ran, 0 differ",
+    "sim quantiser mutant 1: caught",
+    "sim quantiser mutant 2: caught",
+    "sim quantiser mutant 3: caught",
+    "sim qgemm case 0 (n 256 k 384 M 300 swiglu indexed rt 4 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 0 (n 256 k 384 M 300 swiglu indexed rt 4 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 0 mutant 1: caught",
+    "sim qgemm case 0 mutant 2: caught",
+    "sim qgemm case 0 mutant 3: caught",
+    "sim qgemm case 0 mutant 4: caught",
+    "sim qgemm case 1 (n 256 k 256 M 200 f32 direct rt 4 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 1 (n 256 k 256 M 200 f32 direct rt 4 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 1 mutant 1: caught",
+    "sim qgemm case 1 mutant 2: caught",
+    "sim qgemm case 1 mutant 3: caught",
+    "sim qgemm case 1 mutant 4: caught",
+    "sim qgemm case 2 (n 256 k 128 M 150 f32 indexed rt 4 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 2 (n 256 k 128 M 150 f32 indexed rt 4 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 3 (n 512 k 1024 M 140 swiglu direct rt 4 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 3 (n 512 k 1024 M 140 swiglu direct rt 4 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 4 (n 256 k 384 M 259 swiglu indexed rt 8 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 4 (n 256 k 384 M 259 swiglu indexed rt 8 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 4 mutant 1: caught",
+    "sim qgemm case 4 mutant 2: caught",
+    "sim qgemm case 4 mutant 3: caught",
+    "sim qgemm case 4 mutant 4: caught",
+    "sim qgemm case 5 (n 256 k 256 M 257 f32 direct rt 8 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 5 (n 256 k 256 M 257 f32 direct rt 8 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 5 mutant 1: caught",
+    "sim qgemm case 5 mutant 2: caught",
+    "sim qgemm case 5 mutant 3: caught",
+    "sim qgemm case 5 mutant 4: caught",
+    "sim qgemm case 6 (n 256 k 128 M 127 f32 indexed rt 8 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 6 (n 256 k 128 M 127 f32 indexed rt 8 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 7 (n 512 k 1024 M 129 swiglu direct rt 8 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 7 (n 512 k 1024 M 129 swiglu direct rt 8 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 8 (n 256 k 384 M 97 swiglu indexed rt 2 warps 4) order 0: ran, 0 differ",
+    "sim qgemm case 8 (n 256 k 384 M 97 swiglu indexed rt 2 warps 4) order 1: ran, 0 differ",
+    "sim qgemm case 8 mutant 1: caught",
+    "sim qgemm case 8 mutant 2: caught",
+    "sim qgemm case 8 mutant 3: caught",
+    "sim qgemm case 8 mutant 4: caught",
+    "sim qgemm case 9 (n 256 k 256 M 65 f32 direct rt 2 warps 4) order 0: ran, 0 differ",
+    "sim qgemm case 9 (n 256 k 256 M 65 f32 direct rt 2 warps 4) order 1: ran, 0 differ",
+    "sim qgemm case 9 mutant 1: caught",
+    "sim qgemm case 9 mutant 2: caught",
+    "sim qgemm case 9 mutant 3: caught",
+    "sim qgemm case 9 mutant 4: caught",
+    "sim qgemm case 10 (n 256 k 128 M 31 f32 indexed rt 2 warps 4) order 0: ran, 0 differ",
+    "sim qgemm case 10 (n 256 k 128 M 31 f32 indexed rt 2 warps 4) order 1: ran, 0 differ",
+    "sim qgemm case 11 (n 512 k 1024 M 30 swiglu direct rt 2 warps 4) order 0: ran, 0 differ",
+    "sim qgemm case 11 (n 512 k 1024 M 30 swiglu direct rt 2 warps 4) order 1: ran, 0 differ",
+    "GPU_QGEMM: PASS",
+    "drop_column_offset: caught",
+    "overflow_offset_boundary: caught",
+    "drop_last_row_group: caught",
+    "drop_large_shape: caught",
+    "admit_large_overbudget_warps: caught",
+    "drop_small_shape: caught",
+    "drop_incumbent: caught",
+    "admit_unsafe_one_row_group: caught",
+    "ignore_warp_count: caught"
+  ],
+  "full_host_suite": "RUNNING at publication; not a PASS claim",
+  "chip_and_model": "NOT_RUN: full-model probe built; waiting for the current128K qualification to finish",
+  "performance": "UNMEASURED: no default change or speed claim",
+  "original_default": "64rows,8warps,wait45 retained"
+}
diff --git a/om/prefill-shape/mutants.py b/om/prefill-shape/mutants.py
new file mode 100644
index 00000000..3f810e82
--- /dev/null
+++ b/om/prefill-shape/mutants.py
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External source-mutant verification, not a production dependency.
+import hashlib,os,subprocess,tempfile
+from pathlib import Path
+root=Path(__file__).resolve().parents[2]
+source=(root/'om/prefill-shape/admit.om').read_text()
+mutants={
+ 'drop_column_offset':('last = add last 36','last = add last 0'),
+ 'overflow_offset_boundary':('le last 8388607','le last 8388643'),
+ 'drop_last_row_group':('sub mul rt 16 8','sub mul rt 16 16'),
+ 'drop_large_shape':('eq rt 8 eq warps 8','eq rt 7 eq warps 8'),
+ 'admit_large_overbudget_warps':('eq rt 8 eq warps 8','eq rt 8 eq warps 16'),
+ 'drop_small_shape':('eq rt 2 eq warps 4','eq rt 3 eq warps 4'),
+ 'drop_incumbent':('eq rt 4 eq warps 8','eq rt 5 eq warps 8'),
+ 'admit_unsafe_one_row_group':('eq rt 2 eq warps 4','eq rt 1 eq warps 2'),
+ 'ignore_warp_count':('eq rt 2 eq warps 4','eq rt 2 eq rt 2'),
+}
+ident=(root/'src/cudapp_om_prefill_shape.ident').read_text().strip()
+pins=dict(part.split('=',1) for part in ident.split() if '=' in part)
+assert hashlib.sha256(Path(os.environ['OMEGA_OMC']).read_bytes()).hexdigest()==pins['omc']
+env=dict(os.environ,OMEGA_SEEDED_OMC=os.environ['OMEGA_OMC'])
+bridge=Path(os.environ['OMEGA_BRIDGE'])/'tools/bridge-seeded'
+assert hashlib.sha256(bridge.read_bytes()).hexdigest()==pins['frontend']
+assert hashlib.sha256((bridge.parent.parent/'src/toc.om').read_bytes()).hexdigest()==pins['converter']
+with tempfile.TemporaryDirectory(prefix='prefill-shape-mutants-') as t:
+ t=Path(t)
+ for name,(old,new) in mutants.items():
+  assert source.count(old)==1
+  om=t/(name+'.om');om.write_text(source.replace(old,new))
+  c=t/(name+'.c');so=t/(name+'.so')
+  with c.open('w') as f:subprocess.run(['sh',str(bridge),'c',str(om)],env=env,stdout=f,check=True)
+  subprocess.run([os.environ.get('CC','cc'),'-O2','-shared','-fPIC',str(c),'-o',str(so)],check=True)
+  p=subprocess.run(['python3',str(root/'om/prefill-shape/check.py'),str(so)],capture_output=True,text=True)
+  assert p.returncode!=0,name+' escaped oracle'
+  assert 'AssertionError' in p.stderr,(name,p.stderr)
+  print(name+': caught',flush=True)
diff --git a/om/prefill-shape/order-check.py b/om/prefill-shape/order-check.py
new file mode 100644
index 00000000..f8e5ec35
--- /dev/null
+++ b/om/prefill-shape/order-check.py
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# Independent external oracle. Not a production dependency.
+import ctypes,itertools,sys
+lib=ctypes.CDLL(sys.argv[1]);fn=lib.omega_native_qgorder
+fn.argtypes=[ctypes.POINTER(ctypes.c_uint64),ctypes.c_void_p]+[ctypes.c_uint64]*5
+fn.restype=ctypes.c_uint32
+
+def plan(group,cols,tiles,guard=1):
+    out=(ctypes.c_uint64*64)();result=ctypes.c_uint64(99)
+    rc=fn(ctypes.byref(result),out,64,group,cols,tiles,guard)
+    assert rc==0,rc
+    return result.value,list(out)
+
+def execute(p,x,y):
+    r=[x,y,0,0];pred=False
+    for i in range(p[2]):
+        op,d,a,b,imm=p[3+5*i:8+5*i]
+        assert max(d,a,b)<4
+        if op==1:r[d]=r[a]&imm
+        elif op==2:r[d]=r[a]>>imm
+        elif op==3:r[d]=r[a]*imm+r[b]
+        elif op==4:
+            assert imm==896+11*4
+            r[d]=execute.tiles
+        elif op==5:pred=r[a]>=r[b]
+        elif op==6:
+            if pred:return None
+        else:raise AssertionError('unknown opcode')
+    return (r[0],r[1])
+
+def cover(p,cols,tiles):
+    execute.tiles=tiles;seen=set()
+    for x,y in itertools.product(range(p[0]),range(p[1])):
+        mapped=execute(p,x,y)
+        if mapped is None:continue
+        if mapped in seen or not (0<=mapped[0]<cols and 0<=mapped[1]<tiles):return False
+        seen.add(mapped)
+    return seen==set(itertools.product(range(cols),range(tiles)))
+
+cases=0
+for g in range(6):
+    shapes=list(itertools.product([1,3,17],[1,15,16,17,65]))+list(itertools.product([40,128,272],[64,65]))
+    for c,t in shapes:
+        ok,p=plan(g,c,t);assert ok==1
+        assert (p[0],p[1])==(c*(1<<g),(t+(1<<g)-1)//(1<<g))
+        assert cover(p,c,t),(g,c,t)
+        ok,e=plan(g,c,t,0);assert ok==1
+        assert e[2]==(0 if g==0 else 3)
+        assert e[3:18]==p[3:18]
+        cases+=1
+for g,c,t,guard,want in [(5,2047,65535,1,1),(5,2048,65535,1,0),(6,1,1,1,0),(0,0,1,1,0),(0,1,0,1,0),(0,65536,1,1,0),(0,1,65536,1,0),(0,1,1,2,0),(2**64-1,1,1,1,0),(0,2**64-1,1,1,0),(0,1,2**64-1,1,0)]:
+    ok,p=plan(g,c,t,guard);assert ok==want
+    if not ok:assert p[:3]==[0,0,0]
+    cases+=1
+out=(ctypes.c_uint64*64)();v=ctypes.c_uint64()
+assert fn(None,out,64,1,1,1,1)==32
+assert fn(ctypes.byref(v),None,64,1,1,1,1)==32
+assert fn(ctypes.byref(v),out,63,1,1,1,1)==32
+ok,p=plan(4,3,17)
+for name,mutate in [('drop_guard',lambda q:q.__setitem__(2,3)),('wrong_mask',lambda q:q.__setitem__(7,7)),('wrong_row_stride',lambda q:q.__setitem__(17,8)),('floor_grid',lambda q:q.__setitem__(1,1)),('skip_row',lambda q:q.__setitem__(14,0))]:
+    q=p.copy();mutate(q);assert not cover(q,3,17),name
+    print(name+': caught')
+print('PASS grouped-grid coverage and boundary oracle',cases,'cases')
diff --git a/om/prefill-shape/order-combined-full-host-validation.json b/om/prefill-shape/order-combined-full-host-validation.json
new file mode 100644
index 00000000..6e8bf5f1
--- /dev/null
+++ b/om/prefill-shape/order-combined-full-host-validation.json
@@ -0,0 +1,18 @@
+{
+  "status": "PASS",
+  "runtime_source_commit": "28b533c95a2dce42cb14c9d8bc4a05847a5981a0",
+  "targets": 78,
+  "exit_code": 0,
+  "started": "2026-11-01T19:51:53.584886+00:00",
+  "ended": "2026-11-01T19:58:35.997653+00:00",
+  "command": [
+    "make",
+    "-j4",
+    "OUT_DIR=../optimize27-qg-order-build",
+    "test",
+    "test-runtime-api-semver",
+    "RUNTIME_API_BASE=572a73bfd138b78154172f7746504842a7168f9c"
+  ],
+  "log_sha256": "669e90dfddd238b8b81e05829acb2633c2ad4b4c0ded9aa15a8d237478a0f858",
+  "scope": "Complete local host suite at the named runtime source. Not server performance qualification."
+}
diff --git a/om/prefill-shape/order-combined-validation.json b/om/prefill-shape/order-combined-validation.json
new file mode 100644
index 00000000..1dc19939
--- /dev/null
+++ b/om/prefill-shape/order-combined-validation.json
@@ -0,0 +1,182 @@
+{
+  "status": "PASS_EXACT_SCORES",
+  "scope": "Shared-machine full-model reading screens, not quiet qualification or server first-visible timing. All six cases checked for finite, bit-identical full scores and equal next tokens.",
+  "formula": "seconds=ns/1e9; reduction_percent=100*(baseline_ns-candidate_ns)/baseline_ns",
+  "inputs": {
+    "reading-screen-group0-20261101T194419Z": "b8bcb76500664674cfc9ef99003f23df731a90fb121794abb79f6c0a581b2537",
+    "reading-screen-group4rows128-20261101T195034Z": "24c41043cc3c768d944cd574dbb39d30449c872b2f9bb046e631bfcdf12bf1b2",
+    "Optimize27-checkpoint-20261101": "44e4cb62fc06712f3728c26d0ba0a70dc4e516fb4557f80060f756720e8d26d6"
+  },
+  "rows": [
+    {
+      "trial": 0,
+      "prompt_tokens": 30,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+      "baseline_s": 0.332722031,
+      "candidate_s": 0.312788278,
+      "wall_reduction_percent": 5.991113044149457,
+      "baseline_gemm_s": 0.164627506,
+      "candidate_gemm_s": 0.170198526
+    },
+    {
+      "trial": 1,
+      "prompt_tokens": 513,
+      "chunk": 512,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "751c59e6812c98bedc12ccb72bf878cb7c52fe6734a51a96646b1d0bd5937396",
+      "baseline_s": 2.258274006,
+      "candidate_s": 1.778260423,
+      "wall_reduction_percent": 21.25577240514896,
+      "baseline_gemm_s": 1.337981532,
+      "candidate_gemm_s": 0.883070039
+    },
+    {
+      "trial": 2,
+      "prompt_tokens": 941,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "36dabb2803481bdd0e552d3c631557e3047d2e233e43f5636dccceae143661c0",
+      "baseline_s": 3.650990357,
+      "candidate_s": 2.821516931,
+      "wall_reduction_percent": 22.71913494402034,
+      "baseline_gemm_s": 2.213912136,
+      "candidate_gemm_s": 1.378392161
+    },
+    {
+      "trial": 3,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 19.126557271,
+      "candidate_s": 14.51550311,
+      "wall_reduction_percent": 24.10812408980343,
+      "baseline_gemm_s": 11.546749839,
+      "candidate_gemm_s": 7.10318834
+    },
+    {
+      "trial": 4,
+      "prompt_tokens": 30,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+      "baseline_s": 0.3078444,
+      "candidate_s": 0.296715819,
+      "wall_reduction_percent": 3.6150019295462252,
+      "baseline_gemm_s": 0.165410748,
+      "candidate_gemm_s": 0.170281775
+    },
+    {
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 14.34753708,
+      "wall_reduction_percent": 23.751251874326897,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 7.080880523
+    }
+  ],
+  "selected_for_further_qualification": {
+    "rt": 8,
+    "warps": 8,
+    "wait": 45,
+    "group": 4
+  },
+  "candidate_source_commit": "28b533c95a2dce42cb14c9d8bc4a05847a5981a0",
+  "candidate_archive_sha256": "aeeb841181fe8842cb45b5ef833bc184f9b05cc2cc6e8e996c6cc22eaebe18a8",
+  "candidate_binary_sha256": "f107356729c276ec79b57b441ba15087251d883407af0a6425eed1f8b28bd19b",
+  "core_source_commit": "bbd12e2ac591d43147a763f52155b73b912478a0",
+  "source_identity_sha256": "ad55c07dad93d14384f3bb756f5cce15a00d5476f7af73d4a9f34f3797c05f03",
+  "compared_settings_repeated_5017_tokens": [
+    {
+      "setting": "64 rows, group3",
+      "comparison_sha256": "f127c147f3010b662966fdbd59bb5b371bb6e44617481a578ced23573deff62d",
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 17.468336131,
+      "wall_reduction_percent": 7.166034532582367,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 9.933542337
+    },
+    {
+      "setting": "64 rows, group4",
+      "comparison_sha256": "8175a62635832d99d38f6e51ed64abcdcc80ce7b18b0359be806864be6728d69",
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 16.198925508,
+      "wall_reduction_percent": 13.91220778318886,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 8.801004973
+    },
+    {
+      "setting": "64 rows, group5",
+      "comparison_sha256": "d4fba1286e9c4656baa0b668fe200c0e55312b729df75177b2e14c440ccd2798",
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 16.076558904,
+      "wall_reduction_percent": 14.562514544228433,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 8.82675037
+    },
+    {
+      "setting": "128 rows, group0",
+      "comparison_sha256": "efd09bc4b22270fa13a723695425a2a43f3f8ed60bb1c8b9fc6dada06351648e",
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 14.759224384,
+      "wall_reduction_percent": 21.563375211300812,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 7.419917663
+    },
+    {
+      "setting": "128 rows, group4",
+      "comparison_sha256": "b3049cc751d8dd19332b16baee44fcde75b5e4572be268f9d7ca5003f21eae1f",
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 14.34753708,
+      "wall_reduction_percent": 23.751251874326897,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 7.080880523
+    },
+    {
+      "setting": "128 rows, group5",
+      "comparison_sha256": "12e6137537272bbfaf271e3168bc2ca9937f1aba9fe5353b68091cb8d1cbffd1",
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 15.37949024,
+      "wall_reduction_percent": 18.267025826637013,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 8.090324006
+    }
+  ],
+  "remaining": "Full combined host rerun, safe per-model serving integration, complete serving/long-context gate and five quiet alternating pairs. Defaults unchanged; not deployed."
+}
diff --git a/om/prefill-shape/order-mutants.py b/om/prefill-shape/order-mutants.py
new file mode 100644
index 00000000..b803aee7
--- /dev/null
+++ b/om/prefill-shape/order-mutants.py
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External source-mutant verification, not a production dependency.
+import hashlib,os,subprocess,tempfile
+from pathlib import Path
+root=Path(__file__).resolve().parents[2]
+source=(root/'om/prefill-shape/order.om').read_text()
+mutants={
+ 'drop_tail_guard':('if eq guard 1','if eq guard 0'),
+ 'floor_grid':('div add tiles sub size 1 size','div tiles size'),
+ 'bad_row_group':('at 3 37 size','at 3 37 1'),
+ 'bad_column_shift':('at 2 0 group','at 2 0 0'),
+ 'bad_row_mask':('sub size 1','sub size 2'),
+}
+
+ident=(root/'src/cudapp_om_prefill_order.ident').read_text().strip()
+pins=dict(part.split('=',1) for part in ident.split() if '=' in part)
+assert hashlib.sha256(Path(os.environ['OMEGA_OMC']).read_bytes()).hexdigest()==pins['omc']
+env=dict(os.environ,OMEGA_SEEDED_OMC=os.environ['OMEGA_OMC'])
+bridge=Path(os.environ['OMEGA_BRIDGE'])/'tools/bridge-seeded'
+assert hashlib.sha256(bridge.read_bytes()).hexdigest()==pins['frontend']
+assert hashlib.sha256((bridge.parent.parent/'src/toc.om').read_bytes()).hexdigest()==pins['converter']
+with tempfile.TemporaryDirectory(prefix='prefill-order-mutants-') as t:
+ t=Path(t)
+ for name,(old,new) in mutants.items():
+  assert source.count(old)>=1
+  om=t/(name+'.om');om.write_text(source.replace(old,new,1))
+  c=t/(name+'.c');so=t/(name+'.so')
+  with c.open('w') as f:subprocess.run(['sh',str(bridge),'c',str(om)],env=env,stdout=f,check=True)
+  subprocess.run([os.environ.get('CC','cc'),'-O2','-shared','-fPIC',str(c),'-o',str(so)],check=True)
+  p=subprocess.run(['python3',str(root/'om/prefill-shape/order-check.py'),str(so)],capture_output=True,text=True)
+  assert p.returncode!=0,name+' escaped oracle'
+  assert 'AssertionError' in p.stderr,(name,p.stderr)
+  print(name+': caught',flush=True)
diff --git a/om/prefill-shape/order-validation.json b/om/prefill-shape/order-validation.json
new file mode 100644
index 00000000..f7cc9f5b
--- /dev/null
+++ b/om/prefill-shape/order-validation.json
@@ -0,0 +1,132 @@
+{
+  "status": "PASS_EXACT_SCORES",
+  "scope": "Shared-machine single-run diagnostic. Not quiet or statistically qualified.",
+  "formula": "seconds=ns/1e9; reduction_percent=100*(baseline_ns-candidate_ns)/baseline_ns",
+  "inputs": {
+    "reading-screen-group0-20261101T194419Z": "b8bcb76500664674cfc9ef99003f23df731a90fb121794abb79f6c0a581b2537",
+    "reading-screen-group4-20261101T194534Z": "a7802b188ee8d2bb54e0a8d4d9e3dcffaf50867f1fdb6b81dfd8e86be008ffc6",
+    "Optimize27-checkpoint-20261101": "44e4cb62fc06712f3728c26d0ba0a70dc4e516fb4557f80060f756720e8d26d6"
+  },
+  "rows": [
+    {
+      "trial": 0,
+      "prompt_tokens": 30,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+      "baseline_s": 0.332722031,
+      "candidate_s": 0.328841392,
+      "wall_reduction_percent": 1.1663306419285473,
+      "baseline_gemm_s": 0.164627506,
+      "candidate_gemm_s": 0.163969208
+    },
+    {
+      "trial": 1,
+      "prompt_tokens": 513,
+      "chunk": 512,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "751c59e6812c98bedc12ccb72bf878cb7c52fe6734a51a96646b1d0bd5937396",
+      "baseline_s": 2.258274006,
+      "candidate_s": 2.156755011,
+      "wall_reduction_percent": 4.4954241482776025,
+      "baseline_gemm_s": 1.337981532,
+      "candidate_gemm_s": 1.209889835
+    },
+    {
+      "trial": 2,
+      "prompt_tokens": 941,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "36dabb2803481bdd0e552d3c631557e3047d2e233e43f5636dccceae143661c0",
+      "baseline_s": 3.650990357,
+      "candidate_s": 3.306518864,
+      "wall_reduction_percent": 9.435015141564232,
+      "baseline_gemm_s": 2.213912136,
+      "candidate_gemm_s": 1.795833972
+    },
+    {
+      "trial": 3,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 19.126557271,
+      "candidate_s": 16.36954494,
+      "wall_reduction_percent": 14.414577029919688,
+      "baseline_gemm_s": 11.546749839,
+      "candidate_gemm_s": 8.809191353
+    },
+    {
+      "trial": 4,
+      "prompt_tokens": 30,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+      "baseline_s": 0.3078444,
+      "candidate_s": 0.316550316,
+      "wall_reduction_percent": -2.8280248073377328,
+      "baseline_gemm_s": 0.165410748,
+      "candidate_gemm_s": 0.162994709
+    },
+    {
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 18.816751006,
+      "candidate_s": 16.198925508,
+      "wall_reduction_percent": 13.91220778318886,
+      "baseline_gemm_s": 11.509962547,
+      "candidate_gemm_s": 8.801004973
+    }
+  ],
+  "binary_sha256": "8b8687ada95f10254ddf7dbedb9bbecc080fd35c42bed77d104666d417388d58",
+  "settings": {
+    "baseline": {
+      "rt": 4,
+      "group": 0
+    },
+    "candidate": {
+      "rt": 4,
+      "group": 4
+    },
+    "warps": 8,
+    "wait": 45
+  },
+  "host": {
+    "status": "PASS",
+    "exit_code": 0,
+    "targets": 78,
+    "command": "make -j4 OUT_DIR=../optimize27-qg-order-build test test-runtime-api-semver RUNTIME_API_BASE=ecb672c77f6f9145f0983348277ae8f58c74c8d3",
+    "compiler_sha256": "2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f",
+    "full_log_sha256": "4db1c5946321e1d77594196896039749f70246247dd202646de6bb8051ca52eb",
+    "source_identity": {
+      "base": "ecb672c77f6f9145f0983348277ae8f58c74c8d3",
+      "status": "PASS full host suite78, semver, exact GPU scores group0/group4; shared timing only",
+      "sources": {
+        "docs/runtime/API.md": "2d9e4e4390ca852ff05dd76e6290778cf90173e94348b8deabb3978ec5e1292f",
+        "docs/runtime/omega_runtime_api.manifest": "0fd414db619b7fc8d40b503c4368e415fd215b05e29039346a855e3d8e5d717e",
+        "mk/prefill-shape.mk": "ccba4c78dc228c864094028674319b6c07a6b403a852c7b0e10014805c30fe39",
+        "om/prefill-shape/README.md": "5cfd7bc8ac55bb62a19996a0c79de2eebecc0357121a362c2705dcf8157cc293",
+        "om/units.sh": "90e2b06d539b0fce4b8b1642985bd339f7df103c10689721bdf279cbb6ef6324",
+        "src/cudapp_native.h": "91cab62eed37af70fe6b83710b5c0d2ea1f365f4a626fb988550ea3a0c0a65d6",
+        "src/cudapp_om_units.ident": "77b16d01c829b52e115eb9ed659664921fa3d9d419319869e03b0399c8f43650",
+        "src/omega_blackwell_codegen_qg.c": "cf2c5cd3d58d9f0439e116143199054e0d6ff4c7117c96c64ad6b0995072cfeb",
+        "src/omega_blackwell_codegen_qg.h": "c19bbd7f882c99da69b23d2e6cb9b3fd999f541803730f0aa0db023019ed4806",
+        "src/omega_gpu_pfgemm.c": "c2379b1758dd402dc2eb5608404e5f333531994e39ebd5d7f8058247e21e47b7",
+        "src/omega_gpu_prefill.h": "3460cfeeb2f19799b318e059a6cdfb66447ab0a4dc720d8c5122e98d86c02e90",
+        "src/omega_runtime_api.h": "a52d32533dafe83ca20d69399b59f998389cd867cb3b9de6b4e2937926e3547f",
+        "tests/bw_hazard_test.c": "9cb312122fab1e0f9cfeb17a42dd64310d51919bf9fa6f019bc82f4e2ead9757",
+        "tests/gpu_qgemm_test.c": "407875e2d792c0db39903bf3a2689a954e90a5c2698426fb09d93ffe0108acd9",
+        "om/prefill-shape/order.om": "13f0e33cd7013f62564a82e5e6a2a9722ab3de92e10934ed46fffc2c5174de9b",
+        "om/prefill-shape/order-check.py": "62032077e16c8e0e99c32c016b051e19b706b887da2e722b04c63c7124ff73b4",
+        "om/prefill-shape/order-mutants.py": "0795f05f7661e0c0b58dd066cae8e470f64392b6389ea3b7a8d25e0aaf199442",
+        "src/cudapp_om_prefill_order.c": "43c835999dd230d3b953ad5b002a63d116638d93b4cb6893525676db6432ae77",
+        "src/cudapp_om_prefill_order.ident": "fb4a96a87f733878627afadf6562b9f6b3c51bea805cb9c61c51b33ab9bcce71"
+      },
+      "archive_sha256": "7d29f388fd6e270e4017df99e7e2ef18f914a9aeee0837a74fc9b05980eb0cbd"
+    },
+    "scope": "Host tests and simulated matrix arithmetic, including all 137 plan cases and five Omega source mutants. Not hardware performance qualification."
+  }
+}
diff --git a/om/prefill-shape/order.om b/om/prefill-shape/order.om
new file mode 100644
index 00000000..f35e69b8
--- /dev/null
+++ b/om/prefill-shape/order.om
@@ -0,0 +1,53 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Grouped work order: adjacent column jobs reuse one weight panel across row tiles.
+note Private plan: grid x, grid y, record count, then records of opcode,dst,src1,src2,immediate.
+note Registers 0=cx,1=cy,2=temporary,3=tile count. Opcodes are private adapter operations.
+fn qgo_put plan edit ulong 64 at ulong op ulong regs ulong imm ulong to ulong
+put plan at op
+put plan add at 1 rem regs 4
+put plan add at 2 rem div regs 4 4
+put plan add at 3 div regs 16
+put plan add at 4 imm
+ret add at 5
+end
+
+fn qgo_emit plan edit ulong 64 group ulong guard ulong to ulong
+size = shl ulong 1 group
+at = qgo_put plan 3 1 2 sub size 1
+at = qgo_put plan at 2 0 group
+at = qgo_put plan at 3 37 size
+if eq guard 1
+note Tile count is constant-bank argument word11, byte896+44=940.
+at = qgo_put plan at 4 3 940
+at = qgo_put plan at 5 52 0
+at = qgo_put plan at 6 0 0
+end
+put plan 2 div sub at 3 5
+ret 1
+end
+
+fn native_qgorder plan edit ulong 64 group ulong cols ulong tiles ulong guard ulong to ulong
+put plan 0 0
+put plan 1 0
+put plan 2 0
+if or gt group 5 gt guard 1
+ret 0
+end
+if or eq cols 0 gt cols 65535
+ret 0
+end
+if or eq tiles 0 gt tiles 65535
+ret 0
+end
+size = shl ulong 1 group
+gx = mul cols size
+if gt gx 65535
+ret 0
+end
+put plan 0 gx
+put plan 1 div add tiles sub size 1 size
+if eq group 0
+ret 1
+end
+ret qgo_emit plan group guard
+end
diff --git a/om/prefill-shape/reading-check.py b/om/prefill-shape/reading-check.py
new file mode 100644
index 00000000..7ceda8fb
--- /dev/null
+++ b/om/prefill-shape/reading-check.py
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External profile oracle, not a production dependency.
+import ctypes,sys
+lib=ctypes.CDLL(sys.argv[1])
+
+# Independent profile table at every small boundary and representative large rows.
+r=lib.omega_native_qgreading
+r.argtypes=[ctypes.POINTER(ctypes.c_uint64),ctypes.c_uint64,ctypes.c_uint64];r.restype=ctypes.c_uint32
+for rows in list(range(0,258))+[4095,4096,4097,2**32-1,2**32,2**64-1]:
+ for index in [0,1,2,3,4,2**64-1]:
+  out=ctypes.c_uint64(123)
+  assert r(ctypes.byref(out),rows,index)==0
+  expected=(4,8,45,0) if 0<rows<65 else (8,8,45,4)
+  want=expected[index] if 0<rows<2**32 and index<4 else 2**32-1
+  assert out.value==want,(rows,index,out.value,want)
+assert r(None,64,0)==32
+print('PASS adaptive profile boundaries, option order and refusal controls')
diff --git a/om/prefill-shape/reading-mutants.py b/om/prefill-shape/reading-mutants.py
new file mode 100644
index 00000000..760e04bd
--- /dev/null
+++ b/om/prefill-shape/reading-mutants.py
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External source-mutant verification, not a production dependency.
+import hashlib,os,subprocess,tempfile
+from pathlib import Path
+root=Path(__file__).resolve().parents[2]
+source=(root/'om/prefill-shape/reading.om').read_text()
+mutants={
+ 'reading_threshold':('if le rows 64\nret 4','if le rows 63\nret 4'),
+ 'reading_group':('if le rows 64\nret 0','if le rows 65\nret 0'),
+ 'reading_wait':('if eq index 2\nret 45','if eq index 2\nret 0'),
+ 'reading_zero':('if or eq rows 0 gt rows 4294967295','if or eq rows 1 gt rows 4294967295'),
+ 'reading_index':('if gt index 3','if gt index 4'),
+
+}
+ident=(root/'src/cudapp_om_prefill_reading.ident').read_text().strip()
+pins=dict(part.split('=',1) for part in ident.split() if '=' in part)
+assert hashlib.sha256(Path(os.environ['OMEGA_OMC']).read_bytes()).hexdigest()==pins['omc']
+env=dict(os.environ,OMEGA_SEEDED_OMC=os.environ['OMEGA_OMC'])
+bridge=Path(os.environ['OMEGA_BRIDGE'])/'tools/bridge-seeded'
+assert hashlib.sha256(bridge.read_bytes()).hexdigest()==pins['frontend']
+assert hashlib.sha256((bridge.parent.parent/'src/toc.om').read_bytes()).hexdigest()==pins['converter']
+with tempfile.TemporaryDirectory(prefix='prefill-shape-mutants-') as t:
+ t=Path(t)
+ for name,(old,new) in mutants.items():
+  assert source.count(old)==1
+  om=t/(name+'.om');om.write_text(source.replace(old,new))
+  c=t/(name+'.c');so=t/(name+'.so')
+  with c.open('w') as f:subprocess.run(['sh',str(bridge),'c',str(om)],env=env,stdout=f,check=True)
+  subprocess.run([os.environ.get('CC','cc'),'-O2','-shared','-fPIC',str(c),'-o',str(so)],check=True)
+  p=subprocess.run(['python3',str(root/'om/prefill-shape/reading-check.py'),str(so)],capture_output=True,text=True)
+  assert p.returncode!=0,name+' escaped oracle'
+  assert 'AssertionError' in p.stderr,(name,p.stderr)
+  print(name+': caught',flush=True)
diff --git a/om/prefill-shape/reading.om b/om/prefill-shape/reading.om
new file mode 100644
index 00000000..8cbde7e0
--- /dev/null
+++ b/om/prefill-shape/reading.om
@@ -0,0 +1,27 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Reading profile proposal: avoid a second 64-row group for a short request.
+note Options are rt, warps, wait, group. Invalid input returns the u32 sentinel.
+fn native_qgreading rows ulong index ulong to ulong
+if or eq rows 0 gt rows 4294967295
+ret 4294967295
+end
+if gt index 3
+ret 4294967295
+end
+if eq index 0
+if le rows 64
+ret 4
+end
+ret 8
+end
+if eq index 1
+ret 8
+end
+if eq index 2
+ret 45
+end
+if le rows 64
+ret 0
+end
+ret 4
+end
diff --git a/om/prefill-shape/scoped-check.c b/om/prefill-shape/scoped-check.c
new file mode 100644
index 00000000..8e9cbfa1
--- /dev/null
+++ b/om/prefill-shape/scoped-check.c
@@ -0,0 +1,56 @@
+/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
+/* Real call-path isolation test. The device-open and kernel-cache boundaries are
+ * intercepted; neither a GPU nor fake matrix arithmetic is used. */
+#include "omega_gpu_prefill.h"
+#include "omega_blackwell_codegen_qg.h"
+#include <stdio.h>
+#include <string.h>
+static unsigned opened, keyed, failed;
+static OmegaQgSpec want;
+int __wrap_omega_gpu_pf_open_locked(void) { opened++; return OMEGA_GPU_PF_OK; }
+int __wrap_omega_gpu_pf_kernel_locked(const OmegaPfKey *key, OmegaPfGen gen, OmegaPfKernel *out) {
+    OmegaQgSpec got; (void)gen; (void)out;
+    memcpy(&got,key->words,sizeof got); keyed++;
+    if (memcmp(&got,&want,sizeof got)) { fprintf(stderr,"wrong per-call kernel key\n"); failed++; }
+    return OMEGA_GPU_PF_TOO_LARGE; /* stop before allocation/launch */
+}
+static void expect(unsigned rt,unsigned warps,unsigned group,unsigned mutant) {
+    memset(&want,0,sizeof want);want.rt=rt;want.warps=warps;want.group=group;want.mutant=mutant;
+    want.k=128;want.n=256;want.wait=45;want.direct=1;
+    opened=keyed=0;
+}
+static void check(int ok,const char *why) { if(!ok) {failed++;fprintf(stderr,"%s\n",why);} }
+static int scoped(unsigned rt,unsigned group) {
+    return omega_gpu_pf_qgemm_scoped(rt,8,45,group,256,128,OMEGA_GPU_PF_PLAIN,16,1,0,32,48,64,NULL);
+}
+int main(void) {
+    omega_gpu_pf_qgemm_set_shape(2,4,45);omega_gpu_pf_qgemm_set_group(1);omega_gpu_pf_qgemm_test_set_mutant(1);
+    check(omega_gpu_pf_qgemm_scoped_bm(8,8,45,4)==128,"checked128 tile height");
+    check(omega_gpu_pf_qgemm_scoped_bm(4,8,45,0)==64,"checked64 tile height");
+    check(omega_gpu_pf_qgemm_scoped_bm(0,8,45,4)==0,"zero shape refused");
+    check(omega_gpu_pf_qgemm_scoped_bm(8,8,121,4)==0,"unsafe wait refused");
+    check(omega_gpu_pf_qgemm_scoped_bm(8,8,45,6)==0,"group outside bound refused");
+    for(unsigned i=0;i<3;i++) {
+        unsigned rt=i==1?4:8, group=i==1?0:4;
+        expect(rt,8,group,0);
+        check(scoped(rt,group)==OMEGA_GPU_PF_TOO_LARGE && opened==1 && keyed==1,"scoped call reached its own kernel key");
+        expect(2,4,1,1);
+        int rc=omega_gpu_pf_qgemm(256,128,OMEGA_GPU_PF_PLAIN,16,1,0,32,48,64,NULL);
+        check(rc==OMEGA_GPU_PF_TOO_LARGE && opened==1 && keyed==1,"legacy settings unchanged after scoped call");
+        check(omega_gpu_pf_qgemm_bm()==32,"legacy tile height unchanged");
+    }
+    const uint32_t rows[] = {1,30,64,65,128,4096,UINT32_MAX};
+    for(unsigned i=0;i<sizeof(rows)/sizeof(rows[0]);i++) {
+        uint32_t p[4];for(unsigned j=0;j<4;j++)p[j]=omega_gpu_pf_qgemm_reading_option(rows[i],j);
+        expect(rows[i]<=64?4:8,8,rows[i]<=64?0:4,0);
+        int rc=omega_gpu_pf_qgemm_scoped(p[0],p[1],p[2],p[3],256,128,OMEGA_GPU_PF_PLAIN,16,1,0,32,48,64,NULL);
+        check(rc==OMEGA_GPU_PF_TOO_LARGE && opened==1 && keyed==1,"adaptive profile reaches matching cache key");
+        check(omega_gpu_pf_qgemm_bm()==32,"adaptive query leaves legacy height unchanged");
+    }
+    check(omega_gpu_pf_qgemm_reading_option(0,0)==UINT32_MAX,"zero reading rows refused");
+    check(omega_gpu_pf_qgemm_reading_option(64,4)==UINT32_MAX,"unknown reading option refused");
+    expect(8,8,6,0);
+    check(scoped(8,6)==OMEGA_GPU_PF_BAD_ARGS && opened==0 && keyed==0,"invalid options refused before device access");
+    omega_gpu_pf_qgemm_set_shape(0,0,0);omega_gpu_pf_qgemm_set_group(0);omega_gpu_pf_qgemm_test_set_mutant(0);
+    printf("scoped qgemm isolation: %s\n",failed?"FAIL":"PASS");return failed?1:0;
+}
diff --git a/om/prefill-shape/scoped-model-validation.json b/om/prefill-shape/scoped-model-validation.json
new file mode 100644
index 00000000..709342c3
--- /dev/null
+++ b/om/prefill-shape/scoped-model-validation.json
@@ -0,0 +1,132 @@
+{
+  "status": "PASS_EXACT_SCORES",
+  "scope": "Shared-machine single-run diagnostic. Not quiet or statistically qualified.",
+  "formula": "seconds=ns/1e9; reduction_percent=100*(baseline_ns-candidate_ns)/baseline_ns",
+  "inputs": {
+    "/home/drakestapleton/handoffs/Optimize27-checkpoint-20261101/scoped-profile-mode0-20261101T201048Z/data": "c66387fb7abd1a50b5515d06f3c925959c8ef3c68e47a48a7a5ec37cb1846691",
+    "/home/drakestapleton/handoffs/Optimize27-checkpoint-20261101/scoped-profile-mode1-20261101T201204Z/data": "9e084d7227443e9f706787d7b0f72aedd1cd34968104f83a9c26365a5f300eff",
+    "/home/drakestapleton/handoffs/Optimize27-checkpoint-20261101/scratch-baseline-data": "44e4cb62fc06712f3728c26d0ba0a70dc4e516fb4557f80060f756720e8d26d6"
+  },
+  "rows": [
+    {
+      "trial": 0,
+      "prompt_tokens": 30,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+      "baseline_s": 0.310116316,
+      "candidate_s": 0.340853811,
+      "wall_reduction_percent": -9.911602006777354,
+      "baseline_gemm_s": 0.164876334,
+      "candidate_gemm_s": 0.171508113
+    },
+    {
+      "trial": 1,
+      "prompt_tokens": 513,
+      "chunk": 512,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "751c59e6812c98bedc12ccb72bf878cb7c52fe6734a51a96646b1d0bd5937396",
+      "baseline_s": 2.274214302,
+      "candidate_s": 1.862565739,
+      "wall_reduction_percent": 18.10069361704331,
+      "baseline_gemm_s": 1.353240513,
+      "candidate_gemm_s": 0.869492863
+    },
+    {
+      "trial": 2,
+      "prompt_tokens": 941,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "36dabb2803481bdd0e552d3c631557e3047d2e233e43f5636dccceae143661c0",
+      "baseline_s": 3.722388432,
+      "candidate_s": 2.933748301,
+      "wall_reduction_percent": 21.18640075872662,
+      "baseline_gemm_s": 2.21938298,
+      "candidate_gemm_s": 1.382941945
+    },
+    {
+      "trial": 3,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 19.07438026,
+      "candidate_s": 14.640784822,
+      "wall_reduction_percent": 23.24371946855588,
+      "baseline_gemm_s": 11.630266332,
+      "candidate_gemm_s": 7.109164731
+    },
+    {
+      "trial": 4,
+      "prompt_tokens": 30,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "890aabe9fed6550d1665eaa1fb20c3dfc25efe514db8d8ca6b97160be5bde853",
+      "baseline_s": 0.282019619,
+      "candidate_s": 0.358219437,
+      "wall_reduction_percent": -27.019332296878254,
+      "baseline_gemm_s": 0.165838626,
+      "candidate_gemm_s": 0.170276119
+    },
+    {
+      "trial": 5,
+      "prompt_tokens": 5017,
+      "chunk": 4096,
+      "all_score_bits_and_next_equal": true,
+      "score_sha256": "88ca539df5ecfc096a32e59aec5c48da86f9bcc54f6d78e2bcb9fa4a79535447",
+      "baseline_s": 19.123025181,
+      "candidate_s": 14.51508928,
+      "wall_reduction_percent": 24.096270633886377,
+      "baseline_gemm_s": 11.665614326,
+      "candidate_gemm_s": 7.135011549
+    }
+  ],
+  "core_source": "af6a899c3e4826fbba2d8ee42d31d6d136bf2256",
+  "core_receipt": "https://github.com/aien-dev/aien-sovereign-core-mv/blob/4723174d/om/ribbon/q38-scoped-reading-validation.json",
+  "profile_build": {
+    "command": [
+      "taskset",
+      "-c",
+      "10-11",
+      "nice",
+      "-n",
+      "19",
+      "rustc",
+      "--edition=2021",
+      "-O",
+      "-C",
+      "panic=abort",
+      "-C",
+      "lto=thin",
+      "/home/drakestapleton/handoffs/Optimize27-checkpoint-20261101/scoped-profile.rs",
+      "-L",
+      "dependency=/tmp/optimize27-serving-target/release/deps",
+      "-L",
+      "native=/tmp/optimize27-scoped-reading-build",
+      "--extern",
+      "serde_json=/tmp/optimize27-serving-target/release/deps/libserde_json-c53b161b72615764.rlib",
+      "--extern",
+      "aien_inference_abi=/tmp/optimize27-serving-target/release/libaien_inference_abi.rlib",
+      "-o",
+      "/home/drakestapleton/handoffs/Optimize27-checkpoint-20261101/scoped-profile"
+    ],
+    "artifacts": {
+      "serde_json": {
+        "path": "/tmp/optimize27-serving-target/release/deps/libserde_json-c53b161b72615764.rlib",
+        "sha256": "3d48d513d1b663788c4ac635260557eb3251d02c594ccdf2392e76a0a92fe774"
+      },
+      "aien_inference_abi": {
+        "path": "/tmp/optimize27-serving-target/release/libaien_inference_abi.rlib",
+        "sha256": "6327d731fd5cb451fefdb995352a30976e5099d6b8c5586bc2bac13497a7a9ff"
+      }
+    },
+    "exit_code": 0,
+    "native_sha256": "97b822bd9e919e834adf90e7b9485bf73f7d4f2c0a80cfd1ecde9c8ff9ff1631",
+    "source_sha256": "a4e0bee1a17a82cedc6d17282d2144be5dc8efc10c86eaf44e52d1773ecf0553",
+    "source_core": "af6a899c3e4826fbba2d8ee42d31d6d136bf2256",
+    "binary_sha256": "691e75516b4134a47d1ff365742f6725b06217b1683212a434632d924d00abfa"
+  },
+  "input_tokens_sha256": "c77cea30c9f1344a22d664ed76f50b079aa02a48a88174feb5f928ce89feaaaa",
+  "serving_status": "Initial full serving quality and sampled32 parity PASS; clean build, long contexts and controlled timing are separate.",
+  "limitation": "The repeated30-token case increased from0.282019619s to0.358219437s. Fixed128 rows are not promoted; an adaptive profile remains to be tested."
+}
diff --git a/om/prefill-shape/scoped-mutants.py b/om/prefill-shape/scoped-mutants.py
new file mode 100644
index 00000000..3a4dc331
--- /dev/null
+++ b/om/prefill-shape/scoped-mutants.py
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External call-isolation fault tests; not a production dependency.
+from pathlib import Path
+import os,subprocess,sys,tempfile
+r=Path(__file__).resolve().parents[2]
+archive=Path(sys.argv[1]).resolve();src=(r/'src/omega_gpu_pfgemm.c').read_text()
+mutants={
+ 'ignore_scoped_options':('if (scoped) s = *scoped;','if (scoped && 0) s = *scoped;'),
+ 'leak_options_to_global':('const OmegaQgSpec s = qg_scoped_spec(rt, warps, wait, group);','omega_gpu_pf_qgemm_set_shape(rt, warps, wait); omega_gpu_pf_qgemm_set_group(group);\n    const OmegaQgSpec s = qg_scoped_spec(rt, warps, wait, group);'),
+ 'wrong_tile_height':('return omega_qg_spec_ok(&s) ? 16u * s.rt : 0;','return omega_qg_spec_ok(&s) ? 8u * s.rt : 0;'),
+}
+with tempfile.TemporaryDirectory(prefix='qg-scoped-faults-') as d:
+ d=Path(d)
+ for name,(old,new) in mutants.items():
+  assert src.count(old)==1,name
+  f=d/(name+'.c');f.write_text(src.replace(old,new));exe=d/name
+  subprocess.run([os.environ.get('CC','cc'),'-std=gnu11','-O2','-Wall','-Wextra','-Werror','-I'+str(r/'src'),str(f),str(r/'om/prefill-shape/scoped-check.c'),str(archive),'-Wl,--wrap=omega_gpu_pf_open_locked','-Wl,--wrap=omega_gpu_pf_kernel_locked','-lpthread','-lm','-o',str(exe)],check=True)
+  q=subprocess.run([str(exe)],capture_output=True,text=True)
+  assert q.returncode==1 and 'scoped qgemm isolation: FAIL' in q.stdout,(name,q.returncode,q.stdout,q.stderr)
+  print(name+': caught',flush=True)
diff --git a/om/prefill-shape/scoped-validation.json b/om/prefill-shape/scoped-validation.json
new file mode 100644
index 00000000..5704aeba
--- /dev/null
+++ b/om/prefill-shape/scoped-validation.json
@@ -0,0 +1,60 @@
+{
+  "status": "PASS all79 host targets, scoped call isolation, three fault controls and runtime API/version gates; scoped serving and full-model qualification still in progress",
+  "production_commit": "f50be1f9",
+  "base": "6d339a0dcbcada66fd211d89f5a0ed6704003f75",
+  "source_sha256": {
+    "src/omega_gpu_pfgemm.c": "f8ca4e4ca9dc841ced3b7ed344399a49352062f0244438ce9fc64f39156d619b",
+    "src/omega_gpu_prefill.h": "0bc62e9fd3a20bc801fb008aa55af953a412a104171bc450386bfb412a12fdbd",
+    "src/omega_runtime_api.h": "436604826fb01e10e6fb03490b3f0723f66b7b3b8171f96a277694947d62da0e",
+    "docs/runtime/omega_runtime_api.manifest": "b603dd037c8fc064f46fef994a43b56a4886e6aaed101b968d46451be601fbc4",
+    "om/prefill-shape/scoped-check.c": "aecddc1972fd6c452ed5429a525042abdf7b91e9c8bcd868a3ab874e64922a74",
+    "om/prefill-shape/scoped-mutants.py": "8a6a927d37976717305afca2ff7f1e4ce707c6f6f29bdbf078eb28149292dd63",
+    "mk/prefill-shape.mk": "e0bd383c075a634f85ca807e8cf5d392f8c06c557a81744a22be62cf62921da0"
+  },
+  "archive_sha256": "97b822bd9e919e834adf90e7b9485bf73f7d4f2c0a80cfd1ecde9c8ff9ff1631",
+  "commands": [
+    "make test-prefill-scoped",
+    "make test-runtime-api test-runtime-api-semver RUNTIME_API_BASE=6d339a0dcbcada66fd211d89f5a0ed6704003f75"
+  ],
+  "exit_codes": [
+    0,
+    0
+  ],
+  "logs_sha256": {
+    "scoped-native-final-target.log": "8d27a0929a3ce654c5f0f20acc1813623c91f9fa7042479e86ceaefa0097ee17",
+    "scoped-native-tests-fixed.log": "bf12b4a8230396ab52122cf8719558daa50e54ceb7d30ab4fc99031de4897fbc"
+  },
+  "negative_controls": [
+    "ignore_scoped_options",
+    "leak_options_to_global",
+    "wrong_tile_height"
+  ],
+  "scope": "The real qg_core constructs the intercepted kernel key. Tests interleave explicit128/group4, explicit64/group0, and legacy32/group1/mutant1 calls without opening a GPU. Invalid options are refused before device access. Checked Omega units retain numerical/order policy.",
+  "full_host": {
+    "command": [
+      "taskset",
+      "-c",
+      "12-15",
+      "nice",
+      "-n",
+      "19",
+      "make",
+      "-j4",
+      "OUT_DIR=../optimize27-scoped-reading-build",
+      "test",
+      "test-runtime-api-semver",
+      "RUNTIME_API_BASE=6d339a0dcbcada66fd211d89f5a0ed6704003f75"
+    ],
+    "cwd": "/tmp/optimize27-scoped-reading-cudapp",
+    "source_head": "fa70990c4af3dbf18469019c8707b7e0f5866998",
+    "started": "2026-11-01T20:00:46.400700+00:00",
+    "environment": {
+      "OMEGA_OMC": "/tmp/ribbon-seed-compiler/seed/out/omc",
+      "OMEGA_BRIDGE": "/tmp/optimize27-bridge"
+    },
+    "exit_code": 0,
+    "ended": "2026-11-01T20:07:51.693459+00:00",
+    "targets": 79,
+    "log_sha256": "f8ccb59ee6a562f2f0e2e3fdd57d5e9468fe798a82fa667097db5215262978ba"
+  }
+}
diff --git a/om/prefill-shape/serving-validation.json b/om/prefill-shape/serving-validation.json
new file mode 100644
index 00000000..4fec04bf
--- /dev/null
+++ b/om/prefill-shape/serving-validation.json
@@ -0,0 +1,51 @@
+{
+  "status": "PASS exact128, seeded sampled32, exact128 after sampling",
+  "binary_sha256": "e04a4bd683fa13863cb83c8ecaf508e355a89003727b99b0dc932dface215be7",
+  "core_source": "f0acdc7dc460e1984aa72bba515ea35c3eac2d55",
+  "cudapp_source": "0cc2579513b74cc38c12f7c53052f4cad01917ca",
+  "external_adapter": "sets existing shape to rt2/warps4/wait45 before model load; not production code",
+  "first_visible_seconds": [
+    0.5158439959632233,
+    0.5210204750183038,
+    0.4791836779913865
+  ],
+  "requests": [
+    {
+      "name": "exact128",
+      "wall_seconds": 15.529412995965686,
+      "token_ids_sha256": "8d3ae59b4eb2f5be2a7e705c081d3654f8dacedd62d719dac7503fb5fa54c004"
+    },
+    {
+      "name": "sampled",
+      "wall_seconds": 4.527396937017329,
+      "token_ids_sha256": "8900051ea281633f9ef7ae4562d24af8433c04821c9b9cb73faa5c78ef16356c"
+    },
+    {
+      "name": "exact128-after-sampling",
+      "wall_seconds": 16.005692942999303,
+      "token_ids_sha256": "8d3ae59b4eb2f5be2a7e705c081d3654f8dacedd62d719dac7503fb5fa54c004"
+    }
+  ],
+  "limits": [
+    "Shared correctness screen only. No five alternating quiet pairs.",
+    "Full256 conversation, streaming, longer-prompt and broader task gate still pending.",
+    "No default selection or deployment changed."
+  ],
+  "chip_comparison": {
+    "status": "single three-repeat chip screen per shape, shared machine, not full-model qualification",
+    "median_kernel_ms": {
+      "rows32": {
+        "q38gu": 0.854,
+        "q38down": 0.454,
+        "q38mix": 0.393,
+        "q38o": 0.142
+      },
+      "rows64": {
+        "q38gu": 0.81,
+        "q38down": 0.493,
+        "q38mix": 0.41,
+        "q38o": 0.155
+      }
+    }
+  }
+}
\ No newline at end of file
diff --git a/om/prefill-shape/validation.json b/om/prefill-shape/validation.json
new file mode 100644
index 00000000..e0b78132
--- /dev/null
+++ b/om/prefill-shape/validation.json
@@ -0,0 +1,96 @@
+{
+  "source_base": "009ada7602c70755e3fb8cd6d9cd776a30ad9c39",
+  "implementation": "Omega narrow shape policy; unchanged parameterized kernel emitter",
+  "preimplementation_failure": "32-row four-warp shape accepted: 0 (required 1)",
+  "simulator": "PASS",
+  "simulator_cases": [
+    "sim qgemm case 0 (n 256 k 384 M 300 swiglu indexed rt 4 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 0 (n 256 k 384 M 300 swiglu indexed rt 4 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 0 mutant 1: caught",
+    "sim qgemm case 0 mutant 2: caught",
+    "sim qgemm case 0 mutant 3: caught",
+    "sim qgemm case 0 mutant 4: caught",
+    "sim qgemm case 1 (n 256 k 256 M 200 f32 direct rt 4 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 1 (n 256 k 256 M 200 f32 direct rt 4 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 1 mutant 1: caught",
+    "sim qgemm case 1 mutant 2: caught",
+    "sim qgemm case 1 mutant 3: caught",
+    "sim qgemm case 1 mutant 4: caught",
+    "sim qgemm case 2 (n 256 k 128 M 150 f32 indexed rt 4 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 2 (n 256 k 128 M 150 f32 indexed rt 4 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 3 (n 512 k 1024 M 140 swiglu direct rt 4 warps 8) order 0: ran, 0 differ",
+    "sim qgemm case 3 (n 512 k 1024 M 140 swiglu direct rt 4 warps 8) order 1: ran, 0 differ",
+    "sim qgemm case 4 (n 256 k 384 M 97 swiglu indexed rt 2 warps 4) order 0: ran, 0 differ",
+    "sim qgemm case 4 (n 256 k 384 M 97 swiglu indexed rt 2 warps 4) order 1: ran, 0 differ",
+    "sim qgemm case 4 mutant 1: caught",
+    "sim qgemm case 4 mutant 2: caught",
+    "sim qgemm case 4 mutant 3: caught",
+    "sim qgemm case 4 mutant 4: caught",
+    "sim qgemm case 5 (n 256 k 256 M 65 f32 direct rt 2 warps 4) order 0: ran, 0 differ",
+    "sim qgemm case 5 (n 256 k 256 M 65 f32 direct rt 2 warps 4) order 1: ran, 0 differ",
+    "sim qgemm case 5 mutant 1: caught",
+    "sim qgemm case 5 mutant 2: caught",
+    "sim qgemm case 5 mutant 3: caught",
+    "sim qgemm case 5 mutant 4: caught",
+    "sim qgemm case 6 (n 256 k 128 M 31 f32 indexed rt 2 warps 4) order 0: ran, 0 differ",
+    "sim qgemm case 6 (n 256 k 128 M 31 f32 indexed rt 2 warps 4) order 1: ran, 0 differ",
+    "sim qgemm case 7 (n 512 k 1024 M 30 swiglu direct rt 2 warps 4) order 0: ran, 0 differ",
+    "sim qgemm case 7 (n 512 k 1024 M 30 swiglu direct rt 2 warps 4) order 1: ran, 0 differ"
+  ],
+  "host_reference": [
+    "PASS qgemm SwiGLU: MUFU flush vs IEEE, 15859204 inputs, 0 differ (t-cap keeps it unobservable, #462)",
+    "qgemm emulation vs double oracle (plain): worst error 2.31e-07 of the sum of |terms| PASS",
+    "qgemm emulation vs double oracle (swiglu_nat): worst error 2.19e-07 of the sum of |terms| PASS",
+    "GPU_QGEMM: PASS"
+  ],
+  "policy_mutants": [
+    "drop_small_shape: caught",
+    "drop_incumbent: caught",
+    "admit_unsafe_one_row_group: caught",
+    "ignore_warp_count: caught"
+  ],
+  "chip": "PASS scoped reference and fault screen",
+  "full_model": "NOT_RUN",
+  "chip_parameters": {
+    "rows_per_tile": 32,
+    "warps": 4,
+    "tokens": 30,
+    "checked_rows_per_matrix": 3,
+    "timing_repetitions": 3,
+    "wait": 45
+  },
+  "chip_checks": [
+    "QUANT chip k 2048 mutant 1: caught",
+    "QUANT chip k 768 mutant 1: caught",
+    "QUANT chip k 5120 mutant 3: caught",
+    "QUANT chip k 6144 mutant 3: caught",
+    "QUANT chip k 17408 mutant 3: caught",
+    "q38gu second launch identical: yes",
+    "q38gu bit-identity on 3 sampled rows: 0 differ (beyond 1 bf16 ulp; 0 within 1 ulp of 52224)",
+    "QGEMM-inplace q38gu tokens 30 M 30 n 34816 k 5120 tiles 1: median 0.854 ms (min 0.851), 12.5 TFLOPS, weights 178 MB -> 209 GB/s of distinct weights",
+    "q38gu mutant 1: caught",
+    "q38gu mutant 2: caught",
+    "q38gu mutant 3: caught",
+    "q38gu mutant 4: caught",
+    "q38down second launch identical: yes",
+    "q38down bit-identity on 3 sampled rows: 0 differ",
+    "QGEMM-inplace q38down tokens 30 M 30 n 5120 k 17408 tiles 1: median 0.454 ms (min 0.453), 11.8 TFLOPS, weights 89 MB -> 196 GB/s of distinct weights",
+    "q38down mutant 1: caught",
+    "q38down mutant 2: caught",
+    "q38down mutant 3: caught",
+    "q38down mutant 4: caught",
+    "q38mix second launch identical: yes",
+    "q38mix bit-identity on 3 sampled rows: 0 differ",
+    "QGEMM-inplace q38mix tokens 30 M 30 n 16384 k 5120 tiles 1: median 0.393 ms (min 0.389), 12.8 TFLOPS, weights 84 MB -> 213 GB/s of distinct weights",
+    "q38o second launch identical: yes",
+    "q38o bit-identity on 3 sampled rows: 0 differ",
+    "QGEMM-inplace q38o tokens 30 M 30 n 5120 k 6144 tiles 1: median 0.142 ms (min 0.140), 13.3 TFLOPS, weights 31 MB -> 221 GB/s of distinct weights"
+  ],
+  "limits": [
+    "F32 chip reference is bit-exact on sampled rows. SwiGLU uses the incumbent one-BF16-ulp oracle tolerance.",
+    "The full output buffer is bit-identical across repeated launches for each case.",
+    "Simulator cases compare every output bit and include tails and direct/indexed layouts.",
+    "Full-model logits and token parity have NOT_RUN. Default remains unchanged.",
+    "Timings are shared-machine diagnostic data, not whole-model or quiet-machine qualification."
+  ]
+}
diff --git a/om/prefill-shape/workspace-check.py b/om/prefill-shape/workspace-check.py
new file mode 100644
index 00000000..f45cb168
--- /dev/null
+++ b/om/prefill-shape/workspace-check.py
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# Independent capacity oracle, not production.
+import ctypes,sys,random
+lib=ctypes.CDLL(sys.argv[1]);f=lib.omega_native_qgworkspace
+f.argtypes=[ctypes.POINTER(ctypes.c_uint64)]+[ctypes.c_uint64]*5;f.restype=ctypes.c_uint32
+cases=[]
+for rows in [0,1,3,30,63,64,65,128,129,512,4096,2**32-1,2**32,2**64-1]:
+ for bm in [0,32,64,128,2**32-1,2**32,2**64-1]:
+  for delta in [-1,0,1]:
+   cap=max(0,rows+delta);pad=min(2**64-1,rows+bm+delta);tiles=(rows+bm-1)//bm+1 if bm else 0
+   if cap<2**64 and pad>=0:cases += [(cap,pad,tiles,rows,bm),(cap,pad,max(0,tiles-1),rows,bm)]
+cases += [(4096,4224,33,30,64),(4096,4224,33,4096,128),(4096,4224,33,4096,64)]
+rng=random.Random(710)
+for _ in range(1000):cases.append(tuple(rng.randrange(8193) for _ in range(5)))
+for args in cases:
+ capacity,padded,tiles,rows,bm=args
+ want=int(0<rows<2**32 and 0<bm<2**32 and rows<=capacity and rows+bm<=padded and (rows+bm-1)//bm+1<=tiles)
+ out=ctypes.c_uint64(9);assert f(ctypes.byref(out),*args)==0;assert out.value==want,(args,out.value,want)
+assert f(None,4096,4224,33,30,64)==32
+print('PASS independent workspace capacity oracle',len(cases),'cases')
diff --git a/om/prefill-shape/workspace-mutants.py b/om/prefill-shape/workspace-mutants.py
new file mode 100644
index 00000000..f6b95c25
--- /dev/null
+++ b/om/prefill-shape/workspace-mutants.py
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External source-mutant verification, not a production dependency.
+import hashlib,os,subprocess,tempfile
+from pathlib import Path
+root=Path(__file__).resolve().parents[2]
+source=(root/'om/prefill-shape/workspace.om').read_text()
+mutants={
+ 'drop_row_capacity':('if gt rows capacity','if lt rows capacity'),
+ 'drop_padding':('if gt add rows bm padded','if lt add rows bm padded'),
+ 'drop_tile_capacity':('if gt needed tiles','if lt needed tiles'),
+ 'lose_guard_tile':('needed = add div add rows sub bm 1 bm 1','needed = div add rows sub bm 1 bm'),
+ 'admit_zero_rows':('if or eq rows 0 gt rows 4294967295','if or eq rows 1 gt rows 4294967295'),
+}
+
+ident=(root/'src/cudapp_om_prefill_workspace.ident').read_text().strip()
+pins=dict(part.split('=',1) for part in ident.split() if '=' in part)
+assert hashlib.sha256(Path(os.environ['OMEGA_OMC']).read_bytes()).hexdigest()==pins['omc']
+env=dict(os.environ,OMEGA_SEEDED_OMC=os.environ['OMEGA_OMC'])
+bridge=Path(os.environ['OMEGA_BRIDGE'])/'tools/bridge-seeded'
+assert hashlib.sha256(bridge.read_bytes()).hexdigest()==pins['frontend']
+assert hashlib.sha256((bridge.parent.parent/'src/toc.om').read_bytes()).hexdigest()==pins['converter']
+with tempfile.TemporaryDirectory(prefix='prefill-shape-mutants-') as t:
+ t=Path(t)
+ for name,(old,new) in mutants.items():
+  assert source.count(old)==1
+  om=t/(name+'.om');om.write_text(source.replace(old,new))
+  c=t/(name+'.c');so=t/(name+'.so')
+  with c.open('w') as f:subprocess.run(['sh',str(bridge),'c',str(om)],env=env,stdout=f,check=True)
+  subprocess.run([os.environ.get('CC','cc'),'-O2','-shared','-fPIC',str(c),'-o',str(so)],check=True)
+  p=subprocess.run(['python3',str(root/'om/prefill-shape/workspace-check.py'),str(so)],capture_output=True,text=True)
+  assert p.returncode!=0,name+' escaped oracle'
+  assert 'AssertionError' in p.stderr,(name,p.stderr)
+  print(name+': caught',flush=True)
diff --git a/om/prefill-shape/workspace.om b/om/prefill-shape/workspace.om
new file mode 100644
index 00000000..b8bcd4c0
--- /dev/null
+++ b/om/prefill-shape/workspace.om
@@ -0,0 +1,22 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Reuse only when every existing row, padded-row and tile capacity covers the request.
+note Rows and height are bounded before the ceiling division, so sums cannot overflow ulong.
+fn native_qgworkspace capacity ulong padded ulong tiles ulong rows ulong bm ulong to ulong
+if or eq rows 0 gt rows 4294967295
+ret 0
+end
+if or eq bm 0 gt bm 4294967295
+ret 0
+end
+if gt rows capacity
+ret 0
+end
+if gt add rows bm padded
+ret 0
+end
+needed = add div add rows sub bm 1 bm 1
+if gt needed tiles
+ret 0
+end
+ret 1
+end
diff --git a/om/q38-head/.crumb b/om/q38-head/.crumb
new file mode 100644
index 00000000..c8fc0b3d
--- /dev/null
+++ b/om/q38-head/.crumb
@@ -0,0 +1,19 @@
+{
+  "extensions": {
+    "generated": {
+      "children": [],
+      "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+      "compiled_at": "2026-11-01T16:47:09Z",
+      "compiler": "crumb-compile/1",
+      "digest": "sha256:4aab8fe5adcb674ef13cd30ebb293d6b31c457eb42b209bd479add4e492f2e68",
+      "evidence_files": 0,
+      "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+      "files": 20,
+      "generated_at_commit": "39160652aa4b4224d64c1fa9b7c012416efa1cd0",
+      "source_tree": "sha256:37714faa582eed5abec1c4165e0960bd760732041d519ab0694f9b542df94d7b"
+    }
+  },
+  "name": "q38-head",
+  "purpose": "Experimental conservative output-head GPU screening kernels and independent verification",
+  "schema_version": "1.0.0"
+}
diff --git a/om/q38-head/.gitignore b/om/q38-head/.gitignore
new file mode 100644
index 00000000..c18dd8d8
--- /dev/null
+++ b/om/q38-head/.gitignore
@@ -0,0 +1 @@
+__pycache__/
diff --git a/om/q38-head/README.md b/om/q38-head/README.md
new file mode 100644
index 00000000..0da213d3
--- /dev/null
+++ b/om/q38-head/README.md
@@ -0,0 +1,168 @@
+# Conservative output-head screening
+
+Experimental Omega-generated GPU primitive for Core issue 710 and Core PR 895.
+This is one step toward an exact two-pass output head for the 27B model.
+It is not connected to serving. No end-to-end speed or first-token improvement
+is established by this primitive.
+
+The compact head produces approximate scores. This kernel turns them into
+conservative intervals. A later maximum reduction can discard a row only when
+its upper bound is below the largest lower bound. The full-precision head must
+still recompute every surviving row and choose the final token.
+
+## Contract
+
+Trusted caller requirements:
+
+- `1 <= count <= 248320`, 256 threads per block, grid `(count + 255) / 256`.
+- Four separate arrays of at least `count` binary32 values: score, coefficient,
+  lower output, upper output. Inputs are finite; coefficients are nonnegative.
+- `hn` is finite, positive, and at least the Euclidean norm of the exact hidden
+  vector used by both heads. An unrepresentable norm requires a full-head fallback.
+- The coefficient was rounded upward and proves
+  `abs(full_score - compact_score) <= coefficient * hn` for the actual compact
+  and full GPU reductions. This kernel does not establish that upstream premise.
+- Binary32 round-to-nearest-even arithmetic, with subnormals retained.
+- The caller validates input values before launching. This primitive does not
+  admit untrusted buffers or detect invalid coefficients on the device.
+
+Argument words start at constant-bank byte 896: score address, coefficient
+address, lower address, upper address (four 64-bit addresses), `hn` (binary32),
+then `count` (u32). No shared memory. The generated frame records register use;
+the verification launch declares 64 registers, as the existing runtime requires.
+
+For `e = 2^-20` and `tiny = 2^-100`, operations are separately rounded except
+for the explicit fused multiply-add:
+
+```
+r = coefficient * hn
+r = r * (1 + e)
+r = fma(abs(score), e, r)
+r = r + tiny
+lower = score - r
+upper = score + r
+```
+
+The relative margin is sixteen binary32 unit roundoffs. It covers rounding in
+the two products, fused sum, addition and final endpoints. The score term
+covers endpoint rounding when the radius is small. The positive normal `tiny`
+covers absolute subnormal rounding errors. Overflow of the nonnegative radius
+produces `[-infinity, +infinity]`, retaining the row. These intervals are wider
+than the binary64 next-up reference in Core PR 895. Equal endpoints are retained.
+
+For a finite intermediate result, let `u=2^-24`, `eta=2^-150`, `R=c*hn`
+and `S=abs(score)`. The standard RN error bound gives
+`r >= A*R + B*S + (1-u)*tiny - D*eta`, with
+`A=(1-u)^4*(1+e)`, `B=e*(1-u)^2`, and
+`D=(1+e)*(1-u)^3+(1-u)^2+(1-u)+1`.
+All three exact inequalities hold: `A*(1-u)>1`, `B*(1-u)>u`, and
+`((1-u)*tiny-D*eta)*(1-u)>eta`. Thus `r*(1-u)>R+u*S+eta`,
+which covers the final endpoint error `u*(S+r)+eta`. Nonnegative intermediate
+overflow takes the infinite-interval case above. This argument depends on
+the stated RN/subnormal contract, not approximate reciprocal instructions.
+
+Numerical reference: NVIDIA PTX ISA 9.4, physical page 108, section 6.5.2
+(round-to-nearest-even). Machine instructions are emitted by the existing
+checked Omega encoder, not copied from a vendor binary or listing.
+
+## Verification
+
+Build the existing runtime with `make -j1 build/libomega_gpu.a`. Set
+`OMEGA_OMC` to the compiler pinned in the repository AGENTS.md and set
+`Q38_GPU_OUT` to an external artifact directory. From the repository root:
+
+```
+sh om/q38-head/run.sh
+```
+
+`make test-q38-head-bounds` runs the same host check and is included in
+`make test` when the pinned compiler can run on the host. On other hosts the
+explicit target reports NOT_RUN and exits 2. Neither command opens the GPU.
+
+The external C instrument runs the generated IR in the existing warp simulator
+against a long-double reference. Cases include tails, zero coefficients,
+subnormals, cancellation, extreme exponents, overflow and both fragment orders.
+It then damages a fused arithmetic instruction and requires a numerical failure.
+The initial generator stub refused with exit 66 before implementation.
+
+With an authorized, idle chip window, `run.sh --chip` loads the exact machine
+code from the Omega frame through the existing runtime and repeats the numerical
+battery. The optional two directory arguments after `--chip` add eight captured
+27B-state replays: compact-score/coefficient files, then hidden/full-score files.
+Those current replay scores came from the external host compact-head reference;
+they do not yet qualify a complete GPU compact-head/recheck pipeline.
+
+The shell and C files are external verification instruments only. They are not
+first-party runtime implementations or new production dependencies.
+
+## Runtime regression found during qualification
+
+The unmodified runtime refused this Spark before launching: the driver returned
+raw RM SM version `10.04`, while class admission compared it only with `12.01`.
+The existing diagnostic chip table already identifies PCI vendor/device
+`10de:2e12` as GB10 with execution target SM121. The repaired Omega policy accepts
+the observed raw version only for that exact PCI identity and the complete
+Blackwell class set. Other devices, vendor IDs, raw versions and missing classes
+remain refused. `nvrm.c` forwards identity fields from its existing CARD_INFO
+result; it adds no driver query and changes no qualified-chip table.
+
+The new regression assertion fails before the Omega policy fix and passes after
+regenerating its binding with the pinned Bridge. Physical qualification uses the
+patched runtime itself, including its normal class admission. No bypass or
+environment override selects the target.
+
+## Isolated two-pass head experiment
+
+`pipeline.patch` derives an external verification instrument from the existing
+`tests/gpu_exact_head_test.c`. It uses width 5120, this Omega-generated bound
+kernel, and conservatively computes the hidden norm on the host. The existing
+GPU kernels perform compact screening, threshold reduction, masked full-precision
+recheck and final selection. Apply it outside the source tree:
+
+```
+patch -o /tmp/pipeline.c tests/gpu_exact_head_test.c om/q38-head/pipeline.patch
+```
+
+`pipeline-validation.json` records the source fingerprints and results. All eight
+saved states reproduce the original full GPU logits bit for bit; every compact
+interval contains the full score, every rechecked score matches, and every final
+token matches. Zeroing the coefficients loses the true winner at position 97,
+reproducing the earlier compact-head error. The recorded timing is provisional:
+host suites were active in the shared correctness window. It is neither an
+accepted speed result nor a whole-model/first-token measurement. Serving
+integration and its complete exact-token gate remain untested.
+
+## Fixed envelope and experimental graph integration
+
+`envelope.om` calculates an upward-rounded binary32 bound from the folded final
+RMSNorm weights: `72 * max(abs(weight)) * 1025/1024`. It uses integer arithmetic
+on the weight encodings, refuses nonfinite weights and overflow, and conservatively
+returns 1 for an all-subnormal or zero weight vector. `envelope-check.py` checks
+all exponent ranges against exact rational arithmetic; five compiled source
+mutants exercise tail scanning, upward rounding, nonfinite refusal, sign masking and slack.
+
+The ideal normalized vector has norm at most `sqrt(5120) * max(abs(weight))`.
+The fixed envelope adds room for the existing GPU normalization's rounding.
+Its scope is finite input, folded finite weights, epsilon `1e-6f`, width 5120,
+and output scale 1. The graph adapter refuses a different epsilon. The actual
+normalizer is in `omega_blackwell_codegen_dec.c`: 20 products per lane, five
+warp sums, seven CTA sums, the mean plus epsilon, reciprocal square root and
+two output products. NVIDIA PTX ISA 9.4, physical page 211 (printed 199), gives
+the reciprocal-square-root relative error as at most `2^-22.9`; this is a
+numerical reference, not independent proof of every native instruction.
+`norm-check.c` tests the actual emitted normalizer on the chip, including
+underflow and overflow magnitudes, dense and sparse input, and adversarial
+weights. The replay and stress receipts do not prove all possible model states.
+
+`plan.om` owns the scratch layout and six operations: scale, compact screen,
+intervals, two threshold reductions, and full-precision masked recheck.
+`emit.om` produces the checked native bounds kernel. Both are compiled through
+the pinned Omega Bridge. The C graph adapter only supplies resources and
+dispatches those operations. The feature is opt-in through
+`omega_gpu_q38_graph_set_exact_head`; the original head remains available.
+Disable the feature for sampling, which requires all logits. Full serving
+qualification is pending; the default path is unchanged.
+
+The Omega plan also supplies an additional 2 GiB admission reserve for the
+resident screen, coefficients and scratch. The Core opt-in adds that reserve
+before loading. It is a conservative budget, not a measured allocation size.
diff --git a/om/q38-head/bounds.om b/om/q38-head/bounds.om
new file mode 100644
index 00000000..959caf4f
--- /dev/null
+++ b/om/q38-head/bounds.om
@@ -0,0 +1,91 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Experimental bound generator. Input contract is documented in README.
+note Reuses checked opcodes and allocator; no handwritten machine encodings.
+fn qh_math ins edit ulong 8192 s edit ulong 64 to void
+note r10 score r11 coefficient r4 norm; r12 radius r13 abs score r14 constants.
+bc_node s 32 12 11 4 BCNONE
+bc_emit ins s 0
+bc_inst ins s 2 14 BCNONE 1065353224
+bc_node s 32 12 12 14 BCNONE
+bc_emit ins s 0
+bc_mask ins s 13 10 0 2147483647
+bc_inst ins s 2 14 BCNONE 897581056
+put s 9 0
+bc_ffma ins s 12 13 14 12
+bc_inst ins s 2 14 BCNONE 226492416
+bc_node s 30 12 12 14 BCNONE
+bc_emit ins s 0
+bc_node s 31 15 10 12 BCNONE
+bc_emit ins s 0
+bc_node s 30 16 10 12 BCNONE
+bc_emit ins s 0
+end
+fn qh_load ins edit ulong 8192 s edit ulong 64 to void
+bc_node s 7 0 BCNONE BCNONE BCNONE
+put s 22 856
+put s 23 1
+bc_emit ins s 4
+for k ulong 6
+op = ulong 5
+offset = add ulong 896 mul k 8
+if ge k 4
+op = 4
+offset = add ulong 928 mul sub k 4 4
+end
+bc_node s op k BCNONE BCNONE BCNONE
+put s 22 offset
+bc_emit ins s 2
+end
+bc_node s 3 6 BCNONE BCNONE BCNONE
+put s 22 33
+bc_emit ins s 2
+bc_node s 3 7 BCNONE BCNONE BCNONE
+put s 22 37
+bc_emit ins s 2
+bc_imm ins s 8 7 6 256
+bc_pred ins s 8 5
+put s 10 bc_branch ins s add get s 0 1 true
+for k ulong 2
+bc_wide ins s 9 8 k 4
+put s 8 0
+bc_mem ins s 11 add ulong 10 k 9 2
+end
+end
+fn qh_store ins edit ulong 8192 s edit ulong 64 to void
+for k ulong 2
+bc_wide ins s 9 8 add ulong 2 k 4
+bc_node s 12 BCNONE 9 add ulong 15 k BCNONE
+put s 21 0
+bc_emit ins s 5
+end
+bc_patch ins get s 10 get s 0
+bc_node s 45 BCNONE BCNONE BCNONE BCNONE
+bc_emit ins s 7
+at = bc_branch ins s get s 0 false
+bc_tail ins at
+end
+fn q38_bounds ins edit ulong 8192 m edit ulong 2048 st edit ulong 4 to uint
+s = new ulong 64 0
+for k ulong 8192
+put ins k 0
+end
+for k ulong 2048
+put m k 0
+end
+uv = bc_vreg s m 2 true
+for k ulong 17
+width = ulong 1
+if or lt k 4 eq k 9
+width = 2
+end
+v = bc_vreg s m width false
+end
+qh_load ins s
+qh_math ins s
+qh_store ins s
+put st 0 get s 0
+put st 1 get s 4
+put st 2 get s 5
+put st 3 0
+ret uint get s 3
+end
diff --git a/om/q38-head/budget-check.c b/om/q38-head/budget-check.c
new file mode 100644
index 00000000..fb356167
--- /dev/null
+++ b/om/q38-head/budget-check.c
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
+/* Host-only verification: none of these calls may open a GPU session. */
+#include "omega_gpu_q38_graph.h"
+#include <assert.h>
+#include <stdio.h>
+int main(void) {
+    assert(omega_gpu_q38_exact_extra_bytes() == (UINT64_C(2)<<30));
+    assert(omega_gpu_q38_graph_set_exact_head(NULL,NULL,NULL,10384) == OMEGA_GPU_DGRAPH_BAD_ARGS);
+    assert(!omega_gpu_q38_graph_exact_head_active(NULL));
+    omega_gpu_q38_graph_set_exact_head_on(NULL,1);
+    puts("PASS: exact-head extra admission reserve and null-handle refusals");
+    return 0;
+}
diff --git a/om/q38-head/check.c b/om/q38-head/check.c
new file mode 100644
index 00000000..bf07cea6
--- /dev/null
+++ b/om/q38-head/check.c
@@ -0,0 +1,139 @@
+/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
+/* External verification instrument. Never linked into the runtime. */
+#include "bw_warp_sim_k.h"
+#include "components/native-frame.h"
+#include "omega_gpu_session.h"
+#include <float.h>
+#include <assert.h>
+static uint32_t bits(float f) { uint32_t u; memcpy(&u,&f,4); return u; }
+static int chip;
+static OmegaGpuMem code;
+static void demand(int rc) {if(rc) {fprintf(stderr,"GPU: %s\n",omega_gpu_session_last_error());exit(4);}}
+static void execute(float **v,uint32_t n,float hn,unsigned order) {
+    if(chip) {
+        OmegaGpuMem mem[4]; uint32_t args[10];
+        omega_gpu_session_lock();
+        for(unsigned j=0;j<4;j++) {
+            demand(omega_gpu_session_alloc((n+32)*4,&mem[j]));
+            memcpy(mem[j].cpu,v[j],(n+32)*4);demand(omega_gpu_session_sync_to_gpu(&mem[j]));
+            args[j*2]=(uint32_t)mem[j].va;args[j*2+1]=(uint32_t)(mem[j].va>>32);
+        }
+        args[8]=bits(hn);args[9]=n;
+        OmegaGpuLaunch l={0};l.code_va=code.va;l.gpr_count=64;l.threads_x=256;l.threads_y=1;
+        l.grid_x=(n+255)/256;l.grid_y=1;l.num_elements=n;l.args=args;l.n_args=10;l.timeout_ms=20000;
+        demand(omega_gpu_session_launch(&l,NULL,NULL));
+        for(unsigned j=0;j<4;j++) {
+            demand(omega_gpu_session_sync_to_cpu(&mem[j]));memcpy(v[j],mem[j].cpu,(n+32)*4);
+            omega_gpu_session_free(&mem[j]);
+        }
+        omega_gpu_session_unlock();return;
+    }
+    static WsSim s; memset(&s,0,sizeof s);s.p=&native_program;s.threads=256;s.order=order;
+    s.nranges=4;
+    for(unsigned j=0;j<4;j++) {
+        uintptr_t p=(uintptr_t)v[j];s.cbank[(896+j*8)/4]=(uint32_t)p;s.cbank[(896+j*8)/4+1]=(uint32_t)(p>>32);
+        s.ranges[j].lo=p;s.ranges[j].hi=p+n*4;
+    }
+    s.cbank[928/4]=bits(hn);s.cbank[932/4]=n;
+    int rc=ws_run(&s,(n+255)/256,1);
+    if(rc) {fprintf(stderr,"sim n%u order%u: %s\n",n,order,s.msg);exit(2);}
+}
+static unsigned run(uint32_t n, float hn, unsigned order) {
+    float *v[4];
+    for(unsigned j=0;j<4;j++) {v[j]=calloc(n+32,4);assert(v[j]);}
+    for(uint32_t i=0;i<n;i++) {
+        v[0][i]=ldexpf((float)((int)(i%67)-33), (int)(i%173)-90);
+        v[1][i]=ldexpf((float)(i%17), (int)(i%143)-80);
+    }
+    if(n>4) {v[0][0]=FLT_MAX; v[1][0]=FLT_MAX; v[0][1]=-FLT_MAX; v[1][1]=FLT_MAX;
+        v[0][2]=0;v[1][2]=0;v[0][3]=FLT_TRUE_MIN;v[1][3]=FLT_TRUE_MIN;}
+    for(unsigned j=2;j<4;j++) for(uint32_t i=0;i<n+32;i++) v[j][i]=12345.0f;
+    execute(v,n,hn,order);
+    unsigned bad=0;
+    for(uint32_t i=0;i<n;i++) {
+        long double radius=(long double)v[1][i]*hn;
+        long double lo=(long double)v[0][i]-radius,hi=(long double)v[0][i]+radius;
+        long double slack=radius*0x1p-16L+fabsl(v[0][i])*0x1p-16L+0x1p-96L;
+        /* A conservatively inflated radius may itself overflow even when one
+         * endpoint cancels. The contract then explicitly retains this row. */
+        int tight=radius+slack>FLT_MAX ||
+                  ((lo-slack < -FLT_MAX || (long double)v[2][i]>=lo-slack)
+                && (hi+slack > FLT_MAX || (long double)v[3][i]<=hi+slack));
+        if(!((long double)v[2][i]<=lo && (long double)v[3][i]>=hi && tight)) {
+            if(!bad) fprintf(stderr,"bad row%u s%g c%g hn%g lo%g hi%g\n",i,v[0][i],v[1][i],hn,v[2][i],v[3][i]);
+            bad++;
+        }
+    }
+    for(unsigned j=2;j<4;j++)for(uint32_t i=n;i<n+32;i++)assert(v[j][i]==12345.0f);
+    for(unsigned j=0;j<4;j++)free(v[j]);
+    return bad;
+}
+static void read_floats(const char *dir,const char *name,float *v,size_t n) {
+    char path[4096];assert(snprintf(path,sizeof path,"%s/%s",dir,name)<(int)sizeof path);
+    FILE *f=fopen(path,"rb");assert(f);assert(fread(v,4,n,f)==n);assert(fgetc(f)==EOF);fclose(f);
+}
+static void replay(const char *screens,const char *captured) {
+    const uint32_t n=248320;unsigned positions[]={1,16,32,64,96,97,98,127};
+    float *v[4],*full=calloc(n,4),h[5120];assert(full);
+    for(unsigned j=0;j<4;j++){v[j]=calloc(n+32,4);assert(v[j]);}
+    read_floats(screens,"coef.f32",v[1],n);
+    for(unsigned p=0;p<sizeof positions/sizeof *positions;p++) {
+        char name[64];snprintf(name,sizeof name,"%u-screen.f32",positions[p]);read_floats(screens,name,v[0],n);
+        snprintf(name,sizeof name,"%u-hidden.f32",positions[p]);read_floats(captured,name,h,5120);
+        snprintf(name,sizeof name,"%u-logits.f32",positions[p]);read_floats(captured,name,full,n);
+        long double sum=0;
+        for(unsigned j=0;j<5120;j++)sum=nextafterl(sum+(long double)h[j]*h[j],INFINITY);
+        float hn=nextafterf((float)nextafterl(sqrtl(sum),INFINITY),INFINITY);assert(isfinite(hn));
+        for(unsigned j=2;j<4;j++)for(uint32_t i=0;i<n+32;i++)v[j][i]=12345.0f;
+        execute(v,n,hn,0);
+        float tau=-INFINITY;unsigned winner=0,candidates=0,violations=0;
+        for(uint32_t i=0;i<n;i++) {
+            assert(isfinite(full[i])&&isfinite(v[0][i])&&isfinite(v[1][i])&&v[1][i]>=0);
+            if(full[i]>full[winner])winner=i;
+            if(v[2][i]>tau)tau=v[2][i];
+            violations+=!(v[2][i]<=full[i]&&v[3][i]>=full[i]);
+        }
+        for(uint32_t i=0;i<n;i++)candidates+=v[3][i]>=tau;
+        for(unsigned j=2;j<4;j++)for(uint32_t i=n;i<n+32;i++)assert(v[j][i]==12345.0f);
+        printf("replay position=%u candidates=%u violations=%u winner_retained=%d\n",positions[p],candidates,violations,v[3][winner]>=tau);
+        assert(!violations&&v[3][winner]>=tau);
+    }
+    for(unsigned j=0;j<4;j++)free(v[j]);
+    free(full);
+}
+int main(int argc,char **argv) {
+    if((argc!=2&&argc!=3&&argc!=5)||!frame_load(argv[1],0))return 65;
+    chip=argc>=3&&!strcmp(argv[2],"--chip");
+    if(argc>=3&&!chip)return 65;
+    if(chip) {
+        unsigned char bytes[16384]; FILE *f=fopen(argv[1],"rb");assert(f);
+        size_t off=48+16*(native_program.regalloc.num_vregs+native_program.regalloc.num_uvregs)+64*native_program.count;
+        assert(!fseek(f,(long)off,SEEK_SET));size_t nb=fread(bytes,1,sizeof bytes,f);assert(!ferror(f));fclose(f);
+        omega_gpu_session_lock();demand(omega_gpu_session_open()?0:-1);
+        demand(omega_gpu_session_alloc_code(nb,&code));
+        memcpy(code.cpu,bytes,nb);demand(omega_gpu_session_sync_to_gpu(&code));omega_gpu_session_unlock();
+    }
+    uint32_t counts[]={1,31,32,33,255,256,257,1027};
+    float norms[]={FLT_TRUE_MIN,0x1p-60f,1,123.25f,0x1p60f,FLT_MAX};
+    for(unsigned a=0;a<sizeof counts/sizeof *counts;a++)
+    for(unsigned b=0;b<sizeof norms/sizeof *norms;b++)
+    for(unsigned o=0;o<2;o++) if(run(counts[a],norms[b],o))return 1;
+    puts("PASS: bounds enclose long-double reference with bounded slack; tails untouched; both orders/repetitions");
+    if(argc==5)replay(argv[3],argv[4]);
+    if(chip) {
+        omega_gpu_session_lock();omega_gpu_session_free(&code);omega_gpu_session_unlock();omega_gpu_session_close();
+        puts("PASS: generated machine code executed on GPU");return 0;
+    }
+    if(!frame_wrong_result())return 66;
+    if(!run(1027,123.25f,0))return 3;
+    puts("PASS: arithmetic mutant caught");
+    assert(frame_load(argv[1],0));
+    int changed=0;
+    for(size_t i=0;i<native_program.count;i++)if(native_program.insns[i].op==BW_IR_FMUL) {
+        BlackwellIRInsn *x=&native_program.insns[i];
+        x->op=BW_IR_MOV_IMM;x->imm=bits(INFINITY);
+        x->src1_vreg=x->src2_vreg=x->src3_vreg=-1;changed=1;break;
+    }
+    if(!changed||!run(1027,123.25f,0))return 3;
+    puts("PASS: all-infinite radius mutant caught by bounded slack");return 0;
+}
diff --git a/om/q38-head/driver.om b/om/q38-head/driver.om
new file mode 100644
index 00000000..95e6c5b3
--- /dev/null
+++ b/om/q38-head/driver.om
@@ -0,0 +1,51 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+global QHOut uchar 8
+fn qh_word v ulong to void
+for j ulong 8
+put QHOut j uchar and shr v mul j 8 255
+end
+if ne write 1 QHOut 0 8 8
+trap 5
+end
+end
+fn main to int
+ins = new ulong 8192 0
+meta = new ulong 2048 0
+phys = new ulong 288 0
+st = new ulong 4 0
+rs = new ulong 4 0
+code = new uchar 16384 0
+if ne q38_bounds ins meta st 0
+ret 66
+end
+if ne bc_ircheck ins get st 0 meta 0
+ret 69
+end
+if ne bc_regalloc ins get st 0 meta phys rs 128 0
+ret 67
+end
+nbytes = bc_encode ins phys get st 0 1 code
+if eq nbytes 0
+ret 68
+end
+for k ulong 4
+qh_word get st k
+end
+qh_word get rs 1
+qh_word get rs 2
+for k ulong get st 1
+qh_word get meta k
+qh_word get phys k
+end
+for k ulong get st 2
+qh_word get meta add k 256
+qh_word get phys add k 256
+end
+for k ulong mul get st 0 8
+qh_word get ins k
+end
+if ne write 1 code 0 nbytes long nbytes
+ret 74
+end
+ret 0
+end
diff --git a/om/q38-head/emit.om b/om/q38-head/emit.om
new file mode 100644
index 00000000..de7d3fba
--- /dev/null
+++ b/om/q38-head/emit.om
@@ -0,0 +1,19 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Generated bounds kernel through the checked allocator and encoder.
+fn q38_emit code edit uchar 16384 to ulong
+ins = new ulong 8192 0
+meta = new ulong 2048 0
+phys = new ulong 288 0
+st = new ulong 4 0
+rs = new ulong 4 0
+if ne q38_bounds ins meta st 0
+ret 0
+end
+if ne bc_ircheck ins get st 0 meta 0
+ret 0
+end
+if ne bc_regalloc ins get st 0 meta phys rs 128 0
+ret 0
+end
+ret bc_encode ins phys get st 0 1 code
+end
diff --git a/om/q38-head/envelope-check.py b/om/q38-head/envelope-check.py
new file mode 100644
index 00000000..75519440
--- /dev/null
+++ b/om/q38-head/envelope-check.py
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# Independent external numerical verification; not a runtime dependency.
+import math
+import random
+import struct
+import subprocess
+import sys
+from fractions import Fraction
+
+
+def fbits(f):
+    return struct.unpack('<I', struct.pack('<f', f))[0]
+
+
+def value(b):
+    return struct.unpack('<f', struct.pack('<I', b))[0]
+
+
+def run(bits):
+    assert len(bits) == 5120
+    p = subprocess.run([sys.argv[1]], input=struct.pack('<5120I', *bits), capture_output=True)
+    assert p.returncode == 0, (p.returncode, p.stderr)
+    assert len(p.stdout) == 8
+    return struct.unpack('<Q', p.stdout)[0]
+
+
+rng = random.Random(710)
+cases = [[0] * 5120, [fbits(1.0)] * 5120, [fbits(2.7109375)] * 5120]
+cases += [[fbits(-1.0)] * 5120, [0] * 5119 + [fbits(-2.7109375)]]
+for _ in range(25):
+    cases.append([rng.randrange(0, 0x7d000000) | (rng.randrange(2) << 31) for _ in range(5120)])
+for b in [1, 0x007fffff, 0x00800000, 0x7e000000, 0x7f7fffff]:
+    a = [0] * 5120
+    a[-1] = b
+    cases.append(a)
+for exponent in range(1, 255):
+    for mantissa in [0, 1, 0x7ffffe, 0x7fffff, rng.randrange(0x800000)]:
+        a = [0] * 5120
+        a[rng.randrange(5120)] = (exponent << 23) | mantissa
+        cases.append(a)
+checks = 0
+for a in cases:
+    w = max(abs(value(b)) for b in a)
+    r = run(a)
+    if w < value(0x00800000):
+        assert r == fbits(1.0), (w, r)
+    else:
+        exact = Fraction(w) * 72 * Fraction(1025, 1024)
+        if exact > Fraction(value(0x7f7fffff)):
+            assert r == 0
+        else:
+            assert 0 < r < 0x7f800000
+            assert Fraction(value(r)) >= exact
+            assert Fraction(value(r - 1)) < exact
+            assert value(r) >= math.sqrt(5120) * w
+    checks += 1
+for b in [0x7f800000, 0xff800000, 0x7fc00000, 0xffc00001]:
+    a = [fbits(1.0)] * 5120
+    a[-1] = b
+    assert run(a) == 0
+    checks += 1
+print(f'PASS: {checks} envelope cases, exact rational upward rounding, tail invalid-input refusal')
diff --git a/om/q38-head/envelope-driver.om b/om/q38-head/envelope-driver.om
new file mode 100644
index 00000000..d9d0095d
--- /dev/null
+++ b/om/q38-head/envelope-driver.om
@@ -0,0 +1,29 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+global QEIn uchar 20480
+global QEOut uchar 8
+fn main to int
+off = ulong 0
+while lt off 20480 bound 20480
+n = read 0 QEIn off sub 20480 off
+if le n 0
+ret 65
+end
+off = add off ulong n
+end
+bits = new uint 5120 0
+for i ulong 5120
+v = ulong 0
+for j ulong 4
+v = or v shl ulong get QEIn add mul i 4 j mul j 8
+end
+put bits i uint v
+end
+v = q38_envelope bits
+for j ulong 8
+put QEOut j uchar and shr v mul j 8 255
+end
+if ne write 1 QEOut 0 8 8
+ret 74
+end
+ret 0
+end
diff --git a/om/q38-head/envelope-mutants.py b/om/q38-head/envelope-mutants.py
new file mode 100644
index 00000000..85c41a2e
--- /dev/null
+++ b/om/q38-head/envelope-mutants.py
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External verification of the Omega source, never a runtime dependency.
+import pathlib
+import subprocess
+import sys
+import tempfile
+
+here = pathlib.Path(__file__).resolve().parent
+source = (here / 'envelope.om').read_text()
+driver = (here / 'envelope-driver.om').read_text()
+mutants = {
+    'omit_tail': ('for i ulong 5120', 'for i ulong 5119'),
+    'round_down': ('div add sig 1 2', 'div sig 2'),
+    'accept_nonfinite': ('if ge v 2139095040\nret 0', 'if ge v 2139095040\nret 1065353216'),
+    'omit_margin': ('mul sig 73800', 'mul sig 73728'),
+    'keep_sign_bit': ('and ulong get bits i 2147483647', 'ulong get bits i'),
+}
+with tempfile.TemporaryDirectory(prefix='q38-envelope-') as tmp:
+    for name, (old, new) in mutants.items():
+        assert source.count(old) == 1
+        binary = pathlib.Path(tmp) / name
+        result = subprocess.run([sys.argv[1]], input=(source.replace(old, new) + driver).encode(),
+                                capture_output=True, check=True)
+        binary.write_bytes(result.stdout)
+        binary.chmod(0o700)
+        result = subprocess.run([sys.executable, str(here / 'envelope-check.py'), str(binary)],
+                                capture_output=True)
+        assert result.returncode != 0, f'{name}: survived'
+        assert b'AssertionError' in result.stderr, (name, result.stderr)
+        print(f'{name}: caught by numerical oracle')
diff --git a/om/q38-head/envelope-validation.json b/om/q38-head/envelope-validation.json
new file mode 100644
index 00000000..439b62c9
--- /dev/null
+++ b/om/q38-head/envelope-validation.json
@@ -0,0 +1,66 @@
+{
+  "test": "gpu_exact_head_test",
+  "mutant": 0,
+  "records": 8,
+  "identical": 8,
+  "host_full_agrees": 8,
+  "candidate_bits_differ": 0,
+  "full_argmax_missing": 0,
+  "C_mean": 70.125,
+  "C_p99": 259,
+  "C_max": 259,
+  "full_list_us": {
+    "p50": 11299.75,
+    "p99": 11506.46
+  },
+  "two_pass_list_us": {
+    "p50": 5596.17,
+    "p99": 6001.02
+  },
+  "bytes": {
+    "full_head": 2542796800,
+    "fp8b_screen": 1271553600,
+    "coef": 993280,
+    "row": 10240
+  },
+  "status": "PASS captured-state GPU replay; full serving validation pending",
+  "fixed_envelope": 195.37811279296875,
+  "envelope_host_cases": 1309,
+  "envelope_source_mutants_caught": 5,
+  "norm_stress_cases": 90,
+  "norm_stress_failures": 0,
+  "underestimated_envelope_control_failures": 12,
+  "timing_status": "PROVISIONAL shared correctness window; not a whole-model or TTFT result",
+  "source_sha256": {
+    "om/q38-head/envelope.om": "dd65c33f7a92372a83c9eb21f2579a74ff0a8053e8850ef9e3f0361e579b37e7",
+    "om/q38-head/plan.om": "1e20f15ae5e9fe62c816700da014843933cd6bc3594e30e86877778ec949fb9d",
+    "om/q38-head/emit.om": "9214fa3ef6e18800bdc13ff6e51944198cfc46df157d22d756cf254adc1b84d3",
+    "om/q38-head/norm-check.c": "26e46dee094ac5b21f6b0ea27d53b457e30ecf7035f228e586450c735418e991"
+  },
+  "output": [
+    "record 0 position 1 saved_bits_bad 0 bounds_bad 0",
+    "record 0 candidates 259 full 2732 selected 2732",
+    "record 1 position 16 saved_bits_bad 0 bounds_bad 0",
+    "record 1 candidates 2 full 11 selected 11",
+    "record 2 position 32 saved_bits_bad 0 bounds_bad 0",
+    "record 2 candidates 202 full 1946 selected 1946",
+    "record 3 position 64 saved_bits_bad 0 bounds_bad 0",
+    "record 3 candidates 3 full 324 selected 324",
+    "record 4 position 96 saved_bits_bad 0 bounds_bad 0",
+    "record 4 candidates 3 full 264 selected 264",
+    "record 5 position 97 saved_bits_bad 0 bounds_bad 0",
+    "record 5 candidates 79 full 58170 selected 58170",
+    "record 6 position 98 saved_bits_bad 0 bounds_bad 0",
+    "record 6 candidates 2 full 310 selected 310",
+    "record 7 position 127 saved_bits_bad 0 bounds_bad 0",
+    "record 7 candidates 11 full 561 selected 561",
+    "chip: 8 records, identical 8, host-full agrees 8, |C| mean 70.1 p99 259 max 259",
+    "chip: full head list p50 11299.8 us p99 11506.5 us; two-pass list p50 5596.2 us p99 6001.0 us",
+    "gpu_exact_head_test: 23 checks, 0 failed: PASS"
+  ],
+  "normalization_output": [
+    "RMSNorm envelope: 90 cases, 0 failures, largest norm 193.978906598, bound 195.378112793: PASS"
+  ],
+  "additional_admission_bytes": 2147483648,
+  "admission_status": "PASS host metadata and null-handle gate; full server retest with admission update pending"
+}
diff --git a/om/q38-head/envelope.om b/om/q38-head/envelope.om
new file mode 100644
index 00000000..6746c1c3
--- /dev/null
+++ b/om/q38-head/envelope.om
@@ -0,0 +1,32 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Folded final RMSNorm weight bits. Return positive upper-norm f32 bits, or zero to refuse.
+fn q38_envelope bits view uint 5120 to ulong
+mx = ulong 0
+for i ulong 5120
+v = and ulong get bits i 2147483647
+if ge v 2139095040
+ret 0
+end
+if gt v mx
+mx = v
+end
+end
+note Tiny or zero weights use the conservative constant 1.0.
+if lt mx 8388608
+ret 1065353216
+end
+note 72 bounds sqrt(5120). 1025/1024 provides normalization rounding slack.
+ex = and shr mx 23 255
+sig = or and mx 8388607 8388608
+sig = mul sig 73800
+shift = ulong 0
+while gt sig 16777215 bound 64
+sig = div add sig 1 2
+shift = add shift 1
+end
+ex = sub add ex shift 10
+if ge ex 255
+ret 0
+end
+ret or shl ex 23 sub sig 8388608
+end
diff --git a/om/q38-head/norm-check.c b/om/q38-head/norm-check.c
new file mode 100644
index 00000000..6b4be533
--- /dev/null
+++ b/om/q38-head/norm-check.c
@@ -0,0 +1,73 @@
+/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
+/* External verification instrument for the existing 5120-wide final RMSNorm. */
+#include "omega_blackwell_codegen_dec.h"
+#include "omega_gpu_session.h"
+#include <assert.h>
+#include <float.h>
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#define H 5120u
+static void demand(int rc) {
+    if (rc) { fprintf(stderr, "GPU: %s\n", omega_gpu_session_last_error()); exit(4); }
+}
+static void pointer(uint32_t *a, unsigned off, uint64_t p) {
+    a[(off-0x380)/4]=(uint32_t)p; a[(off-0x380)/4+1]=(uint32_t)(p>>32);
+}
+static void scalar(uint32_t *a, unsigned off, float x) { memcpy(a+(off-0x380)/4,&x,4); }
+static uint32_t rng=710;
+static float random_value(void) {
+    rng=rng*1664525u+1013904223u;
+    return ((float)(rng>>8)/8388608.0f)-1.0f;
+}
+int main(int argc,char **argv) {
+    if(argc!=4 || strcmp(argv[1],"--chip")) return 65;
+    char *end=NULL; float envelope=strtof(argv[3],&end);
+    if(!end || *end || !isfinite(envelope) || envelope<=0) return 65;
+    float weights[H]; FILE *f=fopen(argv[2],"rb"); assert(f);
+    assert(fread(weights,4,H,f)==H && fgetc(f)==EOF); fclose(f);
+    float wm=0; for(unsigned j=0;j<H;j++) {assert(isfinite(weights[j]));wm=fmaxf(wm,fabsf(weights[j]));}
+    OmegaDecSpec spec={0};spec.kind=OMEGA_DEC_RES;spec.mode=OMEGA_DEC_RES_NORM;spec.width=H;
+    static BlackwellIRProgram program;
+    assert(!omega_blackwell_codegen_dec_prog(&spec,&program));
+    size_t size=omega_bw_program_code_bytes(&program); assert(size);
+    OmegaGpuMem code={0},data={0};OmegaBlackwellKernel kernel;
+    omega_gpu_session_lock(); demand(omega_gpu_session_open()?0:-1);
+    demand(omega_gpu_session_alloc_code(size,&code));
+    assert(!omega_blackwell_kernel_encode_into(&program,code.cpu,size,&kernel));
+    demand(omega_gpu_session_sync_to_gpu(&code));
+    demand(omega_gpu_session_alloc(H*12,&data));
+    float *x=data.cpu,*w=x+H,*y=w+H;
+    uint32_t args[OMEGA_DEC_RES_WORDS]={0};
+    pointer(args,OMEGA_DEC_RES_X,data.va);pointer(args,OMEGA_DEC_RES_NW,data.va+H*4);
+    pointer(args,OMEGA_DEC_RES_Y,data.va+H*8);
+    scalar(args,OMEGA_DEC_RES_EPS,1e-6f);scalar(args,OMEGA_DEC_RES_SCALE,1.0f);
+    OmegaGpuLaunch launch={0};launch.code_va=code.va;
+    launch.gpr_count=omega_bw_gpr_declared(kernel.gpr_count);
+    if(launch.gpr_count<64)launch.gpr_count=64;
+    launch.threads_x=256;launch.threads_y=1;launch.grid_x=launch.grid_y=1;
+    launch.num_elements=H;launch.args=args;launch.n_args=OMEGA_DEC_RES_WORDS;launch.timeout_ms=20000;
+    int exponents[]={-149,-126,-80,-20,-10,0,20,60,120};
+    unsigned checks=0,failed=0;long double largest=0;
+    for(unsigned wi=0;wi<2;wi++) for(unsigned e=0;e<sizeof exponents/sizeof *exponents;e++)
+    for(unsigned pattern=0;pattern<5;pattern++) {
+        for(unsigned j=0;j<H;j++) {
+            float z=pattern==0?1.0f:pattern==1?(j==H-1?1.0f:0.0f):
+                pattern==2?(j%2?1.0f:-1.0f):pattern==3?random_value():ldexpf(random_value(),-(int)(j%64));
+            x[j]=ldexpf(z,exponents[e]);w[j]=wi?(j%2?-wm:wm):weights[j];y[j]=NAN;
+        }
+        demand(omega_gpu_session_sync_to_gpu(&data));
+        demand(omega_gpu_session_launch(&launch,NULL,NULL));
+        demand(omega_gpu_session_sync_to_cpu(&data));
+        long double square=0;
+        for(unsigned j=0;j<H;j++) {if(!isfinite(y[j]))failed++;square+=(long double)y[j]*y[j];}
+        long double norm=sqrtl(square);if(norm>largest)largest=norm;
+        if(!(norm<=envelope)) {failed++;printf("FAIL weight=%u exponent=%d pattern=%u norm=%.12Lg bound=%.12g\n",wi,exponents[e],pattern,norm,envelope);}
+        checks++;
+    }
+    omega_gpu_session_free(&data);omega_gpu_session_free(&code);omega_gpu_session_unlock();
+    printf("RMSNorm envelope: %u cases, %u failures, largest norm %.12Lg, bound %.12g: %s\n",checks,failed,largest,envelope,failed?"FAIL":"PASS");
+    return failed?1:0;
+}
diff --git a/om/q38-head/pipeline-validation.json b/om/q38-head/pipeline-validation.json
new file mode 100644
index 00000000..1b4101b3
--- /dev/null
+++ b/om/q38-head/pipeline-validation.json
@@ -0,0 +1,103 @@
+{
+  "test": "gpu_exact_head_test",
+  "mutant": 0,
+  "records": 8,
+  "identical": 8,
+  "host_full_agrees": 8,
+  "candidate_bits_differ": 0,
+  "full_argmax_missing": 0,
+  "C_mean": 15.25,
+  "C_p99": 47,
+  "C_max": 47,
+  "full_list_us": {
+    "p50": 11420.71,
+    "p99": 11497.49
+  },
+  "two_pass_list_us": {
+    "p50": 5796.01,
+    "p99": 6002.6
+  },
+  "bytes": {
+    "full_head": 2542796800,
+    "fp8b_screen": 1271553600,
+    "coef": 993280,
+    "row": 10240
+  },
+  "status": "PASS correctness only",
+  "timing_status": "PROVISIONAL: shared correctness window, concurrent host suites; not an accepted speed/TTFT result",
+  "ratio_calculation": {
+    "expression": "full_list_us.p50 / two_pass_list_us.p50",
+    "value": 1.970443460242477
+  },
+  "window": "20261101T161824Z-99563b",
+  "baseline_file": "tests/gpu_exact_head_test.c",
+  "baseline_sha256": "be7573c66dc74d73c0fe7bc7ee04a782efdf82072200ed9cc688ff6ac520afa7",
+  "instrument_sha256": "c764733af53a94b47717dac16108a2382ecbc9fb614ad9694970fce1b6a79d21",
+  "export_source_sha256": "595e1329d1d6a9cecdb83f3e8db076059d3d7e0e3c611c28c112622f12c5d05c",
+  "zero_bound_control": {
+    "exit": 1,
+    "missed_full_winner": 1,
+    "position": 97,
+    "full_token": 58170,
+    "wrong_token": 25155
+  },
+  "not_run": [
+    "server integration",
+    "full 256-token private-server exactness gate",
+    "first-token measurement",
+    "uncontended timing"
+  ],
+  "output": [
+    "record 0 position 1 saved_bits_bad 0 bounds_bad 0",
+    "record 0 candidates 44 full 2732 selected 2732",
+    "record 1 position 16 saved_bits_bad 0 bounds_bad 0",
+    "record 1 candidates 1 full 11 selected 11",
+    "record 2 position 32 saved_bits_bad 0 bounds_bad 0",
+    "record 2 candidates 47 full 1946 selected 1946",
+    "record 3 position 64 saved_bits_bad 0 bounds_bad 0",
+    "record 3 candidates 2 full 324 selected 324",
+    "record 4 position 96 saved_bits_bad 0 bounds_bad 0",
+    "record 4 candidates 2 full 264 selected 264",
+    "record 5 position 97 saved_bits_bad 0 bounds_bad 0",
+    "record 5 candidates 21 full 58170 selected 58170",
+    "record 6 position 98 saved_bits_bad 0 bounds_bad 0",
+    "record 6 candidates 1 full 310 selected 310",
+    "record 7 position 127 saved_bits_bad 0 bounds_bad 0",
+    "record 7 candidates 4 full 561 selected 561",
+    "chip: 8 records, identical 8, host-full agrees 8, |C| mean 15.2 p99 47 max 47",
+    "chip: full head list p50 11420.7 us p99 11497.5 us; two-pass list p50 5796.0 us p99 6002.6 us",
+    "gpu_exact_head_test: 15 checks, 0 failed: PASS"
+  ],
+  "zero_bound_output": [
+    "FAIL: saved full logits mismatch 0; GPU compact interval violations 248310",
+    "record 0 position 1 saved_bits_bad 0 bounds_bad 248310",
+    "record 0 candidates 1 full 2732 selected 2732",
+    "FAIL: saved full logits mismatch 0; GPU compact interval violations 248309",
+    "record 1 position 16 saved_bits_bad 0 bounds_bad 248309",
+    "record 1 candidates 1 full 11 selected 11",
+    "FAIL: saved full logits mismatch 0; GPU compact interval violations 248313",
+    "record 2 position 32 saved_bits_bad 0 bounds_bad 248313",
+    "record 2 candidates 1 full 1946 selected 1946",
+    "FAIL: saved full logits mismatch 0; GPU compact interval violations 248313",
+    "record 3 position 64 saved_bits_bad 0 bounds_bad 248313",
+    "record 3 candidates 1 full 324 selected 324",
+    "FAIL: saved full logits mismatch 0; GPU compact interval violations 248315",
+    "record 4 position 96 saved_bits_bad 0 bounds_bad 248315",
+    "record 4 candidates 1 full 264 selected 264",
+    "FAIL: saved full logits mismatch 0; GPU compact interval violations 248314",
+    "record 5 position 97 saved_bits_bad 0 bounds_bad 248314",
+    "record 5 candidates 1 full 58170 selected 25155",
+    "record 5: two-pass 25155 != full 58170 (|C| 1)",
+    "FAIL: saved full logits mismatch 0; GPU compact interval violations 248311",
+    "record 6 position 98 saved_bits_bad 0 bounds_bad 248311",
+    "record 6 candidates 1 full 310 selected 310",
+    "FAIL: saved full logits mismatch 0; GPU compact interval violations 248314",
+    "record 7 position 127 saved_bits_bad 0 bounds_bad 248314",
+    "record 7 candidates 1 full 561 selected 561",
+    "FAIL: two-pass token == full head token on 7 / 8 records",
+    "FAIL: candidate logits bit-identical to the full head (0 differ, 1 full argmax missing)",
+    "chip: 8 records, identical 7, host-full agrees 8, |C| mean 1.0 p99 1 max 1",
+    "chip: full head list p50 11359.9 us p99 11408.9 us; two-pass list p50 5736.2 us p99 5996.1 us",
+    "gpu_exact_head_test: 15 checks, 10 failed: FAIL"
+  ]
+}
diff --git a/om/q38-head/pipeline.patch b/om/q38-head/pipeline.patch
new file mode 100644
index 00000000..101004a2
--- /dev/null
+++ b/om/q38-head/pipeline.patch
@@ -0,0 +1,46 @@
+--- tests/gpu_exact_head_test.c
++++ pipeline.c
+@@ -0,0 +1 @@
++/* External qualification derivative of tests/gpu_exact_head_test.c. Not runtime code. */
+@@ -141 +142 @@
+-#define XH_K 2048u
++#define XH_K 5120u
+@@ -154,0 +156,10 @@
++    if (kind == OMEGA_DEC_XBOUND && mode == 0 && mutant == 0) {
++        const char *path=getenv("Q38_BOUNDS_BIN"); if(!path)return -1;
++        FILE *f=fopen(path,"rb");if(!f)return -1;
++        unsigned char bytes[16384];size_t need=fread(bytes,1,sizeof bytes,f);
++        if(ferror(f)||!feof(f)||!need){fclose(f);return -1;}fclose(f);
++        if(omega_gpu_session_alloc_code(need,&k->code))return -1;
++        memcpy(k->code.cpu,bytes,need);k->gpr=64;
++        return omega_gpu_session_sync_to_gpu(&k->code);
++    }
++
+@@ -239,4 +250,8 @@
+-        uint32_t xb[OMEGA_DEC_XB_WORDS]; memset(xb, 0, sizeof xb);
+-        put64v(xb, OMEGA_DEC_XB_S, V + o_s); put64v(xb, OMEGA_DEC_XB_C, V + o_c); put64v(xb, OMEGA_DEC_XB_H, V + o_h);
+-        put64v(xb, OMEGA_DEC_XB_LO, V + o_lo); put64v(xb, OMEGA_DEC_XB_HI, V + o_hi); xb[(OMEGA_DEC_XB_N - 0x380u) / 4] = n;
+-        e |= xadd(clT, &kb, (n + OMEGA_DEC_THREADS - 1) / OMEGA_DEC_THREADS, n, xb, OMEGA_DEC_XB_WORDS);
++        uint32_t xb[10]={0};
++        put64v(xb,896,V+o_s);put64v(xb,904,V+o_c);
++        put64v(xb,912,V+o_lo);put64v(xb,920,V+o_hi);
++        long double hn2=0;
++        for(uint32_t j=0;j<k;j++)hn2=nextafterl(hn2+(long double)h[j]*h[j],INFINITY);
++        float hn=nextafterf((float)nextafterl(sqrtl(hn2),INFINITY),INFINITY);
++        memcpy(&xb[8],&hn,4);xb[9]=n;
++        e |= xadd(clT,&kb,(n+255)/256,n,xb,10);
+@@ -252,0 +268,12 @@
++        const char *captured=getenv("Q38_CAPTURE_DIR");
++        uint32_t position;memcpy(&position,rec+4,4);char fn[64];
++        snprintf(fn,sizeof fn,"%u-logits.f32",position);
++        float *saved=read_all(captured,fn,n*4);if(!saved){sub_fail++;break;}
++        size_t saved_bad=0,bound_bad=0;
++        for(uint32_t i=0;i<n;i++) {
++            saved_bad+=memcmp(saved+i,yf+i,4)!=0;
++            bound_bad+=!(((float*)(B+o_lo))[i]<=yf[i]&&((float*)(B+o_hi))[i]>=yf[i]);
++        }
++        free(saved);
++        CHECK(!saved_bad&&!bound_bad,"saved full logits mismatch %zu; GPU compact interval violations %zu",saved_bad,bound_bad);
++        printf("record %zu position %u saved_bits_bad %zu bounds_bad %zu\n",r,position,saved_bad,bound_bad);
+@@ -259,0 +287 @@
++        printf("record %zu candidates %zu full %u selected %u\n",r,c,tokf,tok);
diff --git a/om/q38-head/plan-check.py b/om/q38-head/plan-check.py
new file mode 100644
index 00000000..c890ec37
--- /dev/null
+++ b/om/q38-head/plan-check.py
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External verification of checked portable Omega bindings.
+import ctypes as C,struct,sys
+L=C.CDLL(sys.argv[1]);F=L.omega_q38_runtime;F.restype=C.c_uint32
+F.argtypes=[C.POINTER(C.c_uint64),C.c_void_p,C.c_uint64,C.c_void_p,C.c_uint64,C.c_void_p,C.c_uint64]
+m=(C.c_uint64*16)();b=C.create_string_buffer(struct.pack('<5120f',*([2.7109375]*5120)),20480);q=(C.c_uint64*192)();r=C.c_uint64()
+def run():
+ return F(C.byref(r),m,16,b,20480,q,192),r.value
+m[0]=1;m[1]=248320
+assert run()==(0,1)
+info=list(q);hn=struct.unpack('<f',struct.pack('<I',q[0]))[0]
+assert hn==195.37811279296875 and q[2]==10384
+assert q[10]==2*1024**3
+m[0]=3
+assert run()==(0,1) and q[10]==2*1024**3
+q[0]=info[0]
+p=((248320+2047)//2048)*2048
+assert info[3:10]==[0,20480,20480+248320*4,20480+248320*8,20480+248320*8+p*4,20480+248320*12+p*4,p]
+m[0]=2;m[2]=q[0]
+for j in range(3,9):m[j]=j*0x1000000
+assert run()==(0,6)
+base=m[3];h=m[4];lo=m[5];av=m[6];ai=m[7];tab=m[8]
+expected=[
+[1,20,5120,h,0,base,0,0,5120],
+[2,0,0,tab,base,base+info[4],0,0,0],
+[3,970,248320,base+info[4],base+info[5],base+info[6],base+info[7],info[0],248320],
+[4,p//2048,p,base+info[6],0,av,ai,0,0],
+[5,1,2048,av,ai,base+info[8],base+info[8]+4,0,0],
+[6,0,0,h,base+info[7],lo,base+info[8],0,0]]
+for i,row in enumerate(expected):assert list(q)[i*16:(i+1)*16]==row+[0]*7,(i,list(q)[i*16:(i+1)*16],row)
+for index,wrong in [(1,0),(1,248321),(2,0),(2,0x7f800000),(2,0x80000000)]+[(j,v) for j in range(3,9) for v in [0,1,1<<48]]:
+ saved=m[index];m[index]=wrong;before=list(q);assert run()==(0,0);assert list(q)==before;m[index]=saved
+E=L.omega_q38_emit;E.restype=C.c_uint32;E.argtypes=[C.POINTER(C.c_uint64),C.c_void_p,C.c_uint64]
+code=(C.c_ubyte*16384)();assert E(C.byref(r),code,16384)==0
+frame=open(sys.argv[2],'rb').read()
+head=struct.unpack_from('<6Q',frame)
+offset=48+16*(head[1]+head[2])+64*head[0]
+assert bytes(code[:r.value])==frame[offset:]
+print('PASS: layout, six complete descriptors, admission refusals, unchanged output on refusal, emitted kernel byte identity')
diff --git a/om/q38-head/plan.om b/om/q38-head/plan.om
new file mode 100644
index 00000000..756dbf1e
--- /dev/null
+++ b/om/q38-head/plan.om
@@ -0,0 +1,117 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Pure layout and schedule for the experimental 27B exact head.
+note Info: norm bits, scratch bytes, rounding count, scaled, scores, coefficients, lo, hi, tau, padded count.
+fn q38_layout q edit ulong 192 to void
+put q 2 10384
+put q 3 0
+put q 4 20480
+put q 5 add get q 4 mul ulong 248320 4
+put q 6 add get q 5 mul ulong 248320 4
+put q 9 mul div add ulong 248320 2047 2048 2048
+put q 7 add get q 6 mul get q 9 4
+put q 8 add get q 7 mul ulong 248320 4
+put q 1 add get q 8 256
+note Additional admission reserve for the resident screen, coefficients and scratch, rounded conservatively to 2 GiB.
+put q 10 shl ulong 1 31
+end
+note A descriptor has kind, grid, element count, input A, input B, output A, output B, scalar, count.
+fn q38_schedule m view ulong 16 q edit ulong 192 to ulong
+if ne get m 1 248320
+ret 0
+end
+if or eq get m 2 0 ge get m 2 2139095040
+ret 0
+end
+for j ulong 6
+v = get m add j 3
+if or eq v 0 ge v shl ulong 1 48
+ret 0
+end
+if ne rem v 16 0
+ret 0
+end
+end
+lay = new ulong 192 0
+q38_layout lay
+base = get m 3
+hidden = get m 4
+for j ulong 192
+put q j 0
+end
+note Scale hidden by 2^64, then compact FP8 screen.
+put q 0 1
+put q 1 20
+put q 2 5120
+put q 3 hidden
+put q 5 add base get lay 3
+put q 8 5120
+put q 16 2
+put q 19 get m 8
+put q 20 add base get lay 3
+put q 21 add base get lay 4
+note Conservative intervals, then maximum lower bound.
+put q 32 3
+put q 33 div add ulong 248320 255 256
+put q 34 248320
+put q 35 add base get lay 4
+put q 36 add base get lay 5
+put q 37 add base get lay 6
+put q 38 add base get lay 7
+put q 39 get m 2
+put q 40 248320
+put q 48 4
+put q 49 div get lay 9 2048
+put q 50 get lay 9
+put q 51 add base get lay 6
+put q 53 get m 6
+put q 54 get m 7
+put q 64 5
+put q 65 1
+put q 66 2048
+put q 67 get m 6
+put q 68 get m 7
+put q 69 add base get lay 8
+put q 70 add add base get lay 8 4
+note Recheck retained candidates with the original BF16 weights and hidden values.
+put q 80 6
+put q 83 hidden
+put q 84 add base get lay 7
+put q 85 get m 5
+put q 86 add base get lay 8
+ret 6
+end
+note m[0]=1: info from folded weights. m[0]=2: six schedule descriptors.
+note Schedule m[1..8]=vocab,norm bits,scratch,hidden,logits,argmax values,argmax indices,FP8 table.
+fn q38_runtime m view ulong 16 bits view uchar 20480 q edit ulong 192 to ulong
+if eq get m 0 2
+ret q38_schedule m q
+end
+if and eq get m 0 3 eq get m 1 248320
+for j ulong 192
+put q j 0
+end
+q38_layout q
+ret 1
+end
+if or ne get m 0 1 ne get m 1 248320
+ret 0
+end
+wb = new uint 5120 0
+for i ulong 5120
+v = ulong 0
+for j ulong 4
+v = or v shl ulong get bits add mul i 4 j mul j 8
+end
+put wb i uint v
+end
+hn = q38_envelope wb
+if eq hn 0
+ret 0
+end
+for j ulong 192
+put q j 0
+end
+q38_layout q
+put q 0 hn
+ret 1
+end
diff --git a/om/q38-head/run.sh b/om/q38-head/run.sh
new file mode 100644
index 00000000..3421e62f
--- /dev/null
+++ b/om/q38-head/run.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# External verification harness; not a runtime dependency.
+set -eu
+: "${OMEGA_OMC:?set the pinned seeded compiler}"
+: "${Q38_GPU_OUT:?set an external output directory}"
+test "$(sha256sum < "$OMEGA_OMC" | cut -c1-64)" = 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f
+mkdir -p "$Q38_GPU_OUT"
+cat om/components/bw_alloc.om om/components/bw_effect.om \
+    om/components/bw_check.om om/components/bw_project.om \
+    om/encoder/bw_enc_sm121.om om/encoder/bw_spec_sm121.om \
+    om/components/encode.om om/q38-head/bounds.om om/q38-head/driver.om \
+    > "$Q38_GPU_OUT/combined.om"
+"$OMEGA_OMC" < "$Q38_GPU_OUT/combined.om" > "$Q38_GPU_OUT/emit"
+chmod +x "$Q38_GPU_OUT/emit"
+"$Q38_GPU_OUT/emit" > "$Q38_GPU_OUT/bounds.frame"
+${CC:-cc} -O2 -std=gnu11 -Wall -Wextra -Werror -Wno-unused-function \
+    -ffp-contract=off -Isrc -Itests om/q38-head/check.c \
+    "${Q38_GPU_LIB:-build/libomega_gpu.a}" -lpthread -lm -o "$Q38_GPU_OUT/check"
+"$Q38_GPU_OUT/check" "$Q38_GPU_OUT/bounds.frame" "$@"
+cat om/q38-head/envelope.om om/q38-head/envelope-driver.om > "$Q38_GPU_OUT/envelope.om"
+"$OMEGA_OMC" < "$Q38_GPU_OUT/envelope.om" > "$Q38_GPU_OUT/envelope"
+chmod +x "$Q38_GPU_OUT/envelope"
+python3 om/q38-head/envelope-check.py "$Q38_GPU_OUT/envelope"
+python3 om/q38-head/envelope-mutants.py "$OMEGA_OMC"
+${CC:-cc} -O2 -shared -fPIC src/cudapp_om_q38_runtime.c src/cudapp_om_q38_emit.c \
+    -o "$Q38_GPU_OUT/plan.so"
+python3 om/q38-head/plan-check.py "$Q38_GPU_OUT/plan.so" "$Q38_GPU_OUT/bounds.frame"
+${CC:-cc} -O2 -Isrc om/q38-head/budget-check.c "${Q38_GPU_LIB:-build/libomega_gpu.a}" \
+    -lpthread -lm -o "$Q38_GPU_OUT/budget-check"
+"$Q38_GPU_OUT/budget-check"
diff --git a/om/q38-head/serving-validation.json b/om/q38-head/serving-validation.json
new file mode 100644
index 00000000..83ed976c
--- /dev/null
+++ b/om/q38-head/serving-validation.json
@@ -0,0 +1,59 @@
+{
+  "status": "PASS_SCOPED_FUNCTIONAL_GATE",
+  "code": {
+    "CUDApp": "39160652aa4b4224d64c1fa9b7c012416efa1cd0",
+    "Core": "f0acdc7dc460e1984aa72bba515ea35c3eac2d55",
+    "server_sha256": "50159c11f87b0140818324254011c9f8f237bb52fcae2722ef34a82ec34c20f5",
+    "library_sha256": "9722beb3760e0a195dcc6982bbe43a480de14c0827aa6dc764408ace92f4ea39",
+    "fixture_sha256": "f1130c77f0ca13fe86eb3187b26a203268eea357918acf6ae9568a3c28eb2868"
+  },
+  "model": "qwen3.8-27b-fp8-017b9c7a",
+  "options": {
+    "exact_head": true,
+    "approximate_head": false,
+    "weight_cache": false
+  },
+  "functional": {
+    "conversation_continuation": "PASS",
+    "reference_tokens": 256,
+    "reference_runs": 3,
+    "all_reference_ids_and_text_identical": true,
+    "stream_ids_and_text_identical": true,
+    "seeded_sample_ids_and_text_identical_to_full_head": true,
+    "sample_seed": 710,
+    "sample_temperature": 0.7,
+    "sample_tokens": 32,
+    "coding_cases_passed": 7,
+    "coding_repeat_identical": true,
+    "prose_repeat_identical": true,
+    "prose_words": 115,
+    "owned_server_clean_exit": true
+  },
+  "timing": {
+    "status": "SHARED_MACHINE_DIAGNOSTIC_ONLY",
+    "old_exact_head_request_seconds": [
+      48.576396254007705,
+      48.618170346016996
+    ],
+    "new_combined_request_seconds": [
+      32.82787152699893,
+      32.82463613298023
+    ],
+    "load_wall_seconds": 43.033468157984316,
+    "first_visible_stream_seconds": 0.49409718898823485,
+    "note": "Not five alternating quiet-machine pairs; not a qualification against the older frozen server. No accepted TTFT improvement."
+  },
+  "seal": {
+    "oracle_cases": 6304,
+    "all_input_byte_mutations": 2048,
+    "compiled_mutants_caught": 5,
+    "native_runtime_host_cases_passed": 27,
+    "portable_bindings_reproduce": true
+  },
+  "remaining": [
+    "Final full host suite and current-head CI",
+    "Quiet controlled performance qualification",
+    "Broader prompt and context coverage before enabling exact head by default"
+  ],
+  "deployment": "None; exact head remains opt-in."
+}
diff --git a/om/q38-head/validation.json b/om/q38-head/validation.json
new file mode 100644
index 00000000..5ccc4cfe
--- /dev/null
+++ b/om/q38-head/validation.json
@@ -0,0 +1,74 @@
+{
+  "status": "PASS for primitive correctness; full repository checks running",
+  "scope": "Omega-generated bounds on host compact scores; not complete GPU head or speed qualification",
+  "base": "c8ccbc34e4cb0b46693f2c6f8321c7c52eb88429",
+  "compiler_sha256": "2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f",
+  "bridge_commit": "3dc4a00e9966770cce58bdedb401c3b3932c35ee",
+  "source_sha256": {
+    "om/q38-head/bounds.om": "a35bea87e381ba7b67fa78fc75631fa21a42e54d3a3769a4c7219f7636820162",
+    "om/q38-head/driver.om": "f6ad3c75883d8f7ddda783198f8a27af734e4f4bf5d76d3f63b547a62135ba98",
+    "om/q38-head/check.c": "cc4c5656269a84ded7d62c2f5e0b687641e9e1924f82429e354587c9ff19e5d6",
+    "om/q38-head/run.sh": "1e9b8a5b3b82d0ce65d437570c5924f8d9fe0bd161afdfad81be53343552edea",
+    "om/encoder/amp_runtime.om": "6203730d7d80acc0e563e3cb5e7a2b925b5d8739124f467bd3bd5d65a4920cdc",
+    "nvrm/nvrm.c": "b6edd4d9fcb447e97318f4fb404623b987414c4cb05bdea8a86936790ae83c40",
+    "tests/test_ampere_runtime.c": "643011c5f918ae407bee074bebce622c8282b0e47fa28dd411727489e28ebbbc",
+    "src/cudapp_om_amp_runtime.c": "54302a88d9a9a9efbdf0c401fde6fc88d6518a0105c83d86916e7b4a73b1bbda",
+    "mk/q38-head.mk": "b24419dc69469cf1e4d63cf9dfae0b6cc409aa0ee2affc38b5f851b9822b6e9a"
+  },
+  "frame_sha256": "ea03f28a8dab07412395087fba5f413e79f201226471df516607300255775abe",
+  "machine_code_sha256": "adee7fb923580e614707fa8f968e6ef5bb0d3ec8f2b248100344ccb3b636ad0c",
+  "runtime_archive_sha256": "4f771fa4b16b47e23f0385b8b616a62ffc054768bbaa408333f3be5a273c9644",
+  "window": "20261101T161659Z-240a79",
+  "host_output": [
+    "bad row0 s3.40282e+38 c3.40282e+38 hn123.25 lo0 hiinf",
+    "bad row2 s0 c0 hn123.25 lo-inf hiinf",
+    "PASS: bounds enclose long-double reference with bounded slack; tails untouched; both orders/repetitions",
+    "PASS: arithmetic mutant caught",
+    "PASS: all-infinite radius mutant caught by bounded slack"
+  ],
+  "chip_output": [
+    "PASS: bounds enclose long-double reference with bounded slack; tails untouched; both orders/repetitions",
+    "replay position=1 candidates=44 violations=0 winner_retained=1",
+    "replay position=16 candidates=1 violations=0 winner_retained=1",
+    "replay position=32 candidates=47 violations=0 winner_retained=1",
+    "replay position=64 candidates=2 violations=0 winner_retained=1",
+    "replay position=96 candidates=2 violations=0 winner_retained=1",
+    "replay position=97 candidates=21 violations=0 winner_retained=1",
+    "replay position=98 candidates=1 violations=0 winner_retained=1",
+    "replay position=127 candidates=4 violations=0 winner_retained=1",
+    "PASS: generated machine code executed on GPU"
+  ],
+  "admission_red": "test_ampere_runtime: tests/test_ampere_runtime.c:115: class_and_bdf: Assertion `select_classes(&rm, bw, 3, 0x10de, 0x2e12) == 0 && rm.target_sm == 121 && !rm.discrete' failed.",
+  "admission_green": "Ampere simulated RM allocation/class/QMD tests passed (HOST_ONLY; device NOT_RUN)",
+  "proof": {
+    "method": "exact rational arithmetic; u=2^-24, e=2^-20, tiny=2^-100, eta=2^-150; A=(1-u)^4*(1+e), B=e*(1-u)^2, D=(1+e)*(1-u)^3+(1-u)^2+(1-u)+1",
+    "inequalities": {
+      "radius_coefficient": {
+        "exact": "913843900478962934897940496357785599/1393796574908163946345982392040522594123776",
+        "positive": true
+      },
+      "score_coefficient": {
+        "exact": "4427217733265412587519/4951760157141521099596496896",
+        "positive": true
+      },
+      "absolute_margin": {
+        "exact": "93536093638805104422944811423736056598056271871999/118571099379011784113736688648896417641748464297615937576404566024103044751294464",
+        "positive": true
+      }
+    },
+    "units": "dimensionless coefficients; absolute score margin"
+  },
+  "not_run": [
+    "end-to-end server with exact head",
+    "time to first token comparison",
+    "complete GPU two-pass pipeline"
+  ],
+  "commands": [
+    "make -j1 build/libomega_gpu.a",
+    "sh om/q38-head/run.sh",
+    "check bounds.frame --chip SCREEN_DIRECTORY CAPTURE_DIRECTORY",
+    "make build/test_ampere_runtime && build/test_ampere_runtime",
+    "make test-q38-head-bounds (PASS; integrated into supported host make test)"
+  ],
+  "synthetic_cases_calculation": "8 counts * 6 norms * 2 orders/repetitions = 96"
+}
diff --git a/om/units.sh b/om/units.sh
index b124077a..ff7174bf 100755
--- a/om/units.sh
+++ b/om/units.sh
@@ -19,7 +19,7 @@ ENC="om/encoder/bw_enc_sm121.om,om/encoder/bw_spec_sm121.om,om/components/encode
 MOE="om/moe/moe_plan.om om/moe/moe_group.om om/moe/moe_ids32.om om/moe/moe_maps32.om om/moe/moe_segs32.om om/moe/moe_windows.om moe_admission=$PIPE,om/moe/moe_group.om,om/moe/moe_admit.om"
 CLOSURE="$REAL,om/cache/digest.om,om/moe/moe_windows.om,om/moe/moe_group.om,native/learn53/moe-closure.om"
 OBSERVE="closure_code=$CLOSURE,om/moe/closure_code.om closure_launch=$CLOSURE,om/moe/closure_launch.om closure_dir=$CLOSURE,om/moe/closure_dir.om closure_alloc=$CLOSURE,om/moe/closure_alloc.om closure_series=$CLOSURE,om/moe/closure_series.om"
-UNITS="${OMEGA_UNITS:-om/encoder/bw_enc_sm121.om om/cubin/cubin_elf.om om/encoder/ampere_enc_sm86.om om/encoder/amp_runtime.om repack=$QUANT,om/quant/repack.om quant_wire=$QUANT,om/quant/runtime.om compose=$COMP encode=$ENC cache_runtime=om/cache/residency.om,om/cache/runtime.om lease=om/cache/residency.om,om/cache/runtime.om,om/cache/lease.om slotrev=om/cache/residency.om,om/cache/slotrev.om command=om/cache/residency.om,om/cache/command.om validate=$CACHE,$COMP,$ENC,om/components/admit.om,om/cache/validate.om digest=$REAL,om/cache/digest.om,om/cache/key.om code_digest=$REAL,om/cache/digest.om,om/cache/codekey.om templates=$REAL,om/cache/digest.om,om/cache/templates.om graph=$PIPE,om/pipeline/runtime.om context_lookup=om/pipeline/context.om,om/pipeline/context_abi.om binding=$REAL,om/pipeline/binding.om $MOE closure_pack=$CLOSURE,om/moe/closure_pack.om closure_bind=$CLOSURE,om/moe/closure_bind.om closure_blob=$CLOSURE,om/moe/closure_blob.om closure_cover=$CLOSURE,om/pipeline/mccover.om,om/pipeline/coverage_entry.om closure_intent=$CLOSURE,om/pipeline/mccover.om closure_seal=$CLOSURE,om/pipeline/mccover.om,om/pipeline/seal_entry.om $OBSERVE}"
+UNITS="${OMEGA_UNITS:-om/encoder/bw_enc_sm121.om om/cubin/cubin_elf.om om/encoder/ampere_enc_sm86.om om/encoder/amp_runtime.om repack=$QUANT,om/quant/repack.om quant_wire=$QUANT,om/quant/runtime.om compose=$COMP encode=$ENC cache_runtime=om/cache/residency.om,om/cache/runtime.om lease=om/cache/residency.om,om/cache/runtime.om,om/cache/lease.om slotrev=om/cache/residency.om,om/cache/slotrev.om command=om/cache/residency.om,om/cache/command.om validate=$CACHE,$COMP,$ENC,om/components/admit.om,om/cache/validate.om digest=$REAL,om/cache/digest.om,om/cache/key.om code_digest=$REAL,om/cache/digest.om,om/cache/codekey.om templates=$REAL,om/cache/digest.om,om/cache/templates.om graph=$PIPE,om/pipeline/runtime.om context_lookup=om/pipeline/context.om,om/pipeline/context_abi.om binding=$REAL,om/pipeline/binding.om $MOE closure_pack=$CLOSURE,om/moe/closure_pack.om closure_bind=$CLOSURE,om/moe/closure_bind.om closure_blob=$CLOSURE,om/moe/closure_blob.om closure_cover=$CLOSURE,om/pipeline/mccover.om,om/pipeline/coverage_entry.om closure_intent=$CLOSURE,om/pipeline/mccover.om closure_seal=$CLOSURE,om/pipeline/mccover.om,om/pipeline/seal_entry.om closure_reseal=$CLOSURE,om/pipeline/mccover.om,om/pipeline/seal_reuse.om $OBSERVE prefill_shape=om/prefill-shape/admit.om prefill_reading=om/prefill-shape/reading.om prefill_workspace=om/prefill-shape/workspace.om prefill_order=om/prefill-shape/order.om attn_mirror_plan=om/attention-mirror/plan.om attn_mirror_step=om/attention-mirror/step.om q38_runtime=om/q38-head/envelope.om,om/q38-head/plan.om q38_emit=om/components/bw_alloc.om,om/components/bw_effect.om,om/components/bw_check.om,om/components/bw_project.om,$ENC,om/q38-head/bounds.om,om/q38-head/emit.om}"
 PURE_UNITS="revision=om/pipeline/revision.om epoch=om/pipeline/epoch.om f16=om/numeric/f16.om"
 DEST="${OMEGA_UNITS_DEST:-$ROOT/src}"
 OUTS="cudapp_native.h cudapp_om_units.ident"
diff --git a/src/cudapp_native.h b/src/cudapp_native.h
index 419d0571..22aa48a9 100644
--- a/src/cudapp_native.h
+++ b/src/cudapp_native.h
@@ -43,11 +43,20 @@ uint32_t omega_native_mcblob(uint64_t *result, const void *p0, uint64_t p0_n, co
 uint32_t omega_native_mccover(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, const void *p2, uint64_t p2_n, const void *p3, uint64_t p3_n);
 uint32_t omega_native_mcintent(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, const void *p2, uint64_t p2_n, const void *p3, uint64_t p3_n, const void *p4, uint64_t p4_n);
 uint32_t omega_native_mcseal(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, uint64_t p2, void *p3, uint64_t p3_n);
+uint32_t omega_native_mcreseal(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, uint64_t p2, void *p3, uint64_t p3_n, void *p4, uint64_t p4_n);
 uint32_t omega_native_mccode(uint64_t *result, const void *p0, uint64_t p0_n, uint64_t p1, void *p2, uint64_t p2_n);
 uint32_t omega_native_mclaunch(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, const void *p2, uint64_t p2_n, const void *p3, uint64_t p3_n, void *p4, uint64_t p4_n);
 uint32_t omega_native_mcdir(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, void *p2, uint64_t p2_n);
 uint32_t omega_native_mcalloc(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, void *p2, uint64_t p2_n);
 uint32_t omega_native_mcseries(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, const void *p2, uint64_t p2_n, void *p3, uint64_t p3_n);
+uint32_t omega_native_qgshape(uint64_t *result, uint64_t p0, uint64_t p1, uint64_t p2, uint64_t p3);
+uint32_t omega_native_qgreading(uint64_t *result, uint64_t p0, uint64_t p1);
+uint32_t omega_native_qgworkspace(uint64_t *result, uint64_t p0, uint64_t p1, uint64_t p2, uint64_t p3, uint64_t p4);
+uint32_t omega_native_qgorder(uint64_t *result, void *p0, uint64_t p0_n, uint64_t p1, uint64_t p2, uint64_t p3, uint64_t p4);
+uint32_t omega_native_attnmirplan(uint64_t *result, const void *p0, uint64_t p0_n);
+uint32_t omega_native_attnmirnext(uint64_t *result, uint64_t p0, uint64_t p1, uint64_t p2, uint64_t p3);
+uint32_t omega_q38_runtime(uint64_t *result, const void *p0, uint64_t p0_n, const void *p1, uint64_t p1_n, void *p2, uint64_t p2_n);
+uint32_t omega_q38_emit(uint64_t *result, void *p0, uint64_t p0_n);
 uint32_t omega_native_revision(uint64_t *result, uint64_t p0);
 uint32_t omega_native_epoch(uint64_t *result, uint64_t p0);
 uint32_t omega_native_f16(uint64_t *result, uint64_t p0);
diff --git a/src/cudapp_om_amp_runtime.c b/src/cudapp_om_amp_runtime.c
index ed7ba223..c7c7e7af 100644
--- a/src/cudapp_om_amp_runtime.c
+++ b/src/cudapp_om_amp_runtime.c
@@ -79,7 +79,11 @@ return o_leave(0ULL);
 {uint64_t _i=4ULL;uint64_t _v=o_get(v0, v0_n, 6ULL, 5);o_put(v1, v1_n, _i,_v,5);}
 return o_leave(1ULL);
 }
-if(({uint64_t _a=o_get(v0, v0_n, 1ULL, 5);uint64_t _b=o_get(v0, v0_n, 3ULL, 5);o_op(6, 5, _a,_b);})){
+uint64_t __attribute__((unused)) v2=0ULL;
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 12ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 1ULL, 5);uint64_t _b=o_get(v0, v0_n, 12ULL, 5);o_op(6, 5, _a,_b);});o_op(12, 1, _a,_b);})){
+v2=({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 13ULL, 5);uint64_t _b=4318ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 14ULL, 5);uint64_t _b=11794ULL;o_op(6, 5, _a,_b);});o_op(12, 1, _a,_b);});
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 1ULL, 5);uint64_t _b=o_get(v0, v0_n, 3ULL, 5);o_op(6, 5, _a,_b);});uint64_t _b=v2;o_op(13, 1, _a,_b);})){
 if(({uint64_t _a=o_get(v0, v0_n, 11ULL, 5);uint64_t _b=7ULL;o_op(7, 5, _a,_b);})){
 return o_leave(0ULL);
 }
diff --git a/src/cudapp_om_amp_runtime.ident b/src/cudapp_om_amp_runtime.ident
index fbae1608..07072cb1 100644
--- a/src/cudapp_om_amp_runtime.ident
+++ b/src/cudapp_om_amp_runtime.ident
@@ -1 +1 @@
-omega-ident 2 unit=amp_runtime abi=bridge-seeded src=841f6da18d2ea43d42f4d7434b4ca84e5168b5d96d3527628f79e2f77cbb265c c=6f3cf40c3f759ac380e6e2e46fbeed75cb2206c26bcf32db33ade6dc0dae7476 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=3a416aea14770bd3fab4880337e89020c10476214d7a3c139d8cd1a8ba1423e6 frontend=23ff7a2356bb5d980060a4685a27ac46587013069b7d24b37c2873d7ee659b37 path=om/encoder/amp_runtime.om
+omega-ident 2 unit=amp_runtime abi=bridge-seeded src=452f52245a62cc7f50b4a14cf8475aa3ca829cef52a71342632190d926226cc5 c=54302a88d9a9a9efbdf0c401fde6fc88d6518a0105c83d86916e7b4a73b1bbda omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=3a416aea14770bd3fab4880337e89020c10476214d7a3c139d8cd1a8ba1423e6 frontend=23ff7a2356bb5d980060a4685a27ac46587013069b7d24b37c2873d7ee659b37 path=om/encoder/amp_runtime.om
diff --git a/src/cudapp_om_attn_mirror_plan.c b/src/cudapp_om_attn_mirror_plan.c
new file mode 100644
index 00000000..b9c97bf0
--- /dev/null
+++ b/src/cudapp_om_attn_mirror_plan.c
@@ -0,0 +1,93 @@
+#if defined(__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+#pragma GCC diagnostic ignored "-Wmisleading-indentation"
+#endif
+/* Emitted by Omega Bridge. GNU C11, POSIX. Scalars use canonical 64-bit bits. */
+#include <stdint.h>
+#include <stddef.h>
+#include <unistd.h>
+#include <errno.h>
+#include <setjmp.h>
+static _Thread_local jmp_buf o_jmp;
+static _Thread_local int o_busy;
+static __attribute__((noreturn)) void o_trap(int c){if(o_busy)longjmp(o_jmp,c);_exit(100+c);}
+static _Thread_local unsigned o_depth;
+static void o_enter(void){if(++o_depth>128)o_trap(6);}
+static uint64_t o_leave(uint64_t v){--o_depth;return v;}
+static unsigned o_width(unsigned t){static const unsigned w[]={0,1,8,16,32,64,8,16,32,64};return w[t];}
+static __int128 o_value(unsigned t,uint64_t v){return t>=6 && v>>63 ? (__int128)v-(((__int128)1)<<64):(__int128)v;}
+static uint64_t o_norm(unsigned t,__int128 v,int code){unsigned w=o_width(t);if(t>=6){__int128 m=((__int128)1)<<(w-1);if(v< -m||v>=m)o_trap(code);}else {if(v<0||(__uint128_t)v>=(((__uint128_t)1)<<w))o_trap(code);}return (uint64_t)v;}
+static uint64_t o_cast(unsigned t,unsigned s,uint64_t a){return o_norm(t,o_value(s,a),5);}
+static uint64_t o_op(unsigned op,unsigned t,uint64_t a,uint64_t b){
+ __int128 x=o_value(t,a),y=o_value(t,b),z=0;unsigned w=o_width(t);uint64_t mask=w==64?UINT64_MAX:(((uint64_t)1<<w)-1);
+ if(op>=6&&op<=11){switch(op){case 6:return x==y;case 7:return x!=y;case 8:return x<y;case 9:return x<=y;case 10:return x>y;default:return x>=y;}}
+ if(op==12)return a&b;if(op==13)return a|b;if(op==14)return a^b;
+ if(op==15||op==16){if(b>=w)o_trap(7);if(op==15)return t>=6?o_norm(t,x*(((__int128)1)<<b),1):(a<<b)&mask;if(t<6)return a>>b;if(!b)return a;return (a>>b)|((a>>63)?(UINT64_MAX<<(64-b)):0);}
+ if(op==17){if(t<6)return (0-a)&mask;return o_norm(t,-x,1);}if(op==18)return t==1?!a:(t>=6?~a:(~a)&mask);
+ if(op==4||op==5){if(!b)o_trap(2);z=op==4?x/y:x%y;return t>=6?o_norm(t,z,1):(uint64_t)z;}
+ if(t<6){if(op==1)return (a+b)&mask;if(op==2)return (a-b)&mask;return (a*b)&mask;}
+ if(op==1)z=x+y;if(op==2)z=x-y;if(op==3)z=x*y;return o_norm(t,z,1);
+}
+static uint64_t o_get(const void *p,uint64_t n,uint64_t i,unsigned t){if(i>=n)o_trap(3);switch(t){case 2:return ((const uint8_t*)p)[i];case 3:return ((const uint16_t*)p)[i];case 4:return ((const uint32_t*)p)[i];case 5:return ((const uint64_t*)p)[i];case 6:return (uint64_t)((const int8_t*)p)[i];case 7:return (uint64_t)((const int16_t*)p)[i];case 8:return (uint64_t)((const int32_t*)p)[i];default:return (uint64_t)((const int64_t*)p)[i];}}
+static void o_put(void *p,uint64_t n,uint64_t i,uint64_t v,unsigned t){if(i>=n)o_trap(3);o_norm(t,o_value(t,v),5);switch(t){case 2:((uint8_t*)p)[i]=(uint8_t)v;break;case 3:((uint16_t*)p)[i]=(uint16_t)v;break;case 4:((uint32_t*)p)[i]=(uint32_t)v;break;case 5:((uint64_t*)p)[i]=v;break;case 6:((int8_t*)p)[i]=(int8_t)o_value(t,v);break;case 7:((int16_t*)p)[i]=(int16_t)o_value(t,v);break;case 8:((int32_t*)p)[i]=(int32_t)o_value(t,v);break;default:((int64_t*)p)[i]=(int64_t)o_value(t,v);}}
+static void o_fill(void *p,uint64_t n,uint64_t v,unsigned t){for(uint64_t i=0;i<n;i++)o_put(p,n,i,v,t);}
+static uint64_t o_io(unsigned op,uint64_t fd,const void *p,uint64_t n,uint64_t off,uint64_t len){if(off>n||len>n-off)o_trap(3);int f=(int)o_value(8,fd);ssize_t r=op==1?read(f,(uint8_t*)p+off,(size_t)len):write(f,(const uint8_t*)p+off,(size_t)len);return r<0?(uint64_t)(-(int64_t)errno):(uint64_t)r;}
+static int o_valid(unsigned t,uint64_t v){unsigned w=o_width(t);__int128 x=o_value(t,v);__int128 m=((__int128)1)<<(t>=6?w-1:w);return t>=6?x>=-m&&x<m:x>=0&&x<m;}
+static int o_buf(const void *p,uint64_t n,uint64_t want,unsigned t){uintptr_t a=(uintptr_t)p;uint64_t z=t==2?1:8;return p&&n==want&&a%z==0&&n<=UINTPTR_MAX/z&&a<=UINTPTR_MAX-n*z;}
+static int o_overlap(const void *a,uint64_t an,const void *b,uint64_t bn){uintptr_t x=(uintptr_t)a,y=(uintptr_t)b;return x<y+bn&&y<x+an;}
+#include <float.h>
+#include <fenv.h>
+#if FLT_RADIX != 2 || FLT_MANT_DIG != 24 || FLT_MAX_EXP != 128 || FLT_EVAL_METHOD != 0
+#error unsupported binary32 environment
+#endif
+#if defined(__FAST_MATH__)
+#error fast math is not a supported Omega environment
+#endif
+static uint64_t o_f32(unsigned op,uint64_t a,uint64_t b){uint32_t ua=(uint32_t)a,ub=(uint32_t)b,ur;float x,y;__builtin_memcpy(&x,&ua,4);__builtin_memcpy(&y,&ub,4);if(op==1)return ua&UINT32_C(0x7fffffff);if(op==2){volatile float z=x*y;__builtin_memcpy(&ur,(const void*)&z,4);return ur;}return x<=y;}
+static uint64_t f0(const void *v0, uint64_t v0_n);
+static uint64_t f0(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=o_get(v0, v0_n, 0ULL, 5);
+uint64_t __attribute__((unused)) v2=o_get(v0, v0_n, 1ULL, 5);
+uint64_t __attribute__((unused)) v3=o_get(v0, v0_n, 2ULL, 5);
+uint64_t __attribute__((unused)) v4=o_get(v0, v0_n, 3ULL, 5);
+uint64_t __attribute__((unused)) v5=o_get(v0, v0_n, 4ULL, 5);
+uint64_t __attribute__((unused)) v6=o_get(v0, v0_n, 5ULL, 5);
+uint64_t __attribute__((unused)) v7=o_get(v0, v0_n, 6ULL, 5);
+if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=2ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=24ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=v3;uint64_t _b=4ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(18446744073709551615ULL);
+}
+if(({uint64_t _a=({uint64_t _a=v4;uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v4;uint64_t _b=131072ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(18446744073709551615ULL);
+}
+if(({uint64_t _a=({uint64_t _a=v6;uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v6;uint64_t _b=32768ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(18446744073709551615ULL);
+}
+if(({uint64_t _a=v5;uint64_t _b=v4;o_op(10, 5, _a,_b);})){
+return o_leave(18446744073709551615ULL);
+}
+if(({uint64_t _a=v6;uint64_t _b=({uint64_t _a=v4;uint64_t _b=v5;o_op(2, 5, _a,_b);});o_op(10, 5, _a,_b);})){
+return o_leave(18446744073709551615ULL);
+}
+if(({uint64_t _a=v7;uint64_t _b=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=2048ULL;o_op(3, 5, _a,_b);});uint64_t _b=8256ULL;o_op(1, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(18446744073709551615ULL);
+}
+if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=2ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v6;uint64_t _b=1024ULL;o_op(8, 5, _a,_b);});o_op(12, 1, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(0ULL);
+}
+return o_leave(({uint64_t _a=v7;uint64_t _b=2ULL;o_op(3, 5, _a,_b);}));
+}
+uint32_t omega_native_attnmirplan(uint64_t *result, const void *p0, uint64_t p0_n){
+if(!o_buf(result,1,1,5))return 32;
+if(!o_buf(p0, p0_n,7, 5))return 32;
+if(o_overlap(result,8,p0, p0_n*8))return 32;
+if(o_busy)return 33;
+o_busy=1;o_depth=0;int code=setjmp(o_jmp);
+if(!code)*result=f0(p0, p0_n);
+o_busy=0;o_depth=0;return (uint32_t)code;
+}
+#if defined(__GNUC__)
+#pragma GCC diagnostic pop
+#endif
diff --git a/src/cudapp_om_attn_mirror_plan.ident b/src/cudapp_om_attn_mirror_plan.ident
new file mode 100644
index 00000000..414e58dd
--- /dev/null
+++ b/src/cudapp_om_attn_mirror_plan.ident
@@ -0,0 +1 @@
+omega-ident 2 unit=attn_mirror_plan abi=bridge-seeded src=8ba540f04b2d098d34a9026f93239bbcb51dbe274b5ad0f43d0cc499ed8af983 c=20a8d3da37a4a07a7b368fa3554b23ad8faa79bfba4cf1b1104ff22be3174dfc omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=3a416aea14770bd3fab4880337e89020c10476214d7a3c139d8cd1a8ba1423e6 frontend=23ff7a2356bb5d980060a4685a27ac46587013069b7d24b37c2873d7ee659b37 path=attn_mirror_plan=om/attention-mirror/plan.om
diff --git a/src/cudapp_om_attn_mirror_step.c b/src/cudapp_om_attn_mirror_step.c
new file mode 100644
index 00000000..66d60f2e
--- /dev/null
+++ b/src/cudapp_om_attn_mirror_step.c
@@ -0,0 +1,102 @@
+#if defined(__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+#pragma GCC diagnostic ignored "-Wmisleading-indentation"
+#endif
+/* Emitted by Omega Bridge. GNU C11, POSIX. Scalars use canonical 64-bit bits. */
+#include <stdint.h>
+#include <stddef.h>
+#include <unistd.h>
+#include <errno.h>
+#include <setjmp.h>
+static _Thread_local jmp_buf o_jmp;
+static _Thread_local int o_busy;
+static __attribute__((noreturn)) void o_trap(int c){if(o_busy)longjmp(o_jmp,c);_exit(100+c);}
+static _Thread_local unsigned o_depth;
+static void o_enter(void){if(++o_depth>128)o_trap(6);}
+static uint64_t o_leave(uint64_t v){--o_depth;return v;}
+static unsigned o_width(unsigned t){static const unsigned w[]={0,1,8,16,32,64,8,16,32,64};return w[t];}
+static __int128 o_value(unsigned t,uint64_t v){return t>=6 && v>>63 ? (__int128)v-(((__int128)1)<<64):(__int128)v;}
+static uint64_t o_norm(unsigned t,__int128 v,int code){unsigned w=o_width(t);if(t>=6){__int128 m=((__int128)1)<<(w-1);if(v< -m||v>=m)o_trap(code);}else {if(v<0||(__uint128_t)v>=(((__uint128_t)1)<<w))o_trap(code);}return (uint64_t)v;}
+static uint64_t o_cast(unsigned t,unsigned s,uint64_t a){return o_norm(t,o_value(s,a),5);}
+static uint64_t o_op(unsigned op,unsigned t,uint64_t a,uint64_t b){
+ __int128 x=o_value(t,a),y=o_value(t,b),z=0;unsigned w=o_width(t);uint64_t mask=w==64?UINT64_MAX:(((uint64_t)1<<w)-1);
+ if(op>=6&&op<=11){switch(op){case 6:return x==y;case 7:return x!=y;case 8:return x<y;case 9:return x<=y;case 10:return x>y;default:return x>=y;}}
+ if(op==12)return a&b;if(op==13)return a|b;if(op==14)return a^b;
+ if(op==15||op==16){if(b>=w)o_trap(7);if(op==15)return t>=6?o_norm(t,x*(((__int128)1)<<b),1):(a<<b)&mask;if(t<6)return a>>b;if(!b)return a;return (a>>b)|((a>>63)?(UINT64_MAX<<(64-b)):0);}
+ if(op==17){if(t<6)return (0-a)&mask;return o_norm(t,-x,1);}if(op==18)return t==1?!a:(t>=6?~a:(~a)&mask);
+ if(op==4||op==5){if(!b)o_trap(2);z=op==4?x/y:x%y;return t>=6?o_norm(t,z,1):(uint64_t)z;}
+ if(t<6){if(op==1)return (a+b)&mask;if(op==2)return (a-b)&mask;return (a*b)&mask;}
+ if(op==1)z=x+y;if(op==2)z=x-y;if(op==3)z=x*y;return o_norm(t,z,1);
+}
+static uint64_t o_get(const void *p,uint64_t n,uint64_t i,unsigned t){if(i>=n)o_trap(3);switch(t){case 2:return ((const uint8_t*)p)[i];case 3:return ((const uint16_t*)p)[i];case 4:return ((const uint32_t*)p)[i];case 5:return ((const uint64_t*)p)[i];case 6:return (uint64_t)((const int8_t*)p)[i];case 7:return (uint64_t)((const int16_t*)p)[i];case 8:return (uint64_t)((const int32_t*)p)[i];default:return (uint64_t)((const int64_t*)p)[i];}}
+static void o_put(void *p,uint64_t n,uint64_t i,uint64_t v,unsigned t){if(i>=n)o_trap(3);o_norm(t,o_value(t,v),5);switch(t){case 2:((uint8_t*)p)[i]=(uint8_t)v;break;case 3:((uint16_t*)p)[i]=(uint16_t)v;break;case 4:((uint32_t*)p)[i]=(uint32_t)v;break;case 5:((uint64_t*)p)[i]=v;break;case 6:((int8_t*)p)[i]=(int8_t)o_value(t,v);break;case 7:((int16_t*)p)[i]=(int16_t)o_value(t,v);break;case 8:((int32_t*)p)[i]=(int32_t)o_value(t,v);break;default:((int64_t*)p)[i]=(int64_t)o_value(t,v);}}
+static void o_fill(void *p,uint64_t n,uint64_t v,unsigned t){for(uint64_t i=0;i<n;i++)o_put(p,n,i,v,t);}
+static uint64_t o_io(unsigned op,uint64_t fd,const void *p,uint64_t n,uint64_t off,uint64_t len){if(off>n||len>n-off)o_trap(3);int f=(int)o_value(8,fd);ssize_t r=op==1?read(f,(uint8_t*)p+off,(size_t)len):write(f,(const uint8_t*)p+off,(size_t)len);return r<0?(uint64_t)(-(int64_t)errno):(uint64_t)r;}
+static int o_valid(unsigned t,uint64_t v){unsigned w=o_width(t);__int128 x=o_value(t,v);__int128 m=((__int128)1)<<(t>=6?w-1:w);return t>=6?x>=-m&&x<m:x>=0&&x<m;}
+static int o_buf(const void *p,uint64_t n,uint64_t want,unsigned t){uintptr_t a=(uintptr_t)p;uint64_t z=t==2?1:8;return p&&n==want&&a%z==0&&n<=UINTPTR_MAX/z&&a<=UINTPTR_MAX-n*z;}
+static int o_overlap(const void *a,uint64_t an,const void *b,uint64_t bn){uintptr_t x=(uintptr_t)a,y=(uintptr_t)b;return x<y+bn&&y<x+an;}
+#include <float.h>
+#include <fenv.h>
+#if FLT_RADIX != 2 || FLT_MANT_DIG != 24 || FLT_MAX_EXP != 128 || FLT_EVAL_METHOD != 0
+#error unsupported binary32 environment
+#endif
+#if defined(__FAST_MATH__)
+#error fast math is not a supported Omega environment
+#endif
+static uint64_t o_f32(unsigned op,uint64_t a,uint64_t b){uint32_t ua=(uint32_t)a,ub=(uint32_t)b,ur;float x,y;__builtin_memcpy(&x,&ua,4);__builtin_memcpy(&y,&ub,4);if(op==1)return ua&UINT32_C(0x7fffffff);if(op==2){volatile float z=x*y;__builtin_memcpy(&ur,(const void*)&z,4);return ur;}return x<=y;}
+static uint64_t f0(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3);
+static uint64_t f0(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3){
+o_enter();
+if(({uint64_t _a=v3;uint64_t _b=1ULL;o_op(7, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+if(({uint64_t _a=v1;uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=20608ULL;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=536887424ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=16ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(0ULL);
+}
+}
+if(({uint64_t _a=v0;uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=v1;uint64_t _b=v2;o_op(10, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+return o_leave(2ULL);
+}
+if(({uint64_t _a=v0;uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=v2;uint64_t _b=v1;o_op(8, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+return o_leave(2ULL);
+}
+if(({uint64_t _a=v0;uint64_t _b=2ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=v1;uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+return o_leave(4ULL);
+}
+if(({uint64_t _a=v0;uint64_t _b=3ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=v1;uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+return o_leave(4ULL);
+}
+if(({uint64_t _a=v0;uint64_t _b=4ULL;o_op(6, 5, _a,_b);})){
+return o_leave(5ULL);
+}
+return o_leave(0ULL);
+}
+uint32_t omega_native_attnmirnext(uint64_t *result, volatile uint64_t p0, volatile uint64_t p1, volatile uint64_t p2, volatile uint64_t p3){
+if(!o_buf(result,1,1,5))return 32;
+if(!o_valid(5, p0))return 32;
+if(!o_valid(5, p1))return 32;
+if(!o_valid(5, p2))return 32;
+if(!o_valid(5, p3))return 32;
+if(o_busy)return 33;
+o_busy=1;o_depth=0;int code=setjmp(o_jmp);
+if(!code)*result=f0(p0, p1, p2, p3);
+o_busy=0;o_depth=0;return (uint32_t)code;
+}
+#if defined(__GNUC__)
+#pragma GCC diagnostic pop
+#endif
diff --git a/src/cudapp_om_attn_mirror_step.ident b/src/cudapp_om_attn_mirror_step.ident
new file mode 100644
index 00000000..e5385770
--- /dev/null
+++ b/src/cudapp_om_attn_mirror_step.ident
@@ -0,0 +1 @@
+omega-ident 2 unit=attn_mirror_step abi=bridge-seeded src=1bd3c7d9b8b9777dd893b1b70b3f16ab77dcd06dd2217808f13fc9c2896adc30 c=2faab3832d7d0bf81aa2069b5d8d5454076908c76059afbfe1dba0884edf97b8 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=3a416aea14770bd3fab4880337e89020c10476214d7a3c139d8cd1a8ba1423e6 frontend=23ff7a2356bb5d980060a4685a27ac46587013069b7d24b37c2873d7ee659b37 path=attn_mirror_step=om/attention-mirror/step.om
diff --git a/src/cudapp_om_closure_reseal.c b/src/cudapp_om_closure_reseal.c
new file mode 100644
index 00000000..47360498
--- /dev/null
+++ b/src/cudapp_om_closure_reseal.c
@@ -0,0 +1,3385 @@
+#if defined(__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+#pragma GCC diagnostic ignored "-Wmisleading-indentation"
+#endif
+/* Emitted by Omega Bridge. GNU C11, POSIX. Scalars use canonical 64-bit bits. */
+#include <stdint.h>
+#include <stddef.h>
+#include <unistd.h>
+#include <errno.h>
+#include <setjmp.h>
+static _Thread_local jmp_buf o_jmp;
+static _Thread_local int o_busy;
+static __attribute__((noreturn)) void o_trap(int c){if(o_busy)longjmp(o_jmp,c);_exit(100+c);}
+static _Thread_local unsigned o_depth;
+static void o_enter(void){if(++o_depth>128)o_trap(6);}
+static uint64_t o_leave(uint64_t v){--o_depth;return v;}
+static unsigned o_width(unsigned t){static const unsigned w[]={0,1,8,16,32,64,8,16,32,64};return w[t];}
+static __int128 o_value(unsigned t,uint64_t v){return t>=6 && v>>63 ? (__int128)v-(((__int128)1)<<64):(__int128)v;}
+static uint64_t o_norm(unsigned t,__int128 v,int code){unsigned w=o_width(t);if(t>=6){__int128 m=((__int128)1)<<(w-1);if(v< -m||v>=m)o_trap(code);}else {if(v<0||(__uint128_t)v>=(((__uint128_t)1)<<w))o_trap(code);}return (uint64_t)v;}
+static uint64_t o_cast(unsigned t,unsigned s,uint64_t a){return o_norm(t,o_value(s,a),5);}
+static uint64_t o_op(unsigned op,unsigned t,uint64_t a,uint64_t b){
+ __int128 x=o_value(t,a),y=o_value(t,b),z=0;unsigned w=o_width(t);uint64_t mask=w==64?UINT64_MAX:(((uint64_t)1<<w)-1);
+ if(op>=6&&op<=11){switch(op){case 6:return x==y;case 7:return x!=y;case 8:return x<y;case 9:return x<=y;case 10:return x>y;default:return x>=y;}}
+ if(op==12)return a&b;if(op==13)return a|b;if(op==14)return a^b;
+ if(op==15||op==16){if(b>=w)o_trap(7);if(op==15)return t>=6?o_norm(t,x*(((__int128)1)<<b),1):(a<<b)&mask;if(t<6)return a>>b;if(!b)return a;return (a>>b)|((a>>63)?(UINT64_MAX<<(64-b)):0);}
+ if(op==17){if(t<6)return (0-a)&mask;return o_norm(t,-x,1);}if(op==18)return t==1?!a:(t>=6?~a:(~a)&mask);
+ if(op==4||op==5){if(!b)o_trap(2);z=op==4?x/y:x%y;return t>=6?o_norm(t,z,1):(uint64_t)z;}
+ if(t<6){if(op==1)return (a+b)&mask;if(op==2)return (a-b)&mask;return (a*b)&mask;}
+ if(op==1)z=x+y;if(op==2)z=x-y;if(op==3)z=x*y;return o_norm(t,z,1);
+}
+static uint64_t o_get(const void *p,uint64_t n,uint64_t i,unsigned t){if(i>=n)o_trap(3);switch(t){case 2:return ((const uint8_t*)p)[i];case 3:return ((const uint16_t*)p)[i];case 4:return ((const uint32_t*)p)[i];case 5:return ((const uint64_t*)p)[i];case 6:return (uint64_t)((const int8_t*)p)[i];case 7:return (uint64_t)((const int16_t*)p)[i];case 8:return (uint64_t)((const int32_t*)p)[i];default:return (uint64_t)((const int64_t*)p)[i];}}
+static void o_put(void *p,uint64_t n,uint64_t i,uint64_t v,unsigned t){if(i>=n)o_trap(3);o_norm(t,o_value(t,v),5);switch(t){case 2:((uint8_t*)p)[i]=(uint8_t)v;break;case 3:((uint16_t*)p)[i]=(uint16_t)v;break;case 4:((uint32_t*)p)[i]=(uint32_t)v;break;case 5:((uint64_t*)p)[i]=v;break;case 6:((int8_t*)p)[i]=(int8_t)o_value(t,v);break;case 7:((int16_t*)p)[i]=(int16_t)o_value(t,v);break;case 8:((int32_t*)p)[i]=(int32_t)o_value(t,v);break;default:((int64_t*)p)[i]=(int64_t)o_value(t,v);}}
+static void o_fill(void *p,uint64_t n,uint64_t v,unsigned t){for(uint64_t i=0;i<n;i++)o_put(p,n,i,v,t);}
+static uint64_t o_io(unsigned op,uint64_t fd,const void *p,uint64_t n,uint64_t off,uint64_t len){if(off>n||len>n-off)o_trap(3);int f=(int)o_value(8,fd);ssize_t r=op==1?read(f,(uint8_t*)p+off,(size_t)len):write(f,(const uint8_t*)p+off,(size_t)len);return r<0?(uint64_t)(-(int64_t)errno):(uint64_t)r;}
+static int o_valid(unsigned t,uint64_t v){unsigned w=o_width(t);__int128 x=o_value(t,v);__int128 m=((__int128)1)<<(t>=6?w-1:w);return t>=6?x>=-m&&x<m:x>=0&&x<m;}
+static int o_buf(const void *p,uint64_t n,uint64_t want,unsigned t){uintptr_t a=(uintptr_t)p;uint64_t z=t==2?1:8;return p&&n==want&&a%z==0&&n<=UINTPTR_MAX/z&&a<=UINTPTR_MAX-n*z;}
+static int o_overlap(const void *a,uint64_t an,const void *b,uint64_t bn){uintptr_t x=(uintptr_t)a,y=(uintptr_t)b;return x<y+bn&&y<x+an;}
+#include <float.h>
+#include <fenv.h>
+#if FLT_RADIX != 2 || FLT_MANT_DIG != 24 || FLT_MAX_EXP != 128 || FLT_EVAL_METHOD != 0
+#error unsupported binary32 environment
+#endif
+#if defined(__FAST_MATH__)
+#error fast math is not a supported Omega environment
+#endif
+static uint64_t o_f32(unsigned op,uint64_t a,uint64_t b){uint32_t ua=(uint32_t)a,ub=(uint32_t)b,ur;float x,y;__builtin_memcpy(&x,&ua,4);__builtin_memcpy(&y,&ub,4);if(op==1)return ua&UINT32_C(0x7fffffff);if(op==2){volatile float z=x*y;__builtin_memcpy(&ur,(const void*)&z,4);return ur;}return x<=y;}
+static uint64_t f0(const void *v0, uint64_t v0_n);
+static uint64_t f1(const void *v0, uint64_t v0_n);
+static uint64_t f2(uint64_t v0, uint64_t v1);
+static uint64_t f3(uint64_t v0);
+static uint64_t f4(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3, uint64_t v4);
+static uint64_t f5(const void *v0, uint64_t v0_n);
+static uint64_t f6(const void *v0, uint64_t v0_n);
+static uint64_t f7(const void *v0, uint64_t v0_n);
+static uint64_t f8(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n);
+static uint64_t f9(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n);
+static uint64_t f10(const void *v0, uint64_t v0_n);
+static uint64_t f11(const void *v0, uint64_t v0_n);
+static uint64_t f12(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f13(const void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2);
+static uint64_t f14(const void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2);
+static uint64_t f15(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f16(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f17(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, void *v2, uint64_t v2_n);
+static uint64_t f18(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4);
+static uint64_t f19(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, void *v2, uint64_t v2_n);
+static uint64_t f20(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, void *v3, uint64_t v3_n, void *v4, uint64_t v4_n);
+static uint64_t f21(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f22(void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2);
+static uint64_t f23(const void *v0, uint64_t v0_n, uint64_t v1, const void *v2, uint64_t v2_n);
+static uint64_t f24(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f25(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f26(const void *v0, uint64_t v0_n);
+static uint64_t f27(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f28(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f29(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f30(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2);
+static uint64_t f31(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n);
+static uint64_t f32(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n);
+static uint64_t f33(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f34(uint64_t v0, uint64_t v1);
+static uint64_t f35(void *v0, uint64_t v0_n);
+static uint64_t f36(void *v0, uint64_t v0_n);
+static uint64_t f37(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2);
+static uint64_t f38(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2);
+static uint64_t f39(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2);
+static uint64_t f40(void *v0, uint64_t v0_n);
+static uint64_t f41(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n);
+static uint64_t f42(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n);
+static uint64_t f43(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, void *v3, uint64_t v3_n, uint64_t v4);
+static uint64_t f44(const void *v0, uint64_t v0_n, uint64_t v1, void *v2, uint64_t v2_n);
+static uint64_t f45(const void *v0, uint64_t v0_n, uint64_t v1, void *v2, uint64_t v2_n);
+static uint64_t f46(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3);
+static uint64_t f47(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4);
+static uint64_t f48(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, void *v2, uint64_t v2_n);
+static uint64_t f49(void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2);
+static uint64_t f50(void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2);
+static uint64_t f51(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f52(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3);
+static uint64_t f53(const void *v0, uint64_t v0_n);
+static uint64_t f54(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n);
+static uint64_t f55(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f56(void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2);
+static uint64_t f57(const void *v0, uint64_t v0_n, uint64_t v1, const void *v2, uint64_t v2_n);
+static uint64_t f58(uint64_t v0);
+static uint64_t f59(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f60(const void *v0, uint64_t v0_n);
+static uint64_t f61(const void *v0, uint64_t v0_n);
+static uint64_t f62(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f63(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2, void *v3, uint64_t v3_n);
+static uint64_t f64(const void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2);
+static uint64_t f65(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, uint64_t v3);
+static uint64_t f66(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, const void *v3, uint64_t v3_n, uint64_t v4, void *v5, uint64_t v5_n);
+static uint64_t f67(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2);
+static uint64_t f68(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, uint64_t v3, uint64_t v4);
+static uint64_t f69(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, uint64_t v3);
+static uint64_t f70(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, uint64_t v3, const void *v4, uint64_t v4_n, uint64_t v5);
+static uint64_t f71(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, const void *v3, uint64_t v3_n);
+static uint64_t f72(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, void *v3, uint64_t v3_n);
+static uint64_t f73(void *v0, uint64_t v0_n);
+static uint64_t f74(const void *v0, uint64_t v0_n, uint64_t v1, void *v2, uint64_t v2_n);
+static uint64_t f75(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f76(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f77(const void *v0, uint64_t v0_n);
+static uint64_t f78(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f79(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2, void *v3, uint64_t v3_n);
+static uint64_t f80(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, const void *v3, uint64_t v3_n, void *v4, uint64_t v4_n);
+static uint64_t f81(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, void *v2, uint64_t v2_n);
+static uint64_t f82(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f83(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f84(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, void *v2, uint64_t v2_n);
+static uint64_t f85(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f86(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f87(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, void *v3, uint64_t v3_n);
+static uint64_t f88(const void *v0, uint64_t v0_n, uint64_t v1);
+static uint64_t f89(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n);
+static uint64_t f90(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n);
+static uint64_t f91(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, const void *v3, uint64_t v3_n);
+static uint64_t f92(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2, void *v3, uint64_t v3_n);
+static uint64_t f93(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2, const void *v3, uint64_t v3_n);
+static uint64_t f94(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n);
+static uint64_t f95(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, const void *v3, uint64_t v3_n, const void *v4, uint64_t v4_n);
+static uint64_t f96(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2, void *v3, uint64_t v3_n, void *v4, uint64_t v4_n);
+static uint64_t f0(const void *v0, uint64_t v0_n){
+o_enter();
+if(({uint64_t _a=o_get(v0, v0_n, 0ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+uint64_t __attribute__((unused)) v1=o_get(v0, v0_n, 1ULL, 5);
+if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=1ULL;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=v1;uint64_t _b=6ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 17ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 18ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 17ULL, 5);uint64_t _b=({uint64_t _a=18446744073709551615ULL;uint64_t _b=o_get(v0, v0_n, 18ULL, 5);o_op(4, 5, _a,_b);});o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 19ULL, 5);uint64_t _b=2ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 15ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 14ULL, 5);uint64_t _b=o_get(v0, v0_n, 2ULL, 5);o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 16ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+{
+uint64_t v2=0;
+uint64_t k1=4ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=o_get(v0, v0_n, ({uint64_t _a=v2;uint64_t _b=20ULL;o_op(1, 5, _a,_b);}), 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 9ULL, 5);uint64_t _b=1ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 10ULL, 5);uint64_t _b=1ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=4ULL;o_op(10, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=o_get(v0, v0_n, 8ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(7ULL);
+}
+}else{
+if(({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);})){
+return o_leave(7ULL);
+}
+}
+if(({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 5ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 6ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+}else{
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 5ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 6ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+if(({uint64_t _a=v1;uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 2ULL, 5);uint64_t _b=1ULL;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 2ULL, 5);uint64_t _b=8ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 3ULL, 5);uint64_t _b=1ULL;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 3ULL, 5);uint64_t _b=2ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 11ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 13ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 12ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=o_get(v0, v0_n, 3ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);})){
+return o_leave(7ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 8ULL, 5);uint64_t _b=({uint64_t _a=1ULL;uint64_t _b=o_get(v0, v0_n, 2ULL, 5);o_op(15, 5, _a,_b);});o_op(11, 5, _a,_b);})){
+return o_leave(7ULL);
+}
+}
+return o_leave(0ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 3ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(7ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 11ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 13ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 12ULL, 5);uint64_t _b=1ULL;o_op(10, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=4ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v1;uint64_t _b=5ULL;o_op(6, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+if(({uint64_t _a=o_get(v0, v0_n, 2ULL, 5);uint64_t _b=4ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}else{
+if(({uint64_t _a=o_get(v0, v0_n, 2ULL, 5);uint64_t _b=8ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+if(({uint64_t _a=v1;uint64_t _b=4ULL;o_op(11, 5, _a,_b);})){
+if(({uint64_t _a=o_get(v0, v0_n, 12ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 5ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=v1;uint64_t _b=5ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=3ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 6ULL, 5);uint64_t _b=16ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+}else{
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=2ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 6ULL, 5);uint64_t _b=32ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f1(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=({f0(v0, v0_n);});
+if(({uint64_t _a=v1;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v1);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 24ULL, 5);uint64_t _b=1ULL;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 24ULL, 5);uint64_t _b=3ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 38ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 39ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 32ULL, 5);uint64_t _b=1ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 40ULL, 5);uint64_t _b=1ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 35ULL, 5);uint64_t _b=4ULL;o_op(10, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+{
+uint64_t v2=0;
+uint64_t k1=6ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=o_get(v0, v0_n, ({uint64_t _a=v2;uint64_t _b=42ULL;o_op(1, 5, _a,_b);}), 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+uint64_t __attribute__((unused)) v2=o_get(v0, v0_n, 27ULL, 5);
+if(({uint64_t _a=({uint64_t _a=v2;uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v2;uint64_t _b=4096ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({uint64_t _a=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=v2;uint64_t _b=1ULL;o_op(2, 5, _a,_b);});o_op(12, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 30ULL, 5);uint64_t _b=65536ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 36ULL, 5);uint64_t _b=65536ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 31ULL, 5);uint64_t _b=1024ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 37ULL, 5);uint64_t _b=1024ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+return o_leave(0ULL);
+}
+static uint64_t f2(uint64_t v0, uint64_t v1){
+o_enter();
+if(({uint64_t _a=({uint64_t _a=v0;uint64_t _b=v1;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(({uint64_t _a=v0;uint64_t _b=v1;o_op(4, 5, _a,_b);}));
+}
+return o_leave(({uint64_t _a=({uint64_t _a=v0;uint64_t _b=v1;o_op(4, 5, _a,_b);});uint64_t _b=1ULL;o_op(1, 5, _a,_b);}));
+}
+static uint64_t f3(uint64_t v0){
+o_enter();
+if(({uint64_t _a=v0;uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+if(({uint64_t _a=v0;uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=v0;uint64_t _b=4ULL;o_op(6, 5, _a,_b);})){
+return o_leave(4ULL);
+}
+return o_leave(1ULL);
+}
+static uint64_t f4(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3, uint64_t v4){
+o_enter();
+if(({uint64_t _a=v3;uint64_t _b=v4;o_op(10, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+if(({uint64_t _a=v1;uint64_t _b=v2;o_op(8, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+uint64_t __attribute__((unused)) v5=({uint64_t _a=v4;uint64_t _b=v3;o_op(2, 5, _a,_b);});
+if(({uint64_t _a=v2;uint64_t _b=v5;o_op(10, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+if(({uint64_t _a=v0;uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+if(({uint64_t _a=v1;uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+return o_leave(({uint64_t _a=({uint64_t _a=v0;uint64_t _b=1ULL;o_op(2, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v5;uint64_t _b=v2;o_op(2, 5, _a,_b);});uint64_t _b=v1;o_op(4, 5, _a,_b);});o_op(9, 5, _a,_b);}));
+}
+static uint64_t f5(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=o_get(v0, v0_n, 1ULL, 5);
+uint64_t __attribute__((unused)) v2=o_get(v0, v0_n, 24ULL, 5);
+if(({uint64_t _a=v1;uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=v2;uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=3ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 35ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 40ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 32ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 41ULL, 5);uint64_t _b=o_get(v0, v0_n, 18ULL, 5);o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(4ULL);
+}
+return o_leave(0ULL);
+}
+if(({uint64_t _a=v2;uint64_t _b=2ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=v1;uint64_t _b=4ULL;o_op(8, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 35ULL, 5);uint64_t _b=o_get(v0, v0_n, 4ULL, 5);o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 40ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 32ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 18ULL, 5);uint64_t _b=o_get(v0, v0_n, 6ULL, 5);o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(4ULL);
+}
+}
+if(({uint64_t _a=o_get(v0, v0_n, 41ULL, 5);uint64_t _b=({uint64_t _a=({uint64_t p0=o_get(v0, v0_n, 18ULL, 5);uint64_t p1=o_get(v0, v0_n, 6ULL, 5);f2(p0, p1);});uint64_t _b=o_get(v0, v0_n, 6ULL, 5);o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(4ULL);
+}
+return o_leave(0ULL);
+}
+if(({uint64_t _a=v1;uint64_t _b=2ULL;o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 35ULL, 5);uint64_t _b=4ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 5ULL, 5);uint64_t _b=128ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 6ULL, 5);uint64_t _b=128ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 40ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 12ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 17ULL, 5);uint64_t _b=128ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 18ULL, 5);uint64_t _b=128ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 32ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 41ULL, 5);uint64_t _b=o_get(v0, v0_n, 18ULL, 5);o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(4ULL);
+}
+return o_leave(0ULL);
+}
+static uint64_t f6(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=o_get(v0, v0_n, 17ULL, 5);
+uint64_t __attribute__((unused)) v2=o_get(v0, v0_n, 18ULL, 5);
+if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=65536ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=v2;uint64_t _b=65536ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 41ULL, 5);uint64_t _b=65536ULL;o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+uint64_t __attribute__((unused)) v3=({uint64_t _a=8ULL;uint64_t _b=o_get(v0, v0_n, 2ULL, 5);o_op(4, 5, _a,_b);});
+uint64_t __attribute__((unused)) v4=({uint64_t p0=v2;uint64_t p1=v3;f2(p0, p1);});
+if(({uint64_t _a=({uint64_t p0=v1;uint64_t p1=o_get(v0, v0_n, 25ULL, 5);uint64_t p2=v4;uint64_t p3=o_get(v0, v0_n, 28ULL, 5);uint64_t p4=o_get(v0, v0_n, 30ULL, 5);f4(p0, p1, p2, p3, p4);});uint64_t _b=0;o_op(18, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+uint64_t __attribute__((unused)) v5=({uint64_t p0=o_get(v0, v0_n, 41ULL, 5);uint64_t p1=v3;f2(p0, p1);});
+if(({uint64_t _a=({uint64_t p0=v1;uint64_t p1=o_get(v0, v0_n, 33ULL, 5);uint64_t p2=v5;uint64_t p3=0ULL;uint64_t p4=o_get(v0, v0_n, 36ULL, 5);f4(p0, p1, p2, p3, p4);});uint64_t _b=0;o_op(18, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 33ULL, 5);uint64_t _b=o_get(v0, v0_n, 27ULL, 5);o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({uint64_t _a=v1;uint64_t _b=({uint64_t _a=65536ULL;uint64_t _b=o_get(v0, v0_n, 33ULL, 5);o_op(4, 5, _a,_b);});o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 36ULL, 5);uint64_t _b=({uint64_t _a=v1;uint64_t _b=o_get(v0, v0_n, 33ULL, 5);o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 26ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 34ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 29ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 31ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 37ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(4ULL);
+}
+return o_leave(0ULL);
+}
+uint64_t __attribute__((unused)) v6=({uint64_t p0=v1;uint64_t p1=o_get(v0, v0_n, 5ULL, 5);f2(p0, p1);});
+uint64_t __attribute__((unused)) v7=({uint64_t p0=v2;uint64_t p1=o_get(v0, v0_n, 6ULL, 5);f2(p0, p1);});
+if(({uint64_t _a=({uint64_t p0=v6;uint64_t p1=o_get(v0, v0_n, 26ULL, 5);uint64_t p2=({uint64_t _a=v7;uint64_t _b=({uint64_t p0=o_get(v0, v0_n, 4ULL, 5);f3(p0);});o_op(3, 5, _a,_b);});uint64_t p3=o_get(v0, v0_n, 29ULL, 5);uint64_t p4=o_get(v0, v0_n, 31ULL, 5);f4(p0, p1, p2, p3, p4);});uint64_t _b=0;o_op(18, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p0=v6;uint64_t p1=o_get(v0, v0_n, 34ULL, 5);uint64_t p2=({uint64_t _a=v7;uint64_t _b=({uint64_t p0=o_get(v0, v0_n, 35ULL, 5);f3(p0);});o_op(3, 5, _a,_b);});uint64_t p3=0ULL;uint64_t p4=o_get(v0, v0_n, 37ULL, 5);f4(p0, p1, p2, p3, p4);});uint64_t _b=0;o_op(18, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=v6;uint64_t _b=({uint64_t _a=1024ULL;uint64_t _b=o_get(v0, v0_n, 34ULL, 5);o_op(4, 5, _a,_b);});o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 37ULL, 5);uint64_t _b=({uint64_t _a=v6;uint64_t _b=o_get(v0, v0_n, 34ULL, 5);o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+return o_leave(0ULL);
+}
+static uint64_t f7(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=({f1(v0, v0_n);});
+if(({uint64_t _a=v1;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v1);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 17ULL, 5);uint64_t _b=65536ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 18ULL, 5);uint64_t _b=65536ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+v1=({f5(v0, v0_n);});
+if(({uint64_t _a=v1;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v1);
+}
+return o_leave(({f6(v0, v0_n);}));
+}
+static uint64_t f8(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n){
+o_enter();
+uint64_t __attribute__((unused)) v2=({f1(v0, v0_n);});
+if(({uint64_t _a=v2;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v2);
+}
+{
+uint64_t v3=0;
+uint64_t k1=48ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+uint64_t __attribute__((unused)) v4=o_get(v0, v0_n, v3, 5);
+{
+uint64_t v5=0;
+uint64_t k2=8ULL;
+for(;o_op(8,5, v5, k2);v5=o_op(1,5, v5,1)){
+{uint64_t _i=({uint64_t _a=({uint64_t _a=v3;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});uint64_t _b=v5;o_op(1, 5, _a,_b);});uint64_t _v=o_cast(2, 5, ({uint64_t _a=({uint64_t _a=v4;uint64_t _b=({uint64_t _a=v5;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(16, 5, _a,_b);});uint64_t _b=255ULL;o_op(12, 5, _a,_b);}));o_put(v1, v1_n, _i,_v,2);}
+}
+}
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f9(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n){
+o_enter();
+{
+uint64_t v2=0;
+uint64_t k1=48ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+uint64_t __attribute__((unused)) v3=0ULL;
+{
+uint64_t v4=0;
+uint64_t k2=8ULL;
+for(;o_op(8,5, v4, k2);v4=o_op(1,5, v4,1)){
+v3=({uint64_t _a=v3;uint64_t _b=({uint64_t _a=o_cast(5, 2, o_get(v0, v0_n, ({uint64_t _a=({uint64_t _a=v2;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});uint64_t _b=v4;o_op(1, 5, _a,_b);}), 2));uint64_t _b=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});
+}
+}
+{uint64_t _i=v2;uint64_t _v=v3;o_put(v1, v1_n, _i,_v,5);}
+}
+}
+return o_leave(({f1(v1, v1_n);}));
+}
+static uint64_t f10(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=14695981039346656037ULL;
+{
+uint64_t v2=0;
+uint64_t k1=384ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+v1=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=o_cast(5, 2, o_get(v0, v0_n, v2, 2));o_op(14, 5, _a,_b);});uint64_t _b=1099511628211ULL;o_op(3, 5, _a,_b);});
+}
+}
+return o_leave(v1);
+}
+static uint64_t f11(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=14695981039346656037ULL;
+{
+uint64_t v2=0;
+uint64_t k1=192ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+v1=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=o_cast(5, 2, o_get(v0, v0_n, v2, 2));o_op(14, 5, _a,_b);});uint64_t _b=1099511628211ULL;o_op(3, 5, _a,_b);});
+}
+}
+return o_leave(v1);
+}
+static uint64_t f12(const void *v0, uint64_t v0_n, uint64_t v1){
+o_enter();
+uint64_t __attribute__((unused)) v2=({uint64_t _a=o_cast(4, 2, o_get(v0, v0_n, v1, 2));uint64_t _b=({uint64_t _a=o_cast(4, 2, o_get(v0, v0_n, ({uint64_t _a=v1;uint64_t _b=1ULL;o_op(1, 5, _a,_b);}), 2));uint64_t _b=8ULL;o_op(15, 4, _a,_b);});o_op(13, 4, _a,_b);});
+uint64_t __attribute__((unused)) v3=({uint64_t _a=v2;uint64_t _b=16ULL;o_op(15, 4, _a,_b);});
+return o_leave(({uint64_t _a=v3;uint64_t _b=({uint64_t _a=({uint64_t _a=127ULL;uint64_t _b=56ULL;o_op(1, 4, _a,_b);});uint64_t _b=23ULL;o_op(15, 4, _a,_b);});o_f32(2, _a,_b);}));
+}
+static uint64_t f13(const void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2){
+o_enter();
+uint64_t __attribute__((unused)) v3=({uint64_t _a=o_get(v0, v0_n, 29ULL, 5);uint64_t _b=({uint64_t _a=v1;uint64_t _b=o_get(v0, v0_n, 26ULL, 5);o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});
+return o_leave(({uint64_t _a=v3;uint64_t _b=({uint64_t _a=v2;uint64_t _b=({uint64_t p0=o_get(v0, v0_n, 4ULL, 5);f3(p0);});o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);}));
+}
+static uint64_t f14(const void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2){
+o_enter();
+uint64_t __attribute__((unused)) v3=o_cast(4, 2, o_get(v0, v0_n, v1, 2));
+if(({uint64_t _a=v2;uint64_t _b=2ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=v3;uint64_t _b=255ULL;o_op(6, 4, _a,_b);})){
+return o_leave(6ULL);
+}
+}
+if(({uint64_t _a=v2;uint64_t _b=3ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=v3;uint64_t _b=126ULL;o_op(10, 4, _a,_b);})){
+return o_leave(6ULL);
+}
+}
+if(({uint64_t _a=v2;uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
+v3=({uint64_t _a=v3;uint64_t _b=({uint64_t _a=o_cast(4, 2, o_get(v0, v0_n, ({uint64_t _a=v1;uint64_t _b=1ULL;o_op(1, 5, _a,_b);}), 2));uint64_t _b=8ULL;o_op(15, 4, _a,_b);});o_op(13, 4, _a,_b);});
+uint64_t __attribute__((unused)) v4=({uint64_t _a=v3;uint64_t _b=16ULL;o_op(15, 4, _a,_b);});
+if(({uint64_t _a=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=0;o_f32(1, _a,_b);});uint64_t _b=2137108966ULL;o_f32(3, _a,_b);});uint64_t _b=0;o_op(18, 1, _a,_b);})){
+return o_leave(6ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t _a=({uint64_t p1=v1;f12(v0, v0_n, p1);});uint64_t _b=0;o_f32(1, _a,_b);});uint64_t _b=2137108966ULL;o_f32(3, _a,_b);});uint64_t _b=0;o_op(18, 1, _a,_b);})){
+return o_leave(6ULL);
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f15(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n){
+o_enter();
+if(({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+uint64_t __attribute__((unused)) v2=({uint64_t p0=o_get(v0, v0_n, 17ULL, 5);uint64_t p1=o_get(v0, v0_n, 5ULL, 5);f2(p0, p1);});
+uint64_t __attribute__((unused)) v3=({uint64_t p0=o_get(v0, v0_n, 18ULL, 5);uint64_t p1=o_get(v0, v0_n, 6ULL, 5);f2(p0, p1);});
+{
+uint64_t v4=0;
+uint64_t k1=({uint64_t _a=v2;uint64_t _b=v3;o_op(3, 5, _a,_b);});
+uint64_t c1=0;
+for(;o_op(8,5, v4, k1);v4=o_op(1,5, v4,1)){
+if(c1++>=1000000)o_trap(4);
+uint64_t __attribute__((unused)) v5=({uint64_t p1=({uint64_t _a=v4;uint64_t _b=v3;o_op(4, 5, _a,_b);});uint64_t p2=({uint64_t _a=v4;uint64_t _b=v3;o_op(5, 5, _a,_b);});f13(v0, v0_n, p1, p2);});
+uint64_t __attribute__((unused)) v6=({uint64_t p1=v5;uint64_t p2=o_get(v0, v0_n, 4ULL, 5);f14(v1, v1_n, p1, p2);});
+if(({uint64_t _a=v6;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v6);
+}
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f16(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n){
+o_enter();
+uint64_t __attribute__((unused)) v2=o_get(v0, v0_n, 17ULL, 5);
+uint64_t __attribute__((unused)) v3=o_get(v0, v0_n, 18ULL, 5);
+{
+uint64_t v4=0;
+uint64_t c1=0;
+for(;o_op(8,5, v4, v2);v4=o_op(1,5, v4,1)){
+if(c1++>=1000000)o_trap(4);
+uint64_t __attribute__((unused)) v5=({uint64_t _a=o_get(v0, v0_n, 28ULL, 5);uint64_t _b=({uint64_t _a=v4;uint64_t _b=o_get(v0, v0_n, 25ULL, 5);o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});
+if(({uint64_t _a=o_get(v0, v0_n, 2ULL, 5);uint64_t _b=4ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=v3;uint64_t _b=2ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, ({uint64_t _a=v5;uint64_t _b=({uint64_t _a=v3;uint64_t _b=2ULL;o_op(4, 5, _a,_b);});o_op(1, 5, _a,_b);}), 2);uint64_t _b=240ULL;o_op(12, 2, _a,_b);});uint64_t _b=0ULL;o_op(7, 2, _a,_b);})){
+return o_leave(4ULL);
+}
+}
+continue;
+}
+{
+uint64_t v6=0;
+uint64_t c2=0;
+for(;o_op(8,5, v6, v3);v6=o_op(1,5, v6,1)){
+if(c2++>=1000000)o_trap(4);
+uint64_t __attribute__((unused)) v7=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v5;uint64_t _b=v6;o_op(1, 5, _a,_b);}), 2));
+if(({uint64_t _a=o_get(v0, v0_n, 12ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=o_get(v0, v0_n, 1ULL, 5);uint64_t _b=3ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t _a=v7;uint64_t _b=127ULL;o_op(12, 4, _a,_b);});uint64_t _b=124ULL;o_op(11, 4, _a,_b);})){
+return o_leave(5ULL);
+}
+}else{
+if(({uint64_t _a=({uint64_t _a=v7;uint64_t _b=127ULL;o_op(12, 4, _a,_b);});uint64_t _b=127ULL;o_op(6, 4, _a,_b);})){
+return o_leave(5ULL);
+}
+}
+}
+}
+}
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f17(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, void *v2, uint64_t v2_n){
+o_enter();
+{
+uint64_t v3=0;
+uint64_t k1=o_get(v0, v0_n, 36ULL, 5);
+uint64_t c1=0;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+if(c1++>=1000000)o_trap(4);
+{uint64_t _i=v3;uint64_t _v=0ULL;o_put(v2, v2_n, _i,_v,2);}
+}
+}
+uint64_t __attribute__((unused)) v3=({uint64_t p0=o_get(v0, v0_n, 18ULL, 5);uint64_t p1=({uint64_t _a=8ULL;uint64_t _b=o_get(v0, v0_n, 2ULL, 5);o_op(4, 5, _a,_b);});f2(p0, p1);});
+{
+uint64_t v4=0;
+uint64_t k1=({uint64_t _a=o_get(v0, v0_n, 17ULL, 5);uint64_t _b=v3;o_op(3, 5, _a,_b);});
+uint64_t c1=0;
+for(;o_op(8,5, v4, k1);v4=o_op(1,5, v4,1)){
+if(c1++>=1000000)o_trap(4);
+uint64_t __attribute__((unused)) v5=({uint64_t _a=o_get(v0, v0_n, 28ULL, 5);uint64_t _b=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=v3;o_op(4, 5, _a,_b);});uint64_t _b=o_get(v0, v0_n, 25ULL, 5);o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});
+v5=({uint64_t _a=v5;uint64_t _b=({uint64_t _a=v4;uint64_t _b=v3;o_op(5, 5, _a,_b);});o_op(1, 5, _a,_b);});
+uint64_t __attribute__((unused)) v6=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=v3;o_op(4, 5, _a,_b);});uint64_t _b=o_get(v0, v0_n, 33ULL, 5);o_op(3, 5, _a,_b);});
+v6=({uint64_t _a=v6;uint64_t _b=({uint64_t _a=v4;uint64_t _b=v3;o_op(5, 5, _a,_b);});o_op(1, 5, _a,_b);});
+{uint64_t _i=v6;uint64_t _v=o_get(v1, v1_n, v5, 2);o_put(v2, v2_n, _i,_v,2);}
+}
+}
+return o_leave(0);
+}
+static uint64_t f18(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4){
+o_enter();
+if(v4){
+uint64_t __attribute__((unused)) v5=({uint64_t p1=v2;f12(v0, v0_n, p1);});
+{
+uint64_t v6=0;
+uint64_t k2=4ULL;
+for(;o_op(8,5, v6, k2);v6=o_op(1,5, v6,1)){
+{uint64_t _i=({uint64_t _a=v3;uint64_t _b=v6;o_op(1, 5, _a,_b);});uint64_t _v=o_cast(2, 4, ({uint64_t _a=({uint64_t _a=v5;uint64_t _b=({uint64_t _a=v6;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(16, 4, _a,_b);});uint64_t _b=255ULL;o_op(12, 4, _a,_b);}));o_put(v1, v1_n, _i,_v,2);}
+}
+}
+}else{
+{uint64_t _i=v3;uint64_t _v=o_get(v0, v0_n, v2, 2);o_put(v1, v1_n, _i,_v,2);}
+}
+return o_leave(0);
+}
+static uint64_t f19(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, void *v2, uint64_t v2_n){
+o_enter();
+{
+uint64_t v3=0;
+uint64_t k1=o_get(v0, v0_n, 37ULL, 5);
+uint64_t c1=0;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+if(c1++>=1000000)o_trap(4);
+{uint64_t _i=v3;uint64_t _v=0ULL;o_put(v2, v2_n, _i,_v,2);}
+}
+}
+if(({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(0);
+}
+uint64_t __attribute__((unused)) v3=({uint64_t p0=o_get(v0, v0_n, 17ULL, 5);uint64_t p1=o_get(v0, v0_n, 5ULL, 5);f2(p0, p1);});
+uint64_t __attribute__((unused)) v4=({uint64_t p0=o_get(v0, v0_n, 18ULL, 5);uint64_t p1=o_get(v0, v0_n, 6ULL, 5);f2(p0, p1);});
+{
+uint64_t v5=0;
+uint64_t k1=({uint64_t _a=v3;uint64_t _b=v4;o_op(3, 5, _a,_b);});
+uint64_t c1=0;
+for(;o_op(8,5, v5, k1);v5=o_op(1,5, v5,1)){
+if(c1++>=1000000)o_trap(4);
+uint64_t __attribute__((unused)) v6=({uint64_t p1=({uint64_t _a=v5;uint64_t _b=v4;o_op(4, 5, _a,_b);});uint64_t p2=({uint64_t _a=v5;uint64_t _b=v4;o_op(5, 5, _a,_b);});f13(v0, v0_n, p1, p2);});
+uint64_t __attribute__((unused)) v7=({uint64_t _a=({uint64_t _a=v5;uint64_t _b=v4;o_op(4, 5, _a,_b);});uint64_t _b=o_get(v0, v0_n, 34ULL, 5);o_op(3, 5, _a,_b);});
+v7=({uint64_t _a=v7;uint64_t _b=({uint64_t _a=({uint64_t _a=v5;uint64_t _b=v4;o_op(5, 5, _a,_b);});uint64_t _b=({uint64_t p0=o_get(v0, v0_n, 35ULL, 5);f3(p0);});o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});
+({uint64_t p2=v6;uint64_t p3=v7;uint64_t p4=({uint64_t _a=o_get(v0, v0_n, 24ULL, 5);uint64_t _b=3ULL;o_op(6, 5, _a,_b);});f18(v1, v1_n, v2, v2_n, p2, p3, p4);});
+}
+}
+return o_leave(0);
+}
+static uint64_t f20(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, void *v3, uint64_t v3_n, void *v4, uint64_t v4_n){
+o_enter();
+uint64_t __attribute__((unused)) v5=({f7(v0, v0_n);});
+if(({uint64_t _a=v5;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v5);
+}
+v5=({f16(v0, v0_n, v1, v1_n);});
+if(({uint64_t _a=v5;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v5);
+}
+v5=({f15(v0, v0_n, v2, v2_n);});
+if(({uint64_t _a=v5;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v5);
+}
+({f17(v0, v0_n, v1, v1_n, v3, v3_n);});
+({f19(v0, v0_n, v2, v2_n, v4, v4_n);});
+return o_leave(0ULL);
+}
+static uint64_t f21(const void *v0, uint64_t v0_n, uint64_t v1){
+o_enter();
+uint64_t __attribute__((unused)) v2=0ULL;
+{
+uint64_t v3=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+v2=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=o_cast(5, 2, o_get(v0, v0_n, ({uint64_t _a=({uint64_t _a=v1;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);}), 2));uint64_t _b=({uint64_t _a=v3;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});
+}
+}
+return o_leave(v2);
+}
+static uint64_t f22(void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2){
+o_enter();
+{
+uint64_t v3=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+{uint64_t _i=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);});uint64_t _v=o_cast(2, 5, ({uint64_t _a=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=v3;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(16, 5, _a,_b);});uint64_t _b=255ULL;o_op(12, 5, _a,_b);}));o_put(v0, v0_n, _i,_v,2);}
+}
+}
+return o_leave(0);
+}
+static uint64_t f23(const void *v0, uint64_t v0_n, uint64_t v1, const void *v2, uint64_t v2_n){
+o_enter();
+if(({uint64_t _a=v1;uint64_t _b=8ULL;o_op(11, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+{
+uint64_t v3=0;
+uint64_t k1=32ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+if(({uint64_t _a=o_get(v0, v0_n, ({uint64_t _a=({uint64_t _a=512ULL;uint64_t _b=({uint64_t _a=v1;uint64_t _b=32ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);}), 2);uint64_t _b=o_get(v2, v2_n, v3, 2);o_op(7, 2, _a,_b);})){
+return o_leave(0ULL);
+}
+}
+}
+return o_leave(1ULL);
+}
+static uint64_t f24(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n){
+o_enter();
+return o_leave(({uint64_t p1=5ULL;f23(v0, v0_n, p1, v1, v1_n);}));
+}
+static uint64_t f25(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n){
+o_enter();
+return o_leave(({uint64_t p1=6ULL;f23(v0, v0_n, p1, v1, v1_n);}));
+}
+static uint64_t f26(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=({uint64_t p1=14ULL;f21(v0, v0_n, p1);});
+uint64_t __attribute__((unused)) v2=({uint64_t p1=16ULL;f21(v0, v0_n, p1);});
+uint64_t __attribute__((unused)) v3=({uint64_t p1=17ULL;f21(v0, v0_n, p1);});
+if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=2ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=4ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=v1;uint64_t _b=8ULL;o_op(7, 5, _a,_b);});o_op(12, 1, _a,_b);});o_op(12, 1, _a,_b);});o_op(12, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t p1=15ULL;f21(v0, v0_n, p1);});uint64_t _b=1ULL;o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=v2;uint64_t _b=256ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=v2;uint64_t _b=512ULL;o_op(7, 5, _a,_b);});o_op(12, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=v3;uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v3;uint64_t _b=32ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=v3;uint64_t _b=({uint64_t _a=v3;uint64_t _b=1ULL;o_op(2, 5, _a,_b);});o_op(12, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+uint64_t __attribute__((unused)) v4=({uint64_t _a=v2;uint64_t _b=32ULL;o_op(4, 5, _a,_b);});
+if(({uint64_t _a=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=v4;o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=v4;o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(4, 5, _a,_b);});uint64_t _b=8ULL;o_op(10, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=6ULL;f21(v0, v0_n, p1);});uint64_t _b=16384ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=({uint64_t p1=6ULL;f21(v0, v0_n, p1);});uint64_t _b=v2;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+uint64_t __attribute__((unused)) v5=({uint64_t _a=({uint64_t p1=6ULL;f21(v0, v0_n, p1);});uint64_t _b=v2;o_op(4, 5, _a,_b);});
+if(({uint64_t _a=({uint64_t _a=({uint64_t _a=v5;uint64_t _b=2ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=v5;uint64_t _b=3ULL;o_op(10, 5, _a,_b);});o_op(12, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+uint64_t __attribute__((unused)) v6=v5;
+if(({uint64_t _a=({uint64_t _a=v5;uint64_t _b=2ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+v6=2ULL;
+}
+if(({uint64_t _a=({uint64_t p1=18ULL;f21(v0, v0_n, p1);});uint64_t _b=v6;o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+uint64_t __attribute__((unused)) v7=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=128ULL;o_op(3, 5, _a,_b);});uint64_t _b=v4;o_op(3, 5, _a,_b);});
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=21ULL;f21(v0, v0_n, p1);});uint64_t _b=v7;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=({uint64_t p1=21ULL;f21(v0, v0_n, p1);});uint64_t _b=128ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=22ULL;f21(v0, v0_n, p1);});uint64_t _b=16ULL;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=({uint64_t p1=22ULL;f21(v0, v0_n, p1);});uint64_t _b=8ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=23ULL;f21(v0, v0_n, p1);});uint64_t _b=6ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=24ULL;f21(v0, v0_n, p1);});uint64_t _b=1ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=26ULL;f21(v0, v0_n, p1);});uint64_t _b=4294967295ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=27ULL;f21(v0, v0_n, p1);});uint64_t _b=4294967295ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=28ULL;f21(v0, v0_n, p1);});uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=({uint64_t p1=26ULL;f21(v0, v0_n, p1);});uint64_t _b=v3;o_op(3, 5, _a,_b);});uint64_t _b=4294967295ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=29ULL;f21(v0, v0_n, p1);});uint64_t _b=7ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=32ULL;f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+{
+uint64_t v8=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v8, k1);v8=o_op(1,5, v8,1)){
+if(({uint64_t _a=v8;uint64_t _b=2ULL;o_op(7, 5, _a,_b);})){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=v8;uint64_t _b=30ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+}
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f27(const void *v0, uint64_t v0_n, uint64_t v1){
+o_enter();
+uint64_t v2[48]={0};
+uint64_t v2_n=48;
+o_fill(v2, v2_n, 0ULL, 5);
+uint8_t v3[384]={0};
+uint64_t v3_n=384;
+o_fill(v3, v3_n, 0ULL, 2);
+if(({uint64_t _a=v1;uint64_t _b=1152ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=0ULL;f21(v0, v0_n, p1);});uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=1ULL;f21(v0, v0_n, p1);});uint64_t _b=1152ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t p1=2ULL;f21(v0, v0_n, p1);});uint64_t _b=121ULL;o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t p1=3ULL;f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+{
+uint64_t v4=0;
+uint64_t k1=3ULL;
+for(;o_op(8,5, v4, k1);v4=o_op(1,5, v4,1)){
+uint64_t __attribute__((unused)) v5=({uint64_t p1=({uint64_t _a=v4;uint64_t _b=4ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});
+if(({uint64_t _a=({uint64_t _a=v5;uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v5;uint64_t _b=16777216ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+}
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=7ULL;f21(v0, v0_n, p1);});uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=8ULL;f21(v0, v0_n, p1);});uint64_t _b=3ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=9ULL;f21(v0, v0_n, p1);});uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=10ULL;f21(v0, v0_n, p1);});uint64_t _b=1ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=11ULL;f21(v0, v0_n, p1);});uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=12ULL;f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t p1=13ULL;f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+{
+uint64_t v4=0;
+uint64_t k1=6ULL;
+for(;o_op(8,5, v4, k1);v4=o_op(1,5, v4,1)){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=v4;uint64_t _b=14ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+}
+}
+if(({uint64_t _a=({uint64_t p1=17ULL;f21(v0, v0_n, p1);});uint64_t _b=32ULL;o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p1=18ULL;f21(v0, v0_n, p1);});uint64_t _b=16ULL;o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p1=19ULL;f21(v0, v0_n, p1);});uint64_t _b=3ULL;o_op(10, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t p1=20ULL;f21(v0, v0_n, p1);});uint64_t _b=127ULL;o_op(10, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t p1=21ULL;f21(v0, v0_n, p1);});uint64_t _b=16384ULL;o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=22ULL;f21(v0, v0_n, p1);});uint64_t _b=3ULL;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=22ULL;f21(v0, v0_n, p1);});uint64_t _b=246ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=23ULL;f21(v0, v0_n, p1);});uint64_t _b=4ULL;o_op(8, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=23ULL;f21(v0, v0_n, p1);});uint64_t _b=32ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p1=24ULL;f21(v0, v0_n, p1);});uint64_t _b=16ULL;o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p1=25ULL;f21(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t p1=17ULL;f21(v0, v0_n, p1);});uint64_t _b=32ULL;o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t _a=({uint64_t p1=25ULL;f21(v0, v0_n, p1);});uint64_t _b=({uint64_t p1=22ULL;f21(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=65536ULL;o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+{
+uint64_t v4=0;
+uint64_t k1=3ULL;
+for(;o_op(8,5, v4, k1);v4=o_op(1,5, v4,1)){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=v4;uint64_t _b=26ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+}
+}
+uint64_t __attribute__((unused)) v4=0ULL;
+{
+uint64_t v5=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v5, k1);v5=o_op(1,5, v5,1)){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=v5;uint64_t _b=30ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+v4=({uint64_t _a=v4;uint64_t _b=1ULL;o_op(1, 5, _a,_b);});
+}
+}
+}
+if(({uint64_t _a=({uint64_t _a=v4;uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v4;uint64_t _b=({uint64_t p1=29ULL;f21(v0, v0_n, p1);});o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+{
+uint64_t v5=0;
+uint64_t k1=26ULL;
+for(;o_op(8,5, v5, k1);v5=o_op(1,5, v5,1)){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=v5;uint64_t _b=38ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+{
+uint64_t v5=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v5, k1);v5=o_op(1,5, v5,1)){
+uint64_t __attribute__((unused)) v6=0ULL;
+{
+uint64_t v7=0;
+uint64_t k2=32ULL;
+for(;o_op(8,5, v7, k2);v7=o_op(1,5, v7,1)){
+v6=({uint64_t _a=v6;uint64_t _b=o_get(v0, v0_n, ({uint64_t _a=({uint64_t _a=512ULL;uint64_t _b=({uint64_t _a=v5;uint64_t _b=32ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});uint64_t _b=v7;o_op(1, 5, _a,_b);}), 2);o_op(13, 2, _a,_b);});
+}
+}
+if(({uint64_t _a=v6;uint64_t _b=0ULL;o_op(6, 2, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+{
+uint64_t v5=0;
+uint64_t k1=384ULL;
+for(;o_op(8,5, v5, k1);v5=o_op(1,5, v5,1)){
+{uint64_t _i=v5;uint64_t _v=o_get(v0, v0_n, ({uint64_t _a=v5;uint64_t _b=768ULL;o_op(1, 5, _a,_b);}), 2);o_put(v3, v3_n, _i,_v,2);}
+}
+}
+uint64_t __attribute__((unused)) v5=({f9(v3, v3_n, v2, v2_n);});
+if(({uint64_t _a=v5;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(4ULL);
+}
+v5=({f7(v2, v2_n);});
+if(({uint64_t _a=v5;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({uint64_t _a=({uint64_t p1=19ULL;f21(v0, v0_n, p1);});uint64_t _b=3ULL;o_op(6, 5, _a,_b);})){
+v5=({f26(v0, v0_n);});
+if(({uint64_t _a=v5;uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(v5);
+}
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v2, v2_n, 1ULL, 5);uint64_t _b=2ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v2, v2_n, 24ULL, 5);uint64_t _b=3ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v2, v2_n, 40ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v2, v2_n, 32ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+{
+uint64_t v6=0;
+uint64_t k1=2944ULL;
+for(;o_op(8,5, v6, k1);v6=o_op(1,5, v6,1)){
+if(({uint64_t _a=o_get(v0, v0_n, ({uint64_t _a=v6;uint64_t _b=1152ULL;o_op(1, 5, _a,_b);}), 2);uint64_t _b=0ULL;o_op(7, 2, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f28(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n){
+o_enter();
+if(({uint64_t _a=({uint64_t p1=1152ULL;f27(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(0ULL);
+}
+if(({uint64_t _a=({uint64_t p1=1152ULL;f27(v1, v1_n, p1);});uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(0ULL);
+}
+{
+uint64_t v2=0;
+uint64_t k1=12ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=v2;uint64_t _b=2ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});uint64_t _b=({uint64_t p1=({uint64_t _a=v2;uint64_t _b=2ULL;o_op(1, 5, _a,_b);});f21(v1, v1_n, p1);});o_op(7, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+}
+}
+{
+uint64_t v2=0;
+uint64_t k1=128ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=o_get(v0, v0_n, ({uint64_t _a=v2;uint64_t _b=512ULL;o_op(1, 5, _a,_b);}), 2);uint64_t _b=o_get(v1, v1_n, ({uint64_t _a=v2;uint64_t _b=512ULL;o_op(1, 5, _a,_b);}), 2);o_op(7, 2, _a,_b);})){
+return o_leave(0ULL);
+}
+}
+}
+{
+uint64_t v2=0;
+uint64_t k1=384ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=o_get(v0, v0_n, ({uint64_t _a=v2;uint64_t _b=768ULL;o_op(1, 5, _a,_b);}), 2);uint64_t _b=o_get(v1, v1_n, ({uint64_t _a=v2;uint64_t _b=768ULL;o_op(1, 5, _a,_b);}), 2);o_op(7, 2, _a,_b);})){
+return o_leave(0ULL);
+}
+}
+}
+return o_leave(1ULL);
+}
+static uint64_t f29(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n){
+o_enter();
+if(({uint64_t _a=({uint64_t p1=1152ULL;f27(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(7, 4, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, 0ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v1, v1_n, 4ULL, 5);uint64_t _b=({uint64_t p1=25ULL;f21(v0, v0_n, p1);});o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, 5ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v1, v1_n, 6ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+{
+uint64_t v2=0;
+uint64_t k1=3ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=o_get(v1, v1_n, ({uint64_t _a=v2;uint64_t _b=1ULL;o_op(1, 5, _a,_b);}), 5);uint64_t _b=({uint64_t p1=({uint64_t _a=v2;uint64_t _b=26ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+{
+uint64_t v2=0;
+uint64_t k1=4ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=o_get(v1, v1_n, ({uint64_t _a=v2;uint64_t _b=7ULL;o_op(1, 5, _a,_b);}), 5);uint64_t _b=({uint64_t p1=({uint64_t _a=v2;uint64_t _b=21ULL;o_op(1, 5, _a,_b);});f21(v0, v0_n, p1);});o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, 11ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v1, v1_n, 12ULL, 5);uint64_t _b=32ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, 12ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v1, v1_n, 13ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v1, v1_n, 14ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t p1=19ULL;f21(v0, v0_n, p1);});uint64_t _b=3ULL;o_op(6, 5, _a,_b);})){
+if(({uint64_t _a=o_get(v1, v1_n, 11ULL, 5);uint64_t _b=896ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, 12ULL, 5);uint64_t _b=8ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v1, v1_n, 12ULL, 5);uint64_t _b=12ULL;o_op(7, 5, _a,_b);});o_op(12, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, 12ULL, 5);uint64_t _b=12ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t p1=14ULL;f21(v0, v0_n, p1);});uint64_t _b=4ULL;o_op(10, 5, _a,_b);});o_op(12, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+{
+uint64_t v2=0;
+uint64_t k1=3ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+uint64_t __attribute__((unused)) v3=0ULL;
+{
+uint64_t v4=0;
+uint64_t k2=4ULL;
+for(;o_op(8,5, v4, k2);v4=o_op(1,5, v4,1)){
+v3=({uint64_t _a=v3;uint64_t _b=o_get(v1, v1_n, ({uint64_t _a=({uint64_t _a=15ULL;uint64_t _b=({uint64_t _a=v2;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});uint64_t _b=v4;o_op(1, 5, _a,_b);}), 5);o_op(13, 5, _a,_b);});
+}
+}
+if(({uint64_t _a=v3;uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+{
+uint64_t v2=0;
+uint64_t k1=5ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=o_get(v1, v1_n, ({uint64_t _a=v2;uint64_t _b=27ULL;o_op(1, 5, _a,_b);}), 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f30(const void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2){
+o_enter();
+uint64_t v3[32]={0};
+uint64_t v3_n=32;
+o_fill(v3, v3_n, 0ULL, 5);
+if(({uint64_t _a=v2;uint64_t _b=256ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+{
+uint64_t v4=0;
+uint64_t k1=32ULL;
+for(;o_op(8,5, v4, k1);v4=o_op(1,5, v4,1)){
+{uint64_t _i=v4;uint64_t _v=({uint64_t p1=v4;f21(v1, v1_n, p1);});o_put(v3, v3_n, _i,_v,5);}
+}
+}
+{
+uint64_t v4=0;
+uint64_t k1=3840ULL;
+for(;o_op(8,5, v4, k1);v4=o_op(1,5, v4,1)){
+if(({uint64_t _a=o_get(v1, v1_n, ({uint64_t _a=v4;uint64_t _b=256ULL;o_op(1, 5, _a,_b);}), 2);uint64_t _b=0ULL;o_op(7, 2, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+return o_leave(({f29(v0, v0_n, v3, v3_n);}));
+}
+static uint64_t f31(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n){
+o_enter();
+{
+uint64_t v2=0;
+uint64_t k1=4096ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+{uint64_t _i=v2;uint64_t _v=0ULL;o_put(v1, v1_n, _i,_v,2);}
+}
+}
+{
+uint64_t v2=0;
+uint64_t k1=32ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+({uint64_t p1=v2;uint64_t p2=o_get(v0, v0_n, v2, 5);f22(v1, v1_n, p1, p2);});
+}
+}
+return o_leave(0);
+}
+static uint64_t f32(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n){
+o_enter();
+{
+uint64_t v2=0;
+uint64_t k1=384ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+{uint64_t _i=v2;uint64_t _v=o_get(v0, v0_n, ({uint64_t _a=v2;uint64_t _b=768ULL;o_op(1, 5, _a,_b);}), 2);o_put(v1, v1_n, _i,_v,2);}
+}
+}
+return o_leave(0);
+}
+static uint64_t f33(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n){
+o_enter();
+{
+uint64_t v2=0;
+uint64_t k1=384ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+{uint64_t _i=({uint64_t _a=v2;uint64_t _b=768ULL;o_op(1, 5, _a,_b);});uint64_t _v=o_get(v1, v1_n, v2, 2);o_put(v0, v0_n, _i,_v,2);}
+}
+}
+return o_leave(0);
+}
+static uint64_t f34(uint64_t v0, uint64_t v1){
+o_enter();
+return o_leave(({uint64_t _a=({uint64_t _a=v0;uint64_t _b=v1;o_op(16, 4, _a,_b);});uint64_t _b=({uint64_t _a=v0;uint64_t _b=({uint64_t _a=32ULL;uint64_t _b=v1;o_op(2, 4, _a,_b);});o_op(15, 4, _a,_b);});o_op(13, 4, _a,_b);}));
+}
+static uint64_t f35(void *v0, uint64_t v0_n){
+o_enter();
+{uint64_t _i=0ULL;uint64_t _v=1116352408ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=1ULL;uint64_t _v=1899447441ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=2ULL;uint64_t _v=3049323471ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=3ULL;uint64_t _v=3921009573ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=4ULL;uint64_t _v=961987163ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=5ULL;uint64_t _v=1508970993ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=6ULL;uint64_t _v=2453635748ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=7ULL;uint64_t _v=2870763221ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=8ULL;uint64_t _v=3624381080ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=9ULL;uint64_t _v=310598401ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=10ULL;uint64_t _v=607225278ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=11ULL;uint64_t _v=1426881987ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=12ULL;uint64_t _v=1925078388ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=13ULL;uint64_t _v=2162078206ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=14ULL;uint64_t _v=2614888103ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=15ULL;uint64_t _v=3248222580ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=16ULL;uint64_t _v=3835390401ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=17ULL;uint64_t _v=4022224774ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=18ULL;uint64_t _v=264347078ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=19ULL;uint64_t _v=604807628ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=20ULL;uint64_t _v=770255983ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=21ULL;uint64_t _v=1249150122ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=22ULL;uint64_t _v=1555081692ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=23ULL;uint64_t _v=1996064986ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=24ULL;uint64_t _v=2554220882ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=25ULL;uint64_t _v=2821834349ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=26ULL;uint64_t _v=2952996808ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=27ULL;uint64_t _v=3210313671ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=28ULL;uint64_t _v=3336571891ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=29ULL;uint64_t _v=3584528711ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=30ULL;uint64_t _v=113926993ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=31ULL;uint64_t _v=338241895ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=32ULL;uint64_t _v=666307205ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=33ULL;uint64_t _v=773529912ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=34ULL;uint64_t _v=1294757372ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=35ULL;uint64_t _v=1396182291ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=36ULL;uint64_t _v=1695183700ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=37ULL;uint64_t _v=1986661051ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=38ULL;uint64_t _v=2177026350ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=39ULL;uint64_t _v=2456956037ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=40ULL;uint64_t _v=2730485921ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=41ULL;uint64_t _v=2820302411ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=42ULL;uint64_t _v=3259730800ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=43ULL;uint64_t _v=3345764771ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=44ULL;uint64_t _v=3516065817ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=45ULL;uint64_t _v=3600352804ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=46ULL;uint64_t _v=4094571909ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=47ULL;uint64_t _v=275423344ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=48ULL;uint64_t _v=430227734ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=49ULL;uint64_t _v=506948616ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=50ULL;uint64_t _v=659060556ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=51ULL;uint64_t _v=883997877ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=52ULL;uint64_t _v=958139571ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=53ULL;uint64_t _v=1322822218ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=54ULL;uint64_t _v=1537002063ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=55ULL;uint64_t _v=1747873779ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=56ULL;uint64_t _v=1955562222ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=57ULL;uint64_t _v=2024104815ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=58ULL;uint64_t _v=2227730452ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=59ULL;uint64_t _v=2361852424ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=60ULL;uint64_t _v=2428436474ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=61ULL;uint64_t _v=2756734187ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=62ULL;uint64_t _v=3204031479ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=63ULL;uint64_t _v=3329325298ULL;o_put(v0, v0_n, _i,_v,4);}
+return o_leave(0);
+}
+static uint64_t f36(void *v0, uint64_t v0_n){
+o_enter();
+{uint64_t _i=0ULL;uint64_t _v=1779033703ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=1ULL;uint64_t _v=3144134277ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=2ULL;uint64_t _v=1013904242ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=3ULL;uint64_t _v=2773480762ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=4ULL;uint64_t _v=1359893119ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=5ULL;uint64_t _v=2600822924ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=6ULL;uint64_t _v=528734635ULL;o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=7ULL;uint64_t _v=1541459225ULL;o_put(v0, v0_n, _i,_v,4);}
+return o_leave(0);
+}
+static uint64_t f37(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2){
+o_enter();
+uint64_t __attribute__((unused)) v3=0ULL;
+uint64_t __attribute__((unused)) v4=0ULL;
+{
+uint64_t v5=0;
+uint64_t k1=16ULL;
+for(;o_op(8,5, v5, k1);v5=o_op(1,5, v5,1)){
+v3=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=v5;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});
+v4=o_cast(4, 2, o_get(v1, v1_n, v3, 2));
+v4=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=1ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});
+v4=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=2ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});
+{uint64_t _i=v5;uint64_t _v=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=3ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+}
+}
+({f40(v0, v0_n);});
+return o_leave(0);
+}
+static uint64_t f38(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2){
+o_enter();
+uint64_t __attribute__((unused)) v3=0ULL;
+uint64_t __attribute__((unused)) v4=0ULL;
+{
+uint64_t v5=0;
+uint64_t k1=16ULL;
+for(;o_op(8,5, v5, k1);v5=o_op(1,5, v5,1)){
+v3=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=v5;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});
+v4=o_cast(4, 2, o_get(v1, v1_n, v3, 2));
+v4=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=1ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});
+v4=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=2ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});
+{uint64_t _i=v5;uint64_t _v=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=3ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+}
+}
+({f40(v0, v0_n);});
+return o_leave(0);
+}
+static uint64_t f39(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2){
+o_enter();
+uint64_t __attribute__((unused)) v3=0ULL;
+uint64_t __attribute__((unused)) v4=0ULL;
+{
+uint64_t v5=0;
+uint64_t k1=16ULL;
+for(;o_op(8,5, v5, k1);v5=o_op(1,5, v5,1)){
+v3=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=v5;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});
+v4=o_cast(4, 2, o_get(v1, v1_n, v3, 2));
+v4=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=1ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});
+v4=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=2ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});
+{uint64_t _i=v5;uint64_t _v=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(15, 4, _a,_b);});uint64_t _b=o_cast(4, 2, o_get(v1, v1_n, ({uint64_t _a=v3;uint64_t _b=3ULL;o_op(1, 5, _a,_b);}), 2));o_op(13, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+}
+}
+({f40(v0, v0_n);});
+return o_leave(0);
+}
+static uint64_t f40(void *v0, uint64_t v0_n){
+o_enter();
+uint64_t __attribute__((unused)) v1=0ULL;
+uint64_t __attribute__((unused)) v2=0ULL;
+{
+uint64_t v3=0;
+uint64_t k1=48ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+v1=o_get(v0, v0_n, ({uint64_t _a=v3;uint64_t _b=1ULL;o_op(1, 5, _a,_b);}), 4);
+v2=o_get(v0, v0_n, ({uint64_t _a=v3;uint64_t _b=14ULL;o_op(1, 5, _a,_b);}), 4);
+v1=({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, v3, 4);uint64_t _b=o_get(v0, v0_n, ({uint64_t _a=v3;uint64_t _b=9ULL;o_op(1, 5, _a,_b);}), 4);o_op(1, 4, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=({uint64_t p0=v1;uint64_t p1=7ULL;f34(p0, p1);});uint64_t _b=({uint64_t p0=v1;uint64_t p1=18ULL;f34(p0, p1);});o_op(14, 4, _a,_b);});uint64_t _b=({uint64_t _a=v1;uint64_t _b=3ULL;o_op(16, 4, _a,_b);});o_op(14, 4, _a,_b);});o_op(1, 4, _a,_b);});
+{uint64_t _i=({uint64_t _a=v3;uint64_t _b=16ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t _a=v1;uint64_t _b=({uint64_t _a=({uint64_t _a=({uint64_t p0=v2;uint64_t p1=17ULL;f34(p0, p1);});uint64_t _b=({uint64_t p0=v2;uint64_t p1=19ULL;f34(p0, p1);});o_op(14, 4, _a,_b);});uint64_t _b=({uint64_t _a=v2;uint64_t _b=10ULL;o_op(16, 4, _a,_b);});o_op(14, 4, _a,_b);});o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+}
+}
+return o_leave(0);
+}
+static uint64_t f41(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n){
+o_enter();
+uint64_t __attribute__((unused)) v3=o_get(v0, v0_n, 0ULL, 4);
+uint64_t __attribute__((unused)) v4=o_get(v0, v0_n, 1ULL, 4);
+uint64_t __attribute__((unused)) v5=o_get(v0, v0_n, 2ULL, 4);
+uint64_t __attribute__((unused)) v6=o_get(v0, v0_n, 3ULL, 4);
+uint64_t __attribute__((unused)) v7=o_get(v0, v0_n, 4ULL, 4);
+uint64_t __attribute__((unused)) v8=o_get(v0, v0_n, 5ULL, 4);
+uint64_t __attribute__((unused)) v9=o_get(v0, v0_n, 6ULL, 4);
+uint64_t __attribute__((unused)) v10=o_get(v0, v0_n, 7ULL, 4);
+uint64_t __attribute__((unused)) v11=0ULL;
+{
+uint64_t v12=0;
+uint64_t k1=64ULL;
+for(;o_op(8,5, v12, k1);v12=o_op(1,5, v12,1)){
+v10=({uint64_t _a=v10;uint64_t _b=o_get(v2, v2_n, v12, 4);o_op(1, 4, _a,_b);});
+v10=({uint64_t _a=v10;uint64_t _b=o_get(v1, v1_n, v12, 4);o_op(1, 4, _a,_b);});
+v11=({uint64_t _a=({uint64_t p0=v7;uint64_t p1=6ULL;f34(p0, p1);});uint64_t _b=({uint64_t p0=v7;uint64_t p1=11ULL;f34(p0, p1);});o_op(14, 4, _a,_b);});
+v11=({uint64_t _a=v11;uint64_t _b=({uint64_t p0=v7;uint64_t p1=25ULL;f34(p0, p1);});o_op(14, 4, _a,_b);});
+v10=({uint64_t _a=v10;uint64_t _b=v11;o_op(1, 4, _a,_b);});
+v10=({uint64_t _a=v10;uint64_t _b=({uint64_t _a=v9;uint64_t _b=({uint64_t _a=v7;uint64_t _b=({uint64_t _a=v8;uint64_t _b=v9;o_op(14, 4, _a,_b);});o_op(12, 4, _a,_b);});o_op(14, 4, _a,_b);});o_op(1, 4, _a,_b);});
+v6=({uint64_t _a=v6;uint64_t _b=v10;o_op(1, 4, _a,_b);});
+v11=({uint64_t _a=({uint64_t p0=v3;uint64_t p1=2ULL;f34(p0, p1);});uint64_t _b=({uint64_t p0=v3;uint64_t p1=13ULL;f34(p0, p1);});o_op(14, 4, _a,_b);});
+v11=({uint64_t _a=v11;uint64_t _b=({uint64_t p0=v3;uint64_t p1=22ULL;f34(p0, p1);});o_op(14, 4, _a,_b);});
+v10=({uint64_t _a=v10;uint64_t _b=v11;o_op(1, 4, _a,_b);});
+v11=({uint64_t _a=v5;uint64_t _b=({uint64_t _a=v3;uint64_t _b=v4;o_op(13, 4, _a,_b);});o_op(12, 4, _a,_b);});
+v10=({uint64_t _a=v10;uint64_t _b=({uint64_t _a=({uint64_t _a=v3;uint64_t _b=v4;o_op(12, 4, _a,_b);});uint64_t _b=v11;o_op(13, 4, _a,_b);});o_op(1, 4, _a,_b);});
+v11=v10;
+v10=v9;
+v9=v8;
+v8=v7;
+v7=v6;
+v6=v5;
+v5=v4;
+v4=v3;
+v3=v11;
+}
+}
+{uint64_t _i=0ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 0ULL, 4);uint64_t _b=v3;o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=1ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 1ULL, 4);uint64_t _b=v4;o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=2ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 2ULL, 4);uint64_t _b=v5;o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=3ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 3ULL, 4);uint64_t _b=v6;o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=4ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 4ULL, 4);uint64_t _b=v7;o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=5ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 5ULL, 4);uint64_t _b=v8;o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=6ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 6ULL, 4);uint64_t _b=v9;o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+{uint64_t _i=7ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 7ULL, 4);uint64_t _b=v10;o_op(1, 4, _a,_b);});o_put(v0, v0_n, _i,_v,4);}
+return o_leave(0);
+}
+static uint64_t f42(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n){
+o_enter();
+{
+uint64_t v2=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+{
+uint64_t v3=0;
+uint64_t k2=4ULL;
+for(;o_op(8,5, v3, k2);v3=o_op(1,5, v3,1)){
+uint64_t __attribute__((unused)) v4=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);});
+uint64_t __attribute__((unused)) v5=({uint64_t _a=o_get(v0, v0_n, v2, 4);uint64_t _b=({uint64_t _a=({uint64_t _a=3ULL;uint64_t _b=v3;o_op(2, 5, _a,_b);});uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(16, 4, _a,_b);});
+{uint64_t _i=v4;uint64_t _v=o_cast(2, 4, ({uint64_t _a=v5;uint64_t _b=255ULL;o_op(12, 4, _a,_b);}));o_put(v1, v1_n, _i,_v,2);}
+}
+}
+}
+}
+return o_leave(0);
+}
+static uint64_t f43(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, const void *v2, uint64_t v2_n, void *v3, uint64_t v3_n, uint64_t v4){
+o_enter();
+uint64_t __attribute__((unused)) v5=({uint64_t _a=v4;uint64_t _b=64ULL;o_op(5, 5, _a,_b);});
+{uint64_t _i=v5;uint64_t _v=128ULL;o_put(v3, v3_n, _i,_v,2);}
+uint64_t __attribute__((unused)) v6=64ULL;
+if(({uint64_t _a=v5;uint64_t _b=56ULL;o_op(11, 5, _a,_b);})){
+v6=128ULL;
+}
+{
+uint64_t v7=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v7, k1);v7=o_op(1,5, v7,1)){
+uint64_t __attribute__((unused)) v8=({uint64_t _a=v6;uint64_t _b=({uint64_t _a=v7;uint64_t _b=1ULL;o_op(1, 5, _a,_b);});o_op(2, 5, _a,_b);});
+uint64_t __attribute__((unused)) v9=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=3ULL;o_op(15, 5, _a,_b);});uint64_t _b=({uint64_t _a=v7;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(16, 5, _a,_b);});
+{uint64_t _i=v8;uint64_t _v=o_cast(2, 5, ({uint64_t _a=v9;uint64_t _b=255ULL;o_op(12, 5, _a,_b);}));o_put(v3, v3_n, _i,_v,2);}
+}
+}
+({uint64_t p2=0ULL;f39(v1, v1_n, v3, v3_n, p2);});
+({f41(v0, v0_n, v1, v1_n, v2, v2_n);});
+if(({uint64_t _a=v6;uint64_t _b=128ULL;o_op(6, 5, _a,_b);})){
+({uint64_t p2=64ULL;f39(v1, v1_n, v3, v3_n, p2);});
+({f41(v0, v0_n, v1, v1_n, v2, v2_n);});
+}
+return o_leave(0);
+}
+static uint64_t f44(const void *v0, uint64_t v0_n, uint64_t v1, void *v2, uint64_t v2_n){
+o_enter();
+uint8_t v3[128]={0};
+uint64_t v3_n=128;
+o_fill(v3, v3_n, 0ULL, 2);
+uint32_t v4[8]={0};
+uint64_t v4_n=8;
+o_fill(v4, v4_n, 0ULL, 4);
+uint32_t v5[64]={0};
+uint64_t v5_n=64;
+o_fill(v5, v5_n, 0ULL, 4);
+uint32_t v6[64]={0};
+uint64_t v6_n=64;
+o_fill(v6, v6_n, 0ULL, 4);
+if(({uint64_t _a=v1;uint64_t _b=4096ULL;o_op(10, 5, _a,_b);})){
+return o_leave(18446744073709551615ULL);
+}
+({f35(v6, v6_n);});
+({f36(v4, v4_n);});
+{
+uint64_t v7=0;
+uint64_t k1=({uint64_t _a=v1;uint64_t _b=64ULL;o_op(4, 5, _a,_b);});
+uint64_t c1=0;
+for(;o_op(8,5, v7, k1);v7=o_op(1,5, v7,1)){
+if(c1++>=1000000)o_trap(4);
+({uint64_t p2=({uint64_t _a=v7;uint64_t _b=64ULL;o_op(3, 5, _a,_b);});f37(v5, v5_n, v0, v0_n, p2);});
+({f41(v4, v4_n, v5, v5_n, v6, v6_n);});
+}
+}
+uint64_t __attribute__((unused)) v7=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=64ULL;o_op(4, 5, _a,_b);});uint64_t _b=64ULL;o_op(3, 5, _a,_b);});
+{
+uint64_t v8=0;
+uint64_t k1=({uint64_t _a=v1;uint64_t _b=64ULL;o_op(5, 5, _a,_b);});
+uint64_t c1=0;
+for(;o_op(8,5, v8, k1);v8=o_op(1,5, v8,1)){
+if(c1++>=1000000)o_trap(4);
+{uint64_t _i=v8;uint64_t _v=o_get(v0, v0_n, ({uint64_t _a=v7;uint64_t _b=v8;o_op(1, 5, _a,_b);}), 2);o_put(v3, v3_n, _i,_v,2);}
+}
+}
+({uint64_t p4=v1;f43(v4, v4_n, v5, v5_n, v6, v6_n, v3, v3_n, p4);});
+({f42(v4, v4_n, v2, v2_n);});
+return o_leave(0ULL);
+}
+static uint64_t f45(const void *v0, uint64_t v0_n, uint64_t v1, void *v2, uint64_t v2_n){
+o_enter();
+uint8_t v3[128]={0};
+uint64_t v3_n=128;
+o_fill(v3, v3_n, 0ULL, 2);
+uint32_t v4[8]={0};
+uint64_t v4_n=8;
+o_fill(v4, v4_n, 0ULL, 4);
+uint32_t v5[64]={0};
+uint64_t v5_n=64;
+o_fill(v5, v5_n, 0ULL, 4);
+uint32_t v6[64]={0};
+uint64_t v6_n=64;
+o_fill(v6, v6_n, 0ULL, 4);
+if(({uint64_t _a=v1;uint64_t _b=16384ULL;o_op(10, 5, _a,_b);})){
+return o_leave(18446744073709551615ULL);
+}
+({f35(v6, v6_n);});
+({f36(v4, v4_n);});
+{
+uint64_t v7=0;
+uint64_t k1=({uint64_t _a=v1;uint64_t _b=64ULL;o_op(4, 5, _a,_b);});
+uint64_t c1=0;
+for(;o_op(8,5, v7, k1);v7=o_op(1,5, v7,1)){
+if(c1++>=1000000)o_trap(4);
+({uint64_t p2=({uint64_t _a=v7;uint64_t _b=64ULL;o_op(3, 5, _a,_b);});f38(v5, v5_n, v0, v0_n, p2);});
+({f41(v4, v4_n, v5, v5_n, v6, v6_n);});
+}
+}
+uint64_t __attribute__((unused)) v7=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=64ULL;o_op(4, 5, _a,_b);});uint64_t _b=64ULL;o_op(3, 5, _a,_b);});
+{
+uint64_t v8=0;
+uint64_t k1=({uint64_t _a=v1;uint64_t _b=64ULL;o_op(5, 5, _a,_b);});
+uint64_t c1=0;
+for(;o_op(8,5, v8, k1);v8=o_op(1,5, v8,1)){
+if(c1++>=1000000)o_trap(4);
+{uint64_t _i=v8;uint64_t _v=o_get(v0, v0_n, ({uint64_t _a=v7;uint64_t _b=v8;o_op(1, 5, _a,_b);}), 2);o_put(v3, v3_n, _i,_v,2);}
+}
+}
+({uint64_t p4=v1;f43(v4, v4_n, v5, v5_n, v6, v6_n, v3, v3_n, p4);});
+({f42(v4, v4_n, v2, v2_n);});
+return o_leave(0ULL);
+}
+static uint64_t f46(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3){
+o_enter();
+uint64_t __attribute__((unused)) v4=({uint64_t _a=v2;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});
+uint64_t __attribute__((unused)) v5=({uint64_t _a=v3;uint64_t _b=o_get(v0, v0_n, 2ULL, 5);o_op(3, 5, _a,_b);});
+{uint64_t _i=({uint64_t _a=v4;uint64_t _b=3ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t _a=v5;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
+v5=({uint64_t _a=v3;uint64_t _b=o_get(v0, v0_n, 4ULL, 5);o_op(3, 5, _a,_b);});
+v5=({uint64_t _a=v5;uint64_t _b=o_get(v0, v0_n, 3ULL, 5);o_op(3, 5, _a,_b);});
+{uint64_t _i=({uint64_t _a=v4;uint64_t _b=4ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t _a=v5;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=({uint64_t _a=v4;uint64_t _b=5ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t _a=v5;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
+v5=({uint64_t _a=v3;uint64_t _b=o_get(v0, v0_n, 4ULL, 5);o_op(3, 5, _a,_b);});
+v5=({uint64_t _a=v5;uint64_t _b=o_get(v0, v0_n, 2ULL, 5);o_op(3, 5, _a,_b);});
+{uint64_t _i=({uint64_t _a=v4;uint64_t _b=6ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t _a=v5;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=({uint64_t _a=v4;uint64_t _b=7ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t _a=v3;uint64_t _b=o_get(v0, v0_n, 5ULL, 5);o_op(3, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
+return o_leave(0);
+}
+static uint64_t f47(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4){
+o_enter();
+uint64_t __attribute__((unused)) v5=({uint64_t _a=v2;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});
+uint64_t __attribute__((unused)) v6=({uint64_t _a=v4;uint64_t _b=o_get(v0, v0_n, 4ULL, 5);o_op(3, 5, _a,_b);});
+{uint64_t _i=v5;uint64_t _v=v3;o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=({uint64_t _a=v5;uint64_t _b=1ULL;o_op(1, 5, _a,_b);});uint64_t _v=v4;o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=({uint64_t _a=v5;uint64_t _b=2ULL;o_op(1, 5, _a,_b);});uint64_t _v=v6;o_put(v1, v1_n, _i,_v,5);}
+({uint64_t p2=v2;uint64_t p3=v3;f46(v0, v0_n, v1, v1_n, p2, p3);});
+return o_leave(0);
+}
+static uint64_t f48(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, void *v2, uint64_t v2_n){
+o_enter();
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 0ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 1ULL, 5);uint64_t _b=128ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 2ULL, 5);uint64_t _b=2048ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 3ULL, 5);uint64_t _b=512ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 4ULL, 5);uint64_t _b=9ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 5ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 5ULL, 5);uint64_t _b=4294967295ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 5ULL, 5);uint64_t _b=16ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 6ULL, 5);uint64_t _b=128ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+uint64_t __attribute__((unused)) v3=({uint64_t _a=128ULL;uint64_t _b=9ULL;o_op(4, 5, _a,_b);});
+uint64_t __attribute__((unused)) v4=({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 1ULL, 5);uint64_t _b=({uint64_t _a=v3;uint64_t _b=1ULL;o_op(2, 5, _a,_b);});o_op(1, 5, _a,_b);});uint64_t _b=v3;o_op(4, 5, _a,_b);});
+if(({uint64_t _a=v4;uint64_t _b=o_get(v0, v0_n, 6ULL, 5);o_op(10, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+uint64_t __attribute__((unused)) v5=0ULL;
+{
+uint64_t v6=0;
+uint64_t c1=0;
+for(;o_op(8,5, v6, v4);v6=o_op(1,5, v6,1)){
+if(c1++>=1000000)o_trap(4);
+uint64_t __attribute__((unused)) v7=({uint64_t _a=o_get(v0, v0_n, 1ULL, 5);uint64_t _b=v5;o_op(2, 5, _a,_b);});
+if(({uint64_t _a=v7;uint64_t _b=v3;o_op(10, 5, _a,_b);})){
+v7=v3;
+}
+({uint64_t p2=v6;uint64_t p3=v5;uint64_t p4=v7;f47(v0, v0_n, v1, v1_n, p2, p3, p4);});
+v5=({uint64_t _a=v5;uint64_t _b=v7;o_op(1, 5, _a,_b);});
+}
+}
+{uint64_t _i=0ULL;uint64_t _v=v4;o_put(v2, v2_n, _i,_v,5);}
+{uint64_t _i=1ULL;uint64_t _v=o_get(v0, v0_n, 1ULL, 5);o_put(v2, v2_n, _i,_v,5);}
+{uint64_t _i=2ULL;uint64_t _v=({uint64_t _a=o_get(v0, v0_n, 1ULL, 5);uint64_t _b=9ULL;o_op(3, 5, _a,_b);});o_put(v2, v2_n, _i,_v,5);}
+{uint64_t _i=3ULL;uint64_t _v=1ULL;o_put(v2, v2_n, _i,_v,5);}
+return o_leave(0ULL);
+}
+static uint64_t f49(void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2){
+o_enter();
+{
+uint64_t v3=0;
+uint64_t k1=4ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+{uint64_t _i=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);});uint64_t _v=o_cast(2, 5, ({uint64_t _a=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=v3;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(16, 5, _a,_b);});uint64_t _b=255ULL;o_op(12, 5, _a,_b);}));o_put(v0, v0_n, _i,_v,2);}
+}
+}
+return o_leave(0);
+}
+static uint64_t f50(void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2){
+o_enter();
+({uint64_t p1=v1;uint64_t p2=({uint64_t _a=v2;uint64_t _b=4294967295ULL;o_op(12, 5, _a,_b);});f49(v0, v0_n, p1, p2);});
+({uint64_t p1=({uint64_t _a=v1;uint64_t _b=1ULL;o_op(1, 5, _a,_b);});uint64_t p2=({uint64_t _a=v2;uint64_t _b=32ULL;o_op(16, 5, _a,_b);});f49(v0, v0_n, p1, p2);});
+return o_leave(0);
+}
+static uint64_t f51(const void *v0, uint64_t v0_n, uint64_t v1){
+o_enter();
+if(({uint64_t _a=v1;uint64_t _b=3ULL;o_op(8, 5, _a,_b);})){
+uint64_t __attribute__((unused)) v2=({uint64_t _a=9ULL;uint64_t _b=16ULL;o_op(3, 5, _a,_b);});
+if(({uint64_t _a=v1;uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+v2=({uint64_t _a=8ULL;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});
+}
+return o_leave(({uint64_t _a=({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 8ULL, 5);uint64_t _b=1ULL;o_op(2, 5, _a,_b);});uint64_t _b=o_get(v0, v0_n, 7ULL, 5);o_op(3, 5, _a,_b);});uint64_t _b=v2;o_op(1, 5, _a,_b);}));
+}
+if(({uint64_t _a=v1;uint64_t _b=5ULL;o_op(8, 5, _a,_b);})){
+return o_leave(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 8ULL, 5);uint64_t _b=9ULL;o_op(3, 5, _a,_b);});uint64_t _b=32ULL;o_op(3, 5, _a,_b);}));
+}
+return o_leave(({uint64_t _a=({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 8ULL, 5);uint64_t _b=9ULL;o_op(3, 5, _a,_b);});uint64_t _b=8ULL;o_op(1, 5, _a,_b);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);}));
+}
+static uint64_t f52(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3){
+o_enter();
+if(({uint64_t _a=v0;uint64_t _b=({uint64_t _a=v2;uint64_t _b=v3;o_op(1, 5, _a,_b);});o_op(11, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+return o_leave(({uint64_t _a=v2;uint64_t _b=({uint64_t _a=v0;uint64_t _b=v1;o_op(1, 5, _a,_b);});o_op(8, 5, _a,_b);}));
+}
+static uint64_t f53(const void *v0, uint64_t v0_n){
+o_enter();
+{
+uint64_t v1=0;
+uint64_t k1=7ULL;
+for(;o_op(8,5, v1, k1);v1=o_op(1,5, v1,1)){
+uint64_t __attribute__((unused)) v2=({uint64_t p1=v1;f51(v0, v0_n, p1);});
+if(({uint64_t _a=o_get(v0, v0_n, v1, 5);uint64_t _b=({uint64_t _a=18446744073709551615ULL;uint64_t _b=v2;o_op(2, 5, _a,_b);});o_op(10, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+}
+}
+{
+uint64_t v1=0;
+uint64_t k1=4ULL;
+for(;o_op(8,5, v1, k1);v1=o_op(1,5, v1,1)){
+{
+uint64_t v2=0;
+uint64_t k2=({uint64_t _a=v1;uint64_t _b=3ULL;o_op(1, 5, _a,_b);});
+uint64_t c2=0;
+for(;o_op(8,5, v2, k2);v2=o_op(1,5, v2,1)){
+if(c2++>=1000000)o_trap(4);
+uint64_t __attribute__((unused)) v3=({uint64_t p1=v2;f51(v0, v0_n, p1);});
+uint64_t __attribute__((unused)) v4=({uint64_t p1=({uint64_t _a=v1;uint64_t _b=3ULL;o_op(1, 5, _a,_b);});f51(v0, v0_n, p1);});
+if(({uint64_t p0=o_get(v0, v0_n, v2, 5);uint64_t p1=v3;uint64_t p2=o_get(v0, v0_n, ({uint64_t _a=v1;uint64_t _b=3ULL;o_op(1, 5, _a,_b);}), 5);uint64_t p3=v4;f52(p0, p1, p2, p3);})){
+return o_leave(1ULL);
+}
+}
+}
+}
+}
+return o_leave(0ULL);
+}
+static uint64_t f54(const void *v0, uint64_t v0_n, void *v1, uint64_t v1_n){
+o_enter();
+if(({uint64_t _a=o_get(v0, v0_n, 8ULL, 5);uint64_t _b=128ULL;o_op(10, 5, _a,_b);})){
+return o_leave(1ULL);
+}
+uint64_t __attribute__((unused)) v2=({uint64_t _a=o_get(v0, v0_n, 8ULL, 5);uint64_t _b=9ULL;o_op(3, 5, _a,_b);});
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 8ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v2;uint64_t _b=128ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 11ULL, 5);uint64_t _b=9ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 15ULL, 5);uint64_t _b=256ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(1ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 9ULL, 5);uint64_t _b=v2;o_op(8, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 10ULL, 5);uint64_t _b=({uint64_t _a=v2;uint64_t _b=8ULL;o_op(1, 5, _a,_b);});o_op(8, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=4294967295ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=({uint64_t _a=9ULL;uint64_t _b=16ULL;o_op(3, 5, _a,_b);});o_op(8, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, 7ULL, 5);uint64_t _b=16ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+{
+uint64_t v3=0;
+uint64_t k1=7ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+if(({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, v3, 5);uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=o_get(v0, v0_n, v3, 5);uint64_t _b=8ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+}
+}
+if(({uint64_t _a=o_get(v0, v0_n, 12ULL, 5);uint64_t _b=o_get(v0, v0_n, 13ULL, 5);o_op(7, 5, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({uint64_t _a=o_get(v0, v0_n, 14ULL, 5);uint64_t _b=1ULL;o_op(7, 5, _a,_b);})){
+return o_leave(4ULL);
+}
+if(({f53(v0, v0_n);})){
+return o_leave(5ULL);
+}
+{
+uint64_t v3=0;
+uint64_t k1=7ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+({uint64_t p1=({uint64_t _a=v3;uint64_t _b=2ULL;o_op(3, 5, _a,_b);});uint64_t p2=o_get(v0, v0_n, v3, 5);f50(v1, v1_n, p1, p2);});
+}
+}
+({uint64_t p1=14ULL;uint64_t p2=o_get(v0, v0_n, 7ULL, 5);f49(v1, v1_n, p1, p2);});
+({uint64_t p1=15ULL;uint64_t p2=o_get(v0, v0_n, 8ULL, 5);f49(v1, v1_n, p1, p2);});
+return o_leave(0ULL);
+}
+static uint64_t f55(const void *v0, uint64_t v0_n, uint64_t v1){
+o_enter();
+uint64_t __attribute__((unused)) v2=0ULL;
+{
+uint64_t v3=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+v2=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=o_cast(5, 2, o_get(v0, v0_n, ({uint64_t _a=({uint64_t _a=v1;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);}), 2));uint64_t _b=({uint64_t _a=v3;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});
+}
+}
+return o_leave(v2);
+}
+static uint64_t f56(void *v0, uint64_t v0_n, uint64_t v1, uint64_t v2){
+o_enter();
+{
+uint64_t v3=0;
+uint64_t k1=8ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+{uint64_t _i=({uint64_t _a=({uint64_t _a=v1;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);});uint64_t _v=o_cast(2, 5, ({uint64_t _a=({uint64_t _a=v2;uint64_t _b=({uint64_t _a=v3;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(16, 5, _a,_b);});uint64_t _b=255ULL;o_op(12, 5, _a,_b);}));o_put(v0, v0_n, _i,_v,2);}
+}
+}
+return o_leave(0);
+}
+static uint64_t f57(const void *v0, uint64_t v0_n, uint64_t v1, const void *v2, uint64_t v2_n){
+o_enter();
+if(({uint64_t _a=v1;uint64_t _b=64ULL;o_op(11, 5, _a,_b);})){
+return o_leave(0ULL);
+}
+{
+uint64_t v3=0;
+uint64_t k1=32ULL;
+for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
+if(({uint64_t _a=o_get(v0, v0_n, ({uint64_t _a=({uint64_t _a=1024ULL;uint64_t _b=({uint64_t _a=v1;uint64_t _b=32ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);}), 2);uint64_t _b=o_get(v2, v2_n, v3, 2);o_op(7, 2, _a,_b);})){
+return o_leave(0ULL);
+}
+}
+}
+return o_leave(1ULL);
+}
+static uint64_t f58(uint64_t v0){
+o_enter();
+if(({uint64_t _a=v0;uint64_t _b=8ULL;o_op(8, 5, _a,_b);})){
+return o_leave(({uint64_t _a=32ULL;uint64_t _b=({uint64_t _a=v0;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);}));
+}
+return o_leave(({uint64_t _a=80ULL;uint64_t _b=({uint64_t _a=({uint64_t _a=v0;uint64_t _b=8ULL;o_op(2, 5, _a,_b);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);}));
+}
+static uint64_t f59(const void *v0, uint64_t v0_n, uint64_t v1){
+o_enter();
+uint64_t __attribute__((unused)) v2=({uint64_t p1=5ULL;f55(v0, v0_n, p1);});
+if(({uint64_t _a=v1;uint64_t _b=4ULL;o_op(8, 5, _a,_b);})){
+uint64_t __attribute__((unused)) v3=144ULL;
+if(({uint64_t _a=v1;uint64_t _b=2ULL;o_op(8, 5, _a,_b);})){
+v3=32ULL;
+}
+return o_leave(({uint64_t _a=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=1ULL;o_op(2, 5, _a,_b);});uint64_t _b=({uint64_t p1=16ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=v3;o_op(1, 5, _a,_b);}));
+}
+if(({uint64_t _a=v1;uint64_t _b=6ULL;o_op(8, 5, _a,_b);})){
+return o_leave(({uint64_t _a=({uint64_t p1=74ULL;f55(v0, v0_n, p1);});uint64_t _b=32ULL;o_op(3, 5, _a,_b);}));
+}
+if(({uint64_t _a=v1;uint64_t _b=8ULL;o_op(8, 5, _a,_b);})){
+return o_leave(({uint64_t _a=({uint64_t p1=73ULL;f55(v0, v0_n, p1);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);}));
+}
+if(({uint64_t _a=v1;uint64_t _b=8ULL;o_op(6, 5, _a,_b);})){
+return o_leave(({uint64_t _a=({uint64_t _a=v2;uint64_t _b=({uint64_t p1=9ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);}));
+}
+if(({uint64_t _a=v1;uint64_t _b=9ULL;o_op(6, 5, _a,_b);})){
+return o_leave(({uint64_t _a=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=9ULL;o_op(3, 5, _a,_b);});uint64_t _b=({uint64_t p1=10ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=8ULL;o_op(3, 5, _a,_b);}));
+}
+if(({uint64_t _a=v1;uint64_t _b=12ULL;o_op(8, 5, _a,_b);})){
+return o_leave(({uint64_t _a=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=9ULL;o_op(3, 5, _a,_b);});uint64_t _b=({uint64_t p1=10ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);}));
+}
+if(({uint64_t _a=v1;uint64_t _b=12ULL;o_op(6, 5, _a,_b);})){
+return o_leave(({uint64_t _a=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=9ULL;o_op(3, 5, _a,_b);});uint64_t _b=({uint64_t p1=9ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);}));
+}
+if(({uint64_t _a=v1;uint64_t _b=13ULL;o_op(6, 5, _a,_b);})){
+return o_leave(({uint64_t _a=({uint64_t _a=v2;uint64_t _b=({uint64_t p1=9ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);}));
+}
+return o_leave(1ULL);
+}
+static uint64_t f60(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t v1[16]={0};
+uint64_t v1_n=16;
+o_fill(v1, v1_n, 0ULL, 5);
+{
+uint64_t v2=0;
+uint64_t k1=16ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+uint64_t __attribute__((unused)) v3=({uint64_t p0=v2;f58(p0);});
+uint64_t __attribute__((unused)) v4=({uint64_t p1=v3;f55(v0, v0_n, p1);});
+uint64_t __attribute__((unused)) v5=({uint64_t p1=({uint64_t _a=v3;uint64_t _b=1ULL;o_op(1, 5, _a,_b);});f55(v0, v0_n, p1);});
+if(({uint64_t _a=({uint64_t _a=v4;uint64_t _b=0ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=8ULL;o_op(5, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=v5;uint64_t _b=({uint64_t p1=v2;f59(v0, v0_n, p1);});o_op(8, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=v4;uint64_t _b=({uint64_t _a=18446744073709551615ULL;uint64_t _b=v5;o_op(2, 5, _a,_b);});o_op(10, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+uint64_t __attribute__((unused)) v6=({uint64_t p1=19ULL;f55(v0, v0_n, p1);});
+if(({uint64_t _a=v2;uint64_t _b=14ULL;o_op(11, 5, _a,_b);})){
+v6=({uint64_t p1=22ULL;f55(v0, v0_n, p1);});
+}
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=v3;uint64_t _b=2ULL;o_op(1, 5, _a,_b);});f55(v0, v0_n, p1);});uint64_t _b=v6;o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=v3;uint64_t _b=3ULL;o_op(1, 5, _a,_b);});f55(v0, v0_n, p1);});uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+}
+}
+{uint64_t _i=0ULL;uint64_t _v=({uint64_t _a=({uint64_t p1=32ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t p1=6ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t p1=16ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=1ULL;uint64_t _v=({uint64_t _a=({uint64_t p1=40ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t p1=6ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t p1=16ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=2ULL;uint64_t _v=({uint64_t _a=({uint64_t p1=44ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t p1=6ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t p1=16ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=3ULL;uint64_t _v=({uint64_t p1=48ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=4ULL;uint64_t _v=({uint64_t p1=52ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=5ULL;uint64_t _v=({uint64_t p1=56ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=6ULL;uint64_t _v=({uint64_t p1=60ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=7ULL;uint64_t _v=({uint64_t p1=16ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=8ULL;uint64_t _v=({uint64_t p1=7ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+if(({f53(v1, v1_n);})){
+return o_leave(3ULL);
+}
+{
+uint64_t v2=0;
+uint64_t k1=4ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=({uint64_t p0=v2;f58(p0);});uint64_t _b=3ULL;o_op(1, 5, _a,_b);});f55(v0, v0_n, p1);});uint64_t _b=({uint64_t p1=16ULL;f55(v0, v0_n, p1);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+}
+}
+{
+uint64_t v2=0;
+uint64_t k1=2ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=({uint64_t p0=({uint64_t _a=v2;uint64_t _b=4ULL;o_op(1, 5, _a,_b);});f58(p0);});uint64_t _b=3ULL;o_op(1, 5, _a,_b);});f55(v0, v0_n, p1);});uint64_t _b=32ULL;o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=({uint64_t p0=({uint64_t _a=v2;uint64_t _b=6ULL;o_op(1, 5, _a,_b);});f58(p0);});uint64_t _b=3ULL;o_op(1, 5, _a,_b);});f55(v0, v0_n, p1);});uint64_t _b=4ULL;o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+}
+}
+if(({uint64_t _a=({uint64_t p1=83ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t p1=9ULL;f55(v0, v0_n, p1);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p1=87ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t _a=9ULL;uint64_t _b=({uint64_t p1=10ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=8ULL;o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+{
+uint64_t v2=0;
+uint64_t k1=2ULL;
+for(;o_op(8,5, v2, k1);v2=o_op(1,5, v2,1)){
+if(({uint64_t _a=({uint64_t p1=({uint64_t _a=91ULL;uint64_t _b=({uint64_t _a=v2;uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(1, 5, _a,_b);});f55(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t _a=9ULL;uint64_t _b=({uint64_t p1=10ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+}
+}
+if(({uint64_t _a=({uint64_t p1=99ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t _a=9ULL;uint64_t _b=({uint64_t p1=9ULL;f55(v0, v0_n, p1);});o_op(3, 5, _a,_b);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+if(({uint64_t _a=({uint64_t p1=103ULL;f55(v0, v0_n, p1);});uint64_t _b=({uint64_t _a=({uint64_t p1=9ULL;f55(v0, v0_n, p1);});uint64_t _b=4ULL;o_op(3, 5, _a,_b);});o_op(7, 5, _a,_b);})){
+return o_leave(3ULL);
+}
+return o_leave(0ULL);
+}
+static uint64_t f61(const void *v0, uint64_t v0_n){
+o_enter();
+uint64_t v1[8]={0};
+uint64_t v1_n=8;
+o_fill(v1, v1_n, 0ULL, 5);
+uint64_t v2[1024]={0};
+uint64_t v2_n=1024;
+o_fill(v2, v2_n, 0ULL, 5);
+uint64_t v3[4]={0};
+uint64_t v3_n=4;
+o_fill(v3, v3_n, 0ULL, 5);
+{uint64_t _i=0ULL;uint64_t _v=1ULL;o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=1ULL;uint64_t _v=({uint64_t p1=5ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=2ULL;uint64_t _v=({uint64_t p1=9ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=3ULL;uint64_t _v=({uint64_t p1=10ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=4ULL;uint64_t _v=({uint64_t p1=13ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=5ULL;uint64_t _v=({uint64_t p1=16ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=6ULL;uint64_t _v=({uint64_t p1=15ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+{uint64_t _i=7ULL;uint64_t _v=({uint64_t p1=75ULL;f55(v0, v0_n, p1);});o_put(v1, v1_n, _i,_v,5);}
+if(({uint64_t _a=({f48(v1, v1_n, v2, v2_n, v3, v3_n);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+if(({uint64_t _a=o_get(v3, v3_n, 0ULL, 5);uint64_t _b=({uint64_t p1=3ULL;f55(v0, v0_n, p1);});o_op(7, 5, _a,_b);})){
+return o_leave(2ULL);
+}
+{
+uint64_t v4=0;
+uint64_t k1=1024ULL;
+for(;o_op(8,5, v4, k1);v4=o_op(1,5, v4,1)){

The diff is longer than this page shows; the raw diff has all of it.