about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--091run_interactive.cc10
-rw-r--r--edit/010-sandbox-trace.mu7
-rw-r--r--edit/011-errors.mu7
3 files changed, 16 insertions, 8 deletions
diff --git a/091run_interactive.cc b/091run_interactive.cc
index f1647c59..70dbed0f 100644
--- a/091run_interactive.cc
+++ b/091run_interactive.cc
@@ -166,10 +166,12 @@ load(string(
 "recipe sandbox [\n" +
   "local-scope\n" +
   "screen:address:screen <- new-fake-screen 30, 5\n" +
-  "r:number/routine_id <- start-running interactive, screen\n" +
-  "limit-time r, 100000/instructions\n" +
-  "wait-for-routine r\n" +
-  "sandbox-state:number <- routine-state r/routine_id\n" +
+  "routine-id:number <- start-running interactive, screen\n" +
+  "limit-time routine-id, 100000/instructions\n" +
+  "wait-for-routine routine-id\n" +
+  "instructions-run:number <- number-of-instructions routine-id\n" +
+  "stash instructions-run [instructions run]\n" +
+  "sandbox-state:number <- routine-state routine-id\n" +
   "completed?:boolean <- equal sandbox-state, 1/completed\n" +
   "output:address:array:character <- $most-recent-products\n" +
   "errors:address:array:character <- save-errors\n" +
diff --git a/edit/010-sandbox-trace.mu b/edit/010-sandbox-trace.mu
index e7297b75..fd256732 100644
--- a/edit/010-sandbox-trace.mu
+++ b/edit/010-sandbox-trace.mu
@@ -41,6 +41,7 @@ recipe foo [
     .  stash [abc]                                     ┊0   edit          copy            delete         .
     .]                                                 ┊foo                                              .
     .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊abc                                              .
+    .                                                  ┊8 instructions run                               .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
@@ -51,6 +52,7 @@ recipe foo [
     .                                                  ┊                                                 .
     .                                                  ┊                                                 .
     .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊abc                                              .
+    .                                                  ┊8 instructions run                               .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
@@ -115,7 +117,8 @@ recipe foo [
     .  stash [abc]                                     ┊0   edit          copy            delete         .
     .  reply 4                                         ┊foo                                              .
     .]                                                 ┊abc                                              .
-    .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊4                                                .
+    .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊8 instructions run                               .
+    .                                                  ┊4                                                .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
@@ -140,6 +143,7 @@ scenario clicking-on-app-trace-does-nothing [
     .                                                  ┊0   edit          copy            delete         .
     .                                                  ┊stash 123456789                                  .
     .                                                  ┊123456789                                        .
+    .                                                  ┊6 instructions run                               .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
@@ -158,6 +162,7 @@ scenario clicking-on-app-trace-does-nothing [
     .                                                  ┊0   edit          copy            delete         .
     .                                                  ┊stash 123456789                                  .
     .                                                  ┊123456789                                        .
+    .                                                  ┊6 instructions run                               .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
diff --git a/edit/011-errors.mu b/edit/011-errors.mu
index c27ec54f..8e239e5d 100644
--- a/edit/011-errors.mu
+++ b/edit/011-errors.mu
@@ -684,8 +684,9 @@ reply b
     .a:number <- next-ingredient                       ┊0   edit          copy            delete         .
     .b:number <- next-ingredient                       ┊foo 4, 0                                         .
     .stash [dividing by], b                            ┊dividing by 0                                    .
-    ._, c:number <- divide-with-remainder a, b         ┊foo: divide by zero in '_, c:number <- divide-wi↩.
-    .reply b                                           ┊th-remainder a, b'                               .
-    .]                                                 ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
+    ._, c:number <- divide-with-remainder a, b         ┊14 instructions run                              .
+    .reply b                                           ┊foo: divide by zero in '_, c:number <- divide-wi↩.
+    .]                                                 ┊th-remainder a, b'                               .
+    .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
   ]
 ]
8d4c173d9abbd0a1bd76d6afe69ccb'>4ea0f69a ^
36e4e71e ^



f6ae504c ^
4ea0f69a ^
36e4e71e ^

4ea0f69a ^

36e4e71e ^






4ea0f69a ^

306c76d8 ^






b6aff4c3 ^

306c76d8 ^
4ea0f69a ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112