interplane.Get Omega
Read in your language

benchmarks-mv

Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS.

Brought by drakestapleton

branch main Branches Tags History

benchmarks-mv / native / neuralese / score.om

360 lines · 5356 bytes Raw Blame History
1om2
2note NL6 independent raw output evidence checker, frozen design 8ee0a494.
3note No candidate summary, expected_bits, PASS flag or authorization claim is read.
4note Trusted reference files must be judge-owned and committed before prediction reveal.
5note mode1 four ASCII bits plus LF per row; mode2 exact raw journal; mode3 NL4 typed record.
6note mode3 op1 increment, op2 double, op3 identity; matches NL4 boundary contract.
7const CAP ulong 65536
8global refbuf uchar CAP
9global obsbuf uchar CAP
10global lens ulong 2
11global vals long 20
12global state ulong 3
13text prefix "NL6 total="
14text middle " correct="
15text last " wrong="
16text lf "\n"
17text bad "NL6 INVALID\n"
18text fail "NL6 FAIL\n"
19text pass "NL6 PASS\n"
20text magic "NL4R1 "
21text refmag "NL4REF1 "
22fn emit a view uchar * n ulong to void
23p = ulong 0
24while lt p n bound 65536
25k = write 1 a p sub n p
26if le k 0
27exit 93
28end
29p = add p ulong k
30end
31end
32fn number v ulong to void
33b = new uchar 20 0
34p = ulong 20
35x = v
36while true bound 20
37p = sub p 1
38put b p uchar add rem x 10 48
39x = div x 10
40if eq x 0
41break
42end
43end
44q = p
45while lt q 20 bound 20
46k = write 1 b q sub ulong 20 q
47if le k 0
48exit 93
49end
50q = add q ulong k
51end
52end
53fn invalid to void
54emit bad len bad
55exit 90
56end
57fn badout to int
58emit fail len fail
59ret 1
60end
61fn load which ulong arg ulong to void
62path = new uchar 4096 0
63n = argread arg path 0 len path
64if le n 0
65invalid
66end
67fd = fopen path 0 ulong n 524288 0
68if lt fd 0
69invalid
70end
71pos = ulong 0
72while lt pos CAP bound 65536
73k = long 0
74if eq which 0
75k = read int fd refbuf pos sub CAP pos
76else
77k = read int fd obsbuf pos sub CAP pos
78end
79if lt k 0
80z = fclose int fd
81invalid
82end
83if eq k 0
84break
85end
86pos = add pos ulong k
87end
88if eq pos CAP
89z = fclose int fd
90invalid
91end
92z = fclose int fd
93if ne z 0
94invalid
95end
96put lens which pos
97end
98fn byteat which ulong pos ulong to uchar
99if ge pos get lens which
100invalid
101end
102if eq which 0
103ret get refbuf pos
104end
105ret get obsbuf pos
106end
107fn report total ulong correct ulong to void
108emit prefix len prefix
109number total
110emit middle len middle
111number correct
112emit last len last
113number sub total correct
114emit lf len lf
115end
116fn bits to int
117n = get lens 0
118if or eq n 0 ne rem n 5 0
119invalid
120end
121if ne get lens 1 n
122ret badout
123end
124cnt = div n 5
125good = ulong 0
126for row ulong cnt
127same = true
128p = mul row 5
129for col ulong 4
130a = byteat 0 add p col
131b = byteat 1 add p col
132if and ne a 48 ne a 49
133invalid
134end
135if and ne b 48 ne b 49
136invalid
137end
138if ne a b
139same = false
140end
141end
142if or ne byteat 0 add p 4 10 ne byteat 1 add p 4 10
143invalid
144end
145if same
146good = add good 1
147end
148end
149report cnt good
150if ne cnt good
151ret badout
152end
153emit pass len pass
154ret 0
155end
156fn journal to int
157n = get lens 0
158if eq n 0
159invalid
160end
161if ne n get lens 1
162ret badout
163end
164same = true
165for i ulong n
166if ne byteat 0 i byteat 1 i
167same = false
168end
169end
170correct = ulong 0
171if same
172correct = 1
173end
174report 1 correct
175if not same
176ret badout
177end
178emit pass len pass
179ret 0
180end
181note Strict bounded signed decimal parser. Values limited to +/-1000000 to avoid overflow.
182fn getnum which ulong to long
183p = get state 0
184n = get lens which
185if ge p n
186invalid
187end
188negv = false
189if eq byteat which p 45
190negv = true
191p = add p 1
192end
193start = p
194v = long 0
195while lt p n bound 65536
196c = byteat which p
197if or eq c 32 eq c 10
198break
199end
200if or lt c 48 gt c 57
201invalid
202end
203v = add mul v 10 long sub c 48
204if gt v 1000000
205invalid
206end
207p = add p 1
208end
209if eq p start
210invalid
211end
212if ge p n
213invalid
214end
215if and gt sub p start 1 eq byteat which start 48
216invalid
217end
218if and negv eq v 0
219invalid
220end
221put state 0 add p 1
222put state 1 ulong byteat which p
223if negv
224ret neg v
225end
226ret v
227end
228fn parse which ulong to void
229n = ulong 6
230if eq which 0
231n = 8
232end
233if lt get lens which n
234invalid
235end
236for i ulong n
237c = uchar 0
238if eq which 0
239c = get refmag i
240else
241c = get magic i
242end
243if ne byteat which i c
244invalid
245end
246end
247put state 0 n
248for j ulong 10
249v = getnum which
250put vals add mul which 10 j v
251want = ulong 32
252if eq j 9
253want = 10
254end
255if ne get state 1 want
256invalid
257end
258end
259if ne get state 0 get lens which
260invalid
261end
262end
263note Reference fields decision op lhs rhs rank dim0 dim1 elements effects result.
264note Reference result must be zero reserved; executed result is independently recomputed.
265note Permitted scalar op1 increment, op2 double, op3 identity. Metadata is independently checked.
266fn boundary to int
267parse 0
268parse 1
269if ne get vals 9 0
270invalid
271end
272if lt get vals 0 0
273invalid
274end
275for j ulong 9
276if ne get vals j get vals add j 10
277ret badout
278end
279end
280if ne get vals 0 0
281for j ulong 9
282if ne get vals add j 1 0
283invalid
284end
285if ne get vals add j 11 0
286ret badout
287end
288end
289report 1 1
290emit pass len pass
291ret 0
292end
293if ne get vals 8 0
294invalid
295end
296if or lt get vals 2 0 gt get vals 2 3
297invalid
298end
299if or ne get vals 4 1 ne get vals 5 1
300invalid
301end
302if or ne get vals 6 0 ne get vals 7 1
303invalid
304end
305op = get vals 1
306a = get vals 2
307b = get vals 3
308want = long 0
309if eq op 1
310if ne b 1
311invalid
312end
313want = add a 1
314else
315if eq op 2
316if ne b 2
317invalid
318end
319want = mul a 2
320else
321if eq op 3
322if ne b 0
323invalid
324end
325want = a
326else
327invalid
328end
329end
330end
331if ne get vals 19 want
332ret badout
333end
334report 1 1
335emit pass len pass
336ret 0
337end
338fn main to int
339if ne argcnt 4
340invalid
341end
342modebuf = new uchar 2 0
343n = argread 1 modebuf 0 len modebuf
344if ne n 1
345invalid
346end
347mode = get modebuf 0
348if or lt mode 49 gt mode 51
349invalid
350end
351load 0 2
352load 1 3
353if eq mode 49
354ret bits
355end
356if eq mode 50
357ret journal
358end
359ret boundary
360end