1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
|
<?php
declare(strict_types=1);
namespace Nsfisis\Waddiwasi\Tests\SpecTestsuites\Core;
use Nsfisis\Waddiwasi\Tests\SpecTestsuites\SpecTestsuiteBase;
use PHPUnit\Framework\Attributes\Depends;
use PHPUnit\Framework\Attributes\DoesNotPerformAssertions;
final class DataTest extends SpecTestsuiteBase
{
public function testModule0(): void
{
$this->runModuleCommand(
filename: 'data.0.wasm',
name: null,
line: 5,
);
}
#[Depends('testModule0')]
public function testModule1(): void
{
$this->runModuleCommand(
filename: 'data.1.wasm',
name: null,
line: 35,
);
}
#[Depends('testModule1')]
public function testModule2(): void
{
$this->runModuleCommand(
filename: 'data.2.wasm',
name: null,
line: 39,
);
}
#[Depends('testModule2')]
public function testModule3(): void
{
$this->runModuleCommand(
filename: 'data.3.wasm',
name: null,
line: 44,
);
}
#[Depends('testModule3')]
public function testModule4(): void
{
$this->runModuleCommand(
filename: 'data.4.wasm',
name: null,
line: 52,
);
}
#[Depends('testModule4')]
public function testModule5(): void
{
$this->runModuleCommand(
filename: 'data.5.wasm',
name: null,
line: 62,
);
}
#[Depends('testModule5')]
public function testModule6(): void
{
$this->runModuleCommand(
filename: 'data.6.wasm',
name: null,
line: 67,
);
}
#[Depends('testModule6')]
public function testModule7(): void
{
$this->runModuleCommand(
filename: 'data.7.wasm',
name: null,
line: 73,
);
}
#[Depends('testModule7')]
public function testModule8(): void
{
$this->runModuleCommand(
filename: 'data.8.wasm',
name: null,
line: 78,
);
}
#[Depends('testModule8')]
public function testAssertInvalid9(): void
{
$this->runAssertInvalidCommand(
filename: 'data.9.wasm',
text: 'unknown global',
line: 85,
);
}
#[Depends('testAssertInvalid9')]
public function testAssertInvalid10(): void
{
$this->runAssertInvalidCommand(
filename: 'data.10.wasm',
text: 'unknown global',
line: 89,
);
}
#[Depends('testAssertInvalid10')]
public function testModule11(): void
{
$this->runModuleCommand(
filename: 'data.11.wasm',
name: null,
line: 96,
);
}
#[Depends('testModule11')]
public function testModule12(): void
{
$this->runModuleCommand(
filename: 'data.12.wasm',
name: null,
line: 101,
);
}
#[Depends('testModule12')]
public function testModule13(): void
{
$this->runModuleCommand(
filename: 'data.13.wasm',
name: null,
line: 107,
);
}
#[Depends('testModule13')]
public function testModule14(): void
{
$this->runModuleCommand(
filename: 'data.14.wasm',
name: null,
line: 112,
);
}
#[Depends('testModule14')]
public function testModule15(): void
{
$this->runModuleCommand(
filename: 'data.15.wasm',
name: null,
line: 116,
);
}
#[Depends('testModule15')]
public function testModule16(): void
{
$this->runModuleCommand(
filename: 'data.16.wasm',
name: null,
line: 121,
);
}
#[Depends('testModule16')]
public function testModule17(): void
{
$this->runModuleCommand(
filename: 'data.17.wasm',
name: null,
line: 126,
);
}
#[Depends('testModule17')]
public function testModule18(): void
{
$this->runModuleCommand(
filename: 'data.18.wasm',
name: null,
line: 131,
);
}
#[Depends('testModule18')]
public function testModule19(): void
{
$this->runModuleCommand(
filename: 'data.19.wasm',
name: null,
line: 135,
);
}
#[Depends('testModule19')]
public function testModule20(): void
{
$this->runModuleCommand(
filename: 'data.20.wasm',
name: null,
line: 140,
);
}
#[Depends('testModule20')]
public function testModule21(): void
{
$this->runModuleCommand(
filename: 'data.21.wasm',
name: null,
line: 145,
);
}
#[Depends('testModule21')]
public function testModule22(): void
{
$this->runModuleCommand(
filename: 'data.22.wasm',
name: null,
line: 150,
);
}
#[Depends('testModule22')]
public function testModule23(): void
{
$this->runModuleCommand(
filename: 'data.23.wasm',
name: null,
line: 155,
);
}
#[Depends('testModule23')]
public function testModule24(): void
{
$this->runModuleCommand(
filename: 'data.24.wasm',
name: null,
line: 161,
);
}
#[Depends('testModule24')]
public function testModule25(): void
{
$this->runModuleCommand(
filename: 'data.25.wasm',
name: null,
line: 167,
);
}
#[Depends('testModule25')]
public function testModule26(): void
{
$this->runModuleCommand(
filename: 'data.26.wasm',
name: null,
line: 172,
);
}
#[Depends('testModule26')]
public function testAssertUninstantiable27(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.27.wasm',
text: 'out of bounds memory access',
line: 180,
);
}
#[Depends('testAssertUninstantiable27')]
public function testAssertUninstantiable28(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.28.wasm',
text: 'out of bounds memory access',
line: 188,
);
}
#[Depends('testAssertUninstantiable28')]
public function testAssertUninstantiable29(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.29.wasm',
text: 'out of bounds memory access',
line: 196,
);
}
#[Depends('testAssertUninstantiable29')]
public function testAssertUninstantiable30(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.30.wasm',
text: 'out of bounds memory access',
line: 203,
);
}
#[Depends('testAssertUninstantiable30')]
public function testAssertUninstantiable31(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.31.wasm',
text: 'out of bounds memory access',
line: 210,
);
}
#[Depends('testAssertUninstantiable31')]
public function testAssertUninstantiable32(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.32.wasm',
text: 'out of bounds memory access',
line: 227,
);
}
#[Depends('testAssertUninstantiable32')]
public function testAssertUninstantiable33(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.33.wasm',
text: 'out of bounds memory access',
line: 236,
);
}
#[Depends('testAssertUninstantiable33')]
public function testAssertUninstantiable34(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.34.wasm',
text: 'out of bounds memory access',
line: 243,
);
}
#[Depends('testAssertUninstantiable34')]
public function testAssertUninstantiable35(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.35.wasm',
text: 'out of bounds memory access',
line: 251,
);
}
#[Depends('testAssertUninstantiable35')]
public function testAssertUninstantiable36(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.36.wasm',
text: 'out of bounds memory access',
line: 259,
);
}
#[Depends('testAssertUninstantiable36')]
public function testAssertUninstantiable37(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.37.wasm',
text: 'out of bounds memory access',
line: 267,
);
}
#[Depends('testAssertUninstantiable37')]
public function testAssertUninstantiable38(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.38.wasm',
text: 'out of bounds memory access',
line: 274,
);
}
#[Depends('testAssertUninstantiable38')]
public function testAssertUninstantiable39(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.39.wasm',
text: 'out of bounds memory access',
line: 282,
);
}
#[Depends('testAssertUninstantiable39')]
public function testAssertUninstantiable40(): void
{
$this->runAssertUninstantiableCommand(
filename: 'data.40.wasm',
text: 'out of bounds memory access',
line: 289,
);
}
#[Depends('testAssertUninstantiable40')]
public function testAssertInvalid41(): void
{
$this->runAssertInvalidCommand(
filename: 'data.41.wasm',
text: 'unknown memory',
line: 299,
);
}
#[Depends('testAssertInvalid41')]
public function testAssertInvalid42(): void
{
$this->runAssertInvalidCommand(
filename: 'data.42.wasm',
text: 'unknown memory 1',
line: 307,
);
}
#[Depends('testAssertInvalid42')]
public function testAssertInvalid43(): void
{
$this->runAssertInvalidCommand(
filename: 'data.43.wasm',
text: 'unknown memory 0',
line: 320,
);
}
#[Depends('testAssertInvalid43')]
public function testAssertInvalid44(): void
{
$this->runAssertInvalidCommand(
filename: 'data.44.wasm',
text: 'unknown memory 1',
line: 331,
);
}
#[Depends('testAssertInvalid44')]
public function testAssertInvalid45(): void
{
$this->runAssertInvalidCommand(
filename: 'data.45.wasm',
text: 'unknown memory 1',
line: 343,
);
}
#[Depends('testAssertInvalid45')]
public function testAssertInvalid46(): void
{
$this->runAssertInvalidCommand(
filename: 'data.46.wasm',
text: 'unknown memory 1',
line: 365,
);
}
#[Depends('testAssertInvalid46')]
public function testAssertInvalid47(): void
{
$this->runAssertInvalidCommand(
filename: 'data.47.wasm',
text: 'type mismatch',
line: 384,
);
}
#[Depends('testAssertInvalid47')]
public function testAssertInvalid48(): void
{
$this->runAssertInvalidCommand(
filename: 'data.48.wasm',
text: 'type mismatch',
line: 392,
);
}
#[Depends('testAssertInvalid48')]
public function testAssertInvalid49(): void
{
$this->runAssertInvalidCommand(
filename: 'data.49.wasm',
text: 'type mismatch',
line: 400,
);
}
#[Depends('testAssertInvalid49')]
public function testAssertInvalid50(): void
{
$this->runAssertInvalidCommand(
filename: 'data.50.wasm',
text: 'type mismatch',
line: 408,
);
}
#[Depends('testAssertInvalid50')]
public function testAssertInvalid51(): void
{
$this->runAssertInvalidCommand(
filename: 'data.51.wasm',
text: 'type mismatch',
line: 416,
);
}
#[Depends('testAssertInvalid51')]
public function testAssertInvalid52(): void
{
$this->runAssertInvalidCommand(
filename: 'data.52.wasm',
text: 'type mismatch',
line: 425,
);
}
#[Depends('testAssertInvalid52')]
public function testAssertInvalid53(): void
{
$this->runAssertInvalidCommand(
filename: 'data.53.wasm',
text: 'constant expression required',
line: 434,
);
}
#[Depends('testAssertInvalid53')]
public function testAssertInvalid54(): void
{
$this->runAssertInvalidCommand(
filename: 'data.54.wasm',
text: 'constant expression required',
line: 442,
);
}
#[Depends('testAssertInvalid54')]
public function testAssertInvalid55(): void
{
$this->runAssertInvalidCommand(
filename: 'data.55.wasm',
text: 'constant expression required',
line: 450,
);
}
#[Depends('testAssertInvalid55')]
public function testAssertInvalid56(): void
{
$this->runAssertInvalidCommand(
filename: 'data.56.wasm',
text: 'constant expression required',
line: 458,
);
}
#[Depends('testAssertInvalid56')]
public function testAssertInvalid57(): void
{
$this->runAssertInvalidCommand(
filename: 'data.57.wasm',
text: 'constant expression required',
line: 466,
);
}
#[Depends('testAssertInvalid57')]
public function testAssertInvalid58(): void
{
$this->runAssertInvalidCommand(
filename: 'data.58.wasm',
text: 'unknown global 0',
line: 475,
);
}
#[Depends('testAssertInvalid58')]
public function testAssertInvalid59(): void
{
$this->runAssertInvalidCommand(
filename: 'data.59.wasm',
text: 'unknown global 1',
line: 483,
);
}
#[Depends('testAssertInvalid59')]
public function testAssertInvalid60(): void
{
$this->runAssertInvalidCommand(
filename: 'data.60.wasm',
text: 'constant expression required',
line: 492,
);
}
}
|