about summary refs log tree commit diff stats
path: root/cpp/.traces/loop
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-16 23:41:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-16 23:41:01 -0700
commitdecaddb418abcb6094e339f1b8dd4bb519b761ad (patch)
treebeab8c830e4dadb06b6b42cf239dfcbbc59db831 /cpp/.traces/loop
parenta4ef18b194a24710847be59554e51a1fd618228d (diff)
downloadmu-decaddb418abcb6094e339f1b8dd4bb519b761ad.tar.gz
941 - c++: basic break/loop conversion
Diffstat (limited to 'cpp/.traces/loop')
-rw-r--r--cpp/.traces/loop30
1 files changed, 30 insertions, 0 deletions
diff --git a/cpp/.traces/loop b/cpp/.traces/loop
new file mode 100644
index 00000000..48f94a4e
--- /dev/null
+++ b/cpp/.traces/loop
@@ -0,0 +1,30 @@
+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: 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: label: {
+parse/0: instruction: 1
+parse/0:   ingredient: {name: "0", value: 0, type: 0, properties: [0: literal]}
+parse/0:   product: {name: "3", value: 3, type: 1, properties: [3: integer]}
+parse/0: instruction: 25
+parse/0: label: }
+brace/0: 24: push (open, 2)
+brace/0: push (close, 5)
+after-brace/0: recipe main
+after-brace/0: copy ...
+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/1
+run/0: ingredient 0 is 0
+mem/0: storing in location 2
+run/0: instruction main/3
+run/0: ingredient 0 is 0
+mem/0: storing in location 3
+run/0: instruction main/4
+run/0: ingredient 0 is