about summary refs log tree commit diff stats
path: root/cpp/019address
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-23 23:59:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-24 20:59:00 -0700
commit576990113273caed9a045380f1457adc1df6a5ee (patch)
tree0add69eef41b3eca78191c59b7bfbfaaedd980d8 /cpp/019address
parent7fb56277f54b9e2625357a433b18f60e4493f34a (diff)
downloadmu-576990113273caed9a045380f1457adc1df6a5ee.tar.gz
968
Diffstat (limited to 'cpp/019address')
-rw-r--r--cpp/019address10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/019address b/cpp/019address
index 9e9e1164..c487dac6 100644
--- a/cpp/019address
+++ b/cpp/019address
@@ -10,7 +10,7 @@ recipe main [
 +run: instruction main/2
 +mem: location 1 is 2
 +mem: location 2 is 34
-+mem: storing in location 3
++mem: storing 34 in location 3
 
 :(replace{} "vector<int> read_memory(reagent x)")
 vector<int> read_memory(reagent x) {
@@ -40,7 +40,7 @@ recipe main [
 ]
 +run: instruction main/1
 +mem: location 1 is 2
-+mem: storing in location 2
++mem: storing 34 in location 2
 
 :(replace{} "void write_memory(reagent x, vector<int> data)")
 void write_memory(reagent x, vector<int> data) {
@@ -51,7 +51,7 @@ void write_memory(reagent x, vector<int> data) {
   if (!Type[x.types[0]].is_array && size_of(x) != data.size())
     raise << "size mismatch in storing to " << x.to_string();
   for (size_t offset = 0; offset < data.size(); ++offset) {
-    trace("mem") << "storing in location " << base+offset;
+    trace("mem") << "storing " << data[offset] << " in location " << base+offset;
     Memory[base+offset] = data[offset];
   }
 }
@@ -110,7 +110,7 @@ recipe main [
 +run: instruction main/3
 +run: address to copy is 2
 +run: product 0 is 34
-+mem: storing in location 4
++mem: storing 34 in location 4
 
 :(scenario "include_nonderef_properties")
 recipe main [
@@ -122,7 +122,7 @@ recipe main [
 +run: instruction main/3
 +run: address to copy is 2
 +run: product 0 is 34
-+mem: storing in location 4
++mem: storing 34 in location 4
 
 :(replace{} "case GET:")
 case GET: {