cfad47cfa3/t3compiler/tads3/test/log/array.log

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
1
	symbol_export _main.t -> _main.t3s
2
	symbol_export array.t -> array.t3s
3
	compile _main.t -> _main.t3o
4
	compile array.t -> array.t3o
5
	link -> array.t3
6
7
(T3VM) Memory blocks still in use:
8
9
Total blocks in use: 0
10
create and fill:
11
   [1] = A
12
   [2] = A
13
   [3] = A
14
   [4] = A
15
   [5] = A
16
   [6] = A
17
   [7] = A
18
initially:  x =
19
   [1] = 10
20
   [2] = 9
21
   [3] = 8
22
   [4] = 7
23
   [5] = 6
24
   [6] = 5
25
   [7] = 4
26
   [8] = 3
27
   [9] = 2
28
   [10] = 1
29
30
after modifying through reference:  y =
31
   [1] = 10
32
   [2] = 9
33
   [3] = 100
34
   [4] = 7
35
   [5] = 6
36
   [6] = 5
37
   [7] = 4
38
   [8] = 3
39
   [9] = 2
40
   [10] = 1
41
x =
42
   [1] = 10
43
   [2] = 9
44
   [3] = 100
45
   [4] = 7
46
   [5] = 6
47
   [6] = 5
48
   [7] = 4
49
   [8] = 3
50
   [9] = 2
51
   [10] = 1
52
53
new Array(x, 1, 20):
54
   [1] = 10
55
   [2] = 9
56
   [3] = 100
57
   [4] = 7
58
   [5] = 6
59
   [6] = 5
60
   [7] = 4
61
   [8] = 3
62
   [9] = 2
63
   [10] = 1
64
   [11] = nil
65
   [12] = nil
66
   [13] = nil
67
   [14] = nil
68
   [15] = nil
69
   [16] = nil
70
   [17] = nil
71
   [18] = nil
72
   [19] = nil
73
   [20] = nil
74
75
new Array(x, 1, 5):
76
   [1] = 10
77
   [2] = 9
78
   [3] = 100
79
   [4] = 7
80
   [5] = 6
81
82
new Array(x, 3, 5):
83
   [1] = 100
84
   [2] = 7
85
   [3] = 6
86
   [4] = 5
87
   [5] = 4
88
89
new Array(x, 5, 20):
90
   [1] = 6
91
   [2] = 5
92
   [3] = 4
93
   [4] = 3
94
   [5] = 2
95
   [6] = 1
96
   [7] = nil
97
   [8] = nil
98
   [9] = nil
99
   [10] = nil
100
   [11] = nil
101
   [12] = nil
102
   [13] = nil
103
   [14] = nil
104
   [15] = nil
105
   [16] = nil
106
   [17] = nil
107
   [18] = nil
108
   [19] = nil
109
   [20] = nil
110
111
toList:
112
   [1] = 10
113
   [2] = 9
114
   [3] = 100
115
   [4] = 7
116
   [5] = 6
117
   [6] = 5
118
   [7] = 4
119
   [8] = 3
120
   [9] = 2
121
   [10] = 1
122
123
toList(5):
124
   [1] = 6
125
   [2] = 5
126
   [3] = 4
127
   [4] = 3
128
   [5] = 2
129
   [6] = 1
130
131
toList(17):
132
133
toList(15, 17):
134
135
toList(3, 5):
136
   [1] = 100
137
   [2] = 7
138
   [3] = 6
139
   [4] = 5
140
   [5] = 4
141
142
toList(10, 8):
143
   [1] = 1
144
145
direct copy:
146
   [1] = 10
147
   [2] = 9
148
   [3] = 100
149
   [4] = 7
150
   [5] = 6
151
   [6] = 5
152
   [7] = 4
153
   [8] = 3
154
   [9] = 2
155
   [10] = 1
156
157
copyFrom 1,3,7:
158
   [1] = 10
159
   [2] = 9
160
   [3] = a
161
   [4] = b
162
   [5] = c
163
   [6] = d
164
   [7] = 4
165
   [8] = 3
166
   [9] = 2
167
   [10] = 1
168
169
copyFrom 1,7,7:
170
   [1] = 10
171
   [2] = 9
172
   [3] = 100
173
   [4] = 7
174
   [5] = 6
175
   [6] = 5
176
   [7] = a
177
   [8] = b
178
   [9] = c
179
   [10] = d
180
181
copyFrom 1,4,3:
182
   [1] = 10
183
   [2] = 9
184
   [3] = 100
185
   [4] = a
186
   [5] = b
187
   [6] = c
188
   [7] = 4
189
   [8] = 3
190
   [9] = 2
191
   [10] = 1
192
193
copyFrom 3,5,7:
194
   [1] = 10
195
   [2] = 9
196
   [3] = 100
197
   [4] = 7
198
   [5] = c
199
   [6] = d
200
   [7] = 4
201
   [8] = 3
202
   [9] = 2
203
   [10] = 1
204
205
fillValue 'x':
206
   [1] = x
207
   [2] = x
208
   [3] = x
209
   [4] = x
210
   [5] = x
211
   [6] = x
212
   [7] = x
213
   [8] = x
214
   [9] = x
215
   [10] = x
216
217
fillValue 123, 3:
218
   [1] = nil
219
   [2] = nil
220
   [3] = 123
221
   [4] = 123
222
   [5] = 123
223
   [6] = 123
224
   [7] = 123
225
   [8] = 123
226
   [9] = 123
227
   [10] = 123
228
229
fillValue 'abc', 3, 4:
230
   [1] = nil
231
   [2] = nil
232
   [3] = abc
233
   [4] = abc
234
   [5] = abc
235
   [6] = abc
236
   [7] = nil
237
   [8] = nil
238
   [9] = nil
239
   [10] = nil
240
241
applyAll fibonacci:
242
   [1] = 1
243
   [2] = 1
244
   [3] = 2
245
   [4] = 3
246
   [5] = 5
247
   [6] = 8
248
   [7] = 13
249
   [8] = 21
250
   [9] = 34
251
   [10] = 55
252
   [11] = 89
253
   [12] = 144
254
   [13] = 233
255
   [14] = 377
256
   [15] = 610
257
   [16] = 987
258
   [17] = 1597
259
   [18] = 2584
260
   [19] = 4181
261
   [20] = 6765
262
263
Subset >= 10:
264
   [1] = 13
265
   [2] = 21
266
   [3] = 34
267
   [4] = 55
268
   [5] = 89
269
   [6] = 144
270
   [7] = 233
271
   [8] = 377
272
   [9] = 610
273
   [10] = 987
274
   [11] = 1597
275
   [12] = 2584
276
   [13] = 4181
277
   [14] = 6765
278
279
find where x > 10:  7
280
find where x > 100:  12
281
find where x > 10000:
282
283
mapAll plus one:
284
   [1] = 2
285
   [2] = 2
286
   [3] = 3
287
   [4] = 4
288
   [5] = 6
289
   [6] = 9
290
   [7] = 14
291
   [8] = 22
292
   [9] = 35
293
   [10] = 56
294
   [11] = 90
295
   [12] = 145
296
   [13] = 234
297
   [14] = 378
298
   [15] = 611
299
   [16] = 988
300
   [17] = 1598
301
   [18] = 2585
302
   [19] = 4182
303
   [20] = 6766
304
mapAll == orig?  no
305
mapAll original:
306
   [1] = 1
307
   [2] = 1
308
   [3] = 2
309
   [4] = 3
310
   [5] = 5
311
   [6] = 8
312
   [7] = 13
313
   [8] = 21
314
   [9] = 34
315
   [10] = 55
316
   [11] = 89
317
   [12] = 144
318
   [13] = 233
319
   [14] = 377
320
   [15] = 610
321
   [16] = 987
322
   [17] = 1597
323
   [18] = 2584
324
   [19] = 4181
325
   [20] = 6765
326
327
indexOf 1:  1
328
indexOf 54:
329
indexOf 55:  10
330
indexOf 6765:  20
331
332
lastIndexOf 1:  2
333
lastIndexOf 54:
334
lastIndexOf 55:  10
335
lastIndexOf 6765:  20
336
337
lastIndexWhich(x < 1):
338
lastIndexWhich(x < 2):  2
339
lastIndexWhich(x < 10):  6
340
lastIndexWhich(x < 100):  11
341
lastIndexWhich(x < 10000):  20
342
343
lastValWhich(x < 1):
344
lastValWhich(x < 2):  1
345
lastValWhich(x < 10):  8
346
lastValWhich(x < 100):  89
347
lastValWhich(x < 10000):  6765
348
349
countOf 0:  0
350
countOf 1:  2
351
countOf 55:  1
352
353
countWhich x>10:  14
354
countWhich x>100:  9
355
countWhich x>1000:  4
356
countWhich x>10000:  0
357
358
initially:  x =
359
   [1] = 2
360
   [2] = 4
361
   [3] = 6
362
   [4] = 8
363
   [5] = 10
364
   [6] = 12
365
getUnique:
366
   [1] = 2
367
   [2] = 4
368
   [3] = 6
369
   [4] = 8
370
   [5] = 10
371
   [6] = 12
372
initially:  x =
373
   [1] = 9
374
   [2] = 1
375
   [3] = 9
376
   [4] = 2
377
   [5] = 9
378
   [6] = 3
379
   [7] = 9
380
   [8] = 2
381
   [9] = 9
382
   [10] = 1
383
   [11] = 9
384
getUnique:
385
   [1] = 9
386
   [2] = 1
387
   [3] = 2
388
   [4] = 3
389
390
appendUnique:
391
   [1] = 1
392
   [2] = 2
393
   [3] = 3
394
   [4] = 4
395
   [5] = 5
396
   [6] = 6
397
   [7] = 7
398
   [8] = 8
399
   [9] = 9
400
   [10] = 10
401
   [11] = 12
402
   [12] = 14
403
   [13] = 16
404
   [14] = 18
405
   [15] = 20
406
appendUnique:
407
   [1] = 1
408
   [2] = 2
409
   [3] = 3
410
   [4] = 4
411
   [5] = 5
412
   [6] = 6
413
   [7] = 7
414
   [8] = 8
415
   [9] = 9
416
   [10] = 10
417
   [11] = 11
418
   [12] = 12
419
   [13] = 13
420
   [14] = 14
421
   [15] = 15
422
appendUnique:
423
   [1] = 1
424
   [2] = 2
425
   [3] = 3
426
   [4] = 4
427
   [5] = 5
428
   [6] = 6
429
   [7] = 7
430
   [8] = 8
431
   [9] = 9
432
   [10] = 10
433
appendUnique - list:
434
appendUnique:
435
   [1] = 1
436
   [2] = 2
437
   [3] = 3
438
   [4] = 4
439
   [5] = 5
440
   [6] = 6
441
   [7] = 7
442
   [8] = 8
443
   [9] = 9
444
   [10] = 10
445
   [11] = 15
446
   [12] = 20
447
448
sort:
449
   [1] = are
450
   [2] = hello
451
   [3] = how
452
   [4] = there
453
   [5] = today
454
   [6] = you
455
sort descending:
456
   [1] = you
457
   [2] = today
458
   [3] = there
459
   [4] = how
460
   [5] = hello
461
   [6] = are
462
463
adding list to array:
464
   [1] = 1
465
   [2] = 1
466
   [3] = 2
467
   [4] = 3
468
   [5] = 5
469
   [6] = 8
470
   [7] = 13
471
   [8] = 101
472
   [9] = 102
473
   [10] = 103
474
adding vector to array:
475
   [1] = 1
476
   [2] = 1
477
   [3] = 2
478
   [4] = 3
479
   [5] = 5
480
   [6] = 8
481
   [7] = 13
482
   [8] = 987
483
   [9] = 654
484
   [10] = 321
485
adding array to array:
486
   [1] = 1
487
   [2] = 1
488
   [3] = 2
489
   [4] = 3
490
   [5] = 5
491
   [6] = 8
492
   [7] = 13
493
   [8] = 111
494
   [9] = 222
495
   [10] = 333
496
subtracting list from array:
497
   [1] = 1
498
   [2] = 1
499
   [3] = 13
500
subtracting vector from array:
501
   [1] = 2
502
   [2] = 3
503
   [3] = 5
504
   [4] = 8
505
subtracting array from array:
506
   [1] = 2
507
   [2] = 8
508
   [3] = 13
509
510
(T3VM) Memory blocks still in use:
511
512
Total blocks in use: 0