interplane.Get Omega
Read in your language

omega-mv

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

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / ng / tests / ir / cases

380 lines · 15837 bytes Raw Blame History
1# seed/ng/tests/ir/cases: ngcheck, ngas, ngdis and ng ir-copy expectations, run by seed/ng/gate-ir.om.
2# Every refusal is judged by its whole stderr line (IR.md s10, s11) and an empty stdout; an acceptance by
3# the whole ngcheck line "ACCEPT <sha256> fns=F blocks=B ops=O" with F, B, O counted from the fixture text.
4# ng ir-copy sees every unit: classes 10, 11, 12, 14, 15, 23, 27 must give ngcheck's refusal line, any
5# other verdict the same bytes back (or, when ngcheck refuses, a refusal of its own). An explicit
6# NGEXIT NGOFF overrides only ng for the reader-capacity exceptions in IR.md s12.
7# T NAME EXIT OFFSET NAME.oir: ngas exit 0, ngdis(ngas(t)) == t, ngcheck exit and offset (- when 0)
8# S NAME LINE NAME.oir: ngas refuses, exit 3, at LINE
9# M BASE POS BYTE EXIT OFF [NGEXIT NGOFF] BASE.oir assembled, byte POS set to BYTE: ngcheck and ngdis
10# exit EXIT at OFF. Optional NGEXIT NGOFF pins ng separately (IR.md s12 exceptions).
11# C BASE LEN EXIT OFF ... cut to LEN bytes
12# A BASE BYTE EXIT OFF ... BYTE appended
13# D EXIT OFF stdin is a directory: ngcheck, ngdis and ng exit EXIT at OFF, ngas exit EXIT
14# G GEN TOOL EXIT OFF generated input (gate-ir.om gt_gen): full = a unit of exactly 16777216 bytes,
15# over = full + 1 byte, types = 65537 populated type entries; tyN, gl65537,
16# fn65537, bl65537, fp65537, bp65537 = text with N (65537) types, globals,
17# functions, blocks in one function, function or block parameters. TOOL c ngcheck,
18# d ngdis, n ng ir-copy, a ngas (OFF is a line), r ngas then ngdis gives the text back
19# x ngrun FILE (refusals only)
20# R NAME NAME.oir accepted by ngcheck and run by ngrun; NAME.om compiled by OMC and run:
21# exit status, stdout and stderr equal (D9 differential, IR.md s7 semantics)
22# Q N ngrand seeds 1..N: ngcheck ACCEPT (whole line), ngas(ngdis(b)) == b, ngrun ends
23# cleanly (exit 0..63 with 0 or 8 stdout bytes, 64..95, or a trap 101..114)
24# and the optimizer passes on each seed (as O below)
25# N NAME EXIT OFF NAME.oir run by `ngrun FILE 1000000` (a step budget): exit EXIT, empty stdout,
26# stderr empty or, for 124 / 126, "ngrun: step limit at OFF" / "ngrun: access
27# outside storage at OFF"
28# K SEED STATUS ngrand shrink SEED STATUS with ngrun as the predicate: the result is accepted,
29# ngrun exits STATUS on it, it is smaller than SEED's unit, its tape replays it
30# O NAME [ROW] seed/ng/tests/opt/NAME.oir through `@ng opt`: exit 0, stderr empty, ngcheck's
31# whole ACCEPT line, ngas(ngdis(out)) == out, ngrun before == after (exit, stdout,
32# stderr; one decimal clock line each side counts as equal), `@ng opt-count` of
33# the output a fixed point; prints "ok O NAME fns=.. loops=.. inloop=A->B ...".
34# ROW, when given (" fns=.. preheaders=.."), must equal `@ng opt-count` of the
35# input after its "opt", so each pass is pinned to do what it did, no less
36# ("FAIL ...: opt counts differ, got ..." otherwise)
37# L NAME [ROW] as O, for a long-running unit: skipped under a mutant
38T a-arith 0 -
39T a-back 0 -
40T a-fib 0 -
41T a-host 0 -
42T a-kernel 0 -
43T a-mem 0 -
44T a-probe 0 -
45T r13-duptype 13 37
46T r13-factorigin 13 62
47T r13-backsig 13 36
48T r13-backtwo 13 95
49T r13-fnflags 13 36
50T r13-fnflags4 13 36
51T r16-shfl 16 75
52T r16-store 16 160
53T r16-type 16 66
54T r17-usebeforedef 17 62
55T r18-dominance 18 166
56T r19-arity 19 62
57T r20-earlyterm 20 62
58T r20-unterminated 20 62
59T r21-checkcode 21 62
60T r22-alloca 22 103
61T r22-effect 22 58
62T r22-launchinkernel 22 84
63T r23-limit 23 38
64T r24-ref 24 58
65T r24-reftype 24 36
66T r25-hostslice 25 131
67T r25-oldtoken 25 147
68T r25-unchecked 25 105
69T r26-unreachable 26 67
70T r28-token 28 87
71T r28-tokenvalue 28 58
72T r29-fact 29 62
73T r30-entryparams 30 32
74T r30-noentry 30 32
75T r30-twoentries 30 84
76T t00-add-i32-1-2 16 383
77T t01-add-bool-6-6 16 383
78T t02-rem-f32-5-5 16 383
79T t03-shl-f32-5-5 16 383
80T t04-rotl-i32-1-1 16 383
81T t05-fsqrt-i32-1 16 383
82T t06-fmath-f32-8-5 13 383
83T t07-lt-i32-1-1 16 383
84T t08-eq-bool-6-5 16 383
85T t09-conv-i32-1-5 13 383
86T t10-conv-bool-0-1 16 383
87T t11-bitcast-i64-1 16 383
88T t12-select-i32-1-1-1 16 383
89T t13-load-u64-15-7-4 16 383
90T t14-load-u32-15-7-1 16 383
91T t15-store-15-8-4-3 16 383
92T t16-store-15-7-4-1 16 383
93T t17-vload-t35-15-7-4 25 383
94T t18-vsplat-t35-1 16 383
95T t19-vextract-u32-4-12 16 383
96T t20-vreduce-u32-6-12 13 383
97T t21-fma-i32-1-1-1 16 383
98T t22-len-u64-3 16 383
99T t23-call-i64-15-f0 16 383
100T t24-atom-f32-3-15-14-4-5 16 383
101T t25-chk-add-1-15-1-2 16 383
102T t26-chk-divz-2-15-5 16 383
103T t27-chk-bounds-3-15-7-1-9 16 383
104T t28-chk-true-1-15-1 16 383
105T t29-chk-true-15-15-6 21 383
106T t30-chk-conv-bool-5-15-1 16 383
107T t31-fact-range-1-1-2-1 16 383
108T t32-host-i64-54-15-1-8-4-4 16 383
109T t33-host-i64-9999-15 22 383
110T t34-host-i32-129-15 16 383
111T t35-gaddr-t33-g1 16 383
112T t36-gaddr-t33-g7 24 383
113T t37-fload-u64-0-15-7 16 383
114T t38-shfl-u32-1-3-3 22 383
115T t39-sync-15 22 383
116T t40-mma-t35-0-12-12-12 22 383
117T t41-neg-bool-6 16 383
118T t42-not-f32-5 16 383
119T t43-min-bool-6-6 16 383
120T u00-trap-0-15 21 383
121T u01-trap-15-15 21 383
122T u02-exit-15-2 16 383
123T u03-retv-15-2 16 383
124T u04-retv-11-1 28 383
125T u05-ret-15 16 383
126S s-const-range 4
127S s-negzero 4
128S s-numbering 4
129S s-namedt 2
130S s-defs 5
131M a-arith 0 80 10 0
132M a-arith 7 8 11 7
133M a-arith 8 79 11 8
134M a-arith 66 3 15 66
135M a-arith 67 1 13 66
136M a-arith 36 3 13 36
137C a-arith 0 12 0
138C a-arith 40 12 38
139C a-arith 66 12 66
140A a-arith 0 14 1206
141D 27 0
142# run pairs: traps at the exact boundaries (D9: overflow at 2^63, fuel at exactly 1e6, index == len)
143T x-ovf64 0 -
144T x-ovf64ok 0 -
145T x-i8 0 -
146T x-divmin 0 -
147T x-remmin 0 -
148T x-shift 0 -
149T x-conv 0 -
150T x-fuel 0 -
151T x-fuelok 0 -
152T x-index 0 -
153T x-indexok 0 -
154T x-float 0 -
155T x-bits 0 -
156T x-shlneg 0 -
157T x-convlo 0 -
158T n-addu 0 -
159T n-mulu 0 -
160T n-bnd0 0 -
161T n-neg8 0 -
162T n-deep 0 -
163T n-deepok 0 -
164T n-loop 0 -
165T n-loop2 0 -
166T n-oob 25 118
167R x-ovf64
168R x-ovf64ok
169R x-i8
170R x-divmin
171R x-remmin
172R x-shift
173R x-conv
174R x-fuel
175R x-fuelok
176R x-index
177R x-indexok
178R x-fib
179R x-hello
180R x-float
181R x-bits
182R x-shlneg
183R x-convlo
184# ngrun alone (no omc oracle: Omega wraps u64 add/mul and has no zero-length bounds, wrapping narrow neg,
185# unfuelled loop or unchecked access; trap 6 depth is ngrun's own): exit, empty stdout, stderr line
186N n-addu 101 -
187N n-mulu 101 -
188N n-bnd0 103 -
189N n-neg8 0 -
190N n-deep 106 -
191N n-deepok 0 -
192N n-loop 124 87
193# a two-op loop: the op after the budget alternates 87/116, so a step limit one op late (or early) names 87
194N n-loop2 124 116
195N n-oob 126 118
196# desk review @2f3f3d01 B1: 64-bit shuffles (ids 5, 9, 14) are admitted; delta, mode and type rules hold
197T k-shfl-u32 0 -
198T k-shfl-u64 0 -
199T k-shfl-i64 0 -
200T k-shfl-f64 0 -
201T r-shfl-u16 16 97
202T r-shfl-d0 16 97
203T r-shfl-d32 16 97
204T r-shfl-d128 16 97
205T r-shfl-du64 16 97
206# N1: an entry block with parameters is BLOCK_ARITY at the block; N2: STRUCT elements are storage-only
207T r-entry-param 19 50
208T r-struct-elem 16 156
209T k-soa 0 -
210# B2: input capacity 16777216 bytes in ngcheck and ngdis: one byte past it is LIMIT at 16777216 there. ng and
211# ngrun read the payload into the arena of src/ir.om (no capacity since 2026-11-11, bounded by the arena), so the
212# unit reads whole and the byte past the full unit is TRAILING (14) at 16777216
213G full c 30 16777212
214G full d 0 -
215G full n 0 -
216G over c 23 16777216
217G over d 23 16777216
218G over n 14 16777216
219G over x 14 16777216
220# B3: table counts over 65536 are LIMIT at the count, before the entries (count only and populated).
221# ng lifts the globals count cap only (IR.md s12), pinned separately on the corresponding M row.
222M k-soa 26 1 23 24
223# Globals count at 28 becomes 16777216 (IR.md s12 lifts that cap for ng only). With s5 records of
224# five bytes, the third entry at 42 has class 5 at 46: s11 NONCANONICAL, not TRUNCATED (s14 reader).
225M a-fib 31 1 23 28 13 42
226M a-fib 34 1 23 32
227M a-fib 40 1 23 38
228M a-fib 52 1 23 50
229M a-fib 111 1 23 109
230G types c 23 24
231G types d 23 24
232G types n 23 24
233G ty65536 r 0 -
234G ty65537 a 23 65538
235G gl65537 a 23 65539
236G fn65537 a 23 262146
237G bl65537 a 23 131075
238G fp65537 a 23 2
239G bp65537 a 23 5
240Q 1000
241K 6 103
242# the optimizer (seed/ng/src/opt.om). The 23 front units: `@ng front-ir` of the run units of ng-front's
243# cases-front-ir.txt but x-float and linear, front-m3 536bbc83 built by ngbuild sha256 78cb2aed..., as ngdis
244# text; o-pre2 (a loop entered by a cbr and a br: a new preheader) and o-zero (a loop of zero passes holding a
245# check that would fail and a division by zero) by hand
246O x-bits fns=1 loops=0 inloop=0->0 phi=3 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
247O x-conv fns=2 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
248O x-divmin fns=2 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
249O x-fib fns=2 loops=0 inloop=0->0 phi=1 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
250O x-fuel fns=1 loops=1 inloop=11->7 phi=0 bce=0 hoisted=4 merged=1 rotated=1 preheaders=0
251O x-fuelok fns=1 loops=1 inloop=11->7 phi=0 bce=0 hoisted=4 merged=2 rotated=1 preheaders=0
252O x-hello fns=1 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
253O x-i8 fns=2 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
254O x-index fns=1 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
255O x-indexok fns=1 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
256O x-ovf64 fns=2 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
257O x-ovf64ok fns=2 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
258O x-remmin fns=2 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
259O x-shift fns=2 loops=0 inloop=0->0 phi=0 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
260L arith fns=2 loops=2 inloop=43->26 phi=7 bce=4 hoisted=14 merged=5 rotated=2 preheaders=0
261L branch fns=2 loops=3 inloop=65->40 phi=22 bce=3 hoisted=25 merged=16 rotated=3 preheaders=0
262L leafcall fns=3 loops=2 inloop=35->21 phi=7 bce=3 hoisted=12 merged=6 rotated=2 preheaders=0
263L fib38 fns=3 loops=1 inloop=24->13 phi=3 bce=3 hoisted=9 merged=5 rotated=1 preheaders=0
264L fib40 fns=3 loops=1 inloop=24->13 phi=2 bce=3 hoisted=9 merged=5 rotated=1 preheaders=0
265L isort fns=4 loops=6 inloop=127->71 phi=24 bce=11 hoisted=50 merged=26 rotated=6 preheaders=0
266L sieve fns=3 loops=6 inloop=102->61 phi=18 bce=5 hoisted=42 merged=16 rotated=6 preheaders=0
267L sort fns=5 loops=6 inloop=119->71 phi=15 bce=11 hoisted=42 merged=22 rotated=6 preheaders=0
268# matmul: without PHI 145->88 hoisted=72 merged=32; the outer index its inner loops carry unchanged makes i*300 invariant
269L matmul fns=4 loops=8 inloop=145->87 phi=34 bce=5 hoisted=76 merged=33 rotated=8 preheaders=0
270O o-pre2 fns=1 loops=1 inloop=10->6 phi=0 bce=2 hoisted=3 merged=0 rotated=1 preheaders=1
271O o-zero fns=1 loops=1 inloop=10->6 phi=0 bce=0 hoisted=4 merged=2 rotated=1 preheaders=0
272O o-bce0 fns=1 loops=1 inloop=9->6 phi=0 bce=2 hoisted=2 merged=0 rotated=1 preheaders=0
273O o-bce1 fns=1 loops=1 inloop=9->7 phi=0 bce=1 hoisted=2 merged=0 rotated=1 preheaders=0
274O o-shfl fns=2 loops=1 inloop=6->5 phi=0 bce=0 hoisted=1 merged=0 rotated=1 preheaders=0
275# a kernel loop with an invariant mma (operands from mmald before the loop): it stays in the loop; 854d8152 gave 8->5 hoisted=3
276O o-mma fns=2 loops=1 inloop=8->6 phi=0 bce=2 hoisted=2 merged=0 rotated=1 preheaders=0
277# o-phi: a join whose first parameter gets 7 or 9 by path (it stays) and whose second gets the same value on
278# both paths (PHI removes it); exit 18. A PHI that kept a parameter's first argument even where another br
279# passes a different one exits 16 (the PHI mutant in the READY; the gate's O check "opt run differs" fires)
280O o-phi fns=1 loops=0 inloop=0->0 phi=1 bce=0 hoisted=0 merged=0 rotated=0 preheaders=0
281# o-phi2: a loop join whose parameter gets `bitcast u64 %1` on one path and the equal op of block 0 on the
282# other; LICM merges the first into the second only after PHI ran, so one PHI round leaves phi=0 here and a
283# second `@ng opt` removes it (ngrand seed 523); the repeat of PHI, BCE and LICM removes it in one; exit 140
284O o-phi2 fns=1 loops=1 inloop=16->11 phi=1 bce=0 hoisted=5 merged=2 rotated=1 preheaders=0
285# Float sign-bit and toward-zero minimal repros, plus unsigned-to-signed checked conversion.
286N n-bcastf32 0 0
287N n-bcastf64 0 0
288N n-convtz 0 0
289T x-convu 0 -
290R x-convu
291# n-s7821, n-s10623: ngrand seeds 7821 and 10623 (rgate random-phase divergences in a 20000-seed run, CompilerBugHunt
292# NG-3/NG-4), shrunk by `ngrand shrink SEED 1 OUT diverge` (predicate: ngrun before 26f67fbb differs from `@ng a64`)
293# and kept as found. chk.conv i32 of u64 2^64-1 (`not u64 0`) and of u64 2^64-100 (`conv u64` of i64 -100) is
294# outside i32, so both trap 5 (IR.md s7.9) before @f0 prints (Wolfram: Mod[-100,2^64] = 18446744073709551516 >
295# 2^31-1). ngrun before 26f67fbb read the u64 as signed: exit 32 and 28 with 8 stdout bytes. rgate runs both too.
296T n-s7821 0 -
297T n-s10623 0 -
298N n-s7821 105 -
299N n-s10623 105 -
300# Safe host argument execution, completed compiler table, and arithmetic NaN quieting.
301N n-hostargs 1 0
302T a-hostexecenv 0 -
303T a-hostprlimit 0 -
304T x-minnan 0 -
305R x-minnan
306# Bay 1 review of 36edfca2: a native trap 3 (zero byte in a path, malformed packet) precedes ngrun's confinement refusal.
307T x-pathnul 0 -
308R x-pathnul
309T x-renpkt 0 -
310R x-renpkt
311# FixRound2Ng answer to bay 1's review of 36edfca2 (same class as x-pathnul): a native trap 3 also precedes
312# ngrun's refusal or descriptor check for an empty stat/lstat/readlnk path, a stat/lstat/fstat output under
313# 128 bytes and a negative sleepns interval.
314T x-statnul 0 -
315R x-statnul
316T x-lstatcap 0 -
317R x-lstatcap
318T x-rlnul 0 -
319R x-rlnul
320T x-fstatcap 0 -
321R x-fstatcap
322T x-sleepneg 0 -
323R x-sleepneg
324# bay 5 review of b203fc8c (same class as x-sleepneg): a native trap 3 also precedes ngrun's refusal of waitio
325# (events outside 0..65535), peercred (output under 12), pollfds (length not a multiple of 8), waitpid (output
326# under 4), pipefds (output under 8) and a malformed execprog, execpure, execenv or symlnk packet.
327T x-waitioev 0 -
328R x-waitioev
329T x-pcredcap 0 -
330R x-pcredcap
331T x-pollmis 0 -
332R x-pollmis
333T x-wpidcap 0 -
334R x-wpidcap
335T x-pipecap 0 -
336R x-pipecap
337T x-execpkt 0 -
338R x-execpkt
339T x-purepkt 0 -
340R x-purepkt
341T x-envpkt 0 -
342R x-envpkt
343T x-symlpkt 0 -
344R x-symlpkt
345# ham/ngrun-hostwords-4: the exec argument packet caps of omc 564c5835 (count 1..1024, 2..65536 bytes): one
346# past each traps 3 natively and in ngrun (host-refusals modes 324/325 hold packets inside the caps).
347T x-execcap 0 -
348R x-execcap
349T x-execbig 0 -
350R x-execbig
351# bay 3 review of 2d6ed949: one past each cap with a well-formed packet, so only the cap can trap (x-execbig
352# holds one 65533-byte record). symlnk and the execenv environment keep 2..4096 bytes and count 1..64.
353T x-envbig 0 -
354R x-envbig
355T x-envcap 0 -
356R x-envcap
357T x-symlbig 0 -
358R x-symlbig
359
360# Runtime pools: independent wire readers and native source oracle.
361T x-pool 0 -
362R x-pool
363T r28-pool-stale 28 186
364O o-pool
365T r16-pool-array 16 41
366T r16-pool-bool 16 32
367T r16-pool-fixed 16 72
368T r16-pool-index 16 76
369T r16-pool-io 16 89
370T r16-pool-result 16 63
371T r24-pool-global 24 63
372T r16-pool-ref 16 79
373T r22-pool-kernel 22 76
374T x-pool-widths 0 -
375R x-pool-widths
376T x-pool-bound 0 -
377R x-pool-bound
378M x-pool 36 3 13 32
379# Bounded t_pool_grow: 64 elements, sum 2016; pool readers stay inside both loops.
380O o-pool-loop