blob: 7f59b12b5573e241df20ff642d18f175c4ccb6a9 (
plain) (
blame)
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
c{0: 0 (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal))) -- nil
c{0: 1 (((0 space-address)) <- ((next-input))) -- nil
c{0: 2 (((1 integer) (space 1)) <- ((add)) ((1 integer) (space 1)) ((1 literal))) -- nil
c{0: 3 (((1 integer)) <- ((copy)) ((34 literal))) -- nil
c{0: 4 (((reply)) ((1 integer) (space 1))) -- nil
c{1: 0 ✓ (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
c{1: 1 ✓ (((0 space-address)) <- ((next-input)))
c{1: 2 ✓ (((1 integer) (space 1)) <- ((add)) ((1 integer) (space 1)) ((1 literal)))
c{1: 3 ✓ (((1 integer)) <- ((copy)) ((34 literal)))
c{1: 4 ✓ (((reply)) ((1 integer) (space 1)))
c{0: 0 (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal))) -- nil
c{0: 1 (((1 integer)) <- ((copy)) ((3 literal))) -- nil
c{0: 2 (((reply)) ((default-space space-address))) -- nil
c{1: 0 ✓ (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
c{1: 1 ✓ (((1 integer)) <- ((copy)) ((3 literal)))
c{1: 2 ✓ (((reply)) ((default-space space-address)))
c{0: 0 (((1 space-address)) <- ((init-counter))) -- nil
c{0: 1 (((2 integer)) <- ((increment-counter)) ((1 space-address))) -- nil
c{0: 2 (((3 integer)) <- ((increment-counter)) ((1 space-address))) -- nil
c{1: 0 ✓ (((1 space-address)) <- ((init-counter)))
c{1: 1 ✓ (((2 integer)) <- ((increment-counter)) ((1 space-address)))
c{1: 2 ✓ (((3 integer)) <- ((increment-counter)) ((1 space-address)))
-: next-space-generator of increment-counter is
cn0: convert-names in increment-counter
cn0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal))) nil nil
cn0: checking arg ((space literal))
cn0: checking arg ((30 literal))
cn0: checking oarg ((default-space space-address))
maybe-add: ((default-space space-address))
cn0: (((0 space-address)) <- ((next-input))) nil nil
cn0: checking oarg ((0 space-address))
maybe-add: ((0 space-address))
cn0: (((1 integer) (space 1)) <- ((add)) ((1 integer) (space 1)) ((1 literal))) nil nil
cn0: checking arg ((1 integer) (space 1))
maybe-add: ((1 integer) (space 1))
cn0: checking arg ((1 literal))
cn0: checking oarg ((1 integer) (space 1))
maybe-add: ((1 integer) (space 1))
cn0: (((1 integer)) <- ((copy)) ((34 literal))) nil nil
cn0: checking arg ((34 literal))
cn0: checking oarg ((1 integer))
maybe-add: ((1 integer))
cn0: (((reply)) ((1 integer) (space 1))) nil nil
cn0: checking arg ((1 integer) (space 1))
maybe-add: ((1 integer) (space 1))
cn0: convert-names in init-counter
cn0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal))) nil nil
cn0: checking arg ((space literal))
cn0: checking arg ((30 literal))
cn0: checking oarg ((default-space space-address))
maybe-add: ((default-space space-address))
cn0: (((1 integer)) <- ((copy)) ((3 literal))) nil nil
cn0: checking arg ((3 literal))
cn0: checking oarg ((1 integer))
maybe-add: ((1 integer))
cn0: (((reply)) ((default-space space-address))) nil nil
cn0: checking arg ((default-space space-address))
maybe-add: ((default-space space-address))
cn0: convert-names in main
cn0: (((1 space-address)) <- ((init-counter))) nil nil
cn0: checking oarg ((1 space-address))
maybe-add: ((1 space-address))
cn0: (((2 integer)) <- ((increment-counter)) ((1 space-address))) nil nil
cn0: checking arg ((1 space-address))
maybe-add: ((1 space-address))
cn0: checking oarg ((2 integer))
maybe-add: ((2 integer))
cn0: (((3 integer)) <- ((increment-counter)) ((1 space-address))) nil nil
cn0: checking arg ((1 space-address))
maybe-add: ((1 space-address))
cn0: checking oarg ((3 integer))
maybe-add: ((3 integer))
cn1: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
cn1: (((0 space-address)) <- ((next-input)))
cn1: (((1 integer) (space 1)) <- ((add)) ((1 integer) (space 1)) ((1 literal)))
cn1: (((1 integer)) <- ((copy)) ((34 literal)))
cn1: (((reply)) ((1 integer) (space 1)))
cn1: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
cn1: (((1 integer)) <- ((copy)) ((3 literal)))
cn1: (((reply)) ((default-space space-address)))
cn1: (((1 space-address)) <- ((init-counter)))
cn1: (((2 integer)) <- ((increment-counter)) ((1 space-address)))
cn1: (((3 integer)) <- ((increment-counter)) ((1 space-address)))
schedule: main
run: main 0: (((1 space-address)) <- ((init-counter)))
run: init-counter/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: init-counter/main 0: 1000 => ((default-space space-address))
run: init-counter/main 1: (((1 integer)) <- ((copy)) ((3 literal)))
run: init-counter/main 1: 3 => ((1 integer))
mem: ((1 integer)): 1002 <= 3
run: init-counter/main 2: (((reply)) ((default-space space-address)))
run: main 0: 1000 => ((1 space-address))
mem: ((1 space-address)): 1 <= 1000
run: main 1: (((2 integer)) <- ((increment-counter)) ((1 space-address)))
mem: ((1 space-address)) => 1000
run: increment-counter/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: increment-counter/main 0: 1031 => ((default-space space-address))
run: increment-counter/main 1: (((0 space-address)) <- ((next-input)))
arg: nil 0 (1000)
run: increment-counter/main 1: 1000 => ((0 space-address))
mem: ((0 space-address)): 1032 <= 1000
run: increment-counter/main 2: (((1 integer) (space 1)) <- ((add)) ((1 integer) (space 1)) ((1 literal)))
mem: ((1 integer) (space 1)) => 3
run: increment-counter/main 2: 4 => ((1 integer) (space 1))
mem: ((1 integer) (space 1)): 1002 <= 4
run: increment-counter/main 3: (((1 integer)) <- ((copy)) ((34 literal)))
run: increment-counter/main 3: 34 => ((1 integer))
mem: ((1 integer)): 1033 <= 34
run: increment-counter/main 4: (((reply)) ((1 integer) (space 1)))
mem: ((1 integer) (space 1)) => 4
run: main 1: 4 => ((2 integer))
mem: ((2 integer)): 2 <= 4
run: main 2: (((3 integer)) <- ((increment-counter)) ((1 space-address)))
mem: ((1 space-address)) => 1000
run: increment-counter/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: increment-counter/main 0: 1062 => ((default-space space-address))
run: increment-counter/main 1: (((0 space-address)) <- ((next-input)))
arg: nil 0 (1000)
run: increment-counter/main 1: 1000 => ((0 space-address))
mem: ((0 space-address)): 1063 <= 1000
run: increment-counter/main 2: (((1 integer) (space 1)) <- ((add)) ((1 integer) (space 1)) ((1 literal)))
mem: ((1 integer) (space 1)) => 4
run: increment-counter/main 2: 5 => ((1 integer) (space 1))
mem: ((1 integer) (space 1)): 1002 <= 5
run: increment-counter/main 3: (((1 integer)) <- ((copy)) ((34 literal)))
run: increment-counter/main 3: 34 => ((1 integer))
mem: ((1 integer)): 1064 <= 34
run: increment-counter/main 4: (((reply)) ((1 integer) (space 1)))
mem: ((1 integer) (space 1)) => 5
run: main 2: 5 => ((3 integer))
mem: ((3 integer)): 3 <= 5
schedule: done with routine nil
|