diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-02-22 00:42:58 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-02-22 00:42:58 -0800 |
commit | de63f02eac2bfc14b1fa9ee979f03eeeb5f35250 (patch) | |
tree | c573cc2bb01e1895b9000f3edebab46c23abecec /cpp | |
parent | 6c69f77944078029f68e8b4b9d4c2e3436d9ee29 (diff) | |
download | mu-de63f02eac2bfc14b1fa9ee979f03eeeb5f35250.tar.gz |
819
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/.traces/get_address_indirect | 6 | ||||
-rw-r--r-- | cpp/.traces/get_indirect | 6 | ||||
-rw-r--r-- | cpp/018address | 4 |
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 |