diff options
Diffstat (limited to 'cpp/.traces')
-rw-r--r-- | cpp/.traces/add | 23 | ||||
-rw-r--r-- | cpp/.traces/add_literal | 9 | ||||
-rw-r--r-- | cpp/.traces/copy | 13 | ||||
-rw-r--r-- | cpp/.traces/divide | 24 | ||||
-rw-r--r-- | cpp/.traces/divide_literal | 10 | ||||
-rw-r--r-- | cpp/.traces/divide_with_remainder | 26 | ||||
-rw-r--r-- | cpp/.traces/divide_with_remainder_literal | 12 | ||||
-rw-r--r-- | cpp/.traces/multiply | 24 | ||||
-rw-r--r-- | cpp/.traces/multiply_literal | 10 | ||||
-rw-r--r-- | cpp/.traces/subtract | 23 | ||||
-rw-r--r-- | cpp/.traces/subtract_literal | 9 |
11 files changed, 183 insertions, 0 deletions
diff --git a/cpp/.traces/add b/cpp/.traces/add new file mode 100644 index 00000000..365c75f0 --- /dev/null +++ b/cpp/.traces/add @@ -0,0 +1,23 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "23", type: 0} +parse/0: product: {name: "1", type: 1} +parse/0: instruction: 1 +parse/0: ingredient: {name: "34", type: 0} +parse/0: product: {name: "2", type: 1} +parse/0: instruction: 2 +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 23 +mem/0: storing in location 1 +run/0: instruction 1 +run/0: ingredient 0 is 34 +mem/0: storing in location 2 +run/0: instruction 2 +run/0: ingredient 0 is 1 +mem/0: location 1 is 23 +run/0: ingredient 1 is 2 +mem/0: location 2 is 34 +run/0: product 0 is 57 +mem/0: storing in location 3 diff --git a/cpp/.traces/add_literal b/cpp/.traces/add_literal new file mode 100644 index 00000000..fcbb611f --- /dev/null +++ b/cpp/.traces/add_literal @@ -0,0 +1,9 @@ +parse/0: instruction: 2 +parse/0: ingredient: {name: "23", type: 0} +parse/0: ingredient: {name: "34", type: 0} +parse/0: product: {name: "1", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 23 +run/0: ingredient 1 is 34 +run/0: product 0 is 57 +mem/0: storing in location 1 diff --git a/cpp/.traces/copy b/cpp/.traces/copy new file mode 100644 index 00000000..965b5f2a --- /dev/null +++ b/cpp/.traces/copy @@ -0,0 +1,13 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "23", type: 0} +parse/0: product: {name: "1", type: 1} +parse/0: instruction: 1 +parse/0: ingredient: {name: "1", type: 1} +parse/0: product: {name: "2", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 23 +mem/0: storing in location 1 +run/0: instruction 1 +run/0: ingredient 0 is 1 +mem/0: location 1 is 23 +mem/0: storing in location 2 diff --git a/cpp/.traces/divide b/cpp/.traces/divide new file mode 100644 index 00000000..d713a512 --- /dev/null +++ b/cpp/.traces/divide @@ -0,0 +1,24 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "27", type: 0} +parse/0: product: {name: "1", type: 1} +parse/0: instruction: 1 +parse/0: ingredient: {name: "3", type: 0} +parse/0: product: {name: "2", type: 1} +parse/0: instruction: 5 +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 27 +mem/0: storing in location 1 +run/0: instruction 1 +run/0: ingredient 0 is 3 +mem/0: storing in location 2 +run/0: instruction 2 +run/0: ingredient 0 is 1 +mem/0: location 1 is 27 +run/0: ingredient 1 is 2 +mem/0: location 2 is 3 +run/0: ingredient 1 is 3 +run/0: product 0 is 9 +mem/0: storing in location 3 diff --git a/cpp/.traces/divide_literal b/cpp/.traces/divide_literal new file mode 100644 index 00000000..47f8690f --- /dev/null +++ b/cpp/.traces/divide_literal @@ -0,0 +1,10 @@ +parse/0: instruction: 5 +parse/0: ingredient: {name: "8", type: 0} +parse/0: ingredient: {name: "2", type: 0} +parse/0: product: {name: "1", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 8 +run/0: ingredient 1 is 2 +run/0: ingredient 1 is 2 +run/0: product 0 is 4 +mem/0: storing in location 1 diff --git a/cpp/.traces/divide_with_remainder b/cpp/.traces/divide_with_remainder new file mode 100644 index 00000000..330141db --- /dev/null +++ b/cpp/.traces/divide_with_remainder @@ -0,0 +1,26 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "27", type: 0} +parse/0: product: {name: "1", type: 1} +parse/0: instruction: 1 +parse/0: ingredient: {name: "11", type: 0} +parse/0: product: {name: "2", type: 1} +parse/0: instruction: 6 +parse/0: ingredient: {name: "1", type: 1} +parse/0: ingredient: {name: "2", type: 1} +parse/0: product: {name: "3", type: 1} +parse/0: product: {name: "4", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 27 +mem/0: storing in location 1 +run/0: instruction 1 +run/0: ingredient 0 is 11 +mem/0: storing in location 2 +run/0: instruction 2 +run/0: ingredient 0 is 1 +mem/0: location 1 is 27 +run/0: ingredient 1 is 2 +mem/0: location 2 is 11 +run/0: product 0 is 2 +mem/0: storing in location 3 +run/0: product 1 is 5 +mem/0: storing in location 4 diff --git a/cpp/.traces/divide_with_remainder_literal b/cpp/.traces/divide_with_remainder_literal new file mode 100644 index 00000000..aa3b6478 --- /dev/null +++ b/cpp/.traces/divide_with_remainder_literal @@ -0,0 +1,12 @@ +parse/0: instruction: 6 +parse/0: ingredient: {name: "9", type: 0} +parse/0: ingredient: {name: "2", type: 0} +parse/0: product: {name: "1", type: 1} +parse/0: product: {name: "2", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 9 +run/0: ingredient 1 is 2 +run/0: product 0 is 4 +mem/0: storing in location 1 +run/0: product 1 is 1 +mem/0: storing in location 2 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 diff --git a/cpp/.traces/multiply_literal b/cpp/.traces/multiply_literal new file mode 100644 index 00000000..e27a4fa9 --- /dev/null +++ b/cpp/.traces/multiply_literal @@ -0,0 +1,10 @@ +parse/0: instruction: 4 +parse/0: ingredient: {name: "2", type: 0} +parse/0: ingredient: {name: "3", type: 0} +parse/0: product: {name: "1", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 2 +run/0: ingredient 1 is 3 +run/0: ingredient 1 is 3 +run/0: product 0 is 6 +mem/0: storing in location 1 diff --git a/cpp/.traces/subtract b/cpp/.traces/subtract new file mode 100644 index 00000000..73b675e9 --- /dev/null +++ b/cpp/.traces/subtract @@ -0,0 +1,23 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "23", type: 0} +parse/0: product: {name: "1", type: 1} +parse/0: instruction: 1 +parse/0: ingredient: {name: "34", type: 0} +parse/0: product: {name: "2", type: 1} +parse/0: instruction: 3 +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 23 +mem/0: storing in location 1 +run/0: instruction 1 +run/0: ingredient 0 is 34 +mem/0: storing in location 2 +run/0: instruction 2 +run/0: ingredient 0 is 1 +mem/0: location 1 is 23 +run/0: ingredient 1 is 2 +mem/0: location 2 is 34 +run/0: product 0 is -11 +mem/0: storing in location 3 diff --git a/cpp/.traces/subtract_literal b/cpp/.traces/subtract_literal new file mode 100644 index 00000000..73bfce31 --- /dev/null +++ b/cpp/.traces/subtract_literal @@ -0,0 +1,9 @@ +parse/0: instruction: 3 +parse/0: ingredient: {name: "5", type: 0} +parse/0: ingredient: {name: "2", type: 0} +parse/0: product: {name: "1", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 5 +run/0: ingredient 1 is 2 +run/0: product 0 is 3 +mem/0: storing in location 1 |