Debian Codegraph @

terps/tads/tads3/test/log/dyncomp_restore.log

raw
1 Restoring...
2 Source: function(x) { return x*2; }
3 Call: f(7)
4 Result: 14
5
6 Source: function(x, p, y) { return x.(p)(y + 1000); }
7 Call: f(test1, &m1, 456)
8 Result: greetings from test1.m1(1456)!
9
10 Source: function(x, y) { return x.m1(y + 1000); }
11 Call: f(test1, 678)
12 Result: greetings from test1.m1(1678)!
13
14 Source: test1.m1(123);
15 Call: f()
16 Result: greetings from test1.m1(123)!
17
18 Source: test2.m1(123);
19 Call: f()
20 Result: greetings from test2.m1(123)!
21
22 Source: function(x) { return test2.m1(x + 1000); }
23 Call: f(789)
24 Result: greetings from test2.m1(1789)!
25
26 Source: function(x) { return f1(x + 1000); }
27 Call: f(654)
28 Result: Greetings from f1(1654)!
29
30 Source: new BigNumber('123.456');
31 Call: f()
32 Result: 123.456
33
34 Source: function(x) { local a = x*2, f = {x, y: 'anon f! x=<<x>>, y=<<y>>,
35 a=<<a>>'}; a += 1; return f; }
36 Call: f(135)(7, 8)
37 Result: anon f! x=7, y=8, a=271
38
39 Source: function(x, y) { local f = {: ++x, ++y, 'this is anon 1: x=<<x>>,
40 y=<<y>>' }; local g = {: ++x, ++y, 'this is anon 2: x=<<x>>, y=<<y>>' }; return
41 [f, g]; }
42 Call: testAnon(f)
43 Result: l = f(123, 456):
44 type(l)=10, l.length=2
45 type(l[1])=5, type(l[2])=5
46 l[1]()=this is anon 1: x=124, y=457, l[2]()=this is anon 2: x=125, y=458
47
48 Source:
49 Call: l[1]()
50 Result: this is anon 1: x=126, y=459
51
52 Source:
53 Call: l[2]()
54 Result: this is anon 2: x=127, y=460
55
56 Source: function(a:, b:) { return a+b*1000; }
57 Call: f(b:123, a:789)
58 Result: 123789
59
60 Source: function() { local lst = [10, 20, 30, 40, 50]; local sum = 0; for
61 (local i in lst) sum += i; return sum; }
62 Call: f()
63 Result: 150
64
65 Source: function() { nameTest(b:123, a:'hello'); }
66 Call: f()
67 Result: Named argument test: a=hello, b=123
68
69 Source: function() { local obj = new Thing('test'); obj.desc; }
70 Call: f()
71 Result: This is a Thing whose name is 'test'!
72
73 Source: function(cnt) { for (local i in 1..cnt) "[<<i>>] Embedded item number
74 <<one of>>one<<or>>two<<or >>three<<or>>four<<cycling>>... "; }
75 Call: f(10)
76 Result: [1] Embedded item number three... [2] Embedded item number four... [3]
77 Embedded item number one... [4] Embedded item number two... [5] Embedded item
78 number three... [6] Embedded item number four... [7] Embedded item number
79 one... [8] Embedded item number two... [9] Embedded item number three... [10]
80 Embedded item number four...
81
82 Source: function([lst]) { for (local x in lst) "Embedded if test: x=<<x>>,
83 which is << if x > 5>>greater than<<else if x < 5>>less than<<else
84 >>exactly<<end>> five... "; }
85 Call: f(7, 3, 5, 9, 4)
86 Result: Embedded if test: x=7, which is greater than five... Embedded if test:
87 x=3, which is less than five... Embedded if test: x=5, which is exactly five...
88 Embedded if test: x=9, which is greater than five... Embedded if test: x=4,
89 which is less than five...
90
91 Source: function(x) { return square(x); }
92 Call: f(11)
93 Result: 121
94
95 Source: function(x, y) { return RTEST(x+1, y+1); }
96 Call: f(101, 202)
97 Result: This is RTEST(102, 203)!!!
98
99 Source: function() { return i; }
100 Call: localtest()
101 Result: this is the 'i' value!
102
103 Source: function() { return i; }
104 Call: localtest()
105 Result: another 'i' value!
106
107 Source: function() { local orig = i; i += ' *MODIFIED!*'; return orig; }
108 Call: localtest2_part1()
109 Result: original 'i' value *MODIFIED!*
110
111 Source: function() { return i; }
112 Call: localtest2_part2()
113 Result: original 'i' value *MODIFIED!* *MODIFIED!*
114
115 Source: function() { local orig = i; i += ' [modified by dynfunc]'; return
116 orig; }
117 Call: localtest3_part1()
118 Result: first i value [modified by dynfunc] [modified by anon fn]
119
120 Source: function() { return i; }
121 Call: localtest3_part2()
122 Result: first i value [modified by dynfunc] [modified by anon fn] [modified by
123 dynfunc]
124
125
126 (T3VM) Memory blocks still in use:
127
128 Total blocks in use: 0