about summary refs log tree commit diff stats
path: root/cpp/.traces
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-05 19:39:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-05 19:39:20 -0700
commit5e14ce10db89a72a727c8dead0b27b036044099c (patch)
tree3bbf29499b5f62ed936ee5d46c459f89aef6a20a /cpp/.traces
parent363685b87d15307c91d1f330f44b57bf377361a8 (diff)
downloadmu-5e14ce10db89a72a727c8dead0b27b036044099c.tar.gz
1270 - we can now pass ingredients to routines as we start them
Diffstat (limited to 'cpp/.traces')
-rw-r--r--cpp/.traces/start_running_returns_routine_id2
-rw-r--r--cpp/.traces/start_running_takes_args32
2 files changed, 32 insertions, 2 deletions
diff --git a/cpp/.traces/start_running_returns_routine_id b/cpp/.traces/start_running_returns_routine_id
index 868b4ed2..dde9fca2 100644
--- a/cpp/.traces/start_running_returns_routine_id
+++ b/cpp/.traces/start_running_returns_routine_id
@@ -20,5 +20,3 @@ run/0: instruction f2/0
 run/0: {name: "12", value: 12, type: 1, properties: ["12": "integer"]} <- copy/1 {name: "44", value: 44, type: 0, properties: ["44": "literal"]}
 run/0: ingredient 0 is 44
 mem/0: storing 44 in location 12
-schedule/0: f1
-schedule/0: f2
diff --git a/cpp/.traces/start_running_takes_args b/cpp/.traces/start_running_takes_args
new file mode 100644
index 00000000..062c7371
--- /dev/null
+++ b/cpp/.traces/start_running_takes_args
@@ -0,0 +1,32 @@
+parse/0: instruction: start-running
+parse/0:   ingredient: {name: "f2", value: 0, type: 0, properties: ["f2": "recipe"]}
+parse/0:   ingredient: {name: "3", value: 0, type: 0, properties: ["3": "literal"]}
+parse/0: instruction: next-ingredient
+parse/0:   product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]}
+parse/0: instruction: add
+parse/0:   ingredient: {name: "1", value: 0, type: 1, properties: ["1": "integer"]}
+parse/0:   ingredient: {name: "1", value: 0, type: 0, properties: ["1": "literal"]}
+parse/0:   product: {name: "2", value: 0, type: 1, properties: ["2": "integer"]}
+after-brace/0: recipe f1
+after-brace/0: start-running ...
+after-brace/0: recipe f2
+after-brace/0: next-ingredient ...
+after-brace/0: add ...
+new/0: routine allocated memory from 1000 to 101000
+schedule/0: f1
+run/0: instruction f1/0
+run/0: start-running/34 {name: "f2", value: 0, type: 0, properties: ["f2": "recipe"]}, {name: "3", value: 3, type: 0, properties: ["3": "literal"]}
+run/0: ingredient 0 is f2
+new/0: routine allocated memory from 101000 to 201000
+schedule/0: f2
+run/0: instruction f2/0
+run/0: {name: "1", value: 1, type: 1, properties: ["1": "integer"]} <- next-ingredient/30 
+run/0: product 0 is 3
+mem/0: storing 3 in location 1
+run/0: instruction f2/1
+run/0: {name: "2", value: 2, type: 1, properties: ["2": "integer"]} <- add/2 {name: "1", value: 1, type: 1, properties: ["1": "integer"]}, {name: "1", value: 1, type: 0, properties: ["1": "literal"]}
+run/0: ingredient 0 is 1
+mem/0: location 1 is 3
+run/0: ingredient 1 is 1
+run/0: product 0 is 4
+mem/0: storing 4 in location 2