From 1c2d788b454670bf8fa1cb65c6251a8ff6ddcaf7 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 19 Jun 2017 11:29:20 -0700 Subject: 3927 --- html/022arithmetic.cc.html | 106 ++++++++++++++++++++++----------------------- 1 file changed, 53 insertions(+), 53 deletions(-) (limited to 'html/022arithmetic.cc.html') diff --git a/html/022arithmetic.cc.html b/html/022arithmetic.cc.html index 7af2b038..93da4c47 100644 --- a/html/022arithmetic.cc.html +++ b/html/022arithmetic.cc.html @@ -73,16 +73,16 @@ if ('onhashchange' in window) { 9 // primary goal of these checks is to forbid address arithmetic 10 for (int i = 0; i < SIZE(inst.ingredients); ++i) { 11 ¦ if (!is_mu_number(inst.ingredients.at(i))) { - 12 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'add' requires number ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); + 12 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'add' requires number ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); 13 ¦ ¦ goto finish_checking_instruction; 14 ¦ } 15 } 16 if (SIZE(inst.products) > 1) { - 17 ¦ raise << maybe(get(Recipe, r).name) << "'add' yields exactly one product in '" << to_original_string(inst) << "'\n" << end(); + 17 ¦ raise << maybe(get(Recipe, r).name) << "'add' yields exactly one product in '" << to_original_string(inst) << "'\n" << end(); 18 ¦ break; 19 } 20 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { - 21 ¦ raise << maybe(get(Recipe, r).name) << "'add' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); + 21 ¦ raise << maybe(get(Recipe, r).name) << "'add' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 22 ¦ break; 23 } 24 break; @@ -139,22 +139,22 @@ if ('onhashchange' in window) { 75 :(before "End Primitive Recipe Checks") 76 case SUBTRACT: { 77 if (inst.ingredients.empty()) { - 78 ¦ raise << maybe(get(Recipe, r).name) << "'subtract' has no ingredients\n" << end(); + 78 ¦ raise << maybe(get(Recipe, r).name) << "'subtract' has no ingredients\n" << end(); 79 ¦ break; 80 } 81 for (int i = 0; i < SIZE(inst.ingredients); ++i) { 82 ¦ if (is_raw(inst.ingredients.at(i))) continue; // permit address offset computations in tests 83 ¦ if (!is_mu_number(inst.ingredients.at(i))) { - 84 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'subtract' requires number ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); + 84 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'subtract' requires number ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); 85 ¦ ¦ goto finish_checking_instruction; 86 ¦ } 87 } 88 if (SIZE(inst.products) > 1) { - 89 ¦ raise << maybe(get(Recipe, r).name) << "'subtract' yields exactly one product in '" << to_original_string(inst) << "'\n" << end(); + 89 ¦ raise << maybe(get(Recipe, r).name) << "'subtract' yields exactly one product in '" << to_original_string(inst) << "'\n" << end(); 90 ¦ break; 91 } 92 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { - 93 ¦ raise << maybe(get(Recipe, r).name) << "'subtract' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); + 93 ¦ raise << maybe(get(Recipe, r).name) << "'subtract' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 94 ¦ break; 95 } 96 break; @@ -201,16 +201,16 @@ if ('onhashchange' in window) { 137 case MULTIPLY: { 138 for (int i = 0; i < SIZE(inst.ingredients); ++i) { 139 ¦ if (!is_mu_number(inst.ingredients.at(i))) { -140 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'multiply' requires number ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); +140 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'multiply' requires number ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); 141 ¦ ¦ goto finish_checking_instruction; 142 ¦ } 143 } 144 if (SIZE(inst.products) > 1) { -145 ¦ raise << maybe(get(Recipe, r).name) << "'multiply' yields exactly one product in '" << to_original_string(inst) << "'\n" << end(); +145 ¦ raise << maybe(get(Recipe, r).name) << "'multiply' yields exactly one product in '" << to_original_string(inst) << "'\n" << end(); 146 ¦ break; 147 } 148 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { -149 ¦ raise << maybe(get(Recipe, r).name) << "'multiply' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +149 ¦ raise << maybe(get(Recipe, r).name) << "'multiply' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 150 ¦ break; 151 } 152 break; @@ -253,21 +253,21 @@ if ('onhashchange' in window) { 189 :(before "End Primitive Recipe Checks") 190 case DIVIDE: { 191 if (inst.ingredients.empty()) { -192 ¦ raise << maybe(get(Recipe, r).name) << "'divide' has no ingredients\n" << end(); +192 ¦ raise << maybe(get(Recipe, r).name) << "'divide' has no ingredients\n" << end(); 193 ¦ break; 194 } 195 for (int i = 0; i < SIZE(inst.ingredients); ++i) { 196 ¦ if (!is_mu_number(inst.ingredients.at(i))) { -197 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'divide' requires number ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); +197 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'divide' requires number ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); 198 ¦ ¦ goto finish_checking_instruction; 199 ¦ } 200 } 201 if (SIZE(inst.products) > 1) { -202 ¦ raise << maybe(get(Recipe, r).name) << "'divide' yields exactly one product in '" << to_original_string(inst) << "'\n" << end(); +202 ¦ raise << maybe(get(Recipe, r).name) << "'divide' yields exactly one product in '" << to_original_string(inst) << "'\n" << end(); 203 ¦ break; 204 } 205 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { -206 ¦ raise << maybe(get(Recipe, r).name) << "'divide' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +206 ¦ raise << maybe(get(Recipe, r).name) << "'divide' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 207 ¦ break; 208 } 209 break; @@ -311,20 +311,20 @@ if ('onhashchange' in window) { 247 :(before "End Primitive Recipe Checks") 248 case DIVIDE_WITH_REMAINDER: { 249 if (SIZE(inst.ingredients) != 2) { -250 ¦ raise << maybe(get(Recipe, r).name) << "'divide-with-remainder' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +250 ¦ raise << maybe(get(Recipe, r).name) << "'divide-with-remainder' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 251 ¦ break; 252 } 253 if (!is_mu_number(inst.ingredients.at(0)) || !is_mu_number(inst.ingredients.at(1))) { -254 ¦ raise << maybe(get(Recipe, r).name) << "'divide-with-remainder' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +254 ¦ raise << maybe(get(Recipe, r).name) << "'divide-with-remainder' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 255 ¦ break; 256 } 257 if (SIZE(inst.products) > 2) { -258 ¦ raise << maybe(get(Recipe, r).name) << "'divide-with-remainder' yields two products in '" << to_original_string(inst) << "'\n" << end(); +258 ¦ raise << maybe(get(Recipe, r).name) << "'divide-with-remainder' yields two products in '" << to_original_string(inst) << "'\n" << end(); 259 ¦ break; 260 } 261 for (int i = 0; i < SIZE(inst.products); ++i) { 262 ¦ if (!is_dummy(inst.products.at(i)) && !is_mu_number(inst.products.at(i))) { -263 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'divide-with-remainder' should yield a number, but got '" << inst.products.at(i).original_string << "'\n" << end(); +263 ¦ ¦ raise << maybe(get(Recipe, r).name) << "'divide-with-remainder' should yield a number, but got '" << inst.products.at(i).original_string << "'\n" << end(); 264 ¦ ¦ goto finish_checking_instruction; 265 ¦ } 266 } @@ -337,7 +337,7 @@ if ('onhashchange' in window) { 273 long long int a = static_cast<long long int>(ingredients.at(0).at(0)); 274 long long int b = static_cast<long long int>(ingredients.at(1).at(0)); 275 if (b == 0) { -276 ¦ raise << maybe(current_recipe_name()) << "divide by zero in '" << to_original_string(current_instruction()) << "'\n" << end(); +276 ¦ raise << maybe(current_recipe_name()) << "divide by zero in '" << to_original_string(current_instruction()) << "'\n" << end(); 277 ¦ products.resize(2); 278 ¦ products.at(0).push_back(0); 279 ¦ products.at(1).push_back(0); @@ -395,19 +395,19 @@ if ('onhashchange' in window) { 331 :(before "End Primitive Recipe Checks") 332 case SHIFT_LEFT: { 333 if (SIZE(inst.ingredients) != 2) { -334 ¦ raise << maybe(get(Recipe, r).name) << "'shift-left' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +334 ¦ raise << maybe(get(Recipe, r).name) << "'shift-left' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 335 ¦ break; 336 } 337 if (!is_mu_number(inst.ingredients.at(0)) || !is_mu_number(inst.ingredients.at(1))) { -338 ¦ raise << maybe(get(Recipe, r).name) << "'shift-left' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +338 ¦ raise << maybe(get(Recipe, r).name) << "'shift-left' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 339 ¦ break; 340 } 341 if (SIZE(inst.products) > 1) { -342 ¦ raise << maybe(get(Recipe, r).name) << "'shift-left' yields one product in '" << to_original_string(inst) << "'\n" << end(); +342 ¦ raise << maybe(get(Recipe, r).name) << "'shift-left' yields one product in '" << to_original_string(inst) << "'\n" << end(); 343 ¦ break; 344 } 345 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { -346 ¦ raise << maybe(get(Recipe, r).name) << "'shift-left' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +346 ¦ raise << maybe(get(Recipe, r).name) << "'shift-left' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 347 ¦ goto finish_checking_instruction; 348 } 349 break; @@ -466,19 +466,19 @@ if ('onhashchange' in window) { 402 :(before "End Primitive Recipe Checks") 403 case SHIFT_RIGHT: { 404 if (SIZE(inst.ingredients) != 2) { -405 ¦ raise << maybe(get(Recipe, r).name) << "'shift-right' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +405 ¦ raise << maybe(get(Recipe, r).name) << "'shift-right' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 406 ¦ break; 407 } 408 if (!is_mu_number(inst.ingredients.at(0)) || !is_mu_number(inst.ingredients.at(1))) { -409 ¦ raise << maybe(get(Recipe, r).name) << "'shift-right' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +409 ¦ raise << maybe(get(Recipe, r).name) << "'shift-right' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 410 ¦ break; 411 } 412 if (SIZE(inst.products) > 1) { -413 ¦ raise << maybe(get(Recipe, r).name) << "'shift-right' yields one product in '" << to_original_string(inst) << "'\n" << end(); +413 ¦ raise << maybe(get(Recipe, r).name) << "'shift-right' yields one product in '" << to_original_string(inst) << "'\n" << end(); 414 ¦ break; 415 } 416 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { -417 ¦ raise << maybe(get(Recipe, r).name) << "'shift-right' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +417 ¦ raise << maybe(get(Recipe, r).name) << "'shift-right' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 418 ¦ goto finish_checking_instruction; 419 } 420 break; @@ -537,19 +537,19 @@ if ('onhashchange' in window) { 473 :(before "End Primitive Recipe Checks") 474 case AND_BITS: { 475 if (SIZE(inst.ingredients) != 2) { -476 ¦ raise << maybe(get(Recipe, r).name) << "'and-bits' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +476 ¦ raise << maybe(get(Recipe, r).name) << "'and-bits' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 477 ¦ break; 478 } 479 if (!is_mu_number(inst.ingredients.at(0)) || !is_mu_number(inst.ingredients.at(1))) { -480 ¦ raise << maybe(get(Recipe, r).name) << "'and-bits' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +480 ¦ raise << maybe(get(Recipe, r).name) << "'and-bits' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 481 ¦ break; 482 } 483 if (SIZE(inst.products) > 1) { -484 ¦ raise << maybe(get(Recipe, r).name) << "'and-bits' yields one product in '" << to_original_string(inst) << "'\n" << end(); +484 ¦ raise << maybe(get(Recipe, r).name) << "'and-bits' yields one product in '" << to_original_string(inst) << "'\n" << end(); 485 ¦ break; 486 } 487 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { -488 ¦ raise << maybe(get(Recipe, r).name) << "'and-bits' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +488 ¦ raise << maybe(get(Recipe, r).name) << "'and-bits' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 489 ¦ goto finish_checking_instruction; 490 } 491 break; @@ -595,19 +595,19 @@ if ('onhashchange' in window) { 531 :(before "End Primitive Recipe Checks") 532 case OR_BITS: { 533 if (SIZE(inst.ingredients) != 2) { -534 ¦ raise << maybe(get(Recipe, r).name) << "'or-bits' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +534 ¦ raise << maybe(get(Recipe, r).name) << "'or-bits' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 535 ¦ break; 536 } 537 if (!is_mu_number(inst.ingredients.at(0)) || !is_mu_number(inst.ingredients.at(1))) { -538 ¦ raise << maybe(get(Recipe, r).name) << "'or-bits' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +538 ¦ raise << maybe(get(Recipe, r).name) << "'or-bits' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 539 ¦ break; 540 } 541 if (SIZE(inst.products) > 1) { -542 ¦ raise << maybe(get(Recipe, r).name) << "'or-bits' yields one product in '" << to_original_string(inst) << "'\n" << end(); +542 ¦ raise << maybe(get(Recipe, r).name) << "'or-bits' yields one product in '" << to_original_string(inst) << "'\n" << end(); 543 ¦ break; 544 } 545 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { -546 ¦ raise << maybe(get(Recipe, r).name) << "'or-bits' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +546 ¦ raise << maybe(get(Recipe, r).name) << "'or-bits' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 547 ¦ goto finish_checking_instruction; 548 } 549 break; @@ -647,19 +647,19 @@ if ('onhashchange' in window) { 583 :(before "End Primitive Recipe Checks") 584 case XOR_BITS: { 585 if (SIZE(inst.ingredients) != 2) { -586 ¦ raise << maybe(get(Recipe, r).name) << "'xor-bits' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +586 ¦ raise << maybe(get(Recipe, r).name) << "'xor-bits' requires exactly two ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 587 ¦ break; 588 } 589 if (!is_mu_number(inst.ingredients.at(0)) || !is_mu_number(inst.ingredients.at(1))) { -590 ¦ raise << maybe(get(Recipe, r).name) << "'xor-bits' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); +590 ¦ raise << maybe(get(Recipe, r).name) << "'xor-bits' requires number ingredients, but got '" << to_original_string(inst) << "'\n" << end(); 591 ¦ break; 592 } 593 if (SIZE(inst.products) > 1) { -594 ¦ raise << maybe(get(Recipe, r).name) << "'xor-bits' yields one product in '" << to_original_string(inst) << "'\n" << end(); +594 ¦ raise << maybe(get(Recipe, r).name) << "'xor-bits' yields one product in '" << to_original_string(inst) << "'\n" << end(); 595 ¦ break; 596 } 597 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { -598 ¦ raise << maybe(get(Recipe, r).name) << "'xor-bits' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +598 ¦ raise << maybe(get(Recipe, r).name) << "'xor-bits' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 599 ¦ goto finish_checking_instruction; 600 } 601 break; @@ -699,19 +699,19 @@ if ('onhashchange' in window) { 635 :(before "End Primitive Recipe Checks") 636 case FLIP_BITS: { 637 if (SIZE(inst.ingredients) != 1) { -638 ¦ raise << maybe(get(Recipe, r).name) << "'flip-bits' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); +638 ¦ raise << maybe(get(Recipe, r).name) << "'flip-bits' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); 639 ¦ break; 640 } 641 if (!is_mu_number(inst.ingredients.at(0))) { -642 ¦ raise << maybe(get(Recipe, r).name) << "'flip-bits' requires a number ingredient, but got '" << to_original_string(inst) << "'\n" << end(); +642 ¦ raise << maybe(get(Recipe, r).name) << "'flip-bits' requires a number ingredient, but got '" << to_original_string(inst) << "'\n" << end(); 643 ¦ break; 644 } 645 if (SIZE(inst.products) > 1) { -646 ¦ raise << maybe(get(Recipe, r).name) << "'flip-bits' yields one product in '" << to_original_string(inst) << "'\n" << end(); +646 ¦ raise << maybe(get(Recipe, r).name) << "'flip-bits' yields one product in '" << to_original_string(inst) << "'\n" << end(); 647 ¦ break; 648 } 649 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_number(inst.products.at(0))) { -650 ¦ raise << maybe(get(Recipe, r).name) << "'flip-bits' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +650 ¦ raise << maybe(get(Recipe, r).name) << "'flip-bits' should yield a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 651 ¦ goto finish_checking_instruction; 652 } 653 break; @@ -756,11 +756,11 @@ if ('onhashchange' in window) { 692 :(before "End Primitive Recipe Checks") 693 case ROUND: { 694 if (SIZE(inst.ingredients) != 1) { -695 ¦ raise << maybe(get(Recipe, r).name) << "'round' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); +695 ¦ raise << maybe(get(Recipe, r).name) << "'round' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); 696 ¦ break; 697 } 698 if (!is_mu_number(inst.ingredients.at(0))) { -699 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'round' should be a number, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +699 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'round' should be a number, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 700 ¦ break; 701 } 702 break; @@ -797,11 +797,11 @@ if ('onhashchange' in window) { 733 :(before "End Primitive Recipe Checks") 734 case TRUNCATE: { 735 if (SIZE(inst.ingredients) != 1) { -736 ¦ raise << maybe(get(Recipe, r).name) << "'truncate' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); +736 ¦ raise << maybe(get(Recipe, r).name) << "'truncate' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); 737 ¦ break; 738 } 739 if (!is_mu_number(inst.ingredients.at(0))) { -740 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'truncate' should be a number, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +740 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'truncate' should be a number, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 741 ¦ break; 742 } 743 break; @@ -832,11 +832,11 @@ if ('onhashchange' in window) { 768 :(before "End Primitive Recipe Checks") 769 case SQUARE_ROOT: { 770 if (SIZE(inst.ingredients) != 1) { -771 ¦ raise << maybe(get(Recipe, r).name) << "'square-root' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); +771 ¦ raise << maybe(get(Recipe, r).name) << "'square-root' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); 772 ¦ break; 773 } 774 if (!is_mu_number(inst.ingredients.at(0))) { -775 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'square-root' should be a number, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +775 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'square-root' should be a number, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 776 ¦ break; 777 } 778 break; @@ -855,19 +855,19 @@ if ('onhashchange' in window) { 791 :(before "End Primitive Recipe Checks") 792 case CHARACTER_TO_CODE: { 793 if (SIZE(inst.ingredients) != 1) { -794 ¦ raise << maybe(get(Recipe, r).name) << "'character-to-code' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); +794 ¦ raise << maybe(get(Recipe, r).name) << "'character-to-code' requires exactly one ingredient, but got '" << to_original_string(inst) << "'\n" << end(); 795 ¦ break; 796 } 797 if (!is_mu_character(inst.ingredients.at(0))) { -798 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'character-to-code' should be a character, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +798 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'character-to-code' should be a character, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 799 ¦ break; 800 } 801 if (SIZE(inst.products) != 1) { -802 ¦ raise << maybe(get(Recipe, r).name) << "'character-to-code' requires exactly one product, but got '" << to_original_string(inst) << "'\n" << end(); +802 ¦ raise << maybe(get(Recipe, r).name) << "'character-to-code' requires exactly one product, but got '" << to_original_string(inst) << "'\n" << end(); 803 ¦ break; 804 } 805 if (!is_mu_number(inst.products.at(0))) { -806 ¦ raise << maybe(get(Recipe, r).name) << "first product of 'character-to-code' should be a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); +806 ¦ raise << maybe(get(Recipe, r).name) << "first product of 'character-to-code' should be a number, but got '" << inst.products.at(0).original_string << "'\n" << end(); 807 ¦ break; 808 } 809 break; -- cgit 1.4.1-2-gfad0