/data/

n Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/arc/.traces/scheduler-sleep-timeout
blob: f7ddb350ec55ae878e2d85da473986a7133afcca (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
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
c{0: 0 (((i integer)) <- ((copy)) ((0 literal))) -- nil
c{0: 1 (((done? boolean)) <- ((greater-or-equal)) ((i integer)) ((10 literal))) -- ((open 1))
c{0: 2 (((break-if)) ((done? boolean))) -- ((open 1))
c{0: 3 (((1 integer)) <- ((add)) ((i integer)) ((1 literal))) -- ((open 1))
c{0: 4 (((loop))) -- ((open 1))
c{1: 0 ✓ (((i integer)) <- ((copy)) ((0 literal)))
c{1: 1 ✓ (((done? boolean)) <- ((greater-or-equal)) ((i integer)) ((10 literal)))
c{1: 2 X (((break-if)) ((done? boolean))) => (((jump-if)) ((done? boolean)) ((2 offset)))
c{1: 3 ✓ (((1 integer)) <- ((add)) ((i integer)) ((1 literal)))
c{1: 4 X (((loop))) => (((jump)) ((-4 offset)))
c{0: 0 (((sleep)) ((for-some-cycles literal)) ((10 literal))) -- nil
c{1: 0 ✓ (((sleep)) ((for-some-cycles literal)) ((10 literal)))
cn0: convert-names in baseline
cn0: (((i integer)) <- ((copy)) ((0 literal))) nil nil
cn0: checking arg ((0 literal))
cn0: checking oarg ((i integer))
maybe-add: ((i integer))
cn0: location for oarg ((i integer)): 1
cn0: (((done? boolean)) <- ((greater-or-equal)) ((i integer)) ((10 literal))) ((i 1)) nil
cn0: checking arg ((i integer))
maybe-add: ((i integer))
cn0: checking arg ((10 literal))
cn0: checking oarg ((done? boolean))
maybe-add: ((done? boolean))
cn0: location for oarg ((done? boolean)): 2
cn0: (((jump-if)) ((done? boolean)) ((2 offset))) ((done? 2) (i 1)) nil
cn0: checking arg ((done? boolean))
maybe-add: ((done? boolean))
cn0: checking arg ((2 offset))
cn0: (((1 integer)) <- ((add)) ((i integer)) ((1 literal))) ((done? 2) (i 1)) nil
cn0: checking arg ((i integer))
maybe-add: ((i integer))
cn0: checking arg ((1 literal))
cn0: checking oarg ((1 integer))
maybe-add: ((1 integer))
cn0: (((jump)) ((-4 offset))) ((done? 2) (i 1)) nil
cn0: checking arg ((-4 offset))
cn0: convert-names in f1
cn0: (((sleep)) ((for-some-cycles literal)) ((10 literal))) nil nil
cn0: checking arg ((for-some-cycles literal))
cn0: checking arg ((10 literal))
cn1: (((1 integer)) <- ((copy)) ((0 literal)))
cn1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
cn1: (((jump-if)) ((2 boolean)) ((2 offset)))
cn1: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
cn1: (((jump)) ((-4 offset)))
cn1: (((sleep)) ((for-some-cycles literal)) ((10 literal)))
schedule: baseline
run: baseline 0: (((1 integer)) <- ((copy)) ((0 literal)))
run: baseline 0: 0 => ((1 integer))
mem: ((1 integer)): 1 <= 0
schedule: scheduling baseline for further processing
schedule: f1
run: f1 0: (((sleep)) ((for-some-cycles literal)) ((10 literal)))
run: f1 0: sleeping until 12
schedule: pushing f1 to sleep queue
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 0
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 0
run: baseline 3: 1 => ((1 integer))
mem: ((1 integer)): 1 <= 1
schedule: scheduling baseline for further processing
schedule: routine timed out
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 1
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 1
run: baseline 3: 2 => ((1 integer))
mem: ((1 integer)): 1 <= 2
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 2
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 2
run: baseline 3: 3 => ((1 integer))
mem: ((1 integer)): 1 <= 3
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 3
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 3
run: baseline 3: 4 => ((1 integer))
mem: ((1 integer)): 1 <= 4
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 4
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 4
run: baseline 3: 5 => ((1 integer))
mem: ((1 integer)): 1 <= 5
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 5
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 5
run: baseline 3: 6 => ((1 integer))
mem: ((1 integer)): 1 <= 6
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 6
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 6
run: baseline 3: 7 => ((1 integer))
mem: ((1 integer)): 1 <= 7
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 7
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 7
run: baseline 3: 8 => ((1 integer))
mem: ((1 integer)): 1 <= 8
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 8
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 8
run: baseline 3: 9 => ((1 integer))
mem: ((1 integer)): 1 <= 9
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 9
run: baseline 1: nil => ((2 boolean))
mem: ((2 boolean)): 2 <= nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => nil
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 3: (((1 integer)) <- ((add)) ((1 integer)) ((1 literal)))
mem: ((1 integer)) => 9
run: baseline 3: 10 => ((1 integer))
mem: ((1 integer)): 1 <= 10
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 4: (((jump)) ((-4 offset)))
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 1: (((2 boolean)) <- ((greater-or-equal)) ((1 integer)) ((10 literal)))
mem: ((1 integer)) => 10
run: baseline 1: t => ((2 boolean))
mem: ((2 boolean)): 2 <= t
schedule: scheduling baseline for further processing
schedule: baseline
run: baseline 2: (((jump-if)) ((2 boolean)) ((2 offset)))
mem: ((2 boolean)) => t
schedule: scheduling baseline for further processing
schedule: baseline
schedule: done with routine nil