From c062697c9ff3c8cb0938f56bed3df2af3d122bd6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 17 Mar 2015 00:26:12 -0700 Subject: 944 - more break/loop tests I still can't handle jumps to labels. That'll require some rejiggering.. --- cpp/.traces/break_nested_degenerate2 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cpp/.traces/break_nested_degenerate2 (limited to 'cpp/.traces/break_nested_degenerate2') diff --git a/cpp/.traces/break_nested_degenerate2 b/cpp/.traces/break_nested_degenerate2 new file mode 100644 index 00000000..6ca10a5c --- /dev/null +++ b/cpp/.traces/break_nested_degenerate2 @@ -0,0 +1,27 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "0", value: 0, type: 0, properties: [0: literal]} +parse/0: product: {name: "1", value: 1, type: 1, properties: [1: integer]} +parse/0: label: { +parse/0: instruction: 1 +parse/0: ingredient: {name: "0", value: 0, type: 0, properties: [0: literal]} +parse/0: product: {name: "2", value: 2, type: 1, properties: [2: integer]} +parse/0: instruction: 25 +parse/0: label: { +parse/0: label: } +parse/0: label: } +brace/0: 24: push (open, 1) +brace/0: 24: push (open, 4) +brace/0: push (close, 5) +brace/0: push (close, 6) +after-brace/0: recipe main +after-brace/0: copy ... +after-brace/0: copy ... +after-brace/0: jump 2:offset +run/0: instruction main/0 +run/0: ingredient 0 is 0 +mem/0: storing in location 1 +run/0: instruction main/2 +run/0: ingredient 0 is 0 +mem/0: storing in location 2 +run/0: instruction main/3 +run/0: ingredient 0 is -- cgit 1.4.1-2-gfad0