From c1a50c82b85825c07b58ce5e4f3a1d5433cae5dd Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 19 Feb 2015 16:32:00 -0800 Subject: 787 - arithmetic operations Lots of duplication here; we'll clean it up later. --- cpp/.traces/multiply | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cpp/.traces/multiply (limited to 'cpp/.traces/multiply') diff --git a/cpp/.traces/multiply b/cpp/.traces/multiply new file mode 100644 index 00000000..4d9c5008 --- /dev/null +++ b/cpp/.traces/multiply @@ -0,0 +1,24 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "4", type: 0} +parse/0: product: {name: "1", type: 1} +parse/0: instruction: 1 +parse/0: ingredient: {name: "6", type: 0} +parse/0: product: {name: "2", type: 1} +parse/0: instruction: 4 +parse/0: ingredient: {name: "1", type: 1} +parse/0: ingredient: {name: "2", type: 1} +parse/0: product: {name: "3", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 4 +mem/0: storing in location 1 +run/0: instruction 1 +run/0: ingredient 0 is 6 +mem/0: storing in location 2 +run/0: instruction 2 +run/0: ingredient 0 is 1 +mem/0: location 1 is 4 +run/0: ingredient 1 is 2 +mem/0: location 2 is 6 +run/0: ingredient 1 is 6 +run/0: product 0 is 24 +mem/0: storing in location 3 -- cgit 1.4.1-2-gfad0