From 996ce5f101e597cf70bda0864f964b356a1005a3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 6 May 2017 15:03:13 -0700 Subject: 3845 --- html/032array.cc.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/032array.cc.html') diff --git a/html/032array.cc.html b/html/032array.cc.html index 11582655..317ec711 100644 --- a/html/032array.cc.html +++ b/html/032array.cc.html @@ -407,14 +407,14 @@ if ('onhashchange' in window) { 342 int base_address = base.value; 343 trace(9998, "run") << "base address is " << base_address << end(); 344 if (base_address == 0) { -345 ¦ raise << maybe(current_recipe_name()) << "tried to access location 0 in '" << to_original_string(current_instruction()) << "'\n" << end(); +345 ¦ raise << maybe(current_recipe_name()) << "tried to access location 0 in '" << current_instruction().original_string << "'\n" << end(); 346 ¦ break; 347 } 348 reagent/*copy*/ index = current_instruction().ingredients.at(1); 349 // Update INDEX index in Run 350 vector<double> index_val(read_memory(index)); 351 if (index_val.at(0) < 0 || index_val.at(0) >= get_or_insert(Memory, base_address)) { -352 ¦ raise << maybe(current_recipe_name()) << "invalid index " << no_scientific(index_val.at(0)) << " in '" << to_original_string(current_instruction()) << "'\n" << end(); +352 ¦ raise << maybe(current_recipe_name()) << "invalid index " << no_scientific(index_val.at(0)) << " in '" << current_instruction().original_string << "'\n" << end(); 353 ¦ break; 354 } 355 reagent/*local*/ element; @@ -597,14 +597,14 @@ if ('onhashchange' in window) { 532 // Update PUT_INDEX base in Run 533 int base_address = base.value; 534 if (base_address == 0) { -535 ¦ raise << maybe(current_recipe_name()) << "tried to access location 0 in '" << to_original_string(current_instruction()) << "'\n" << end(); +535 ¦ raise << maybe(current_recipe_name()) << "tried to access location 0 in '" << current_instruction().original_string << "'\n" << end(); 536 ¦ break; 537 } 538 reagent/*copy*/ index = current_instruction().ingredients.at(1); 539 // Update PUT_INDEX index in Run 540 vector<double> index_val(read_memory(index)); 541 if (index_val.at(0) < 0 || index_val.at(0) >= get_or_insert(Memory, base_address)) { -542 ¦ raise << maybe(current_recipe_name()) << "invalid index " << no_scientific(index_val.at(0)) << " in '" << to_original_string(current_instruction()) << "'\n" << end(); +542 ¦ raise << maybe(current_recipe_name()) << "invalid index " << no_scientific(index_val.at(0)) << " in '" << current_instruction().original_string << "'\n" << end(); 543 ¦ break; 544 } 545 int address = base_address + /*skip length*/1 + index_val.at(0)*size_of(array_element(base.type)); @@ -695,7 +695,7 @@ if ('onhashchange' in window) { 630 reagent/*copy*/ array = current_instruction().ingredients.at(0); 631 // Update LENGTH array in Run 632 if (array.value == 0) { -633 ¦ raise << maybe(current_recipe_name()) << "tried to access location 0 in '" << to_original_string(current_instruction()) << "'\n" << end(); +633 ¦ raise << maybe(current_recipe_name()) << "tried to access location 0 in '" << current_instruction().original_string << "'\n" << end(); 634 ¦ break; 635 } 636 products.resize(1); -- cgit 1.4.1-2-gfad0