diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 10:19:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 10:19:03 -0700 |
commit | 88be3dbc0c996490dbac97538f4d712a5b4f6f07 (patch) | |
tree | dbba8f597d3090bb71553544ba28c59644973b3b /cpp/021arithmetic | |
parent | e351d6fd04d95068fac4402dc103e0752182fa8d (diff) | |
download | mu-88be3dbc0c996490dbac97538f4d712a5b4f6f07.tar.gz |
1162
Diffstat (limited to 'cpp/021arithmetic')
-rw-r--r-- | cpp/021arithmetic | 20 |
1 files changed, 10 insertions, 10 deletions
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 |