omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / ng / front / COVERAGE.md
| 1 | # NG front coverage |
| 2 | |
| 3 | The inventory and dated checkpoints below are historical measurements at the named |
| 4 | revisions. Current contract and data lowering is described in the final sections. |
| 5 | |
| 6 | ## Baseline at a59a425b |
| 7 | |
| 8 | The oracle is seed/out/omc, SHA256 6d1b1cf5a44803389a831b67f750ea4cd1c9f53edfde9d6d9241d7352887f1f8. |
| 9 | The check pass and lowering are separate. FRONTGATE checks accept/refuse diagnostics, not execution. |
| 10 | Baseline FRONTGATE: 6322 cases, exact 6205, beyond 11, scope 105, ngonly 1; failures 0; mutants killed 5/5. |
| 11 | Baseline FRONTIRGATE: 62 cases, run 32, refuse 30; failures 0; mutants killed 3/3; controls tripped 2/2; NOT_RUN 0. |
| 12 | |
| 13 | ## Exhaustive vocabulary inventory |
| 14 | |
| 15 | The seeded tables kw and kw2 in seed/omc/omc.om and OMEGESE sections 9, 10, 12 are the authorities. |
| 16 | Y means lowered, P partial, N not lowered, R a reserved spelling without an accepted executable form. |
| 17 | A word being listed Y does not claim that a program containing other missing constructs lowers. |
| 18 | Counts below are MEASURED tracked-file whole-word occurrences across seed/, om/, tests/ (1488 .om files), |
| 19 | including notes and negative fixtures. OM-2-only counts (nominal, layout, fresh, contract, hygiene and unit words) |
| 20 | use 635 files: the 634 with an `om2` line plus seed/omc/omc.om, whose notes name every word, so OM-2 units alone |
| 21 | give each of those counts one less. Counts rank investigation demand, not executed use or language acceptance. |
| 22 | The packed C2 manifest is surveyed separately. |
| 23 | |
| 24 | | Words or construct | Baseline IR emitted | Same behavior | Gap | |
| 25 | |---|---|---|---| |
| 26 | | bool, uchar/u8, ushort/u16, uint/u32, ulong/u64, byte/i8, short/i16, int/i32, long/i64, f32, f64, void | P | Fixture-scoped only; generally unproven | subject to construct coverage; bool and qty constants lower | |
| 27 | | qty | Y (ng-front-groups-7) | fixture-scoped only: every unit of tests/quantity (38 run equal, 39 refusals equal), cases/qty_shamt.om | none known for scalars, arrays, globals, constants and shift amounts | |
| 28 | | add sub mul div rem and or xor eq ne lt le gt ge neg not | P | Fixture-scoped only; generally unproven | abstract operands absent | |
| 29 | | shl shr | Y (ng-groups-4) | Fixture-scoped only (cases/sh_mix*.om, cases/qty_shamt.om); generally unproven | a bool or float amount, which omc admits, exits 64 (cases-lower-scope.txt) | |
| 30 | | rotr rotl | P | Fixture-scoped only; generally unproven | abstract operands absent | |
| 31 | | fsqrt fabs bitcast | Y | Fixture-scoped only; generally unproven | subject to operand construct coverage | |
| 32 | | fmin fmax fma | Y: fma (ng-groups-4), fmin/fmax (ng-front-groups-6) | fixture-scoped only: cases/fma_mix.om (fused against unfused), cases/fmm_mix.om (signed zeros, quiet and signaling NaNs, both widths) | none for scalar f32/f64 | |
| 33 | | true false = ( ) | Y | Fixture-scoped only; generally unproven | | |
| 34 | | get put len new | P | Fixture-scoped only; generally unproven | scalar arrays, struct fields and layout fields lower in the parent's candidate `fe_lst*`/`fe_lly*` (see Nominal section below); runtime pools lower through checked descriptor operations; see "Runtime pools" below | |
| 35 | | view edit part | Y (sized parameters as SLICE: ng-front-groups-8) | Fixture-scoped only; generally unproven | | |
| 36 | | global text const | Y (empty text, bool and qty const: ng-front-groups-7, -8) | Fixture-scoped only; generally unproven | | |
| 37 | | struct layout field at little big sizeof offsetof | Y in the candidate (seed/ng/src/front.om, uncommitted when this row was written) | host-EXERCISED only: gate-front-ir `nom-*` rows (31 run, 54 refuse) | struct bool fields (below); functions without main stay function mode | |
| 38 | | abstract ops seal open holds | Y in the candidate (`fe_lseal`) | host-EXERCISED only: gate-front-ir `nom-a-*`, `nom-abstract-*` rows | a-kept-diag and a-exact-diag (no main) stay function mode | |
| 39 | | fn to ret end | P | Fixture-scoped only; generally unproven | main must return int; units without main absent | |
| 40 | | inline for unroll while bound if else break continue trap exit | P | Fixture-scoped only; generally unproven | M1 fixtures only; signed latch wrapping was incorrect before e156056a; contracts absent | |
| 41 | | requires ensures invariant result | N | No: silent omission before the safety head | no observation-point lowering | |
| 42 | | fresh out export | N | NOT_RUN | fresh token; function-mode/out/export units absent | |
| 43 | | note | Y | Fixture-scoped only; generally unproven | ignored | |
| 44 | | own free | R | NOT_RUN | seeded parser refuses their unsupported forms | |
| 45 | | dit scrub | N | NOT_RUN | no value lowering | |
| 46 | | read write monons realns | Y | Fixture-scoped only; generally unproven | | |
| 47 | | every other host word in table below (95 with cpufence, cpurelax) | Y (ng-front-host, scheduler words ng-front-hostwords-99) | 39 of 99 host programs exit/stdout-equal to omc under ngrun; 60 lowered and ngcheck-accepted, run refused by ngrun's class (IR.md s7.11), NOT_RUN | behavior of words ngrun refuses (process and scheduler, limits, device, network, paths outside scratch, random, cpunow, syncfs) not executed | |
| 48 | | om2, om2 debug/release/diag | P | Fixture-scoped only; generally unproven | fmt and some contract policies exit 64 | |
| 49 | | om2 fmt | N | NOT_RUN | formatting output not reproduced | |
| 50 | | target x86linux/x86efi and efi, ir units | outside D8 | NOT_RUN | existing scope refusal, not an NG CPU-front implementation claim | |
| 51 | |
| 52 | ## Missing group order by real source-file demand |
| 53 | |
| 54 | 1. Host effects: fclose 134, fopen 119, argcnt 111, argread 104, fork 71, waitpid 65, sleepns 58, |
| 55 | unlink 52, killpid 47, execprog 45. Lowered host clocks: monons 103, realns 14. |
| 56 | 2. Shift operand types: shl 259, shr 230. Baseline survey first blocker in 131 packed/current inputs. (ng-groups-4 lowers integer value/amount mixes; the survey was not rerun, so the 131 is the baseline count.) |
| 57 | 3. Data edge cases: arrays new 445, globals 331, text 308, view 316, edit 259, const 103, qty 75; |
| 58 | layout 71, field 68, struct 63; fresh 45; nominal abstract 52, holds 67, seal 49, open 34. |
| 59 | 4. Contracts: requires 30, ensures 18, invariant 17, result 21; header policies on each file's first om2 line: |
| 60 | release 12, debug 1, diag 46 (fmt 11). |
| 61 | 5. Float intrinsics: fma 16, fmin 7, fmax 7; hygiene scrub 13, dit 7. (ng-groups-4 lowers fma; ng-front-groups-6 fmin/fmax.) |
| 62 | 6. Units: export 28, out 72 (whole-word counts include prose); function-mode IR entry requires an IR-owner change. |
| 63 | |
| 64 | All ordinary loop/branch forms already have lowering; they need complete fixtures, not a replacement parser. |
| 65 | |
| 66 | ## Every host keyword and candidate-file count |
| 67 | |
| 68 | All entries are N at baseline except read/write/monons/realns, which are Y. |
| 69 | |
| 70 | | Word | Files | Word | Files | |
| 71 | |---|---:|---|---:| |
| 72 | | read | 259 | write | 354 | |
| 73 | | fclose | 134 | fsync | 16 | |
| 74 | | fchmod | 8 | fseek | 22 | |
| 75 | | socknew | 14 | listen | 7 | |
| 76 | | accept | 29 | fork | 71 | |
| 77 | | dupfd | 34 | monons | 103 | |
| 78 | | fopen | 119 | unlink | 52 | |
| 79 | | makedir | 38 | getdnts | 14 | |
| 80 | | connect | 16 | bind | 16 | |
| 81 | | waitpid | 65 | fstat | 15 | |
| 82 | | recv | 8 | send | 13 | |
| 83 | | sleepns | 58 | argcnt | 111 | |
| 84 | | argread | 104 | waitio | 17 | |
| 85 | | execprog | 45 | renames | 17 | |
| 86 | | rmdir | 8 | killpid | 47 | |
| 87 | | pipefds | 17 | getpid | 37 | |
| 88 | | realns | 14 | sockname | 7 | |
| 89 | | cwd | 7 | readlnk | 8 | |
| 90 | | sockopt | 5 | random | 22 | |
| 91 | | envcnt | 9 | envread | 8 | |
| 92 | | chdir | 6 | ftrunc | 9 | |
| 93 | | stat | 28 | link | 16 | |
| 94 | | symlnk | 8 | chmod | 8 | |
| 95 | | faccess | 4 | getuid | 8 | |
| 96 | | geteuid | 9 | getgid | 7 | |
| 97 | | getegid | 5 | lstat | 10 | |
| 98 | | truncate | 14 | chown | 2 | |
| 99 | | fchdir | 2 | getppid | 6 | |
| 100 | | umask | 3 | fdsync | 6 | |
| 101 | | memfd | 8 | setsid | 3 | |
| 102 | | getpgid | 2 | setpgid | 11 | |
| 103 | | pread | 24 | pwrite | 14 | |
| 104 | | getsid | 2 | syncfs | 2 | |
| 105 | | shutdown | 4 | devctl | 7 | |
| 106 | | mapnew | 27 | mapdrop | 25 | |
| 107 | | mapread | 19 | mapwrite | 18 | |
| 108 | | devcall | 7 | uvmctl | 7 | |
| 109 | | mapaddr | 8 | mapget | 29 | |
| 110 | | mapset | 26 | maphold | 6 | |
| 111 | | mapbind | 6 | flock | 9 | |
| 112 | | execpure | 11 | cpufence | 7 | |
| 113 | | cpurelax | 7 | peercred | 2 | |
| 114 | | pollfds | 15 | sendmsg | 4 | |
| 115 | | peername | 3 | vfioctl | 3 | |
| 116 | | vfiomap | 4 | vfiomapw | 4 | |
| 117 | | eventfd | 17 | vfioirq | 4 | |
| 118 | | execenv | 5 | prlimit | 8 | |
| 119 | |
| 120 | ## Baseline source survey |
| 121 | |
| 122 | All 5874 packed C2 sources and 1488 tracked .om sources were sent through front-ir (7362 inputs). |
| 123 | Two cyclic size-generator C2 inputs were not materialized in this survey; FRONTGATE covers them. |
| 124 | The per-input result tables are uncommitted lane evidence (hand-off READY-omega-mv-ng-front-coverage-2 names their path); their sha256 values are |
| 125 | tree.tsv 1319f3cdc9a1896472a0b365ed3b50fef7dfe5b88ad7d26310436ed0199c3ea7 (1488 rows), |
| 126 | c2.tsv 95d0a7b52ef52d9d9a191fcc7c30b3e9073d733c71c8565270ab39c27a395058 (5874 rows) and |
| 127 | site.tsv 7c7bfa56a76cbeaec867e8894f6ebff0761b50b023dd53139824089c3fb3412f (7362 rows). |
| 128 | 674 emitted IR (this alone is not behavioral parity); 850 reached a lowering/scope refusal. Other inputs were rejected by the check pass. |
| 129 | First refusal site counts (not additive demand estimates): no main 250, missing value dispatcher 220 (172 host-bearing first-blocker lines, 48 other expressions), |
| 130 | unequal shift types 131, D8 scope 116, non-int main signature 42, top-level declaration 19, |
| 131 | struct/layout parameter kinds 16, contract-prefix unresolved calls 16, fmt/contract policy 10, fresh signature 9, |
| 132 | unsupported nominal type 8, unsupported scalar type reader 4, unconsumed allocation queue 1, CPU statement 1, |
| 133 | empty text 6, sized text argument 1. |
| 134 | Several accepted function units end at EOF and intentionally have no main. They are not malformed programs. |
| 135 | |
| 136 | ## Reproduction and evidence boundary |
| 137 | |
| 138 | The standing commands are in README.md. The frozen manifest is seed/qualification/om2/manifest-c2.txt. |
| 139 | The baseline source survey records lowering availability, not stdout/exit parity. A program rejected by the |
| 140 | check pass is never executed. Execution uses FRONTIRGATE only after omc and ng both accepted and ngcheck accepted. |
| 141 | No function-mode blob is executed as an ELF. Function-mode units are explicitly outside this run per Main. Host programs need the independently owned ngrun host extension; |
| 142 | IR acceptance alone is not execution evidence. |
| 143 | |
| 144 | ## This run: prioritized corrections and contract safety |
| 145 | |
| 146 | Main narrowed this run to signed-latch overflow, float-to-integer saturation, this inventory, and at most |
| 147 | one lowering group. The initial demand order put host effects first: 172 accepted-source first-blocker lines contain an unlowered |
| 148 | host word, versus 131 unequal-shift operand-type blockers. Recorded lines are capped at 80 bytes, so the |
| 149 | host-bearing line count is a lower bound, not a sum of distinct word demands. No function-mode ABI or |
| 150 | whole-language completion is claimed. Main subsequently replaced the host group with contract safety, |
| 151 | because several accepted IR units silently omitted contracts. Host lowering is deferred in ham/NEXT.md. |
| 152 | |
| 153 | | Construct | Before | After signed-latch head | Float candidate, not READY | |
| 154 | |---|---|---|---| |
| 155 | | signed for latch after body writes max | unchecked wrap, then trap 4 | chk.add trap 1, like omc; i8/i64 both exercised | unchanged | |
| 156 | | float to each integer width | incorrect trapping chk.conv | unchanged | proposed total IR conv; final edge-input forms NOT_RUN | |
| 157 | | integer to integer narrowing | checked conversion | unchanged | range check retained | |
| 158 | | all other missing rows above | not widened | unchanged | unchanged | |
| 159 | |
| 160 | The signed-latch head e156056aea955a1e1ac6b881cef0cd660158e3b9 is based on Radicle main |
| 161 | 19ed248e73c43bd8ee27fc99582f466123ef5cd5, cherry-picking CompilerBugHunt b498dc3c with credit. |
| 162 | FRONTGATE PASS 6322, FRONTIRGATE PASS 64 (34 run / 30 refuse), all eight mutants killed and both controls |
| 163 | tripped across the two gates. Pre-fix NG: both latch reproducers exit 104, omc exits 101; fixed NG exits 101. |
| 164 | |
| 165 | Coverage is a source and fixture inventory, not qualification. MERGED, DEPLOYED and hardware QUALIFIED |
| 166 | are not inferred from host gates. The separate READY files name exact heads, commands and measured counts. |
| 167 | |
| 168 | ### Semantic coverage warning |
| 169 | |
| 170 | IR emission is not evidence of equal behavior. In particular, short native contract clauses were |
| 171 | misread as local assignments, so false/requires/void/fallthrough emitted IR without their required |
| 172 | checks. Their runtime counterexamples and fail-closed correction belong to the separate contract |
| 173 | safety head. Other unqualified rows above remain unproven outside the named differential fixtures; |
| 174 | no whole-language or every-program semantic-equivalence claim follows from the inventory. |
| 175 | |
| 176 | ## Delivered contract-safety head |
| 177 | |
| 178 | 86d9ba1ebd8497600e67173b002f39ae7052f057, parent e156056aea955a1e1ac6b881cef0cd660158e3b9. |
| 179 | |
| 180 | | Contract fixture | omc runtime | Previous NG runtime | Delivered front-ir | Same runtime behavior proved? | |
| 181 | |---|---:|---:|---|---| |
| 182 | | false, requires | 109 | 0 | exit 64, zero output bytes | No: safely not lowered | |
| 183 | | void, fallthrough | 110 | 0 | exit 64, zero output bytes | No: safely not lowered | |
| 184 | |
| 185 | The central clause-recognition guard covers requires, ensures and invariant before any IR is written. |
| 186 | FRONTGATE PASS 6322 (5/5 mutants); FRONTIRGATE PASS 64 (3/3 mutants, 2/2 controls); dedicated |
| 187 | contract scope FRONTGATE PASS 4 with the silent-path guard-removal mutant killed. This is an |
| 188 | explicitly unsupported language boundary, not a successful contract implementation. |
| 189 | |
| 190 | ## Remaining concrete work |
| 191 | |
| 192 | 1. Real contracts: preserve the guard as a fallback; consume function prefixes and lower requires to |
| 193 | chk.true code 9 at entry. Save the prefix cursor for ensures, evaluated at every normal explicit |
| 194 | or implicit return with one preserved SSA return value and current parameter/array values. Bind |
| 195 | result only during value postconditions. Emit invariant chk.true code 10 in the loop head before |
| 196 | its condition, including zero trips and final false tests; for-continue increments first, while- |
| 197 | continue returns directly to that checked head, and break/exit/trap do not invent postconditions. |
| 198 | Respect release erasure with no runtime evaluation or optimizer assumptions. Consume fresh array |
| 199 | signature markers and permit diagnostic mode without changing the check pass. Exercise every |
| 200 | source and applicable row of seed/omc/contracts/contracts.cases plus observable stdout-before-trap |
| 201 | probes; retain function-mode exclusions explicitly. Replace scoped-refusal test scaffolding only |
| 202 | when the real differential and an enforcement-removal mutant pass. No unchecked fact or new op. |
| 203 | 2. Float conversion: candidate removes only the wrong float-source chk.conv; integer narrowing stays |
| 204 | checked. 160 new edge cases and the full existing convert_sat.om are prepared. Two complete runs |
| 205 | found input-literal error 8 rather than a semantic mismatch on the admitted cases. Large inputs |
| 206 | now use Wolfram-verified power-of-two constructions within fparse mantissa limits, but those final |
| 207 | spellings are NOT_RUN. Do not claim the candidate READY until all cases and negative controls pass. |
| 208 | 3. Host lowering: ng-front-host and ng-front-hostwords-99 (below) lower all 99 host words. Function-mode units, the data gaps, |
| 209 | remaining intrinsics and hygiene words remain not lowered or unproven as itemized above. |
| 210 | |
| 211 | ## ng-groups-4 (2026-11-10, branch ham/ng-front-groups-4) |
| 212 | |
| 213 | Two groups lowered, IMPLEMENTED and host-EXERCISED by gate-front-ir only (no QUALIFIED claim): |
| 214 | |
| 215 | - Mixed-type shifts. omc admits `shl`/`shr` whose integer value and amount have different types and |
| 216 | compares the amount's 64-bit register (sign- or zero-extended by its type) unsigned with the value's |
| 217 | width (`bo_schk`, trap 7). `fe_lsham` emits `conv` to u64, `lt` the width, `chk.true 7`, then `conv` to |
| 218 | the value's type (exact below the width); the existing checks of `fe_lbop` follow (signed `shl` keeps |
| 219 | `chk.shl` trap 1). Run cases `sh_mix` (ten type pairs), `sh_mix_wrap` (uchar by ulong 256: 107, never |
| 220 | a wrapped shift by 0), `sh_mix_neg` (ulong by int -1: 107), `sh_mix_width` (uint by 31 and 32: 107), |
| 221 | `sh_mix_sovf` (int 2 by uchar 30: 101). A rotate keeps one type (omc error 7, refuse case `rot_mix`). |
| 222 | A bool or float amount stays not lowered (exit 64, `cases-lower-scope.txt`). |
| 223 | - fma. ΩIR `fma` (46), one rounding, three operands of one float type; `fma_mix` prints f64 and f32 |
| 224 | results whose fused and unfused values differ. omc's refusals stay (`fma_lit` 11, `fma_types` 7). |
| 225 | |
| 226 | Still not lowered from these rows at ng-groups-4: fmin and fmax (IR.md min/max then said a NaN operand |
| 227 | gives the other, while OMEGESE and omc follow FMINNM/FMAXNM). Lowered since by ng-front-groups-6 (below). |
| 228 | |
| 229 | ## ng-front-host (2026-11-10, branch ham/ng-front-host) |
| 230 | |
| 231 | All 94 host words of `seed/ng/hostwords.tsv` lower (IMPLEMENTED, host-EXERCISED by gate-front-ir and |
| 232 | gate-front only, no QUALIFIED claim); execenv and prlimit pass the check pass as omc does (gate-front, |
| 233 | `cases-host.txt`, including their `om2 diag` site records). Under ngrun, 39 of the 94 host programs give |
| 234 | omc's exit and stdout; for the other 55 ngrun refuses the word by class (IR.md s7.11) after ngcheck accepts |
| 235 | the lowered ΩIR, so their behavior is NOT_RUN: process 11, limits 1, device 17, network 15, outside |
| 236 | scratch 9, nondeterministic 1, unsafe filesystem 1. README section "Host words" has the lowering rules. |
| 237 | |
| 238 | ## ng-front-groups-6 (2026-11-10, branch ham/ng-front-groups-6) |
| 239 | |
| 240 | fmin and fmax lower to ΩIR min/max (IMPLEMENTED, host-EXERCISED by gate-front-ir only). The IR.md rule |
| 241 | they needed (OMEGESE FMINNM/FMAXNM) and ngrun's rn_fmm arrive with ngrun-hostwords-5 (d5dba5bb), under |
| 242 | this head. Case cases/fmm_mix.om, expected bytes in cases/groups6.expect; lsc_fmin and lsc_fmax moved |
| 243 | from the lower-scope list to run cases. |
| 244 | |
| 245 | ## ng-front-groups-7 (2026-11-10, branch ham/ng-front-groups-7) |
| 246 | |
| 247 | qty lowers as u64 with checked add/sub/mul (IMPLEMENTED, host-EXERCISED by gate-front-ir and gate-front |
| 248 | only). All 77 units of tests/quantity: 38 run with omc's exit and stdout under ngrun, 39 refused with |
| 249 | omc's code and stderr. A qty shift amount (`shl ulong 1 q`, which omc admits) lowers like a ulong amount |
| 250 | (factory bay 12 review fix; before it, ng exit 64): cases/qty_shamt.om. |
| 251 | |
| 252 | ## ng-front-groups-8 (2026-11-10, branch ham/ng-front-groups-8) |
| 253 | |
| 254 | Data edges (IMPLEMENTED, host-EXERCISED by gate-front-ir and gate-front only): sized array parameters as |
| 255 | SLICEs of their declared access (texts reach sized view parameters), OM-2 `fresh` on edit parameters, empty |
| 256 | texts (empty slice of a one-byte global), bool constants. Ported from NgFrontFull's uncommitted data work |
| 257 | (preserved as omega-mv ham/ng-front-data-wip 1323c6e1; its qty and min/max parts are groups 7 and 6). |
| 258 | Still not lowered: struct, layout, field, at, little, big, sizeof, offsetof; abstract, ops, seal, open, holds; |
| 259 | out and export (function mode); contracts (fail closed). |
| 260 | |
| 261 | ## ng-front-hostwords-99 (2026-11-10, branch ham/ng-front-hostwords-99) |
| 262 | |
| 263 | The scheduler words of omc f4fa7951 (Radicle main c106bae0): cpuset 236, cpuget 237, cpunow 238, setprio 239, |
| 264 | getprio 240 (IMPLEMENTED, host-EXERCISED by gate-front-ir, gate-front and gate-ir only). hostwords.tsv and |
| 265 | ngcheck have 99 rows (class `sched`); host-audit's closed id set ends at 240 (HOSTTABLE rows=99 |
| 266 | differences=0). ngcheck accepts each lowered program; ngrun refuses cpuset, cpuget, setprio and getprio as |
| 267 | 115 and cpunow as 120, so their behavior under ngrun is NOT_RUN. Refusals: cpuget on a text (20), a long pid (7). |
| 268 | |
| 269 | ## Executable-contract and data lowering |
| 270 | |
| 271 | The dated sections above preserve earlier refusal boundaries. The current lowerer |
| 272 | executes checked function and loop prefixes, and lowers nominal types, structs and |
| 273 | layouts. See [README.md](README.md) for ordering and release policy. The canonical |
| 274 | compiler contract manifest feeds the differential gate directly. Function mode |
| 275 | remains separate work. Runtime-pool lowering is described below. |
| 276 | |
| 277 | ## Nominal, struct and layout lowering: current gate coverage |
| 278 | |
| 279 | The implementation and its regression cases are part of this source. This describes |
| 280 | the checks, not hardware qualification. The authoritative case list is |
| 281 | [cases-front-ir.txt](cases-front-ir.txt), including the `nom-*` rows; derive counts |
| 282 | from that file rather than treating historical counts above as current. |
| 283 | |
| 284 | The gate exercises: |
| 285 | |
| 286 | - Canonical nominal, layout, struct, float-struct, size and long-name cases, with |
| 287 | accepted programs executed and refusals compared by exit and diagnostic bytes. |
| 288 | Function-mode units without `main` remain outside lowering scope. |
| 289 | - Struct units whose `main` returns uint, ulong or long through wrapped copies |
| 290 | `cases/nom_tN.om`. [nom-wrap.sh](cases/nom-wrap.sh) regenerates and checks them; |
| 291 | `main to int` is the lowered entry signature. |
| 292 | - Evaluation order and bounds: index before value, index traps before value |
| 293 | overflow, field-cell boundaries, all scalar widths, untouched neighbouring |
| 294 | fields, layout byte order and short-buffer refusals, and operand ordering before |
| 295 | retained nominal checks. |
| 296 | - Boolean field storage through [nom_struct_bool.om](cases/nom_struct_bool.om). |
| 297 | The compiler load/store and NG boolean-cell conversions are fixed; the prior |
| 298 | SIGILL and invalid numeric-conversion behavior is covered by regressions. |
| 299 | - Deliberately wrong field offsets, bounds, layout byte order and nominal checks |
| 300 | in [gate-front-ir.om](gate-front-ir.om). A partial case run is not a complete gate. |
| 301 | |
| 302 | Release evidence must retain the complete `FRONTIRGATE PASS` result and its source |
| 303 | and compiler identities, alongside the separate check-parity gate. |
| 304 | |
| 305 | ## Runtime pools |
| 306 | |
| 307 | The front end accepts `global NAME T *` for the ten native numeric types and lowers growth, length, |
| 308 | element access and byte I/O to the descriptor-based operations in [IR.md](../IR.md). |
| 309 | `cases/pool_runtime.om` and `seed/omc/omc.om` are ordinary check-parity cases now; their former |
| 310 | scope exclusions are removed. Existing x86/EFI and IR v1 scope exclusions remain. |
| 311 | |
| 312 | The lowering manifest reuses the canonical pool cases for growth, bounds, moving storage, |
| 313 | contracts, overflow and byte I/O. `pool-widths-order.om` covers all ten widths, multiple pools, |
| 314 | nested growth and store operand order. `pool-fd-policy.om` covers the interpreter's existing |
| 315 | descriptor restrictions. The IR and native gates separately cover malformed inputs, optimization, |
| 316 | both register-save modes and deliberate pool implementation faults. |
| 317 | |
| 318 | These fixtures define coverage, not a claim that every input or target is qualified. Release receipts |
| 319 | must include complete gate results. The interpreter has a 16 MiB live-storage budget, Mach-O pool |
| 320 | operations remain unsupported, and function mode remains separate work. |