about summary refs log tree commit diff stats
path: root/023boolean.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-19 22:10:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-19 22:10:35 -0700
commit6c96a437cef5140197660a0903309f11c364bf78 (patch)
treeea3b5a4d90100329eeb58a76773a500a6bee71da /023boolean.cc
parent5a820205054a9c45a9b4dc71aa1f26b4612ec76d (diff)
downloadmu-6c96a437cef5140197660a0903309f11c364bf78.tar.gz
3522
Diffstat (limited to '023boolean.cc')
-rw-r--r--023boolean.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/023boolean.cc b/023boolean.cc
index 72037b1d..89dfc8a5 100644
--- a/023boolean.cc
+++ b/023boolean.cc
@@ -6,7 +6,7 @@ AND,
 put(Recipe_ordinal, "and", AND);
 :(before "End Primitive Recipe Checks")
 case AND: {
-  for (int i = 0; i < SIZE(inst.ingredients); ++i) {
+  for (int i = 0;  i < SIZE(inst.ingredients);  ++i) {
     if (!is_mu_scalar(inst.ingredients.at(i))) {
       raise << maybe(get(Recipe, r).name) << "'and' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end();
       goto finish_checking_instruction;
@@ -25,7 +25,7 @@ case AND: {
 :(before "End Primitive Recipe Implementations")
 case AND: {
   bool result = true;
-  for (int i = 0; i < SIZE(ingredients); ++i)
+  for (int i = 0;  i < SIZE(ingredients);  ++i)
     result = result && ingredients.at(i).at(0);
   products.resize(1);
   products.at(0).push_back(result);
@@ -64,7 +64,7 @@ OR,
 put(Recipe_ordinal, "or", OR);
 :(before "End Primitive Recipe Checks")
 case OR: {
-  for (int i = 0; i < SIZE(inst.ingredients); ++i) {
+  for (int i = 0;  i < SIZE(inst.ingredients);  ++i) {
     if (!is_mu_scalar(inst.ingredients.at(i))) {
       raise << maybe(get(Recipe, r).name) << "'and' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end();
       goto finish_checking_instruction;
@@ -83,7 +83,7 @@ case OR: {
 :(before "End Primitive Recipe Implementations")
 case OR: {
   bool result = false;
-  for (int i = 0; i < SIZE(ingredients); ++i)
+  for (int i = 0;  i < SIZE(ingredients);  ++i)
     result = result || ingredients.at(i).at(0);
   products.resize(1);
   products.at(0).push_back(result);
@@ -126,13 +126,13 @@ case NOT: {
     raise << "ingredients and products should match in '" << inst.original_string << "'\n" << end();
     break;
   }
-  for (int i = 0; i < SIZE(inst.ingredients); ++i) {
+  for (int i = 0;  i < SIZE(inst.ingredients);  ++i) {
     if (!is_mu_scalar(inst.ingredients.at(i))) {
       raise << maybe(get(Recipe, r).name) << "'not' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end();
       goto finish_checking_instruction;
     }
   }
-  for (int i = 0; i < SIZE(inst.products); ++i) {
+  for (int i = 0;  i < SIZE(inst.products);  ++i) {
     if (is_dummy(inst.products.at(i))) continue;
     if (!is_mu_boolean(inst.products.at(i))) {
       raise << maybe(get(Recipe, r).name) << "'not' should yield a boolean, but got '" << inst.products.at(i).original_string << "'\n" << end();
@@ -144,7 +144,7 @@ case NOT: {
 :(before "End Primitive Recipe Implementations")
 case NOT: {
   products.resize(SIZE(ingredients));
-  for (int i = 0; i < SIZE(ingredients); ++i) {
+  for (int i = 0;  i < SIZE(ingredients);  ++i) {
     products.at(i).push_back(!ingredients.at(i).at(0));
   }
   break;