diff options
-rw-r--r-- | cpp/.traces/reply | 16 | ||||
-rw-r--r-- | cpp/022call_reply | 2 |
2 files changed, 10 insertions, 8 deletions
diff --git a/cpp/.traces/reply b/cpp/.traces/reply index 7b89c745..6b7b7417 100644 --- a/cpp/.traces/reply +++ b/cpp/.traces/reply @@ -2,7 +2,7 @@ parse/0: instruction: 25 parse/0: ingredient: {name: "2", type: 0} parse/0: product: {name: "3", type: 1} parse/0: product: {name: "4", type: 1} -parse/0: instruction: 26 +parse/0: instruction: 22 parse/0: product: {name: "12", type: 1} parse/0: instruction: 2 parse/0: ingredient: {name: "1", type: 0} @@ -13,16 +13,18 @@ parse/0: ingredient: {name: "12", type: 1} parse/0: ingredient: {name: "13", type: 1} run/0: instruction main/0 run/0: instruction f/0 +run/0: product 0 is 2 +mem/0: storing in location 12 run/0: instruction f/1 run/0: ingredient 0 is 1 run/0: ingredient 1 is 12 -mem/0: location 12 is 0 -run/0: product 0 is 1 +mem/0: location 12 is 2 +run/0: product 0 is 3 mem/0: storing in location 13 run/0: instruction f/2 -mem/0: location 12 is 0 -mem/0: location 13 is 1 -run/0: result 0 is 1[0...] +mem/0: location 12 is 2 +mem/0: location 13 is 3 +run/0: result 0 is 1[2...] mem/0: storing in location 3 -run/0: result 1 is 1[1...] +run/0: result 1 is 1[3...] mem/0: storing in location 4 diff --git a/cpp/022call_reply b/cpp/022call_reply index 3deb5464..17f2c463 100644 --- a/cpp/022call_reply +++ b/cpp/022call_reply @@ -4,7 +4,7 @@ recipe main [ 3:integer, 4:integer <- f 2:literal ] recipe f [ - 12:integer <- next_ingredient + 12:integer <- next-ingredient 13:integer <- add 1:literal, 12:integer reply 12:integer, 13:integer ] |