diff options
Diffstat (limited to '024compare.cc')
-rw-r--r-- | 024compare.cc | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/024compare.cc b/024compare.cc index cd31065b..fb3481fd 100644 --- a/024compare.cc +++ b/024compare.cc @@ -25,8 +25,8 @@ case EQUAL: { :(scenario equal) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 33:literal + 1:number <- copy 34 + 2:number <- copy 33 3:number <- equal 1:number, 2:number ] +mem: location 1 is 34 @@ -35,8 +35,8 @@ recipe main [ :(scenario equal2) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 34:literal + 1:number <- copy 34 + 2:number <- copy 34 3:number <- equal 1:number, 2:number ] +mem: location 1 is 34 @@ -45,13 +45,13 @@ recipe main [ :(scenario equal_multiple) recipe main [ - 1:number <- equal 34:literal, 34:literal, 34:literal + 1:number <- equal 34, 34, 34 ] +mem: storing 1 in location 1 :(scenario equal_multiple2) recipe main [ - 1:number <- equal 34:literal, 34:literal, 35:literal + 1:number <- equal 34, 34, 35 ] +mem: storing 0 in location 1 @@ -85,29 +85,29 @@ case GREATER_THAN: { :(scenario greater_than) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 33:literal + 1:number <- copy 34 + 2:number <- copy 33 3:boolean <- greater-than 1:number, 2:number ] +mem: storing 1 in location 3 :(scenario greater_than2) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 34:literal + 1:number <- copy 34 + 2:number <- copy 34 3:boolean <- greater-than 1:number, 2:number ] +mem: storing 0 in location 3 :(scenario greater_than_multiple) recipe main [ - 1:boolean <- greater-than 36:literal, 35:literal, 34:literal + 1:boolean <- greater-than 36, 35, 34 ] +mem: storing 1 in location 1 :(scenario greater_than_multiple2) recipe main [ - 1:boolean <- greater-than 36:literal, 35:literal, 35:literal + 1:boolean <- greater-than 36, 35, 35 ] +mem: storing 0 in location 1 @@ -141,29 +141,29 @@ case LESSER_THAN: { :(scenario lesser_than) recipe main [ - 1:number <- copy 32:literal - 2:number <- copy 33:literal + 1:number <- copy 32 + 2:number <- copy 33 3:boolean <- lesser-than 1:number, 2:number ] +mem: storing 1 in location 3 :(scenario lesser_than2) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 33:literal + 1:number <- copy 34 + 2:number <- copy 33 3:boolean <- lesser-than 1:number, 2:number ] +mem: storing 0 in location 3 :(scenario lesser_than_multiple) recipe main [ - 1:boolean <- lesser-than 34:literal, 35:literal, 36:literal + 1:boolean <- lesser-than 34, 35, 36 ] +mem: storing 1 in location 1 :(scenario lesser_than_multiple2) recipe main [ - 1:boolean <- lesser-than 34:literal, 35:literal, 35:literal + 1:boolean <- lesser-than 34, 35, 35 ] +mem: storing 0 in location 1 @@ -197,37 +197,37 @@ case GREATER_OR_EQUAL: { :(scenario greater_or_equal) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 33:literal + 1:number <- copy 34 + 2:number <- copy 33 3:boolean <- greater-or-equal 1:number, 2:number ] +mem: storing 1 in location 3 :(scenario greater_or_equal2) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 34:literal + 1:number <- copy 34 + 2:number <- copy 34 3:boolean <- greater-or-equal 1:number, 2:number ] +mem: storing 1 in location 3 :(scenario greater_or_equal3) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 35:literal + 1:number <- copy 34 + 2:number <- copy 35 3:boolean <- greater-or-equal 1:number, 2:number ] +mem: storing 0 in location 3 :(scenario greater_or_equal_multiple) recipe main [ - 1:boolean <- greater-or-equal 36:literal, 35:literal, 35:literal + 1:boolean <- greater-or-equal 36, 35, 35 ] +mem: storing 1 in location 1 :(scenario greater_or_equal_multiple2) recipe main [ - 1:boolean <- greater-or-equal 36:literal, 35:literal, 36:literal + 1:boolean <- greater-or-equal 36, 35, 36 ] +mem: storing 0 in location 1 @@ -261,36 +261,36 @@ case LESSER_OR_EQUAL: { :(scenario lesser_or_equal) recipe main [ - 1:number <- copy 32:literal - 2:number <- copy 33:literal + 1:number <- copy 32 + 2:number <- copy 33 3:boolean <- lesser-or-equal 1:number, 2:number ] +mem: storing 1 in location 3 :(scenario lesser_or_equal2) recipe main [ - 1:number <- copy 33:literal - 2:number <- copy 33:literal + 1:number <- copy 33 + 2:number <- copy 33 3:boolean <- lesser-or-equal 1:number, 2:number ] +mem: storing 1 in location 3 :(scenario lesser_or_equal3) recipe main [ - 1:number <- copy 34:literal - 2:number <- copy 33:literal + 1:number <- copy 34 + 2:number <- copy 33 3:boolean <- lesser-or-equal 1:number, 2:number ] +mem: storing 0 in location 3 :(scenario lesser_or_equal_multiple) recipe main [ - 1:boolean <- lesser-or-equal 34:literal, 35:literal, 35:literal + 1:boolean <- lesser-or-equal 34, 35, 35 ] +mem: storing 1 in location 1 :(scenario lesser_or_equal_multiple2) recipe main [ - 1:boolean <- lesser-or-equal 34:literal, 35:literal, 34:literal + 1:boolean <- lesser-or-equal 34, 35, 34 ] +mem: storing 0 in location 1 |