From 363685b87d15307c91d1f330f44b57bf377361a8 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 5 May 2015 18:30:53 -0700 Subject: 1269 - 'wait-for-routine' --- cpp/.traces/wait_for_routine | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 cpp/.traces/wait_for_routine (limited to 'cpp/.traces/wait_for_routine') diff --git a/cpp/.traces/wait_for_routine b/cpp/.traces/wait_for_routine new file mode 100644 index 00000000..b3efbb97 --- /dev/null +++ b/cpp/.traces/wait_for_routine @@ -0,0 +1,47 @@ +parse/0: instruction: copy +parse/0: ingredient: {name: "0", value: 0, type: 0, properties: ["0": "literal"]} +parse/0: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} +parse/0: instruction: start-running +parse/0: ingredient: {name: "f2", value: 0, type: 0, properties: ["f2": "recipe"]} +parse/0: product: {name: "2", value: 0, type: 1, properties: ["2": "integer", "routine": ]} +parse/0: instruction: wait-for-routine +parse/0: ingredient: {name: "2", value: 0, type: 1, properties: ["2": "integer", "routine": ]} +parse/0: instruction: copy +parse/0: ingredient: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} +parse/0: product: {name: "3", value: 0, type: 1, properties: ["3": "integer"]} +parse/0: instruction: copy +parse/0: ingredient: {name: "34", value: 0, type: 0, properties: ["34": "literal"]} +parse/0: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} +after-brace/0: recipe f1 +after-brace/0: copy ... +after-brace/0: start-running ... +after-brace/0: wait-for-routine ... +after-brace/0: copy ... +after-brace/0: recipe f2 +after-brace/0: copy ... +new/0: routine allocated memory from 1000 to 101000 +schedule/0: f1 +run/0: instruction f1/0 +run/0: {name: "1", value: 1, type: 1, properties: ["1": "integer"]} <- copy/1 {name: "0", value: 0, type: 0, properties: ["0": "literal"]} +run/0: ingredient 0 is 0 +mem/0: storing 0 in location 1 +run/0: instruction f1/1 +run/0: {name: "2", value: 2, type: 1, properties: ["2": "integer", "routine": ]} <- start-running/34 {name: "f2", value: 0, type: 0, properties: ["f2": "recipe"]} +run/0: ingredient 0 is f2 +new/0: routine allocated memory from 101000 to 201000 +mem/0: storing 2 in location 2 +run/0: instruction f1/2 +run/0: wait-for-routine/37 {name: "2", value: 2, type: 1, properties: ["2": "integer", "routine": ]} +run/0: waiting for routine 2 +schedule/0: waking up routine +schedule/0: f2 +run/0: instruction f2/0 +run/0: {name: "1", value: 1, type: 1, properties: ["1": "integer"]} <- copy/1 {name: "34", value: 34, type: 0, properties: ["34": "literal"]} +run/0: ingredient 0 is 34 +mem/0: storing 34 in location 1 +schedule/0: f1 +run/0: instruction f1/3 +run/0: {name: "3", value: 3, type: 1, properties: ["3": "integer"]} <- copy/1 {name: "1", value: 1, type: 1, properties: ["1": "integer"]} +run/0: ingredient 0 is 1 +mem/0: location 1 is 34 +mem/0: storing 34 in location 3 -- cgit 1.4.1-2-gfad0