From e2240eb4e89721928fef4e694524e350fb0140cb Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 27 Mar 2015 10:51:27 -0700 Subject: 987 - c++: memory allocator --- cpp/.traces/new | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cpp/.traces/new (limited to 'cpp/.traces') diff --git a/cpp/.traces/new b/cpp/.traces/new new file mode 100644 index 00000000..c76e910b --- /dev/null +++ b/cpp/.traces/new @@ -0,0 +1,27 @@ +parse/0: instruction: 24 +parse/0: ingredient: {name: "integer", value: 0, type: 0, properties: [integer: type]} +parse/0: product: {name: "1", value: 0, type: 2-1, properties: [1: address:integer, raw: ]} +parse/0: instruction: 24 +parse/0: ingredient: {name: "integer", value: 0, type: 0, properties: [integer: type]} +parse/0: product: {name: "2", value: 0, type: 2-1, properties: [2: address:integer, raw: ]} +parse/0: instruction: 13 +parse/0: ingredient: {name: "1", value: 0, type: 2-1, properties: [1: address:integer, raw: ]} +parse/0: ingredient: {name: "2", value: 0, type: 2-1, properties: [2: address:integer, raw: ]} +parse/0: product: {name: "3", value: 0, type: 3, properties: [3: boolean, raw: ]} +new/0: integer -> 1 +new/0: integer -> 1 +after-brace/0: recipe main +after-brace/0: new ... +after-brace/0: new ... +after-brace/0: equal ... +run/0: instruction main/0 +mem/0: storing 1000 in location 1 +run/0: instruction main/1 +mem/0: storing 1001 in location 2 +run/0: instruction main/2 +run/0: ingredient 0 is 1 +mem/0: location 1 is 1000 +run/0: ingredient 1 is 2 +mem/0: location 2 is 1001 +run/0: product 0 is 0 +mem/0: storing 0 in location 3 -- cgit 1.4.1-2-gfad0