about summary refs log tree commit diff stats
path: root/cpp/.traces/integer-to-decimal-digit-zero
blob: e4731f3072031f322b55085648cf92b388310fb4 (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
parse/0: instruction: run
parse/0:   ingredient: {name: "
    1:address:array:character/raw <- integer-to-decimal-string 0:literal
    2:array:character/raw <- copy 1:address:array:character/deref/raw
  ", value: 0, type: 0, properties: ["
    1:address:array:character/raw <- integer-to-decimal-string 0:literal
    2:array:character/raw <- copy 1:address:array:character/deref/raw
  ": "literal-string"]}
parse/0: instruction: memory-should-contain
parse/0:   ingredient: {name: "
    2:string <- [0]
  ", value: 0, type: 0, properties: ["
    2:string <- [0]
  ": "literal-string"]}
after-brace/0: recipe integer-to-decimal-digit-zero
after-brace/0: run ...
after-brace/0: memory-should-contain ...
new/0: routine allocated memory from 1000 to 101000
schedule/0: integer-to-decimal-digit-zero
run/0: instruction integer-to-decimal-digit-zero/0
run/0: run {name: "
    1:address:array:character/raw <- integer-to-decimal-string 0:literal
    2:array:character/raw <- copy 1:address:array:character/deref/raw
  ", value: 0, type: 0, properties: ["
    1:address:array:character/raw <- integer-to-decimal-string 0:literal
    2:array:character/raw <- copy 1:address:array:character/deref/raw
  ": "literal-string"]}
parse/0: instruction: integer-to-decimal-string
parse/0:   ingredient: {name: "0", value: 0, type: 0, properties: ["0": "literal"]}
parse/0:   product: {name: "1", value: 0, type: 2-5-4, properties: ["1": "address":"array":"character", "raw": ]}
parse/0: instruction: copy
parse/0:   ingredient: {name: "1", value: 0, type: 2-5-4, properties: ["1": "address":"array":"character", "deref": , "raw": ]}
parse/0:   product: {name: "2", value: 0, type: 5-4, properties: ["2": "array":"character", "raw": ]}
after-brace/0: recipe tmp0
after-brace/0: integer-to-decimal-string ...
after-brace/0: copy ...
run/0: instruction tmp0/0
run/0: {name: "1", value: 1, type: 2-5-4, properties: ["1": "address":"array":"character", "raw": ]} <- integer-to-decimal-string {name: "0", value: 0, type: 0, properties: ["0": "literal"]}
run/0: instruction integer-to-decimal-string/0
run/0: {name: "default-space", value: 0, type: 2-5-1, properties: ["default-space": "address":"array":"location"]} <- new {name: "location", value: 1, type: 0, properties: ["location": "type"]}, {name: "30", value: 30, type: 0, properties: ["30": "literal"]}
mem/0: array size is 30
mem/0: new alloc: 1000
run/0: instruction integer-to-decimal-string/1
run/0: {name: "n", value: 1, type: 1, properties: ["n": "integer"]} <- next-ingredient 
run/0: product 0 is 0
mem/0: storing 0 in location 1002
run/0: instruction integer-to-decimal-string/3
run/0: break-if {name: "n", value: 1, type: 1, properties: ["n": "integer"]}, {name: "", value: 2, type: , properties: ["": ]}
mem/0: location 1002 is 0
run/0: ingredient 0 is 0
run/0: jump-if fell through
run/0: instruction integer-to-decimal-string/4
run/0: {name: "result", value: 2, type: 2-5-4, properties: ["result": "address":"array":"character"]} <- new {name: "0", value: 0, type: 0, properties: ["0": "literal-string"]}
mem/0: storing 1031 in location 1003
run/0: instruction integer-to-decimal-string/5
run/0: reply {name: "result", value: 2, type: 2-5-4, properties: ["result": "address":"array":"character"]}
mem/0: location 1003 is 1031
run/0: result 0 is 1031
mem/0: storing 1031 in location 1
run/0: instruction tmp0/1
run/0: {name: "2", value: 2, type: 5-4, properties: ["2": "array":"character", "raw": ]} <- copy {name: "1", value: 1, type: 2-5-4, properties: ["1": "address":"array":"character", "deref": , "raw": ]}
run/0: ingredient 0 is 1
mem/0: location 1 is 1031
mem/0: location 1031 is 1
mem/0: location 1032 is 48
mem/0: storing 1 in location 2
mem/0: storing 48 in location 3
run/0: instruction integer-to-decimal-digit-zero/1
run/0: memory-should-contain {name: "
    2:string <- [0]
  ", value: 0, type: 0, properties: ["
    2:string <- [0]
  ": "literal-string"]}
run/0: checking array length at 2
run/0: checking location 3