about summary refs log tree commit diff stats
path: root/cpp/032array
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/032array')
-rw-r--r--cpp/032array8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/032array b/cpp/032array
index 84ee4d38..284ca592 100644
--- a/cpp/032array
+++ b/cpp/032array
@@ -98,21 +98,23 @@ case INDEX: {
 //?   if (Trace_stream) Trace_stream->dump_layer = "run"; //? 1
   trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].to_string();
   reagent base = canonize(instructions[pc].ingredients[0]);
-//?   trace("run") << "ingredient 0 after canonize: " << instructions[pc].ingredients[0].to_string(); //? 1
+//?   trace("run") << "ingredient 0 after canonize: " << base.to_string(); //? 1
   int base_address = base.value;
   assert(base.types[0] == ARRAY);
   trace("run") << "ingredient 1 is " << instructions[pc].ingredients[1].to_string();
   reagent offset = canonize(instructions[pc].ingredients[1]);
+//?   trace("run") << "ingredient 1 after canonize: " << offset.to_string(); //? 1
   vector<int> offset_val(read_memory(offset));
   vector<type_number> element_type = array_element(base.types);
+//?   trace("run") << "offset: " << offset_val[0]; //? 1
+//?   trace("run") << "size of elements: " << size_of(element_type); //? 1
   int src = base_address + 1 + offset_val[0]*size_of(element_type);
   trace("run") << "address to copy is " << src;
   trace("run") << "its type is " << element_type[0];
   reagent tmp;
   tmp.set_value(src);
   copy(element_type.begin(), element_type.end(), inserter(tmp.types, tmp.types.begin()));
-  tmp.properties.push_back(pair<string, vector<string> >("raw", vector<string>()));
-//?   cout << "AAA: " << tmp.to_string() << '\n'; //? 2
+//?   trace("run") << "AAA: " << tmp.to_string() << '\n'; //? 3
   vector<int> result(read_memory(tmp));
   trace("run") << "product 0 is " << result[0];
   write_memory(instructions[pc].products[0], result);
966b5e9bf1bd3da48f49d7e133d112a2bbe'>^
ac07e589 ^
60338448 ^
695f9bf8 ^
60338448 ^
e0610e39 ^
ac07e589 ^
5a2cb154 ^















695f9bf8 ^
5a2cb154 ^















c8a3ccbe ^
5a2cb154 ^
14a38052 ^
c56d803c ^

60338448 ^
a0d3cac4 ^
ebd35521 ^
c56d803c ^
5a2cb154 ^
a0d3cac4 ^
14a38052 ^


5a2cb154 ^
695f9bf8 ^
a0d3cac4 ^











695f9bf8 ^
a0d3cac4 ^















5a2cb154 ^



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