about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-14 19:21:51 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-14 19:21:51 -0700
commitcc8f359b2dcc6200f450ba2c9993e816f772010c (patch)
tree5c0602e5e78b3f5730b0a50c4b64b591607796e5
parent2813da63626568615a442f49cfc13eb06389d033 (diff)
downloadmu-cc8f359b2dcc6200f450ba2c9993e816f772010c.tar.gz
914
-rw-r--r--cpp/020call12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/020call b/cpp/020call
index 1a7c4b89..72eb19df 100644
--- a/cpp/020call
+++ b/cpp/020call
@@ -82,14 +82,14 @@ case REPLY: {
     callee_results.push_back(read_memory(instructions[pc].ingredients[i]));
   }
   rr.calls.pop();
-  size_t& new_pc = rr.calls.top().pc;
-//?   cout << new_pc << ": " << instructions[new_pc].products.size() << " <=> " << callee_results.size(); //? 2
-  assert(instructions[new_pc].products.size() <= callee_results.size());
-  for (size_t i = 0; i < instructions[new_pc].products.size(); ++i) {
+  size_t& caller_pc = rr.calls.top().pc;
+//?   cout << caller_pc << ": " << instructions[caller_pc].products.size() << " <=> " << callee_results.size(); //? 2
+  assert(instructions[caller_pc].products.size() <= callee_results.size());
+  for (size_t i = 0; i < instructions[caller_pc].products.size(); ++i) {
 //?     cout << "AAA " << i << '\n'; //? 1
     trace("run") << "result " << i << " is " << callee_results[i].size() << "[" << callee_results[i][0] << "...]";
-    write_memory(instructions[new_pc].products[i], callee_results[i]);
+    write_memory(instructions[caller_pc].products[i], callee_results[i]);
   }
-  ++new_pc;
+  ++caller_pc;
   break;
 }
aram <vc@akkartik.com> 2019-09-14 16:40:51 -0700 committer Kartik Agaram <vc@akkartik.com> 2019-09-14 16:40:51 -0700 5656' href='/akkartik/mu/commit/kernel.soso/hashtable.c?h=hlt&id=67de9b02956419644f570f7e47ecd9940af024b3'>67de9b02 ^
46bb1d31 ^



67de9b02 ^
46bb1d31 ^



67de9b02 ^


46bb1d31 ^















67de9b02 ^
46bb1d31 ^

67de9b02 ^
46bb1d31 ^







67de9b02 ^
46bb1d31 ^

67de9b02 ^
46bb1d31 ^









67de9b02 ^

46bb1d31 ^



















67de9b02 ^
46bb1d31 ^

67de9b02 ^
46bb1d31 ^






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