cfad47cfa3/t3compiler/tads3/test/log/vector2.log

User picture

Commiter: Nikos Chantziaras

Author: Nikos Chantziaras

Revision: cfad47cfa3


File Size: 5.57 KB

(June 01, 2009 20:54 UTC) Almost 3 years ago

Initial commit.

 
Show/hide line numbers
	Files to build: 5
	symbol_export _main.t -> _main.t3s
	symbol_export vector2.t -> vector2.t3s
	compile _main.t -> _main.t3o
	compile vector2.t -> vector2.t3o
	link -> vector2.t3

(T3VM) Memory blocks still in use:

Total blocks in use: 0
create and fill:
   [1] = A
   [2] = A
   [3] = A
   [4] = A
   [5] = A
   [6] = A
   [7] = A
initially: x =
   [1] = 10
   [2] = 9
   [3] = 8
   [4] = 7
   [5] = 6
   [6] = 5
   [7] = 4
   [8] = 3
   [9] = 2
   [10] = 1

after modifying through reference: y =
   [1] = 10
   [2] = 9
   [3] = 100
   [4] = 7
   [5] = 6
   [6] = 5
   [7] = 4
   [8] = 3
   [9] = 2
   [10] = 1
x =
   [1] = 10
   [2] = 9
   [3] = 100
   [4] = 7
   [5] = 6
   [6] = 5
   [7] = 4
   [8] = 3
   [9] = 2
   [10] = 1

toList:
   [1] = 10
   [2] = 9
   [3] = 100
   [4] = 7
   [5] = 6
   [6] = 5
   [7] = 4
   [8] = 3
   [9] = 2
   [10] = 1

toList(5):
   [1] = 6
   [2] = 5
   [3] = 4
   [4] = 3
   [5] = 2
   [6] = 1

toList(17):

toList(15, 17):

toList(3, 5):
   [1] = 100
   [2] = 7
   [3] = 6
   [4] = 5
   [5] = 4

toList(10, 8):
   [1] = 1

direct copy:
   [1] = 10
   [2] = 9
   [3] = 100
   [4] = 7
   [5] = 6
   [6] = 5
   [7] = 4
   [8] = 3
   [9] = 2
   [10] = 1

copyFrom 1,3,7:
   [1] = 10
   [2] = 9
   [3] = a
   [4] = b
   [5] = c
   [6] = d
   [7] = 4
   [8] = 3
   [9] = 2
   [10] = 1

copyFrom 1,7,7:
   [1] = 10
   [2] = 9
   [3] = 100
   [4] = 7
   [5] = 6
   [6] = 5
   [7] = a
   [8] = b
   [9] = c
   [10] = d

copyFrom 1,4,3:
   [1] = 10
   [2] = 9
   [3] = 100
   [4] = a
   [5] = b
   [6] = c
   [7] = 4
   [8] = 3
   [9] = 2
   [10] = 1

copyFrom 3,5,7:
   [1] = 10
   [2] = 9
   [3] = 100
   [4] = 7
   [5] = c
   [6] = d
   [7] = 4
   [8] = 3
   [9] = 2
   [10] = 1

fillValue 'x':
   [1] = x
   [2] = x
   [3] = x
   [4] = x
   [5] = x
   [6] = x
   [7] = x
   [8] = x
   [9] = x
   [10] = x

fillValue 123, 3:
   [1] = nil
   [2] = nil
   [3] = 123
   [4] = 123
   [5] = 123
   [6] = 123
   [7] = 123
   [8] = 123
   [9] = 123
   [10] = 123

fillValue 'abc', 3, 4:
   [1] = nil
   [2] = nil
   [3] = abc
   [4] = abc
   [5] = abc
   [6] = abc
   [7] = nil
   [8] = nil
   [9] = nil
   [10] = nil

applyAll fibonacci:
   [1] = 1
   [2] = 1
   [3] = 2
   [4] = 3
   [5] = 5
   [6] = 8
   [7] = 13
   [8] = 21
   [9] = 34
   [10] = 55
   [11] = 89
   [12] = 144
   [13] = 233
   [14] = 377
   [15] = 610
   [16] = 987
   [17] = 1597
   [18] = 2584
   [19] = 4181
   [20] = 6765

Subset >= 10:
   [1] = 13
   [2] = 21
   [3] = 34
   [4] = 55
   [5] = 89
   [6] = 144
   [7] = 233
   [8] = 377
   [9] = 610
   [10] = 987
   [11] = 1597
   [12] = 2584
   [13] = 4181
   [14] = 6765

find where x > 10: 7
find where x > 100: 12
find where x > 10000:

mapAll plus one:
   [1] = 2
   [2] = 2
   [3] = 3
   [4] = 4
   [5] = 6
   [6] = 9
   [7] = 14
   [8] = 22
   [9] = 35
   [10] = 56
   [11] = 90
   [12] = 145
   [13] = 234
   [14] = 378
   [15] = 611
   [16] = 988
   [17] = 1598
   [18] = 2585
   [19] = 4182
   [20] = 6766
mapAll == orig? no
mapAll original:
   [1] = 1
   [2] = 1
   [3] = 2
   [4] = 3
   [5] = 5
   [6] = 8
   [7] = 13
   [8] = 21
   [9] = 34
   [10] = 55
   [11] = 89
   [12] = 144
   [13] = 233
   [14] = 377
   [15] = 610
   [16] = 987
   [17] = 1597
   [18] = 2584
   [19] = 4181
   [20] = 6765

indexOf 1: 1
indexOf 54:
indexOf 55: 10
indexOf 6765: 20

lastIndexOf 1: 2
lastIndexOf 54:
lastIndexOf 55: 10
lastIndexOf 6765: 20

lastIndexWhich(x < 1):
lastIndexWhich(x < 2): 2
lastIndexWhich(x < 10): 6
lastIndexWhich(x < 100): 11
lastIndexWhich(x < 10000): 20

lastValWhich(x < 1):
lastValWhich(x < 2): 1
lastValWhich(x < 10): 8
lastValWhich(x < 100): 89
lastValWhich(x < 10000): 6765

countOf 0: 0
countOf 1: 2
countOf 55: 1

countWhich x>10: 14
countWhich x>100: 9
countWhich x>1000: 4
countWhich x>10000: 0

initially: x =
   [1] = 2
   [2] = 4
   [3] = 6
   [4] = 8
   [5] = 10
   [6] = 12
getUnique:
   [1] = 2
   [2] = 4
   [3] = 6
   [4] = 8
   [5] = 10
   [6] = 12
initially: x =
   [1] = 9
   [2] = 1
   [3] = 9
   [4] = 2
   [5] = 9
   [6] = 3
   [7] = 9
   [8] = 2
   [9] = 9
   [10] = 1
   [11] = 9
getUnique:
   [1] = 9
   [2] = 1
   [3] = 2
   [4] = 3

appendUnique:
   [1] = 1
   [2] = 2
   [3] = 3
   [4] = 4
   [5] = 5
   [6] = 6
   [7] = 7
   [8] = 8
   [9] = 9
   [10] = 10
   [11] = 12
   [12] = 14
   [13] = 16
   [14] = 18
   [15] = 20
appendUnique:
   [1] = 1
   [2] = 2
   [3] = 3
   [4] = 4
   [5] = 5
   [6] = 6
   [7] = 7
   [8] = 8
   [9] = 9
   [10] = 10
   [11] = 11
   [12] = 12
   [13] = 13
   [14] = 14
   [15] = 15
appendUnique:
   [1] = 1
   [2] = 2
   [3] = 3
   [4] = 4
   [5] = 5
   [6] = 6
   [7] = 7
   [8] = 8
   [9] = 9
   [10] = 10
appendUnique - list:
appendUnique:
   [1] = 1
   [2] = 2
   [3] = 3
   [4] = 4
   [5] = 5
   [6] = 6
   [7] = 7
   [8] = 8
   [9] = 9
   [10] = 10
   [11] = 15
   [12] = 20

sort:
   [1] = are
   [2] = hello
   [3] = how
   [4] = there
   [5] = today
   [6] = you
sort descending:
   [1] = you
   [2] = today
   [3] = there
   [4] = how
   [5] = hello
   [6] = are

adding list to vector:
   [1] = 1
   [2] = 1
   [3] = 2
   [4] = 3
   [5] = 5
   [6] = 8
   [7] = 13
   [8] = 101
   [9] = 102
   [10] = 103
adding vector to vector:
   [1] = 1
   [2] = 1
   [3] = 2
   [4] = 3
   [5] = 5
   [6] = 8
   [7] = 13
   [8] = 987
   [9] = 654
   [10] = 321
adding vector to vector:
   [1] = 1
   [2] = 1
   [3] = 2
   [4] = 3
   [5] = 5
   [6] = 8
   [7] = 13
   [8] = 111
   [9] = 222
   [10] = 333
subtracting list from vector:
   [1] = 1
   [2] = 1
   [3] = 13
subtracting vector from vector:
   [1] = 2
   [2] = 3
   [3] = 5
   [4] = 8
subtracting vector from vector:
   [1] = 2
   [2] = 8
   [3] = 13

(T3VM) Memory blocks still in use:

Total blocks in use: 0