From 6f5d7864f6c0c62b8849349cb182c61f8dbed452 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 25 Feb 2015 01:24:11 -0800 Subject: 832 - call-stack for C++ version These #defines and references now span many different layers. Let's see if the lack of encapsulation causes problems. Also interesting to run into a case where I need to modify a foundational layer and touch every single scenario/trace. Only alternative was to duplicate all the different layers that add instructions. Sign of problems with this model? --- cpp/016compare | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'cpp/016compare') diff --git a/cpp/016compare b/cpp/016compare index 7da3dd16..9a97911f 100644 --- a/cpp/016compare +++ b/cpp/016compare @@ -23,7 +23,7 @@ recipe main [ 2:integer <- copy 33:literal 3:integer <- equal 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 @@ -37,7 +37,7 @@ recipe main [ 2:integer <- copy 34:literal 3:integer <- equal 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 @@ -71,7 +71,7 @@ recipe main [ 2:integer <- copy 33:literal 3:integer <- greater-than 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 @@ -85,7 +85,7 @@ recipe main [ 2:integer <- copy 34:literal 3:integer <- greater-than 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 @@ -119,7 +119,7 @@ recipe main [ 2:integer <- copy 33:literal 3:integer <- lesser-than 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 32 +run: ingredient 1 is 2 @@ -133,7 +133,7 @@ recipe main [ 2:integer <- copy 33:literal 3:integer <- lesser-than 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 @@ -167,7 +167,7 @@ recipe main [ 2:integer <- copy 33:literal 3:integer <- greater-or-equal 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 @@ -181,7 +181,7 @@ recipe main [ 2:integer <- copy 34:literal 3:integer <- greater-or-equal 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 @@ -195,7 +195,7 @@ recipe main [ 2:integer <- copy 35:literal 3:integer <- greater-or-equal 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 @@ -229,7 +229,7 @@ recipe main [ 2:integer <- copy 33:literal 3:integer <- lesser-or-equal 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 32 +run: ingredient 1 is 2 @@ -243,7 +243,7 @@ recipe main [ 2:integer <- copy 33:literal 3:integer <- lesser-or-equal 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 33 +run: ingredient 1 is 2 @@ -257,7 +257,7 @@ recipe main [ 2:integer <- copy 33:literal 3:integer <- lesser-or-equal 1:integer, 2:integer ] -+run: instruction 2 ++run: instruction main/2 +run: ingredient 0 is 1 +mem: location 1 is 34 +run: ingredient 1 is 2 -- cgit 1.4.1-2-gfad0