about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-07-06 20:31:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-07-06 20:31:23 -0700
commit27d90d8087bd06198a3b0d1ac1c3fa35dc6a8a45 (patch)
tree6dea98dfe0d8e77dcce77dd0011dec095249dbed
parent8dddd8deafcfcbe58210b071ed83995d16df2225 (diff)
downloadmu-27d90d8087bd06198a3b0d1ac1c3fa35dc6a8a45.tar.gz
3106
Minor tweaks to 3105, primarily using more distinctive locations in the
unit test. 1, 2 and 3 can mean so many different things, they don't
catch the eye as much.
-rw-r--r--071scheduler.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/071scheduler.cc b/071scheduler.cc
index d70dff88..c9e81030 100644
--- a/071scheduler.cc
+++ b/071scheduler.cc
@@ -532,7 +532,6 @@ case LIMIT_TIME: {
   break;
 }
 
-
 :(before "End routine Fields")
 int ninstrs;
 :(before "End routine Constructor")
@@ -569,6 +568,7 @@ case NUMBER_OF_INSTRUCTIONS: {
   products.at(0).push_back(result);
   break;
 }
+
 //:: make sure that each routine gets a different alloc to start
 
 :(scenario new_concurrent)
@@ -591,16 +591,17 @@ def f2 [
 
 :(scenario number_of_instructions)
 def f1 [
-  1:number/child-id <- start-running f2
+  10:number/child-id <- start-running f2
   {
-    loop-unless 3:number/raw
+    loop-unless 20:number
   }
-  # Number of instructions returns visible number plus one due to the implicit reply added by
-  # Transform.push_back in the recipe header layer.
-  4:number <- number-of-instructions 1:number
+  11:number <- number-of-instructions 10:number
 ]
 def f2 [
-  2:address:number/raw <- new number:type
-  3:number <- copy 1
+  # 2 instructions worth of work
+  11:number <- copy 34
+  20:number <- copy 1
 ]
-+mem: storing 3 in location 4
+# f2 runs an extra instruction for the implicit return added by the
+# fill_in_reply_ingredients transform
++mem: storing 3 in location 11