about summary refs log tree commit diff stats
path: root/cpp/.traces/string-equal-with-empty
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-30 00:02:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-30 00:03:03 -0700
commit72c4fb2ddacc9fccb8ebe8cba9d1322ddcaac017 (patch)
tree4ffd87e194a3168cab832d296755e74a266a4c61 /cpp/.traces/string-equal-with-empty
parent72cccd08c7a3462072b8ae5aea1576f010bf12c0 (diff)
downloadmu-72c4fb2ddacc9fccb8ebe8cba9d1322ddcaac017.tar.gz
1226 - bugfix in allocating arrays
Also our first test of printing to screen.
Diffstat (limited to 'cpp/.traces/string-equal-with-empty')
-rw-r--r--cpp/.traces/string-equal-with-empty34
1 files changed, 17 insertions, 17 deletions
diff --git a/cpp/.traces/string-equal-with-empty b/cpp/.traces/string-equal-with-empty
index b3e87b15..ff241a4c 100644
--- a/cpp/.traces/string-equal-with-empty
+++ b/cpp/.traces/string-equal-with-empty
@@ -30,48 +30,48 @@ mem/0: array size is 30
 mem/0: new alloc: 1000
 run/0: instruction test-string-equal-with-empty/1
 run/0: {name: "x", value: 1, type: 2-5-4, properties: ["x": "address":"array":"character"]} <- new {name: "", value: 0, type: 0, properties: ["": "literal-string"]}
-mem/0: storing 1030 in location 1002
+mem/0: storing 1031 in location 1002
 run/0: instruction test-string-equal-with-empty/2
 run/0: {name: "y", value: 2, type: 2-5-4, properties: ["y": "address":"array":"character"]} <- new {name: "abcd", value: 0, type: 0, properties: ["abcd": "literal-string"]}
-mem/0: storing 1031 in location 1003
+mem/0: storing 1032 in location 1003
 run/0: instruction test-string-equal-with-empty/3
 run/0: {name: "3", value: 3, type: 3, properties: ["3": "boolean", "raw": ]} <- string-equal {name: "x", value: 1, type: 2-5-4, properties: ["x": "address":"array":"character"]}, {name: "y", value: 2, type: 2-5-4, properties: ["y": "address":"array":"character"]}
-mem/0: location 1002 is 1030
-mem/0: location 1003 is 1031
+mem/0: location 1002 is 1031
+mem/0: location 1003 is 1032
 run/0: instruction string-equal/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: 1036
+mem/0: new alloc: 1037
 run/0: instruction string-equal/1
 run/0: {name: "a", value: 1, type: 2-5-4, properties: ["a": "address":"array":"character"]} <- next-ingredient 
-run/0: product 0 is 1030
-mem/0: storing 1030 in location 1038
+run/0: product 0 is 1031
+mem/0: storing 1031 in location 1039
 run/0: instruction string-equal/2
 run/0: {name: "a-len", value: 2, type: 1, properties: ["a-len": "integer"]} <- length {name: "a", value: 1, type: 2-5-4, properties: ["a": "address":"array":"character", "deref": ]}
-mem/0: location 1038 is 1030
-mem/0: storing 0 in location 1039
+mem/0: location 1039 is 1031
+mem/0: storing 0 in location 1040
 run/0: instruction string-equal/3
 run/0: {name: "b", value: 3, type: 2-5-4, properties: ["b": "address":"array":"character"]} <- next-ingredient 
-run/0: product 0 is 1031
-mem/0: storing 1031 in location 1040
+run/0: product 0 is 1032
+mem/0: storing 1032 in location 1041
 run/0: instruction string-equal/4
 run/0: {name: "b-len", value: 4, type: 1, properties: ["b-len": "integer"]} <- length {name: "b", value: 3, type: 2-5-4, properties: ["b": "address":"array":"character", "deref": ]}
-mem/0: location 1040 is 1031
-mem/0: storing 4 in location 1041
+mem/0: location 1041 is 1032
+mem/0: storing 4 in location 1042
 run/0: instruction string-equal/6
 run/0: trace {name: "string-equal", value: 0, type: 0, properties: ["string-equal": "literal-string"]}, {name: "comparing lengths", value: 0, type: 0, properties: ["comparing lengths": "literal-string"]}
 string-equal/0: comparing lengths
 run/0: instruction string-equal/7
 run/0: {name: "length-equal?", value: 5, type: 3, properties: ["length-equal?": "boolean"]} <- equal {name: "a-len", value: 2, type: 1, properties: ["a-len": "integer"]}, {name: "b-len", value: 4, type: 1, properties: ["b-len": "integer"]}
 run/0: ingredient 0 is a-len
-mem/0: location 1039 is 0
+mem/0: location 1040 is 0
 run/0: ingredient 1 is b-len
-mem/0: location 1041 is 4
+mem/0: location 1042 is 4
 run/0: product 0 is 0
-mem/0: storing 0 in location 1042
+mem/0: storing 0 in location 1043
 run/0: instruction string-equal/8
 run/0: break-if {name: "length-equal?", value: 5, type: 3, properties: ["length-equal?": "boolean"]}, {name: "", value: 1, type: , properties: ["": ]}
-mem/0: location 1042 is 0
+mem/0: location 1043 is 0
 run/0: ingredient 0 is 0
 run/0: jump-if fell through
 run/0: instruction string-equal/9