about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/.traces/get_address_indirect6
-rw-r--r--cpp/.traces/get_indirect6
-rw-r--r--cpp/018address4
3 files changed, 8 insertions, 8 deletions
diff --git a/cpp/.traces/get_address_indirect b/cpp/.traces/get_address_indirect
index 60ddfd9b..6d7b2c24 100644
--- a/cpp/.traces/get_address_indirect
+++ b/cpp/.traces/get_address_indirect
@@ -7,7 +7,7 @@ parse/0:   product: {name: "2", type: 1}
 parse/0: instruction: 1
 parse/0:   ingredient: {name: "35", type: 0}
 parse/0:   product: {name: "3", type: 1}
-parse/0: instruction: 18
+parse/0: instruction: 19
 parse/0:   ingredient: {name: "1", type: 2-4, property: deref:}
 parse/0:   ingredient: {name: "0", type: 0}
 parse/0:   product: {name: "4", type: 1}
@@ -25,7 +25,5 @@ run/0: ingredient 0 is 1
 mem/0: location 1 is 2
 run/0: ingredient 1 is 0
 run/0: address to copy is 2
-run/0: its type is 1
-mem/0: location 2 is 34
-run/0: product 0 is 34
+run/0: product 0 is 2
 mem/0: storing in location 4
diff --git a/cpp/.traces/get_indirect b/cpp/.traces/get_indirect
index 6d7b2c24..60ddfd9b 100644
--- a/cpp/.traces/get_indirect
+++ b/cpp/.traces/get_indirect
@@ -7,7 +7,7 @@ parse/0:   product: {name: "2", type: 1}
 parse/0: instruction: 1
 parse/0:   ingredient: {name: "35", type: 0}
 parse/0:   product: {name: "3", type: 1}
-parse/0: instruction: 19
+parse/0: instruction: 18
 parse/0:   ingredient: {name: "1", type: 2-4, property: deref:}
 parse/0:   ingredient: {name: "0", type: 0}
 parse/0:   product: {name: "4", type: 1}
@@ -25,5 +25,7 @@ run/0: ingredient 0 is 1
 mem/0: location 1 is 2
 run/0: ingredient 1 is 0
 run/0: address to copy is 2
-run/0: product 0 is 2
+run/0: its type is 1
+mem/0: location 2 is 34
+run/0: product 0 is 34
 mem/0: storing in location 4
diff --git a/cpp/018address b/cpp/018address
index 621ad7e3..91954ec8 100644
--- a/cpp/018address
+++ b/cpp/018address
@@ -95,7 +95,7 @@ reagent deref(reagent x) {
   return result;
 }
 
-:(scenario "get_address_indirect")
+:(scenario "get_indirect")
 # 'get' can read from record address
 recipe main [
   1:integer <- copy 2:literal
@@ -138,7 +138,7 @@ case GET: {
   break;
 }
 
-:(scenario "get_indirect")
+:(scenario "get_address_indirect")
 # 'get' can read from record address
 recipe main [
   1:integer <- copy 2:literal