From 88be3dbc0c996490dbac97538f4d712a5b4f6f07 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 24 Apr 2015 10:19:03 -0700 Subject: 1162 --- cpp/021arithmetic | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'cpp/021arithmetic') diff --git a/cpp/021arithmetic b/cpp/021arithmetic index a5ca095a..8f4b9c3b 100644 --- a/cpp/021arithmetic +++ b/cpp/021arithmetic @@ -19,7 +19,7 @@ case ADD: { break; } -:(scenario "add_literal") +:(scenario add_literal) recipe main [ 1:integer <- add 23:literal, 34:literal ] @@ -29,7 +29,7 @@ recipe main [ +run: product 0 is 57 +mem: storing 57 in location 1 -:(scenario "add") +:(scenario add) recipe main [ 1:integer <- copy 23:literal 2:integer <- copy 34:literal @@ -62,7 +62,7 @@ case SUBTRACT: { break; } -:(scenario "subtract_literal") +:(scenario subtract_literal) recipe main [ 1:integer <- subtract 5:literal, 2:literal ] @@ -72,7 +72,7 @@ recipe main [ +run: product 0 is 3 +mem: storing 3 in location 1 -:(scenario "subtract") +:(scenario subtract) recipe main [ 1:integer <- copy 23:literal 2:integer <- copy 34:literal @@ -106,7 +106,7 @@ case MULTIPLY: { break; } -:(scenario "multiply_literal") +:(scenario multiply_literal) recipe main [ 1:integer <- multiply 2:literal, 3:literal ] @@ -116,7 +116,7 @@ recipe main [ +run: product 0 is 6 +mem: storing 6 in location 1 -:(scenario "multiply") +:(scenario multiply) recipe main [ 1:integer <- copy 4:literal 2:integer <- copy 6:literal @@ -150,7 +150,7 @@ case DIVIDE: { break; } -:(scenario "divide_literal") +:(scenario divide_literal) recipe main [ 1:integer <- divide 8:literal, 2:literal ] @@ -160,7 +160,7 @@ recipe main [ +run: product 0 is 4 +mem: storing 4 in location 1 -:(scenario "divide") +:(scenario divide) recipe main [ 1:integer <- copy 27:literal 2:integer <- copy 3:literal @@ -197,7 +197,7 @@ case DIVIDE_WITH_REMAINDER: { break; } -:(scenario "divide_with_remainder_literal") +:(scenario divide_with_remainder_literal) recipe main [ 1:integer, 2:integer <- divide-with-remainder 9:literal, 2:literal ] @@ -209,7 +209,7 @@ recipe main [ +run: product 1 is 1 +mem: storing 1 in location 2 -:(scenario "divide_with_remainder") +:(scenario divide_with_remainder) recipe main [ 1:integer <- copy 27:literal 2:integer <- copy 11:literal -- cgit 1.4.1-2-gfad0