diff options
Diffstat (limited to 'cpp/.traces')
-rw-r--r-- | cpp/.traces/jump | 7 | ||||
-rw-r--r-- | cpp/.traces/jump_backward | 23 | ||||
-rw-r--r-- | cpp/.traces/jump_can_skip_instructions | 7 | ||||
-rw-r--r-- | cpp/.traces/jump_if | 10 | ||||
-rw-r--r-- | cpp/.traces/jump_if_fallthrough | 12 | ||||
-rw-r--r-- | cpp/.traces/jump_unless | 10 | ||||
-rw-r--r-- | cpp/.traces/jump_unless_fallthrough | 12 |
7 files changed, 81 insertions, 0 deletions
diff --git a/cpp/.traces/jump b/cpp/.traces/jump new file mode 100644 index 00000000..e1c0f664 --- /dev/null +++ b/cpp/.traces/jump @@ -0,0 +1,7 @@ +parse/0: instruction: 10 +parse/0: ingredient: {name: "1", type: 0} +parse/0: instruction: 1 +parse/0: ingredient: {name: "1", type: 0} +parse/0: product: {name: "1", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 1 diff --git a/cpp/.traces/jump_backward b/cpp/.traces/jump_backward new file mode 100644 index 00000000..18a79084 --- /dev/null +++ b/cpp/.traces/jump_backward @@ -0,0 +1,23 @@ +parse/0: instruction: 10 +parse/0: ingredient: {name: "1", type: 0} +parse/0: ingredient: {name: "//", type: 0} +parse/0: ingredient: {name: "0", type: 0} +parse/0: ingredient: {name: "-+", type: 0} +parse/0: instruction: 10 +parse/0: ingredient: {name: "1", type: 0} +parse/0: ingredient: {name: "//", type: 0} +parse/0: ingredient: {name: "|", type: 0} +parse/0: ingredient: {name: "1", type: 0} +parse/0: ingredient: {name: "+-+", type: 0} +parse/0: instruction: 10 +parse/0: ingredient: {name: "-2", type: 0} +parse/0: ingredient: {name: "//", type: 0} +parse/0: ingredient: {name: "2", type: 0} +parse/0: ingredient: {name: "+-->+", type: 0} +parse/0: ingredient: {name: "|", type: 0} +run/0: instruction 0 +run/0: ingredient 0 is 1 +run/0: instruction 2 +run/0: ingredient 0 is -2 +run/0: instruction 1 +run/0: ingredient 0 is 1 diff --git a/cpp/.traces/jump_can_skip_instructions b/cpp/.traces/jump_can_skip_instructions new file mode 100644 index 00000000..e1c0f664 --- /dev/null +++ b/cpp/.traces/jump_can_skip_instructions @@ -0,0 +1,7 @@ +parse/0: instruction: 10 +parse/0: ingredient: {name: "1", type: 0} +parse/0: instruction: 1 +parse/0: ingredient: {name: "1", type: 0} +parse/0: product: {name: "1", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 1 diff --git a/cpp/.traces/jump_if b/cpp/.traces/jump_if new file mode 100644 index 00000000..a496582e --- /dev/null +++ b/cpp/.traces/jump_if @@ -0,0 +1,10 @@ +parse/0: instruction: 11 +parse/0: ingredient: {name: "999", type: 0} +parse/0: ingredient: {name: "1", type: 0} +parse/0: instruction: 1 +parse/0: ingredient: {name: "1", type: 0} +parse/0: product: {name: "1", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 999 +run/0: ingredient 1 is 1 +run/0: jumping to instruction 2 diff --git a/cpp/.traces/jump_if_fallthrough b/cpp/.traces/jump_if_fallthrough new file mode 100644 index 00000000..894392ec --- /dev/null +++ b/cpp/.traces/jump_if_fallthrough @@ -0,0 +1,12 @@ +parse/0: instruction: 11 +parse/0: ingredient: {name: "0", type: 0} +parse/0: ingredient: {name: "1", type: 0} +parse/0: instruction: 1 +parse/0: ingredient: {name: "1", type: 0} +parse/0: product: {name: "123", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 0 +run/0: jump-if fell through +run/0: instruction 1 +run/0: ingredient 0 is 1 +mem/0: storing in location 123 diff --git a/cpp/.traces/jump_unless b/cpp/.traces/jump_unless new file mode 100644 index 00000000..68a57639 --- /dev/null +++ b/cpp/.traces/jump_unless @@ -0,0 +1,10 @@ +parse/0: instruction: 12 +parse/0: ingredient: {name: "0", type: 0} +parse/0: ingredient: {name: "1", type: 0} +parse/0: instruction: 1 +parse/0: ingredient: {name: "1", type: 0} +parse/0: product: {name: "1", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 0 +run/0: ingredient 1 is 1 +run/0: jumping to instruction 2 diff --git a/cpp/.traces/jump_unless_fallthrough b/cpp/.traces/jump_unless_fallthrough new file mode 100644 index 00000000..5d6a5d9e --- /dev/null +++ b/cpp/.traces/jump_unless_fallthrough @@ -0,0 +1,12 @@ +parse/0: instruction: 12 +parse/0: ingredient: {name: "999", type: 0} +parse/0: ingredient: {name: "1", type: 0} +parse/0: instruction: 1 +parse/0: ingredient: {name: "1", type: 0} +parse/0: product: {name: "123", type: 1} +run/0: instruction 0 +run/0: ingredient 0 is 999 +run/0: jump-unless fell through +run/0: instruction 1 +run/0: ingredient 0 is 1 +mem/0: storing in location 123 |