about summary refs log tree commit diff stats
path: root/cpp/.traces/factorial-test
blob: 1729d718d58b4955f447d00883cbaf2ccdf101d9 (plain) (blame)
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
parse/0: instruction: 108
parse/0:   ingredient: {name: "5", value: 0, type: 0, properties: ["5": "literal"]}
parse/0:   product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]}
after-brace/0: recipe test-factorial-test
after-brace/0: factorial ...
run/0: instruction test-factorial-test/0
run/0: instruction factorial/0
mem/0: new alloc: 1000
mem/0: array size is 30
run/0: instruction factorial/1
run/0: product 0 is 5
mem/0: storing 5 in location 1002
run/0: instruction factorial/3
run/0: ingredient 0 is n
mem/0: location 1002 is 5
run/0: ingredient 1 is 0
run/0: product 0 is 0
mem/0: storing 0 in location 1003
run/0: instruction factorial/4
mem/0: location 1003 is 0
run/0: ingredient 0 is 0
run/0: ingredient 1 is 
run/0: jumping to instruction 6
run/0: instruction factorial/7
run/0: ingredient 0 is n
mem/0: location 1002 is 5
run/0: ingredient 1 is 1
run/0: product 0 is 4
mem/0: storing 4 in location 1004
run/0: instruction factorial/8
mem/0: location 1004 is 4
run/0: instruction factorial/0
mem/0: new alloc: 1030
mem/0: array size is 30
run/0: instruction factorial/1
run/0: product 0 is 4
mem/0: storing 4 in location 1032
run/0: instruction factorial/3
run/0: ingredient 0 is n
mem/0: location 1032 is 4
run/0: ingredient 1 is 0
run/0: product 0 is 0
mem/0: storing 0 in location 1033
run/0: instruction factorial/4
mem/0: location 1033 is 0
run/0: ingredient 0 is 0
run/0: ingredient 1 is 
run/0: jumping to instruction 6
run/0: instruction factorial/7
run/0: ingredient 0 is n
mem/0: location 1032 is 4
run/0: ingredient 1 is 1
run/0: product 0 is 3
mem/0: storing 3 in location 1034
run/0: instruction factorial/8
mem/0: location 1034 is 3
run/0: instruction factorial/0
mem/0: new alloc: 1060
mem/0: array size is 30
run/0: instruction factorial/1
run/0: product 0 is 3
mem/0: storing 3 in location 1062
run/0: instruction factorial/3
run/0: ingredient 0 is n
mem/0: location 1062 is 3
run/0: ingredient 1 is 0
run/0: product 0 is 0
mem/0: storing 0 in location 1063
run/0: instruction factorial/4
mem/0: location 1063 is 0
run/0: ingredient 0 is 0
run/0: ingredient 1 is 
run/0: jumping to instruction 6
run/0: instruction factorial/7
run/0: ingredient 0 is n
mem/0: location 1062 is 3
run/0: ingredient 1 is 1
run/0: product 0 is 2
mem/0: storing 2 in location 1064
run/0: instruction factorial/8
mem/0: location 1064 is 2
run/0: instruction factorial/0
mem/0: new alloc: 1090
mem/0: array size is 30
run/0: instruction factorial/1
run/0: product 0 is 2
mem/0: storing 2 in location 1092
run/0: instruction factorial/3
run/0: ingredient 0 is n
mem/0: location 1092 is 2
run/0: ingredient 1 is 0
run/0: product 0 is 0
mem/0: storing 0 in location 1093
run/0: instruction factorial/4
mem/0: location 1093 is 0
run/0: ingredient 0 is 0
run/0: ingredient 1 is 
run/0: jumping to instruction 6
run/0: instruction factorial/7
run/0: ingredient 0 is n
mem/0: location 1092 is 2
run/0: ingredient 1 is 1
run/0: product 0 is 1
mem/0: storing 1 in location 1094
run/0: instruction factorial/8
mem/0: location 1094 is 1
run/0: instruction factorial/0
mem/0: new alloc: 1120
mem/0: array size is 30
run/0: instruction factorial/1
run/0: product 0 is 1
mem/0: storing 1 in location 1122
run/0: instruction factorial/3
run/0: ingredient 0 is n
mem/0: location 1122 is 1
run/0: ingredient 1 is 0
run/0: product 0 is 0
mem/0: storing 0 in location 1123
run/0: instruction factorial/4
mem/0: location 1123 is 0
run/0: ingredient 0 is 0
run/0: ingredient 1 is 
run/0: jumping to instruction 6
run/0: instruction factorial/7
run/0: ingredient 0 is n
mem/0: location 1122 is 1
run/0: ingredient 1 is 1
run/0: product 0 is 0
mem/0: storing 0 in location 1124
run/0: instruction factorial/8
mem/0: location 1124 is 0
run/0: instruction factorial/0
mem/0: new alloc: 1150
mem/0: array size is 30
run/0: instruction factorial/1
run/0: product 0 is 0
mem/0: storing 0 in location 1152
run/0: instruction factorial/3
run/0: ingredient 0 is n
mem/0: location 1152 is 0
run/0: ingredient 1 is 0
run/0: product 0 is 1
mem/0: storing 1 in location 1153
run/0: instruction factorial/4
mem/0: location 1153 is 1
run/0: ingredient 0 is 1
run/0: jump-unless fell through
run/0: instruction factorial/5
run/0: result 0 is 1
mem/0: storing 1 in location 1125
run/0: instruction factorial/9
run/0: ingredient 0 is subresult
mem/0: location 1125 is 1
run/0: ingredient 1 is n
mem/0: location 1122 is 1
run/0: ingredient 1 is 1
run/0: product 0 is 1
mem/0: storing 1 in location 1126
run/0: instruction factorial/10
mem/0: location 1126 is 1
run/0: result 0 is 1
mem/0: storing 1 in location 1095
run/0: instruction factorial/9
run/0: ingredient 0 is subresult
mem/0: location 1095 is 1
run/0: ingredient 1 is n
mem/0: location 1092 is 2
run/0: ingredient 1 is 2
run/0: product 0 is 2
mem/0: storing 2 in location 1096
run/0: instruction factorial/10
mem/0: location 1096 is 2
run/0: result 0 is 2
mem/0: storing 2 in location 1065
run/0: instruction factorial/9
run/0: ingredient 0 is subresult
mem/0: location 1065 is 2
run/0: ingredient 1 is n
mem/0: location 1062 is 3
run/0: ingredient 1 is 3
run/0: product 0 is 6
mem/0: storing 6 in location 1066
run/0: instruction factorial/10
mem/0: location 1066 is 6
run/0: result 0 is 6
mem/0: storing 6 in location 1035
run/0: instruction factorial/9
run/0: ingredient 0 is subresult
mem/0: location 1035 is 6
run/0: ingredient 1 is n
mem/0: location 1032 is 4
run/0: ingredient 1 is 4
run/0: product 0 is 24
mem/0: storing 24 in location 1036
run/0: instruction factorial/10
mem/0: location 1036 is 24
run/0: result 0 is 24
mem/0: storing 24 in location 1005
run/0: instruction factorial/9
run/0: ingredient 0 is subresult
mem/0: location 1005 is 24
run/0: ingredient 1 is n
mem/0: location 1002 is 5
run/0: ingredient 1 is 5
run/0: product 0 is 120
mem/0: storing 120 in location 1006
run/0: instruction factorial/10
mem/0: location 1006 is 120
run/0: result 0 is 120
mem/0: storing 120 in location 1