From f6d47435664c1d4f222736fee9e2d17755dd91ad Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 14 Mar 2015 01:09:20 -0700 Subject: 904 - c++: replying from recipes --- cpp/.traces/calling_recipe | 2 +- cpp/.traces/next_ingredient | 2 +- cpp/.traces/reply | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 cpp/.traces/reply (limited to 'cpp/.traces') diff --git a/cpp/.traces/calling_recipe b/cpp/.traces/calling_recipe index ab7089e0..3c220e09 100644 --- a/cpp/.traces/calling_recipe +++ b/cpp/.traces/calling_recipe @@ -1,4 +1,4 @@ -parse/0: instruction: 24 +parse/0: instruction: 25 parse/0: instruction: 2 parse/0: ingredient: {name: "2", type: 0} parse/0: ingredient: {name: "2", type: 0} diff --git a/cpp/.traces/next_ingredient b/cpp/.traces/next_ingredient index 5dccf578..8ded3d51 100644 --- a/cpp/.traces/next_ingredient +++ b/cpp/.traces/next_ingredient @@ -1,4 +1,4 @@ -parse/0: instruction: 24 +parse/0: instruction: 25 parse/0: ingredient: {name: "2", type: 0} parse/0: instruction: 22 parse/0: product: {name: "12", type: 1} diff --git a/cpp/.traces/reply b/cpp/.traces/reply new file mode 100644 index 00000000..6b7b7417 --- /dev/null +++ b/cpp/.traces/reply @@ -0,0 +1,30 @@ +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: 22 +parse/0: product: {name: "12", type: 1} +parse/0: instruction: 2 +parse/0: ingredient: {name: "1", type: 0} +parse/0: ingredient: {name: "12", type: 1} +parse/0: product: {name: "13", type: 1} +parse/0: instruction: 23 +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 2 +run/0: product 0 is 3 +mem/0: storing in location 13 +run/0: instruction f/2 +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[3...] +mem/0: storing in location 4 -- cgit 1.4.1-2-gfad0